/* Inner pages (services, projects, about, contact) and the blog and shop pages
   the ERP renders for this site. Loaded after css/style.css and next/style.css;
   everything is scoped to .nx like the home page sections. */

.site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"]::after { right: 0; }
.site-header.scrolled .site-nav a[aria-current="page"] { color: var(--ink); }
.site-header.scrolled.in-deep .site-nav a[aria-current="page"] { color: #fff; }
.mobile-nav ul a[aria-current="page"] { color: var(--aqua); }
.cart-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: #fff; background: rgba(4, 18, 31, 0.4); text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.site-header.scrolled:not(.in-deep) .cart-pill { color: var(--ink); background: rgba(8, 37, 64, 0.07); }
.cart-pill b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--azure-600); color: #fff;
  display: inline-grid; place-items: center; font-size: 0.75rem; }

.nx main, main.nx { display: block; }

/* ---------- page head (dark, sits under the transparent header) ---------- */
.nx .ph { position: relative; overflow: hidden; background: var(--deep); color: #fff;
  padding: calc(var(--header-h, 78px) + clamp(60px, 11vh, 130px)) var(--gut) clamp(56px, 9vh, 110px); }
.nx .ph-media { position: absolute; inset: 0; }
.nx .ph-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.nx .ph::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3, 19, 31, 0.78), rgba(3, 19, 31, 0.35) 60%, rgba(3, 19, 31, 0.75)); }
.nx .ph-in { position: relative; z-index: 1; max-width: 1500px; margin: 0 auto; display: grid; gap: 22px; }
.nx .ph .mono { color: var(--aqua); }
.nx .ph .mono a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.nx .ph .mono a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.nx .ph h1 { font: 400 clamp(44px, 7.4vw, 116px)/0.98 var(--serif); letter-spacing: -0.03em; max-width: 14ch; text-wrap: balance; }
.nx .ph-lead { max-width: 52ch; color: rgba(255, 255, 255, 0.82); font-size: clamp(17px, 1.4vw, 20px); }
.nx .ph-short { padding-bottom: clamp(40px, 6vh, 70px); }
.nx .ph-short h1 { font-size: clamp(40px, 5.6vw, 84px); }

/* ---------- generic section ---------- */
.nx .sec { padding: clamp(80px, 12vh, 150px) var(--gut); }
.nx .sec-paper { background: var(--paper); }
.nx .sec-dark { background: var(--deep); color: #eaf3f7; }
.nx .sec-in { max-width: 1500px; margin: 0 auto; }
.nx .sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vh, 60px); }
.nx .sec-head .mono { color: var(--ink-2); }
.nx .sec-dark .sec-head .mono { color: var(--aqua); }
.nx .sec-head h2 { max-width: 20ch; }
.nx .sec-head p:not(.mono) { color: var(--ink-2); max-width: 56ch; }
.nx .sec-dark .sec-head p:not(.mono) { color: rgba(234, 243, 247, 0.75); }
.nx .lead { font: 400 clamp(22px, 2.6vw, 36px)/1.2 var(--serif); letter-spacing: -0.01em; max-width: 30ch; }
.nx .btn-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.nx .btn-light { background: #fff; color: var(--ink); }
.nx .btn-light:hover { color: #fff; }
.nx .btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.nx .btn-line:hover { color: #fff; }
.nx .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.nx .tlink { color: var(--azure); text-underline-offset: 4px; }

/* ---------- services page ---------- */
.nx .jump { display: flex; flex-wrap: wrap; gap: 8px; }
.nx .jump a { font: 500 13px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  padding: 11px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; }
.nx .jump a:hover { background: #fff; color: var(--ink); }
.nx .sv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 80px); align-items: center;
  padding: clamp(46px, 8vh, 90px) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.nx .sv:nth-child(even) .sv-media { order: 2; }
.nx .sv-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.nx .sv-body { display: grid; gap: 16px; align-content: start; }
.nx .sv-body .mono { color: var(--azure); }
.nx .sv-body h2 { font-size: clamp(32px, 4vw, 58px); }
.nx .sv-body p { color: var(--ink-2); max-width: 50ch; }
.nx .ticks { display: grid; gap: 8px; margin-top: 6px; }
.nx .ticks li { position: relative; padding-left: 22px; color: var(--ink); }
.nx .ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 1.5px; background: var(--azure); }
.nx .all-list { columns: 3 220px; column-gap: 34px; }
.nx .all-list li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); }

/* ---------- projects page ---------- */
.nx .ba-grid { margin-top: 0; }
.nx .ba figcaption { color: var(--ink-2); font-size: 15px; }
.nx .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); }
.nx .steps li { display: grid; gap: 12px; align-content: start; }
.nx .steps img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; width: 100%; }
.nx .steps .mono { color: var(--azure); }
.nx .steps h3 { font: 400 clamp(22px, 2vw, 30px)/1.1 var(--serif); }
.nx .steps p { color: var(--ink-2); font-size: 16px; }
.nx .pgrid { columns: 3 300px; column-gap: clamp(12px, 1.6vw, 22px); }
.nx .pgrid figure { margin: 0 0 clamp(12px, 1.6vw, 22px); break-inside: avoid; }
.nx .pgrid img { width: 100%; border-radius: 4px; }
.nx .pgrid figcaption { margin-top: 10px; color: rgba(234, 243, 247, 0.7); }

/* ---------- about page ---------- */
.nx .split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); align-items: start; }
.nx .copy { display: grid; gap: 18px; }
.nx .copy p { color: var(--ink-2); max-width: 58ch; }
.nx .copy p.lead { color: var(--ink); }
.nx .pics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nx .pics img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; aspect-ratio: 4 / 3; }
.nx .pics .tall { grid-row: span 2; }
.nx .pics .tall img { aspect-ratio: auto; }
.nx .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.nx .facts > div { padding: 30px 24px 0 0; display: grid; gap: 8px; }
.nx .facts strong { font: 400 clamp(44px, 5vw, 76px)/1 var(--serif); letter-spacing: -0.02em; }
.nx .facts span { color: var(--ink-2); max-width: 28ch; }
.nx .rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.nx .rules li { display: grid; gap: 10px; padding-top: 24px; border-top: 1px solid rgba(234, 243, 247, 0.2); }
.nx .rules h3 { font: 400 clamp(24px, 2.2vw, 32px)/1.1 var(--serif); }
.nx .rules p { color: rgba(234, 243, 247, 0.75); }

/* ---------- forms (contact, checkout) ---------- */
.nx .fm { display: grid; gap: 18px; }
.nx .fm-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.nx .ff { display: grid; gap: 7px; }
.nx .ff label, .nx .ff legend { font: 500 14px/1.3 var(--sans); color: var(--ink); padding: 0; }
.nx .ff .opt { color: var(--ink-2); font-weight: 400; }
.nx .ff input, .nx .ff textarea, .nx .ff select {
  width: 100%; min-height: 52px; padding: 13px 15px; border-radius: 8px;
  border: 1px solid rgba(10, 30, 46, 0.22); background: #fff; color: var(--ink);
  font: 400 16px/1.4 var(--sans); }
.nx .ff textarea { min-height: 130px; resize: vertical; }
.nx .ff input:focus-visible, .nx .ff textarea:focus-visible { outline: 2px solid var(--azure); outline-offset: 1px; border-color: var(--azure); }
.nx .ff input[aria-invalid="true"], .nx .ff textarea[aria-invalid="true"] { border-color: #c62f3a; }
.nx .ff .hint { font-size: 13px; color: var(--ink-2); }
.nx .ff-err { font-size: 14px; color: #b3242f; }
.nx .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nx .choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; margin: 0; padding: 0; }
.nx .choice label { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; cursor: pointer;
  padding: 16px; border: 1px solid rgba(10, 30, 46, 0.22); border-radius: 8px; background: #fff; }
.nx .choice label:has(input:checked) { border-color: var(--azure); box-shadow: inset 0 0 0 1px var(--azure); }
.nx .choice input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; accent-color: var(--azure); }
.nx .choice small { grid-column: 2; color: var(--ink-2); font-size: 13px; }
.nx .msg { padding: 14px 16px; border-radius: 8px; font-size: 15px; }
.nx .msg-ok { background: #e3f4ea; color: #0b5c33; }
.nx .msg-err { background: #fbe7e9; color: #8e1c26; }
.nx .msg-info { background: #e6f0fb; color: #0b4da0; }

/* contact page */
.nx .cx { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(30px, 6vw, 100px); align-items: start; }
.nx .direct { display: grid; gap: 26px; }
.nx .direct dl { display: grid; gap: 22px; margin: 0; }
.nx .direct dt { color: var(--ink-2); margin-bottom: 4px; }
.nx .direct dd { margin: 0; font: 400 clamp(22px, 2vw, 28px)/1.25 var(--serif); }
.nx .direct dd a { text-decoration: none; }
.nx .direct dd a:hover { color: var(--azure); }
.nx .wa-card { background: var(--deep); color: #fff; border-radius: 8px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; }
.nx .wa-card p { color: rgba(255, 255, 255, 0.8); }
.nx .wa-card .btn { justify-self: start; }

/* ---------- shop ---------- */
.nx .shop-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; align-items: end; margin-bottom: 34px; }
.nx .shop-bar p { color: var(--ink-2); max-width: 60ch; }
.nx .cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.nx .cats a { font: 500 13px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.nx .cats a[aria-current="true"], .nx .cats a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.nx .pgrid-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(16px, 2vw, 28px); }
.nx .pcard { display: grid; grid-template-rows: auto 1fr; background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(10, 30, 46, 0.06), 0 14px 40px -26px rgba(6, 35, 57, 0.35); }
.nx .pcard-img { display: block; aspect-ratio: 1 / 1; background: var(--stone); overflow: hidden; }
.nx .pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.nx .pcard:hover .pcard-img img { transform: scale(1.04); }
.nx .pcard-body { display: grid; gap: 8px; padding: 18px 18px 20px; align-content: start; }
.nx .pcard-body .mono { color: var(--ink-2); font-size: 11px; }
.nx .pcard-body h3 { font: 500 18px/1.25 var(--sans); }
.nx .pcard-body h3 a { text-decoration: none; }
.nx .pcard-body h3 a:hover { color: var(--azure); }
.nx .price { font: 500 20px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.nx .price small { font-size: 13px; font-weight: 400; color: var(--ink-2); margin-left: 4px; }
.nx .stock { font-size: 13px; color: var(--ink-2); }
.nx .stock-out { color: #8e1c26; }
.nx .pcard .btn { margin-top: 6px; min-height: 46px; justify-content: center; }
.nx .noimg { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, #e9e2d3, #d9cdb6); }
.nx .noimg img { width: 34%; height: auto; opacity: 0.35; object-fit: contain; }

.nx .empty { border: 1px dashed rgba(10, 30, 46, 0.3); border-radius: 8px; padding: clamp(36px, 6vw, 70px) clamp(20px, 4vw, 50px);
  display: grid; gap: 16px; justify-items: start; background: rgba(255, 255, 255, 0.5); }
.nx .empty h2 { font-size: clamp(30px, 3.6vw, 50px); max-width: 18ch; }
.nx .empty p { color: var(--ink-2); max-width: 54ch; }

.nx .pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.nx .pd-img { border-radius: 8px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--stone); }
.nx .pd-img img { width: 100%; height: 100%; object-fit: cover; }
.nx .pd-body { display: grid; gap: 18px; align-content: start; }
.nx .pd-body h1 { font: 400 clamp(36px, 4.4vw, 64px)/1.02 var(--serif); letter-spacing: -0.02em; }
.nx .pd-body .price { font-size: 28px; }
.nx .pd-desc { color: var(--ink-2); white-space: pre-line; max-width: 56ch; }
.nx .qty { display: inline-flex; align-items: center; border: 1px solid rgba(10, 30, 46, 0.22); border-radius: 999px; background: #fff; }
.nx .qty button { width: 46px; height: 46px; font-size: 20px; border-radius: 999px; }
.nx .qty button:hover { background: var(--lime); }
.nx .qty input { width: 56px; height: 46px; border: 0; text-align: center; font: 500 17px var(--sans); background: transparent; -moz-appearance: textfield; }
.nx .qty input::-webkit-outer-spin-button, .nx .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nx .buy { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.nx .meta-list { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }

.nx .cart-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.nx .cart-lines { border-top: 1px solid var(--line); }
.nx .cline { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.nx .cline-img { width: 84px; height: 84px; border-radius: 6px; overflow: hidden; background: var(--stone); }
.nx .cline-img img { width: 100%; height: 100%; object-fit: cover; }
.nx .cline h3 { font: 500 17px/1.3 var(--sans); }
.nx .cline h3 a { text-decoration: none; }
.nx .cline-sub { color: var(--ink-2); font-size: 14px; }
.nx .cline-end { display: grid; gap: 8px; justify-items: end; }
.nx .cline .qty button { width: 38px; height: 38px; font-size: 17px; }
.nx .cline .qty input { width: 44px; height: 38px; font-size: 15px; }
.nx .linkbtn { color: var(--ink-2); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.nx .linkbtn:hover { color: #8e1c26; }
.nx .summary { background: #fff; border-radius: 8px; padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 14px; position: sticky; top: 100px;
  box-shadow: 0 1px 0 rgba(10, 30, 46, 0.06), 0 14px 40px -26px rgba(6, 35, 57, 0.35); }
.nx .summary h2 { font: 500 18px/1.3 var(--sans); }
.nx .sumrow { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.nx .sumrow span:first-child { color: var(--ink-2); }
.nx .sumtotal { padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; font-size: 19px; }
.nx .summary .btn { justify-content: center; width: 100%; }
.nx .summary .small { color: var(--ink-2); font-size: 13px; }
.nx .paylogos { color: var(--ink-2); font-size: 13px; display: flex; gap: 8px; align-items: center; }

.nx .order-card { max-width: 760px; background: #fff; border-radius: 8px; padding: clamp(22px, 3vw, 40px); display: grid; gap: 18px;
  box-shadow: 0 1px 0 rgba(10, 30, 46, 0.06), 0 14px 40px -26px rgba(6, 35, 57, 0.35); }
.nx .order-card h2 { font-size: clamp(30px, 3.4vw, 46px); }
.nx .order-lines { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- blog ---------- */
.nx .posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(22px, 3vw, 40px); }
.nx .post-card { display: grid; gap: 14px; align-content: start; text-decoration: none; }
.nx .post-card-img { aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: var(--stone); }
.nx .post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.nx .post-card:hover .post-card-img img { transform: scale(1.04); }
.nx .post-card .mono { color: var(--ink-2); }
.nx .post-card h2 { font: 400 clamp(26px, 2.4vw, 34px)/1.1 var(--serif); letter-spacing: -0.01em; }
.nx .post-card:hover h2 { color: var(--azure); }
.nx .post-card p { color: var(--ink-2); }
.nx .article { max-width: 760px; margin: 0 auto; }
.nx .article-cover { max-width: 1100px; margin: 0 auto clamp(40px, 6vh, 70px); border-radius: 8px; overflow: hidden; }
.nx .article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.nx .prose { font-size: 18px; line-height: 1.7; color: var(--ink); }
.nx .prose > * + * { margin-top: 1.1em; }
.nx .prose h2 { font: 400 clamp(28px, 3vw, 40px)/1.12 var(--serif); margin-top: 1.8em; }
.nx .prose h3 { font: 500 21px/1.3 var(--sans); margin-top: 1.6em; }
.nx .prose ul, .nx .prose ol { padding-left: 1.3em; }
.nx .prose ul { list-style: disc; }
.nx .prose ol { list-style: decimal; }
.nx .prose li + li { margin-top: 0.4em; }
.nx .prose a { color: var(--azure); text-underline-offset: 3px; }
.nx .prose blockquote { border-left: 1px solid var(--line); padding-left: 20px; color: var(--ink-2); font-style: italic; }
.nx .prose img { border-radius: 6px; }
.nx .prose code { font: 400 0.9em var(--mono); background: rgba(10, 30, 46, 0.07); padding: 1px 5px; border-radius: 4px; }
.nx .prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.nx .article-foot { max-width: 760px; margin: clamp(50px, 8vh, 80px) auto 0; padding-top: 30px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px 30px; justify-content: space-between; align-items: center; }

@media (max-width: 1000px) {
  .nx .steps { grid-template-columns: 1fr 1fr; }
  .nx .split, .nx .cx, .nx .pd, .nx .cart-layout { grid-template-columns: 1fr; }
  .nx .summary { position: static; }
  .nx .rules, .nx .facts { grid-template-columns: 1fr; }
  .nx .facts > div { padding: 24px 0 0; }
}
@media (max-width: 760px) {
  .nx .sv { grid-template-columns: 1fr; }
  .nx .sv:nth-child(even) .sv-media { order: 0; }
  .nx .fm-2, .nx .choice { grid-template-columns: 1fr; }
  .nx .cline { grid-template-columns: 64px minmax(0, 1fr); }
  .nx .cline-img { width: 64px; height: 64px; }
  .nx .cline-end { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: space-between; align-items: center; }
  .cart-pill span { display: none; }
}
@media (max-width: 520px) {
  .nx .steps { grid-template-columns: 1fr; }
  .nx .pgrid-shop { grid-template-columns: 1fr 1fr; gap: 12px; }
  .nx .pcard-body { padding: 12px 12px 14px; }
  .nx .pcard-body h3 { font-size: 15px; }
  .nx .price { font-size: 17px; }
  .nx .pcard .btn { padding: 0 12px; font-size: 14px; }
}
.nx .ph .ph-title { font: 400 clamp(40px, 5.6vw, 84px)/0.98 var(--serif); letter-spacing: -0.03em; max-width: 14ch; }
.nx .ph-short h1 { max-width: 22ch; }
