/* Nexus Supply – landing page
   Direction: "The split stage" (taste-skill, seed 525443502), brand palette kept.
   Five type steps, one radius (square) outside product fragments, flat brand colour only. */

:root {
  /* brand palette: Nexus Navy, Marketplace Ink, Signal Blue, Network Cyan, Mist, Cloud */
  --paper: #F6F9FB;
  --paper-2: #E8F0F4;
  --white: #FFFFFF;
  --ink: #0B1117;
  --navy: #0B2230;
  --navy-2: #133247;
  --muted: #4F5D69;
  --on-dark: #FFFFFF;
  --on-dark-muted: #B4C4D0;
  --accent: #1568FF;
  --accent-strong: #0B4FD1;
  --signal: #00C8E5;
  --signal-deep: #009BB3;
  --danger: #B42318;

  --font: "Clash Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* five steps, far apart: ~17 / 20 / 36 / 82 / 110px at 1440 */
  --step-small: clamp(0.9375rem, 0.875rem + 0.2vw, 1.0625rem);
  --step-body: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  --step-lead: clamp(1.5rem, 1.05rem + 1.4vw, 2.25rem);
  --step-head: clamp(2.375rem, 1.2rem + 4.4vw, 5.25rem);
  --step-display: clamp(3.25rem, 1rem + 6.6vw, 7.5rem);

  --margin: clamp(1.25rem, 3vw, 3rem);
  --gap: 12px;
  --section: clamp(4.5rem, 8.5vw, 7.75rem);
  --ui-radius: 8px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; font-weight: 400; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, ul, dl, dd, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; background: var(--navy); }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; letter-spacing: -0.02em; font-kerning: normal; font-feature-settings: "kern", "liga"; }
p { text-wrap: pretty; }
strong { font-weight: 500; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--signal); color: var(--navy); }
:target { scroll-margin-top: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cover { width: 100%; height: 100%; object-fit: cover; }

/* ---------- controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.6rem;
  background: var(--accent); color: var(--white);
  font-weight: 500; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .link:hover { text-decoration-color: currentColor; }
}

.section-title { font-size: var(--step-head); line-height: 0.96; letter-spacing: -0.04em; margin-left: -0.04em; color: var(--navy); }
.read-text { font-size: var(--step-body); line-height: 1.55; max-width: 46ch; }

/* ============ SPLIT STAGE ============ */
.stage-split {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: var(--gap);
  padding: var(--gap);
  background: var(--paper-2);
}
.stage-fixed { position: sticky; top: var(--gap); height: calc(100svh - 2 * var(--gap)); align-self: start; }
.stage-frame { position: relative; height: 100%; overflow: hidden; background: var(--navy); }
.stage-media { position: absolute; inset: 0; opacity: 0; transition: opacity 1600ms var(--ease-in-out); }
.stage-media.is-active { opacity: 1; }
.stage-media img, .stage-media video { filter: saturate(0.85); }
.js .stage-media.is-active .cover { animation: drift 14s var(--ease-soft) both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero-card {
  min-height: calc(100svh - 2 * var(--gap));
  display: flex; flex-direction: column;
  background: var(--white);
}
.hero-inner {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: clamp(2.5rem, 6vh, 4.5rem) clamp(1.25rem, 3vw, 3rem) 0;
}
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--navy); text-decoration: none; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; }
.wordmark svg { width: 2.4rem; height: 2.4rem; }
.hero-title { margin-top: clamp(2rem, 5vh, 3.5rem); font-size: var(--step-head); line-height: 0.94; letter-spacing: -0.045em; color: var(--navy); max-width: 11ch; }
.hero-sub { margin-top: 1.75rem; max-width: 34ch; font-size: var(--step-body); line-height: 1.5; }
.hero-card .button { margin-top: 2rem; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; width: 100%; max-width: 40rem; margin-top: clamp(2.5rem, 7vh, 4.5rem); text-align: left; font-size: var(--step-small); line-height: 1.4; color: var(--muted); }
.hero-facts li { padding-left: 0; }
.hero-facts strong { display: block; margin-bottom: 0.3rem; color: var(--navy); }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem; margin-top: auto; padding: 2.5rem 0 1.75rem; font-size: var(--step-small); }
.hero-links a { text-decoration-color: transparent; }

.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }

.read-block { padding: clamp(3rem, 7vh, 4.5rem) clamp(1.25rem, 4vw, 3.5rem); }
.statement { font-size: var(--step-lead); line-height: 1.18; letter-spacing: -0.02em; max-width: 34ch; color: var(--navy); }
.read-block .read-text { margin-top: 1.5rem; }

.names .section-title { margin-bottom: 2rem; }
.name-columns { columns: 2; column-gap: 2.5rem; max-width: 40rem; }
.name-group { break-inside: avoid; margin-bottom: 1.75rem; font-size: var(--step-body); line-height: 1.5; }
.name-group .kind { color: var(--muted); }

/* product fragments share these conventions (data-ui) */
[data-ui] { font-size: var(--step-small); line-height: 1.45; color: var(--ink); }
.ui-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.ui-title { font-weight: 500; margin-right: auto; }
.ui-badge { display: inline-block; padding: 0.15rem 0.65rem; border-radius: 999px; background: var(--paper-2); color: var(--navy); font-size: var(--step-small); }
.ui-badge-live { background: #D7F5FA; color: #075C6A; }
.ui-badge-ok { background: #DCFCE7; color: #14532D; }
.ui-badge-warn { background: #FEF3C7; color: #7A4A06; }
.ui-subtitle { color: var(--muted); margin-top: 1.1rem; }
.ui-rows { margin-top: 0.6rem; border: 1px solid var(--paper-2); border-radius: 6px; } /* taste-skill-ignore: product table inside data-ui fragment */
.ui-rows li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.9rem; font-variant-numeric: tabular-nums; }
.ui-rows li + li { border-top: 1px solid var(--paper-2); } /* taste-skill-ignore: product table rows inside data-ui fragment */
.ui-rows li span:last-child { color: var(--muted); white-space: nowrap; }
.ui-rows-quotes li.is-picked { background: #EEF4FF; }
.ui-rows-quotes li span:last-child { color: var(--ink); font-weight: 500; }
.ui-score { color: #075C6A !important; font-weight: 500; }
.ui-line { margin-top: 0.9rem; color: var(--muted); }
.ui-button { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem; border-radius: 6px; background: var(--accent); color: var(--white); font-weight: 500; }

.rfq-chip {
  position: absolute; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  width: min(420px, calc(100% - 2rem)); padding: 1.2rem 1.35rem;
  background: var(--white); border-radius: var(--ui-radius);
}
.rfq-chip-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.rfq-code { font-weight: 500; font-variant-numeric: tabular-nums; }
.rfq-chip-title { margin-top: 0.6rem; font-weight: 500; color: var(--navy); }
.rfq-chip-meta { color: var(--muted); }
.rfq-chip-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--paper-2); color: var(--muted); } /* taste-skill-ignore: product card footer inside data-ui fragment */

/* ============ SHOWCASE ============ */
.showcase { display: grid; grid-template-columns: 1fr 1fr; }
.field { position: relative; min-height: 80svh; padding: 11svh var(--margin) 9.5rem; }
.field-dark { background: var(--navy); color: var(--on-dark); }
.field-light { background: var(--white); display: flex; justify-content: center; align-items: flex-start; }
.field-label { display: block; max-width: 30ch; font-size: var(--step-body); line-height: 1.4; color: var(--on-dark-muted); margin: 0 0 1.25rem clamp(0rem, 3vw, 3rem); }
.rfq-input {
  display: block; width: calc(100% - clamp(0rem, 3vw, 3rem)); max-width: 30ch; margin-left: clamp(0rem, 3vw, 3rem);
  padding: 1.25rem 1.4rem; resize: vertical; border: 0; border-radius: 0;
  background: var(--navy-2); color: var(--on-dark);
  font-size: var(--step-lead); line-height: 1.22; letter-spacing: -0.02em;
  caret-color: var(--signal);
  field-sizing: content; min-height: 7lh;
}
.rfq-input:focus { outline: 2px solid var(--signal); outline-offset: 0; }
.split-head { position: absolute; bottom: 2.25rem; font-size: var(--step-head); line-height: 1; letter-spacing: -0.045em; font-weight: 500; }
.split-head-left { left: var(--margin); right: var(--margin); text-align: right; }
.split-head-right { left: var(--margin); color: var(--navy); }

.rfq-record { width: min(560px, 100%); padding: 1.4rem 1.5rem; background: var(--paper); border: 1px solid var(--paper-2); border-radius: var(--ui-radius); } /* taste-skill-ignore: product record (data-ui) */
.ui-fields { margin-top: 1rem; }
.ui-fields > div { display: grid; grid-template-columns: 10.5rem 1fr; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--paper-2); } /* taste-skill-ignore: product form rows (data-ui) */
.ui-fields dt { color: var(--muted); }
.ui-fields dd { color: var(--ink); }
.ui-fields dd.is-missing { color: #7A4A06; }
.ui-fields dd.is-changed { animation: flash 900ms var(--ease-out); }
@keyframes flash { from { background: #D7F5FA; } to { background: transparent; } }
.ui-note { margin-top: 1rem; padding: 0.7rem 0.9rem; border-radius: 6px; background: #EEF4FF; color: var(--navy); }

/* ============ HOW IT WORKS ============ */
.how { padding: var(--section) var(--margin) 0; }
.how-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; }
.how-steps { grid-column: 1 / span 5; }
.how-stage { grid-column: 6 / span 7; position: sticky; top: 12vh; align-self: start; height: 76vh; display: flex; align-items: center; justify-content: center; background: var(--paper-2); }
.how-step { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; }
.how-steps .section-title { margin-bottom: 0; padding-top: 12vh; max-width: 12ch; }
.how-say { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; max-width: 17ch; color: var(--muted); transition: color 400ms ease; }
.how-more { margin-top: 1.1rem; max-width: 40ch; color: var(--ink); }
.how-step.is-active .how-say { color: var(--ink); }
.how-step.is-active .how-more { color: var(--ink); }
.how-fragment { width: min(600px, calc(100% - 3rem)); padding: 1.75rem; background: var(--white); border-radius: var(--ui-radius); }
.ui-contact { margin-top: 0.6rem; padding: 0.9rem 1rem; border-radius: 6px; background: #ECFDF3; }
.ui-contact-name { font-weight: 500; color: #14532D; }
.js .how-fragment [data-when] { display: none; }
.js .how-fragment[data-state="draft"] [data-when="draft"],
.js .how-fragment[data-state="match"] [data-when="match"],
.js .how-fragment[data-state="quotes"] [data-when="quotes"],
.js .how-fragment[data-state="match-made"] [data-when="match-made"] { display: block; }
.js .how-fragment .ui-head [data-when] { display: none; }
.js .how-fragment[data-state="draft"] .ui-head [data-when="draft"],
.js .how-fragment[data-state="match"] .ui-head [data-when="match"],
.js .how-fragment[data-state="quotes"] .ui-head [data-when="quotes"],
.js .how-fragment[data-state="match-made"] .ui-head [data-when="match-made"] { display: inline-block; }
.js .how-fragment .ui-panel { animation: panel-in 500ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============ PROTECTION ============ */
.protection {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem;
  padding: var(--section) var(--margin) 0;
}
.protection > .section-title { grid-column: 1 / span 5; grid-row: 1; align-self: start; max-width: 11ch; }
.module { grid-column: 6 / span 7; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.module + .module { margin-top: 4rem; }
.module-panel { position: relative; min-height: 120px; padding: clamp(1.25rem, 2.5vw, 2.25rem); background: var(--paper-2); overflow: hidden; }
.module-photo { height: 300px; padding: 0; }
@media (min-width: 1101px) { .protection > .module:first-of-type { grid-row: 1; } }
.module-text { padding-top: 0.5rem; }
.module-text h3 { font-size: var(--step-lead); line-height: 1.08; letter-spacing: -0.025em; color: var(--navy); }
.module-text p { margin-top: 0.75rem; color: var(--ink); line-height: 1.55; }
.nda, .link-expiry, .guard, .trust { padding: 1rem 1.1rem; background: var(--white); border-radius: 6px; }
.nda-title { font-weight: 500; }
.nda-text { margin-top: 0.35rem; color: var(--muted); }
.nda .ui-button { margin-top: 0.9rem; }
.expiry-clock { margin-top: 0.5rem; font-size: var(--step-lead); line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--navy); }
.watermark-line { position: absolute; left: 0; right: 0; top: 46%; padding: 0.35rem 0.75rem; background: rgba(255, 255, 255, 0.86); color: var(--danger); font-size: var(--step-small); font-weight: 500; text-align: center; transform: rotate(-8deg) scale(1.1); }
.ui-rows-log { background: var(--white); }
.guard-note { padding: 0.6rem 0.8rem; border: 1px solid #F4B4AE; border-radius: 6px; } /* taste-skill-ignore: invalid form field inside data-ui fragment */
.guard-error { margin-top: 0.6rem; color: var(--danger); }
.trust-score { font-size: var(--step-lead); line-height: 1; color: var(--muted); }
.trust-score span { color: var(--navy); font-weight: 500; }
.trust-factors { margin-top: 0.8rem; }
.trust-factors li { display: flex; justify-content: space-between; padding: 0.25rem 0; font-variant-numeric: tabular-nums; }
.trust-factors li span:last-child { color: var(--muted); }

/* ============ MARKET SHEET ============ */
.market { position: relative; margin-top: var(--section); padding: 5.5rem var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.market-ground { position: absolute; inset: 0; filter: saturate(0.85); }
.sheet {
  position: relative; grid-column: 7 / span 6; width: min(640px, 100%); justify-self: end;
  padding: 3.5rem 3.25rem; background: var(--white); text-align: center;
}
.sheet::before, .sheet::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23ffffff'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 24px 12px;
}
.sheet::before { top: -12px; }
.sheet::after { bottom: -12px; transform: rotate(180deg); }
.sheet-title { font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.045em; color: var(--navy); }
.sheet-note { margin-top: 1rem; font-size: var(--step-small); color: var(--muted); }
.sheet-group { margin-top: 2.75rem; }
.sheet-group h3 { font-size: var(--step-lead); line-height: 1.2; color: var(--navy); }
.sheet-group ul { margin: 1.25rem auto 0; max-width: 520px; text-align: left; }
.sheet-group li { display: grid; grid-template-columns: 1fr auto; column-gap: 1.5rem; }
.sheet-group li + li { margin-top: 1.1rem; }
.item-name { font-weight: 500; }
.item-price { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-desc { grid-column: 1 / -1; font-size: var(--step-small); color: var(--muted); }
.sheet-close { margin-top: 2.75rem; font-size: var(--step-small); color: var(--muted); }

/* ============ PRICING ============ */
.pricing { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; padding: var(--section) var(--margin) 0; }
.pricing-intro { grid-column: 1 / span 4; }
.pricing-intro .read-text { margin-top: 1.5rem; max-width: 30ch; }
.pricing-photo { margin-top: 2.5rem; aspect-ratio: 4 / 5; max-width: 340px; overflow: hidden; }
.pricing-photo img, .module-photo img { filter: saturate(0.7) contrast(1.05); }
.price-list { grid-column: 6 / span 7; columns: 2; column-gap: 4rem; }
.price-group { break-inside: avoid; margin-bottom: 3rem; }
.price-group h3 { font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.025em; font-weight: 500; color: var(--navy); }
.price-group ul { margin-top: 1.5rem; }
.price-group li { display: grid; grid-template-columns: 1fr auto; column-gap: 1.25rem; align-items: baseline; }
.price-group .item-name, .price-group .item-price { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; }
.price-group li + li { margin-top: 1.4rem; }
.price-group .item-desc { margin-top: 0.35rem; font-size: var(--step-small); max-width: 38ch; }

/* ============ FAQ ============ */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; padding: var(--section) var(--margin); }
.faq > .section-title { grid-column: 1 / span 3; }
.faq-text { grid-column: 5 / span 8; columns: 2; column-gap: 3.5rem; }
.faq-text p { break-inside: avoid; margin-bottom: 1.5rem; line-height: 1.55; max-width: 40ch; }

/* ============ CTA ============ */
.cta {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem;
  min-height: 78svh; padding: 4rem var(--margin) 3rem; background: var(--accent); color: var(--white);
}
.cta-words { grid-column: 1 / span 5; align-self: end; }
.cta-title { font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.05em; margin-left: -0.05em; }
.cta-words p { margin-top: 1.5rem; max-width: 38ch; font-size: var(--step-body); }
.dialog {
  grid-column: 8 / span 4; align-self: center; width: min(440px, 100%);
  padding: 1.75rem; background: var(--white); color: var(--ink); border-radius: var(--ui-radius);
  box-shadow: 0 24px 60px rgba(11, 17, 23, 0.28); /* taste-skill-ignore: the dialog floats above the field */
}
.dialog-title { font-weight: 500; font-size: var(--step-body); color: var(--navy); }
.segmented { margin-top: 1.25rem; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.segmented .dialog-label { grid-column: 1 / -1; margin: 0 0 0.5rem; padding: 0; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: flex; align-items: center; justify-content: center; min-height: 2.75rem; border: 1px solid #C9D6DF; color: var(--muted); cursor: pointer; /* taste-skill-ignore: form control */ transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.segmented label:first-of-type span { border-radius: 6px 0 0 6px; }
.segmented label:last-of-type span { border-radius: 0 6px 6px 0; border-left: 0; }
.segmented input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.dialog-label { display: block; margin-top: 1.25rem; font-size: var(--step-small); color: var(--muted); }
.dialog-input { display: block; width: 100%; margin-top: 0.4rem; min-height: 3rem; padding: 0 0.9rem; border: 1px solid #C9D6DF; border-radius: 6px; background: var(--white); } /* taste-skill-ignore: form field */
.dialog-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.dialog-button { width: 100%; margin-top: 1.5rem; border-radius: 6px; }

/* ============ FOOTER ============ */
.footer { padding: 7rem var(--margin) 2rem; font-size: var(--step-small); }
.credits { max-width: 56ch; color: var(--muted); }
.footer-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: baseline; margin-top: 2.5rem; }
.footer-line > span:first-child { color: var(--muted); }
.footer-line nav { display: flex; gap: 1.5rem; }
.footer-line > span:last-child { justify-self: end; color: var(--muted); }
.footer-line a { color: var(--ink); }

/* ============ MOTION ============ */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .rfq-chip { opacity: 0; transform: translateY(16px); animation: rise 900ms var(--ease-out) 700ms forwards; }
  .js .sheet-group li { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--row, 0) * 60ms + 200ms); }
  .js .sheet.is-in .sheet-group li { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-media { transition: none; }
  .js .stage-media.is-active .cover { animation: none; }
  .js .how-fragment .ui-panel { animation: none; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============ TABLET ============ */
@media (max-width: 1100px) {
  .module { grid-column: 1 / -1; }
  .protection > .section-title { grid-column: 1 / -1; position: static; margin-bottom: 3rem; max-width: none; }
  .price-list { grid-column: 1 / -1; margin-top: 3rem; }
  .pricing-intro { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .pricing-intro .section-title, .pricing-intro .read-text { grid-column: 1; }
  .pricing-photo { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .faq > .section-title { grid-column: 1 / -1; margin-bottom: 2rem; }
  .faq-text { grid-column: 1 / -1; }
  .dialog { grid-column: 7 / span 6; }
  .cta-words { grid-column: 1 / span 6; }
}

/* ============ PHONE ============ */
@media (max-width: 1000px) {
  .stage-split { display: flex; flex-direction: column; padding: var(--gap); }
  .stage-fixed { order: 0; position: sticky; top: var(--gap); height: 48svh; z-index: 0; align-self: stretch; }
  .stage-read { order: 1; position: relative; z-index: 1; margin-top: -24px; background: var(--paper-2); }
  .hero-card { min-height: 0; }
  .hero-inner { padding-bottom: 0; }
  .read-block { max-width: 46rem; }
  .how-grid { display: flex; flex-direction: column; }
  .how-stage { order: -1; position: sticky; top: 0; height: 50svh; z-index: 1; overflow: hidden; margin: 0 calc(var(--margin) * -1); align-self: stretch; }
  .showcase { grid-template-columns: 1fr; }
  .field { min-height: 0; padding: 4rem var(--margin) 8rem; }
  .field-light { padding-top: 8rem; padding-bottom: 4rem; }
  .split-head-left { text-align: left; }
  .split-head-right { top: 2rem; bottom: auto; }
  .how-steps { display: contents; }
  .how-steps .section-title { order: -2; padding: 0 0 2.5rem; }
  .how-step { min-height: 64svh; justify-content: flex-end; padding-bottom: 8svh; position: relative; z-index: 2; }
  .how-copy { background: var(--paper); padding: 1.5rem 0 1.75rem; }
  .market { padding: 6rem var(--margin); display: block; }
  .sheet { margin-inline: auto; }
}

@media (max-width: 760px) {
  .hero-inner { padding: 2rem 1.25rem 0; }
  .hero-title { margin-top: 1.75rem; font-size: clamp(2.4rem, 10.5vw, 3.25rem); }
  .hero-links { padding-top: 2.5rem; gap: 0.6rem 1.25rem; }
  .hero-facts { grid-template-columns: 1fr; gap: 1rem; text-align: center; max-width: 22rem; }
  .rfq-chip { width: auto; right: 1rem; left: 1rem; bottom: 2.5rem; padding: 0.8rem 1rem; }
  .rfq-chip-meta, .rfq-chip-foot { display: none; }
  .rfq-chip-title { margin-top: 0.3rem; }
  .read-block { padding: 4.5rem 0.5rem; }
  .name-columns { columns: 2; column-gap: 1.25rem; }
  .name-group { font-size: var(--step-body); }

  .showcase { grid-template-columns: 1fr; }
  .field { min-height: 62svh; padding: 3rem 1.25rem 6.5rem; }
  .field-light { padding-top: 6rem; padding-bottom: 3rem; }
  .field-label, .rfq-input { margin-left: 0; padding-left: 1rem; }
  .field-label { padding-left: 0; }
  .rfq-input { font-size: 1.5rem; }
  .split-head { font-size: 11vw; }
  .split-head-left { bottom: 1.5rem; text-align: left; }
  .split-head-right { top: 1.5rem; bottom: auto; }
  .ui-fields > div { grid-template-columns: 7.5rem 1fr; }

  .how-stage { height: 46svh; }
  .how-say { font-size: 1.5rem; }

  .module { grid-template-columns: 1fr; }
  .module + .module { margin-top: 4rem; }
  .module-photo { height: 200px; }

  .market { padding: 5rem 10px; display: block; }
  .sheet { width: 100%; padding: 3rem 1.75rem; }
  .sheet-group h3 { font-size: var(--step-lead); }

  .pricing-intro { display: block; }
  .pricing-photo { width: 60%; margin-top: 2rem; }
  .price-list { columns: 1; }
  .faq-text { columns: 1; }

  .cta { display: flex; flex-direction: column; min-height: 84svh; padding: 3rem 1rem 1rem; }
  .cta-title { font-size: 13vw; }
  .cta-words { align-self: auto; }
  .dialog { margin-top: auto; width: 100%; }
  .dialog-button { min-height: 52px; }

  .footer { padding-top: 20svh; }
  .footer-line { grid-template-columns: 1fr; gap: 0.5rem; }
  .footer-line > span:last-child { justify-self: start; }
  .footer-line nav { flex-wrap: wrap; gap: 0.4rem 1.25rem; }
}
