/* Nython Globaltech — "Under D65" identity.
   A dyehouse light booth: bleached-cotton ground, logo navy ink, N7 booth grey. */

:root {
  --cotton: #f3f5f2;
  --paper: #ffffff;
  --greige: #e6e5de;
  --booth: #a9aca8;
  --ink: #1e3348;
  --ink-2: #2b4560;
  --text: #1e2a36;
  --muted: #4f5e6c;
  --rule: #cbd0cc;
  --field: #8a949a;
  --mist: #b9c9dc;
  --mist-soft: #e6ecf2;
  --signal: #b4234f;
  --pass: #1f6b4f;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 76rem;
  --r: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--cotton);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
b, strong { font-weight: 650; }
::selection { background: var(--mist); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.7rem); font-stretch: 118%; font-weight: 780; line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: max(1.5rem, min(clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem), 5.4vh)); font-stretch: 112%; font-weight: 740; line-height: 1.08; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; font-stretch: 104%; font-weight: 660; line-height: 1.25; }

.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted-c { color: var(--muted); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--r);
}
.skip-link:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 245, 242, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}
.brand .mark { width: 34px; height: 34px; object-fit: contain; }
.brand-word { display: inline-grid; justify-items: center; line-height: 1; }
.brand-name { padding-bottom: 0.2rem; border-bottom: 1.5px solid currentColor; }
.brand-sub { margin-top: 0.22rem; margin-right: -0.26em; font-family: var(--font-body); font-stretch: 100%; font-weight: 500; font-size: 0.7rem; letter-spacing: 0.26em; }

nav.main { display: flex; align-items: center; gap: 0.15rem; }
nav.main a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.7rem;
  border-radius: var(--r);
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
nav.main a[aria-current="page"]:not(.terminal-cta) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- Buttons ---------- */
.terminal-cta,
nav.main a.terminal-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
nav.main a.terminal-cta { margin-left: 0.6rem; padding: 0.6rem 1rem; }
.terminal-cta:active { transform: translateY(1px); }
.terminal-cta.ghost { background: transparent; color: var(--ink); }
.terminal-cta:disabled { opacity: 0.55; cursor: default; }
.pin { display: none; }

/* ---------- Page structure ---------- */
.band { padding-block: clamp(2.75rem, 7vh, 4.75rem); border-top: 1px solid var(--rule); }
.head { max-width: 50rem; margin-bottom: clamp(1.25rem, 3.5vh, 2.25rem); }
.head .sub, .sub { color: var(--muted); font-size: 1.1rem; margin-top: 0.9rem; max-width: 62ch; }
.lede { color: var(--muted); font-size: 1.18rem; max-width: 62ch; }

.page-header {
  padding-block: clamp(2.25rem, 6vh, 4.5rem) clamp(2rem, 4.5vh, 3.25rem);
  background-color: var(--greige);
  border-bottom: 1px solid var(--rule);
}
.page-header + .band { border-top: 0; }
.page-header h1 { max-width: 24ch; }
.page-header .lede { margin-top: 1.4rem; }
.tag-code { display: none; }
.breadcrumb { display: flex; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--muted); }

/* ---------- Cards and grids ---------- */
.grid2, .grid3, .grid4 { display: grid; gap: 1rem; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: clamp(1.1rem, 2vw, 1.5rem);
  transition: border-color 0.2s ease, transform 0.25s var(--ease);
}
.card h2, .card h3 { font-size: 1.2rem; font-stretch: 106%; font-weight: 680; line-height: 1.22; margin-bottom: 0.55rem; }
.card p { font-size: 0.95rem; line-height: 1.55; }
.card .icon { width: 28px; height: 28px; stroke: var(--ink); stroke-width: 1.5; fill: none; margin-bottom: 1rem; }
.card .index { float: right; margin: 0.2rem 0 0.25rem 1rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.card-link { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--ink); }
.card-link::after { content: ""; position: absolute; inset: 0; }

.tag-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--rule); }
.tag-list > .tag-row:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tag-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.75rem; padding: 1.15rem 0; border-top: 1px solid var(--rule); }
.tag-row .code { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); padding-top: 0.15rem; }
.tag-row h3 { margin-bottom: 0.35rem; }
.tag-row p { max-width: 70ch; }

.gov-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--rule); }
.gov-rows:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gov-row { display: grid; align-content: start; gap: 0.4rem; padding: 1.15rem 0; border-top: 1px solid var(--rule); }
.gov-row .k { font-family: var(--font-display); font-stretch: 110%; font-weight: 700; color: var(--ink); }
.gov-row p { max-width: 68ch; }

.faq-list { max-width: 56rem; border-bottom: 1px solid var(--rule); }
.faq-item { border-top: 1px solid var(--rule); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.05rem; }
.faq-item summary::after { content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-right: 0.35rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-0.2rem) rotate(45deg); transition: transform 0.2s var(--ease); }
.faq-item[open] summary::after { transform: translateY(0.15rem) rotate(-135deg); }
.faq-item > p { margin: 0; padding: 0 0 1.15rem; max-width: 68ch; }

.wrap:has(> .checklist-group) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.wrap:has(> .checklist-group) > :not(.checklist-group) { grid-column: 1 / -1; }
.checklist-group-title { font-size: 1.3rem; font-stretch: 112%; padding-bottom: 0.8rem; border-bottom: 2px solid var(--ink); }
.checklist-item { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.checklist-item .box { width: 1.05rem; height: 1.05rem; border: 1.5px solid var(--ink); border-radius: 2px; margin-top: 0.25rem; }
.checklist-item h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }

.tag-pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-pill { font-size: 0.88rem; padding: 0.4rem 0.85rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--text); }

.on-dark { background: var(--ink); color: #e3e9ef; border-top: 0; }
.on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .muted-c, .on-dark .sub, .on-dark .lede { color: var(--mist); }
.on-dark a:not(.terminal-cta) { color: #fff; }
.on-dark .terminal-cta { background: var(--cotton); color: var(--ink); border-color: var(--cotton); }
.on-dark :focus-visible { outline-color: #fff; }

/* ---------- About ---------- */
.bio { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: stretch; }
.bio-reg { margin-top: 1.25rem; font-size: 0.78rem; color: var(--muted); }
.bio-mark img { width: 100%; height: 100%; min-height: 18rem; object-fit: cover; object-position: center 20%; border-radius: var(--r); }
.bio h2 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); margin-top: -0.35rem; }
.bio .role { display: block; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin: 0.4rem 0 1.25rem; }
.bio p { max-width: none; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); gap: 1rem; align-items: start; }
.person { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(1.1rem, 1.8vw, 1.4rem); }
.person h3 { font-size: 1.3rem; font-stretch: 108%; }
.person .role { display: block; margin: 0.3rem 0 0.8rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.person p { font-size: 0.94rem; line-height: 1.5; }
.person-points { list-style: none; margin: 0.9rem 0 0; padding: 0.75rem 0 0; border-top: 1px solid var(--rule); display: grid; gap: 0.3rem; font-size: 0.85rem; line-height: 1.45; color: var(--muted); }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: clamp(1.5rem, 4vh, 2.5rem); }
.stat { border-top: 2px solid var(--ink); padding-top: 1rem; }
.stat .num { display: block; font-family: var(--font-display); font-stretch: 118%; font-weight: 760; font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .label { display: block; margin-top: 0.55rem; font-size: 0.92rem; color: var(--muted); }

/* ---------- Contact ---------- */
.form-panel h2 { font-size: 1.4rem; }
.contact-panel { margin-top: 1rem; }
.contact-panel .item { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.contact-panel .item:last-child { border-bottom: 0; }
.contact-panel .k { display: block; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.contact-panel .v { margin: 0.25rem 0 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--field);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--text);
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.form-note { font-size: 0.9rem; color: var(--muted); margin-top: 0.75rem; }
.form-success { margin-top: 1rem; padding: 1rem 1.2rem; background: #e3efe8; color: #17442f; border-radius: var(--r); }
.form-success.is-error { background: #f7e4ea; color: #7a1734; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d4de; padding-block: 2.5rem; font-size: 0.9rem; }
.site-footer .bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.footer-tagline { display: block; margin-top: 0.3rem; font-family: var(--font-display); font-stretch: 110%; font-weight: 650; font-size: 0.95rem; color: #fff; }
.hero-tagline { margin: 0.9rem 0 0; font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.3rem); color: var(--ink); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer :focus-visible { outline-color: #fff; }

.whatsapp-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + var(--consent-offset, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.95rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(30, 51, 72, 0.12);
  transition: transform 0.2s var(--ease), border-color 0.2s ease;
}
.whatsapp-fab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* ---------- Reveal ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s var(--ease); transition-delay: var(--reveal-delay, 0s); }
.js-reveal .reveal.in-view { opacity: 1; transform: none; }

/* ===================================================================
   Home — hero light booth
   =================================================================== */
.hero { display: flex; align-items: center; min-height: calc(100svh - 4.25rem - 1px); padding-block: clamp(1.5rem, 4vh, 3rem); }
.hero > .wrap { width: 100%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 {
  font-size: max(2rem, min(clamp(2.2rem, 0.9rem + 2.5vw, 3.3rem), 6.6vh));
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.hero-copy .lede { margin-top: clamp(1rem, 2.5vh, 1.5rem); font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(1.25rem, 3vh, 1.75rem); }
.hero-products { display: grid; gap: 0.6rem; max-width: 46ch; margin-top: clamp(1rem, 3vh, 1.75rem); padding-top: clamp(0.85rem, 2.2vh, 1.25rem); border-top: 1px solid var(--rule); }
.hero-products-label { margin: 0; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.links-note { color: #c9d4de; }
.site-footer .links-note a { text-decoration: underline; text-underline-offset: 3px; }
.hero-product { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; column-gap: 1.25rem; color: var(--muted); font-size: 0.88rem; line-height: 1.4; text-decoration: none; }
.hero-product img { width: auto; max-width: 100%; height: 1.7rem; object-fit: contain; object-position: left center; }

.product-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.product-logo { height: 2.6rem; width: auto; margin-bottom: 1.1rem; }
.product-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; align-content: start; }
.product-points li { padding-top: 0.75rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.95rem; }
.product-points b { color: var(--ink); }

.booth { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; }
.booth-chamber {
  position: relative;
  padding: 1.1rem 1.25rem 1.5rem;
  background: linear-gradient(180deg, #b4b7b3 0%, var(--booth) 100%);
  border-radius: 5px 5px 0 0;
}
.booth-chamber::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  top: 0;
  height: 5px;
  background: #fbfcf8;
  border-radius: 0 0 3px 3px;
}
.booth-lamp { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink); padding-top: 0.35rem; }
.swatch-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0.9rem; }
.swatch {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: var(--c, #d9d8cf);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.12));
  clip-path: var(--pinked, none);
  transition: background-color 0.35s ease;
}
.swatch.is-undyed { background-color: #e6e5de; }
.swatch.is-dyeing { transition-duration: 1.6s; }
.swatch-tag {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  display: grid;
  gap: 0.1rem;
  padding: 0.35rem 0.55rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.35;
}
.swatch-tag small { font-size: 0.75rem; color: var(--muted); }

.booth-sheet { padding: 1rem 1.25rem 0.75rem; display: grid; gap: 0.85rem; }
.booth-work { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 1.25rem; align-items: start; }
.shade-pick { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.shade-pick legend { float: left; margin-right: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.7rem 0.35rem 0.4rem; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.88rem; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; }
.chip i { width: 1rem; height: 1rem; border-radius: 50%; background: var(--chip); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:has(input:checked) { border-color: var(--ink); background: var(--mist-soft); }
.chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.dials { display: grid; gap: 0.6rem; }
.dial { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0.2rem 0.75rem; }
.dial input[type="range"] { grid-column: 1 / -1; grid-row: 2; }
.dial label { font-size: 0.9rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.dial label small { margin-left: 0.35rem; font-weight: 400; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.dial input[type="range"] { width: 100%; accent-color: var(--ink); margin: 0; }
.dial output { min-width: 4.6em; font-family: var(--font-mono); font-size: 0.85rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

.assessment { display: grid; align-content: start; gap: 0.3rem; padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.assessment .terminal-cta { justify-self: start; margin-top: 0.4rem; padding: 0.55rem 0.9rem; font-size: 0.88rem; }
.de-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.de-value { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 2.3rem; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.verdict { display: grid; margin: 0.2rem 0 0; font-weight: 650; line-height: 1.35; }
.verdict > span { grid-area: 1 / 1; }
.verdict > span::before { content: ""; display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.5rem; border-radius: 1px; background: currentColor; vertical-align: 0.05em; }
.verdict[data-state="hold"] .v-pass, .verdict[data-state="pass"] .v-hold { visibility: hidden; }
.verdict[data-state="hold"] { color: var(--signal); }
.verdict[data-state="pass"] { color: var(--pass); }
.describe { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booth figcaption { padding: 0 1.25rem 1rem; font-size: 0.8rem; color: var(--muted); }

/* ---------- Home — sections ---------- */
.statement { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.statement p { font-size: 1.1rem; color: var(--muted); }

.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.route li { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 0.95rem 1.15rem 1.05rem; display: grid; align-content: start; gap: 0.3rem; transition: border-color 0.2s ease; }
.route li { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 0.6rem; align-items: baseline; }
.route-top { display: contents; }
.route-n { grid-column: 1; grid-row: 1; }
.route-owner { grid-column: 3; grid-row: 1; }
.route h3 { grid-column: 2; grid-row: 1; }
.route p { grid-column: 1 / -1; }
.route-n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.route-owner { font-family: var(--font-mono); font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 2px; background: var(--mist-soft); color: var(--ink); }
.route li[data-owner="batchgate"] .route-owner { background: var(--ink); color: #fff; }
.route li[data-owner="buyer"] .route-owner { background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.route h3 { font-size: 1.1rem; }
.route p { color: var(--muted); font-size: 0.95rem; }

.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); }
.compare { width: 100%; min-width: 38rem; border-collapse: collapse; }
.compare th, .compare td { padding: 1rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.compare thead th { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--greige); }
.compare tbody th { font-weight: 650; color: var(--ink); }
.compare td { color: var(--muted); }
.compare td.is-strong { color: var(--ink); font-weight: 600; }
.compare tbody tr:last-child > * { border-bottom: 0; }

.close-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: clamp(2rem, 4vw, 2.75rem); border-top: 2px solid var(--ink); }
.close-cta h2 { max-width: 20ch; }

/* ---------- Responsive ---------- */
@media (min-width: 1041px) {
  .grid2:has(.form-panel) { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .form-panel .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-panel .form-field.full:has(select), .form-panel .form-field:has(#machinery) { grid-column: span 2; }
  .form-panel .form-field textarea { min-height: 4.25rem; }
}
@media (max-width: 1040px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy .lede, .hero-products { max-width: 60ch; }
  .bio { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .site-header .bar { position: relative; flex-wrap: wrap; gap: 0; min-height: 0; padding-block: 0.7rem 0.3rem; }
  .brand { min-height: 2.4rem; }
  nav.main { order: 3; width: calc(100% + 1rem); margin-inline: -0.5rem; overflow-x: auto; scrollbar-width: none; padding-block: 0.35rem; }
  nav.main::-webkit-scrollbar { display: none; }
  nav.main a.terminal-cta { position: absolute; top: 0.7rem; right: clamp(1rem, 4vw, 2.5rem); margin: 0; padding: 0.5rem 0.85rem; font-size: 0.85rem; }
  .grid3, .route, .statement, .product-intro { grid-template-columns: minmax(0, 1fr); }
  .tag-list, .gov-rows, .gov-rows:has(> :nth-child(4)), .wrap:has(> .checklist-group) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .grid2, .form-grid, .stat-row, .bio { grid-template-columns: minmax(0, 1fr); }
  .bio-mark { max-width: 14rem; }
  .tag-row { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .booth-work { grid-template-columns: minmax(0, 1fr); }
  .assessment { padding: 0.9rem 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .swatch { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .grid4 { grid-template-columns: minmax(0, 1fr); }
  .whatsapp-fab span { display: none; }
  .whatsapp-fab { padding: 0.7rem; }
}

/* ===================================================================
   Quality layer
   =================================================================== */

/* ---------- Hover (pointer devices only) with matching keyboard focus ---------- */
nav.main a:focus-visible,
.terminal-cta.ghost:focus-visible { background: var(--greige); }
nav.main a.terminal-cta:focus-visible,
.terminal-cta:not(.ghost):focus-visible { background: var(--ink-2); }
.on-dark .terminal-cta:focus-visible { background: #fff; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 3px; }
.site-footer a:focus-visible,
.footer-link-btn:focus-visible { text-decoration: underline; }
.whatsapp-fab:focus-visible,
.back-to-top:focus-visible,
.copy-btn:focus-visible,
.menu-toggle:focus-visible { border-color: var(--ink); }
.hero-product:focus-visible span { color: var(--ink); text-decoration: underline; }

@media (hover: hover) {
  nav.main a:hover { background: var(--greige); }
  .terminal-cta:hover,
  nav.main a.terminal-cta:hover { background: var(--ink-2); }
  .terminal-cta.ghost:hover { background: var(--greige); }
  .on-dark .terminal-cta:hover { background: #fff; }
  .card:has(.card-link):hover { border-color: var(--ink); transform: translateY(-2px); }
  .site-footer a:hover,
  .footer-link-btn:hover { text-decoration: underline; }
  .whatsapp-fab:hover,
  .back-to-top:hover { transform: translateY(-2px); border-color: var(--ink); }
  .hero-product:hover span { color: var(--ink); text-decoration: underline; }
  .chip:hover,
  .copy-btn:hover,
  .menu-toggle:hover { border-color: var(--ink); }
  .faq-item summary:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
}

/* ---------- Skip target ---------- */
main:focus { outline: none; }

/* ---------- Header: mobile menu ---------- */
.header-cta,
.menu-toggle { display: none; }
.menu-toggle {
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  cursor: pointer;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; transition: transform 0.2s var(--ease), background-color 0.2s ease; }
.menu-icon { position: relative; }
.menu-icon::before,
.menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.nav-open .menu-icon { background: transparent; }
.nav-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
html.nav-open { overflow: hidden; }

@media (max-width: 900px) {
  .js .site-header { background: var(--cotton); backdrop-filter: none; }
  .js .site-header .bar { flex-wrap: nowrap; gap: 0.5rem; min-height: 4rem; padding-block: 0.6rem; }
  .js .header-cta { display: inline-flex; margin-left: auto; padding: 0.55rem 0.85rem; font-size: 0.85rem; }
  .js .menu-toggle { display: inline-flex; }
  .js nav.main {
    position: fixed;
    top: var(--header-h, 4.1rem);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 49;
    order: initial;
    width: auto;
    margin: 0;
    padding: 0.5rem clamp(1rem, 4vw, 2.5rem) 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    background: var(--cotton);
    border-top: 1px solid var(--rule);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s ease, transform 0.2s var(--ease), visibility 0s linear 0.2s;
  }
  .js.nav-open nav.main { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s ease, transform 0.2s var(--ease), visibility 0s; }
  .js nav.main a { padding: 0.95rem 0.25rem; font-size: 1.15rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .js nav.main a.terminal-cta { display: none; position: static; justify-content: center; margin: 1.25rem 0 0; padding: 0.9rem 1rem; font-size: 1rem; border-radius: var(--r); }
  .site-footer { padding-bottom: 5rem; }
}
@media (max-width: 420px) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .menu-toggle { padding-inline: 0.65rem; }
}
@media (max-width: 359px) {
  .js .header-cta { display: none; }
  .js .menu-toggle { margin-left: auto; }
  .js nav.main a.terminal-cta { display: flex; }
}

/* ---------- Reading progress and back to top ---------- */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: calc(4.25rem + var(--consent-offset, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(30, 51, 72, 0.12);
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s var(--ease), border-color 0.2s ease, visibility 0s linear 0.2s;
}
.back-to-top.is-visible { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.back-to-top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  max-width: 46rem;
  margin-inline: auto;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(30, 51, 72, 0.14);
}
.consent p { flex: 1 1 22rem; margin: 0; font-size: 0.92rem; line-height: 1.5; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.consent-actions .terminal-cta { padding: 0.6rem 1rem; font-size: 0.9rem; }
.footer-link-btn { padding: 0; font: inherit; color: #fff; background: none; border: 0; cursor: pointer; }

/* ---------- Contact: copy buttons and form errors ---------- */
.copy-btn {
  min-width: 4.75rem;
  margin-left: 0.5rem;
  padding: 0.2rem 0.55rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  cursor: pointer;
  vertical-align: 0.1em;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.copy-btn.is-copied { color: #17442f; background: #e3efe8; border-color: var(--pass); }
.field-error { margin: 0.3rem 0 0; font-size: 0.85rem; font-weight: 600; color: #7a1734; }
.form-field [aria-invalid="true"] { border-color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 404 ---------- */
.missing-path { padding: 0.1rem 0.4rem; font-family: var(--font-mono); font-size: 0.9em; color: var(--ink); background: var(--paper); border-radius: var(--r); overflow-wrap: anywhere; }

/* ---------- Print ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  html, body { color: #000; background: #fff !important; font-size: 11pt; }
  .skip-link, nav.main, .menu-toggle, .header-cta, .whatsapp-fab, .back-to-top, .scroll-progress,
  .consent, .booth, .terminal-cta, .copy-btn, .site-footer .links, .breadcrumb { display: none !important; }
  .site-header { position: static; background: #fff; backdrop-filter: none; border-bottom: 1px solid #000; }
  .hero { min-height: 0; }
  .band, .page-header, .hero { padding-block: 6mm; background: #fff; border-color: #999; }
  .on-dark, .on-dark h2, .on-dark h3 { color: #000; background: #fff; }
  .on-dark .muted-c { color: #333; }
  .site-footer { padding-block: 4mm; color: #000; background: #fff; border-top: 1px solid #000; }
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; }
  .grid2, .grid3, .grid4, .route, .tag-list, .gov-rows, .statement, .hero-grid, .bio, .stat-row,
  .wrap:has(> .checklist-group) { grid-template-columns: minmax(0, 1fr) !important; }
  h1, h2, h3 { color: #000; break-after: avoid; }
  .card, .tag-row, .gov-row, .checklist-item, .faq-item, .route li, .stat, tr { break-inside: avoid; }
  .card, .route li, .table-scroll { border-color: #999; }
  .table-scroll { overflow: visible; }
  .compare { min-width: 0; }
  .faq-item summary::after { display: none; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #333; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
