/* Varnell Flow Components. One signature: a machining pass sweeps across the valve and leaves a quarter-section
   behind it (two registered 4K stills, transform-only wipe), then the parts are named. */
@font-face { font-family: "Archivo"; src: url("../assets/fonts/archivo-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../assets/fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --graphite: #151617;
  --graphite-2: #1d1e20;
  --steel: #2a2828;
  --paper: #eceae6;
  --paper-2: #e2dfd9;
  --ink: #141516;
  --ink-soft: #4e5154;
  --on-dark: #eceae6;
  --on-dark-soft: #aeb0b2;
  --brass: #c9a86a;
  --brass-ink: #6e5420;
  --line-dark: rgba(236, 234, 230, 0.16);
  --line-paper: rgba(20, 21, 22, 0.18);
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --ui: "Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(20px, 4.4vw, 64px);
  --header-h: 70px;
  --story: 700px; /* about 7 wheel notches */
  --cut: 0; /* 0 = assembled, 1 = fully sectioned */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--graphite); color: var(--on-dark); color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body, * { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { display: none; width: 0; height: 0; }
body { margin: 0; font: 400 17px/1.55 var(--ui); background: var(--graphite); }
img, picture { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font: 800 clamp(2.3rem, 1.3rem + 3.2vw, 4.4rem)/0.98 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow { margin: 0 0 16px; color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
:target, [id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 16px; background: var(--paper); color: var(--ink); transform: translateY(-200%); }
.skip-link:focus, .skip-link:focus-visible { transform: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; font: 600 16px/1 var(--ui); text-decoration: none; border: 1px solid transparent; border-radius: 2px; cursor: pointer; background: none; color: inherit; transition: background-color .2s; white-space: nowrap; }
.btn--solid { background: var(--brass); color: #16130d; }
.btn--solid:hover { background: #d8bb84; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--text { padding: 0 4px; text-decoration: underline; text-underline-offset: 0.3em; }
.btn--line { border-color: currentColor; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); }
.site-header.is-solid { background: var(--graphite); border-bottom: 1px solid var(--line-dark); }
.wordmark { display: flex; align-items: baseline; gap: 12px; text-decoration: none; padding: 12px 0; }
.wordmark__name { font: 800 23px/1 var(--display); text-transform: uppercase; letter-spacing: 0.14em; }
.wordmark__sub { font-size: 11px; color: var(--on-dark-soft); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__link { text-decoration: none; font-size: 15.5px; padding: 12px 0; }
.site-nav__link:hover { text-decoration: underline; }

/* Hero story */
.hero { position: relative; height: calc(100svh + var(--story)); background: var(--steel); }
.hero__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__layer, .hero__layer img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__layer img { object-fit: cover; object-position: 62% 50%; }
/* The section is revealed left to right: the frame slides right-to-left out of the way... in reverse. */
.cut { position: absolute; inset: 0; overflow: hidden; transform: translate3d(calc((var(--cut) - 1) * 100%), 0, 0); will-change: transform; }
.cut__inner { transform: translate3d(calc((1 - var(--cut)) * 100%), 0, 0); will-change: transform; }
.scan { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--brass); transform: translate3d(calc(var(--cut) * 100vw), 0, 0); will-change: transform; opacity: min(calc(var(--cut) * 40), calc(1 - var(--cut) * var(--cut) * var(--cut) * var(--cut))); }
.hero.is-off .hero__media { visibility: hidden; }

/* Callouts sit on a box that matches the cover-fitted 16:9 photo (object-position 62% 50%) */
.hotbox { position: absolute; width: max(100%, 177.78svh); aspect-ratio: 16 / 9; left: calc((100% - max(100%, 177.78svh)) * 0.62); top: 50%; transform: translateY(-50%); pointer-events: none; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.leader { opacity: 0; transition: opacity .25s; }
.leader circle { fill: var(--brass); }
.leader polyline { fill: none; stroke: var(--brass); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.callout { position: absolute; margin: 0; transform: translateY(-100%); padding-bottom: 6px; color: var(--on-dark); font-size: 12px; line-height: 1.5; white-space: nowrap; opacity: 0; transition: opacity .25s; }
.callout span { color: var(--on-dark-soft); text-transform: none; letter-spacing: 0.02em; }
.callout--l { transform: translate(-100%, -100%); text-align: right; }
.leader.is-on, .callout.is-on { opacity: 1; }

.readout { position: absolute; top: calc(var(--header-h) + 24px); right: var(--gutter); margin: 0; padding: 14px 16px; min-width: 236px; background: rgba(21, 22, 23, 0.94); border: 1px solid var(--line-dark); }
.readout div { display: flex; justify-content: space-between; gap: 24px; padding: 3px 0; }
.readout dt { color: var(--on-dark-soft); }
.readout dd { margin: 0; }

.hero__copy { position: absolute; left: var(--gutter); bottom: clamp(32px, 7vh, 72px); width: min(540px, 40vw); }
.hero__eyebrow { color: var(--brass); margin-bottom: 18px; }
.hero__title { font: 800 min(5.2vw, 9.4vh, 5.6rem)/0.96 var(--display); text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 22px; }
.hero__lead { color: var(--on-dark); max-width: 30em; font-size: clamp(16.5px, 0.9rem + 0.3vw, 19px); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 26px 0 16px; }
.hero__note { color: var(--on-dark-soft); margin: 0; }

/* Range + spec table (paper) */
.range { background: var(--paper); color: var(--ink); padding: clamp(80px, 10vw, 140px) var(--gutter); }
.range .eyebrow, .supply .eyebrow, .rfq .eyebrow { color: var(--brass-ink); }
.range__head { max-width: 1440px; margin: 0 auto 40px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; }
.range__head h2 { margin-bottom: 22px; }
.range__intro { color: var(--ink-soft); max-width: 30em; }
.range__img { background: #2a2828; }
.range__img img { width: 100%; height: auto; }
.table-wrap { max-width: 1440px; margin: 0 auto; overflow-x: auto; }
.spec { width: 100%; border-collapse: collapse; min-width: 760px; }
.spec th, .spec td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line-paper); vertical-align: top; }
.spec thead th { font: 400 12px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
.spec tbody th { font: 600 19px/1.3 var(--display); }
.spec td { font: 400 15px/1.4 var(--mono); }
.table-wrap:focus-visible { outline-color: var(--ink); }

/* Documents */
.documents { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 6vw, 110px); padding: clamp(80px, 10vw, 140px) var(--gutter); max-width: 1568px; margin: 0 auto; }
.docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.docs li { display: grid; grid-template-columns: 56px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-size: 18px; }
.docs .mono { color: var(--brass); padding-top: 4px; }

/* Plant */
.plant { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; background: #0c0b0a; }
.plant__img { position: absolute; inset: 0; }
.plant__img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.plant__copy { position: relative; width: min(520px, 40vw); margin: 0 0 clamp(48px, 9vh, 96px) var(--gutter); padding: 28px 28px 12px; background: rgba(12, 11, 10, 0.92); }
.plant__copy p { color: var(--on-dark-soft); }

/* Supply terms */
.supply { background: var(--paper-2); color: var(--ink); padding: clamp(80px, 10vw, 140px) var(--gutter); }
.supply > * { max-width: 1440px; margin-left: auto; margin-right: auto; }
.supply h2 { margin-bottom: 36px; }
.supply__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 0; margin-bottom: 0; border-top: 2px solid var(--ink); }
.supply__grid div { padding: 20px 20px 8px 0; }
.supply__grid dt { color: var(--ink-soft); margin-bottom: 10px; }
.supply__grid dd { margin: 0; font: 600 20px/1.3 var(--display); }

/* RFQ */
.rfq { background: var(--paper); color: var(--ink); padding: clamp(80px, 10vw, 140px) var(--gutter); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(40px, 5vw, 90px); }
.rfq__intro h2 { margin-bottom: 20px; }
.rfq__intro p { color: var(--ink-soft); max-width: 26em; }
.rfq__form, .rfq__done { border-top: 2px solid var(--ink); padding-top: 24px; min-width: 0; }
.rfq__who, .rfq__ship { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 18px; }
.field label, .lines legend { display: block; font: 600 15px/1.2 var(--ui); margin-bottom: 7px; padding: 0; }
.field input, .field select, .line select, .line input { width: 100%; min-height: 48px; padding: 0 12px; font: 400 16px/1 var(--ui); color: var(--ink); background: #f7f5f1; border: 1px solid #85888b; border-radius: 2px; }
.field input:focus-visible, .field select:focus-visible, .line select:focus-visible, .line input:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.field__err { color: #9b2a14; font-size: 14.5px; margin: 6px 0 0; }
.lines { border: 0; margin: 8px 0 22px; padding: 0; min-width: 0; }
.lines__head, .line { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.8fr) 48px; gap: 8px; align-items: end; }
.lines__head { color: var(--ink-soft); font-size: 11.5px; padding-bottom: 6px; }
.line { padding: 6px 0; }
.line__n { display: none; }
.line__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.line__remove { width: 48px; min-height: 48px; border: 1px solid #85888b; background: none; color: var(--ink); font: 400 20px/1 var(--ui); border-radius: 2px; cursor: pointer; }
.line__remove:disabled { opacity: 0.35; cursor: default; }
.lines__add { margin-top: 10px; color: var(--ink); min-height: 46px; }
.rfq .btn--solid { background: var(--ink); color: var(--paper); }
.rfq .btn--solid:hover { background: #2b2d2f; }
.rfq__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.rfq__demo { margin: 0; color: var(--ink-soft); font-size: 11.5px; }
.rfq__done h3 { font: 800 clamp(2rem, 1.2rem + 2.4vw, 3.2rem)/1 var(--display); text-transform: uppercase; margin-bottom: 16px; }
.rfq__done p { color: var(--ink-soft); }
.done-lines { margin: 0 0 20px; padding: 0 0 0 1.4em; font-size: 13px; line-height: 2; }
.rfq__done .btn--line { color: var(--ink); margin-top: 10px; }
.rfq :focus-visible { outline-color: var(--ink); }

.site-footer { padding: 28px var(--gutter); }
.site-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 32px; font-size: 15px; color: var(--on-dark-soft); }
.site-footer__row p { margin: 0; }
.site-footer a { color: var(--on-dark); display: inline-block; padding: 12px 6px; }
.footer-mark { font: 800 18px/1 var(--display); letter-spacing: 0.14em; color: var(--on-dark); margin-right: 4px; }
.legal { display: flex; gap: 18px; }

@media (max-width: 1239px), (max-aspect-ratio: 149 / 100) {
  .hotbox { display: none; }
}
@media (max-width: 1100px) {
  .site-nav__link { display: none; }
  .readout { display: none; }
  .supply__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 759px) {
  :root { --header-h: 60px; --story: 520px; }
  body { font-size: 16.5px; }
  .site-header { padding: 0 16px; background: var(--graphite); border-bottom: 1px solid var(--line-dark); }
  .hero__stage { padding-top: var(--header-h); }
  .wordmark__sub { display: none; }
  .hero__stage { display: flex; flex-direction: column; }
  .hero__media { position: relative; inset: auto; flex: 1 1 auto; min-height: 28svh; }
  .hero__layer img { object-position: 50% 50%; }
  .hero__copy { position: relative; left: auto; bottom: auto; width: auto; padding: 18px 16px 22px; background: var(--graphite); }
  .hero__eyebrow { margin-bottom: 10px; font-size: 11px; }
  .hero__title { font-size: clamp(2rem, 9.4vw, 2.5rem); margin-bottom: 10px; }
  .hero__lead { font-size: 15.5px; margin-bottom: 0; }
  .hero__actions { margin: 14px 0 10px; }
  .hero__actions .btn--text { display: none; }
  .range__head, .documents, .rfq { grid-template-columns: 1fr; }
  .plant { display: block; min-height: 0; }
  .plant__img { position: relative; }
  .plant__img img { height: auto; aspect-ratio: 4 / 3; }
  .plant__copy { width: auto; margin: 0; padding: 32px 16px 40px; background: #0c0b0a; }
  .supply__grid { grid-template-columns: 1fr; }
  .spec { min-width: 0; }
  .spec thead { display: none; }
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; }
  .spec tr { padding: 14px 0; border-bottom: 1px solid var(--line-paper); }
  .spec th, .spec td { border: 0; padding: 3px 0; }
  .spec tbody th { font-size: 20px; padding-bottom: 8px; }
  .spec td { display: grid; grid-template-columns: 130px 1fr; gap: 8px; font-size: 14px; }
  .spec td::before { content: attr(data-label); color: var(--ink-soft); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
  .rfq__who, .rfq__ship { grid-template-columns: 1fr; }
  .lines__head { display: none; }
  .line { grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line-paper); }
  .line__n { display: block; grid-column: 1 / -1; font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
  .line__label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: block; font: 600 13.5px/1.2 var(--ui); margin-bottom: 4px; }
  .line > div:first-of-type { grid-column: 1 / -1; }
  .site-footer__row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 759px) and (max-height: 720px) {
  .hero__lead { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: 100svh; }
  .btn, .leader, .callout { transition: none; }
}
