/* ═══════════════════════════════════════════════════════════════════════════
   Impauer — shared section system.
   Every token below is lifted verbatim from the homepage (index.html /
   site.css); nothing here invents a new colour, font or spacing value.
   Subpages use .section-dark / .section-light on their existing sections.
   ═══════════════════════════════════════════════════════════════════════════ */
/* ── shared hero eyebrow — one conceptual layer label per product page ── */
.hero-eyebrow { align-self: flex-start; font-family: var(--font-technical); font-size: clamp(12px, 0.75vw, 14px);
  font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); }

/* ── shared scroll-stage typography (tokens live in site.css :root) ──
   Reusable across gPoW / ADE / PauerAI / PauerCoin. The homepage stage
   markup (.cs-title/.cs-line/.cs-cat) mirrors these exact rules. */
.economic-stage__content { width: min(640px, 42vw); display: flex; flex-direction: column; align-items: center; text-align: center; }
.economic-stage__number { margin: 0 0 28px; font-family: var(--font-technical); font-size: clamp(12px, 0.75vw, 14px); font-weight: 500;
  letter-spacing: .22em; color: var(--blue); }
.economic-stage__title { margin: 0 auto 30px; max-width: 640px;
  font-family: var(--font-display); font-size: var(--stage-title-size); font-weight: var(--stage-title-weight);
  line-height: var(--stage-title-line-height); letter-spacing: var(--stage-title-tracking);
  color: #FFFFFF; text-align: center; text-wrap: balance; }
.economic-stage__description { margin: 0 auto 28px; max-width: 580px;
  font-family: var(--font-body); font-size: var(--stage-description-size); font-weight: 500;
  line-height: var(--stage-copy-line-height); letter-spacing: -0.015em; color: rgba(225,235,248,.82);
  text-align: center; text-wrap: balance; }
.economic-stage__descriptor { margin: 0 auto; max-width: 620px;
  font-family: var(--font-technical); font-size: var(--stage-descriptor-size); font-weight: 500; line-height: 1.35;
  letter-spacing: var(--stage-descriptor-tracking); text-transform: uppercase; color: rgba(164,194,230,.9); text-align: center; }
.economic-stage__descriptor::before { content: ""; display: block; width: 32px; height: 1px; margin: 0 auto 20px; background: rgba(88,166,255,.7); }
@media (max-width: 1200px) {
  .economic-stage__content { width: min(600px, 50vw); }
  .economic-stage__title { font-size: clamp(42px, 5vw, 62px); }
  .economic-stage__description { font-size: clamp(20px, 2.2vw, 24px); }
  .economic-stage__descriptor { font-size: clamp(12px, 1.4vw, 14px); }
}
@media (max-width: 900px) {
  .economic-stage__content { width: 100%; }
  .economic-stage__title { font-size: clamp(38px, 10vw, 50px); }
  .economic-stage__description { font-size: clamp(18px, 4.6vw, 21px); }
  .economic-stage__descriptor { font-size: clamp(12px, 3.2vw, 14px); letter-spacing: 0.12em; }
}

:root {
  /* surfaces — homepage values */
  --surface-dark: #000000;
  --surface-light: linear-gradient(180deg, #F2F5F9 0%, #EEF3F8 58%, #E4EBF4 100%);
  --surface-light-flat: #EEF3F8;
  --surface-light-secondary: #FFFFFF;
  --surface-light-end: #E4EBF4;

  /* text */
  --text-on-dark: #FFFFFF;
  --text-on-light: #07101F;
  --text-on-light-2: #0A1626;
  --text-muted-dark: #A9B4C6;
  --text-muted-light: #48586F;
  --text-muted-light-2: #40506A;
  --text-label-dark: #7B90B2;
  --text-label-light: #5F7290;

  /* accent — the single Impauer blue, dark- and light-surface variants */
  --impauer-blue-on-dark: #5A9BEA;
  --impauer-blue-on-light: #2E77CE;

  /* section borders — namespaced so site.css's --border-dark/--border-light stand */
  --section-border-dark: #101B2E;
  --section-border-dark-strong: #223452;
  --section-border-light: rgba(9, 30, 66, 0.10);
  --section-border-light-strong: rgba(9, 30, 66, 0.14);

  /* rhythm */
  --section-spacing-desktop: clamp(70px, 10vw, 170px);
  --section-spacing-tablet: clamp(70px, 11vw, 120px);
  --section-spacing-mobile: 74px;
  --content-max-width: 1440px;
  --usable-section-height: calc(100vh - var(--nav-h));
  --usable-section-height: calc(100svh - var(--nav-h));
}

/* ── shared product-page viewport rhythm (gPoW / ADE / PauerAI / PauerCoin) ──
   Same sizing philosophy as the optimized homepage: one idea per viewport,
   content vertically centred, the section fade living inside the section. */
.gp-section.section-dark,
.gp-section.section-light {
  min-height: var(--usable-section-height);
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding-block: clamp(44px, 5.5vh, 84px);
}
.gp-section.section-dark > .wrap-wide,
.gp-section.section-light > .wrap-wide { width: 100%; }
.gp-section.section-transition.section-transition {
  padding-bottom: calc(clamp(44px, 5.5vh, 84px) + var(--tran-h, clamp(96px, 9vw, 160px)));
}
.gp-section.section-transition::after { height: var(--tran-h, clamp(96px, 9vw, 160px)); }
@media (max-width: 767px) { :root { --tran-h: clamp(64px, 14vw, 96px); } }

/* ── shared pre-footer CTA — the homepage closing layout on every route ─────
   Structure is shared; every page keeps its own wording, artwork and links. */
.prefooter-cta { position: relative; overflow: hidden; height: auto; min-height: 0;
  padding: clamp(104px, 10vw, 168px) 24px clamp(96px, 9vw, 148px); }
.prefooter-cta::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.82) 0%, rgba(0,0,0,.56) 38%, rgba(0,0,0,.14) 72%, transparent 100%); }
/* three class names so the shared section shell's own .wrap-wide z-index cannot
   drop the copy back under the readability layer */
.prefooter-cta.prefooter-cta.prefooter-cta > .wrap-wide,
.prefooter-cta.prefooter-cta.prefooter-cta .prefooter-cta__inner { position: relative; z-index: 3;
  width: min(1120px, calc(100% - 48px)); margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.prefooter-cta .gp-head { align-items: center; text-align: center; margin-bottom: 0; width: 100%; }
.prefooter-cta .bh { max-width: 1080px; margin-inline: auto; text-align: center; text-wrap: balance; }
.prefooter-cta .bsub { max-width: 920px; margin: clamp(24px, 3vw, 38px) auto 0; text-align: center; text-wrap: balance; }
.prefooter-cta .bcopy { max-width: 820px; margin: clamp(22px, 2.5vw, 34px) auto 0; text-align: center;
  line-height: 1.65; text-wrap: pretty; }
.prefooter-cta .tagline, .prefooter-cta .slabel { margin-inline: auto; text-align: center; }
/* one closing rhythm on every route: title, one sentence, one short tagline */
.prefooter-cta .bh { margin: 0 auto; }
.prefooter-cta .bsub { margin: clamp(22px, 2.6vw, 32px) auto 0; max-width: 60ch; }
.prefooter-cta .cta-tag { display: block; margin: clamp(26px, 3vw, 40px) auto 0;
  font-family: var(--font-technical); font-size: clamp(12px, 0.78vw, 14px); font-weight: 500;
  line-height: 1.4; letter-spacing: 0.2em; text-transform: uppercase; color: #7FB2EE; text-align: center; }
.prefooter-cta .wp-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 14px; margin-top: clamp(34px, 4vw, 52px) !important; }
@media (max-width: 620px) {
  .prefooter-cta { padding-inline: 24px; }
  .prefooter-cta .wp-row { flex-direction: column; width: 100%; }
  .prefooter-cta .wp-row .btn { width: 100%; max-width: 340px; }
}

/* closing CTA bands end naturally — never a viewport of black above the footer */
#gp-close.gp-section, #ade-close.gp-section, #ai-close.gp-section, #pc-close.gp-section,
.gp-section.wp-cta {
  min-height: 0; display: block; padding-block: clamp(72px, 7vw, 112px);
}

/* one section type scale across all four pages */
.gp-section .bh {
  font-size: clamp(44px, 4vw, 72px); line-height: 1; font-weight: 600;
  letter-spacing: -0.038em; text-wrap: balance;
}
.gp-section .bsub {
  font-size: clamp(28px, 2.3vw, 42px); line-height: 1.12; font-weight: 550;
  letter-spacing: -0.028em; text-wrap: balance;
}
.gp-section .bcopy {
  font-size: clamp(18px, 1.15vw, 22px); line-height: 1.58; font-weight: 400; letter-spacing: -0.01em; max-width: 62ch;
}
.gp-section .gp-head { margin-bottom: clamp(28px, 3.4vh, 48px); }
.gp-section .gp-head .bh { margin-bottom: clamp(20px, 2.4vh, 28px); }
.gp-section .gp-head .bsub { margin-bottom: clamp(16px, 2vh, 22px); }
@media (max-height: 760px) {
  .gp-section.section-dark,
  .gp-section.section-light { padding-block: 36px; }
  .gp-section .bh { font-size: clamp(2.5rem, 3.6vw, 3.4rem); }
  .gp-section .bsub { font-size: clamp(1.25rem, 1.6vw, 1.6rem); }
}
@media (max-width: 1100px) {
  .gp-section.section-dark,
  .gp-section.section-light { min-height: 0; display: block; padding-block: var(--section-spacing-tablet); }
  .gp-section.section-transition.section-transition {
    padding-bottom: calc(var(--section-spacing-tablet) + clamp(120px, 15vw, 240px));
  }
}

/* ── shared section shell ────────────────────────────────────────────────── */
.section-dark,
.section-light {
  position: relative;
  overflow: visible;
  isolation: isolate;
  padding: var(--section-spacing-desktop) 0;
}
.section-dark { background: var(--surface-dark); }
.section-light { background: var(--surface-light); }
.section-dark > .wrap-wide,
.section-light > .wrap-wide { position: relative; z-index: 1; max-width: var(--content-max-width); }

/* deliberate, architectural transitions — a single hairline, full width */
.section-dark + .section-dark { border-top: 1px solid var(--section-border-dark); }
.section-light + .section-light { border-top: 1px solid var(--section-border-light); }
.section-dark + .section-light,
.section-light + .section-dark { border-top: none; }

/* ── light-surface typography and components ─────────────────────────────── */
.section-light .bh,
.section-light .wh { color: var(--text-on-light); }
.section-light .bh .hl,
.section-light .wh .hl,
.section-light .hl { color: var(--impauer-blue-on-light); }
.section-light .bsub { color: var(--impauer-blue-on-light); }
.section-light .bcopy { color: var(--text-muted-light); }
/* inline label colours from the dark pages must not survive onto light surfaces */
.section-light .slabel,
.section-light [class*="label"] { color: var(--text-label-light) !important; }
.section-light .slabel.accent { color: var(--impauer-blue-on-light) !important; }

.section-light .sec-close,
.section-light .evo-close,
.section-light .chain-close,
.section-light .eco-close { color: var(--text-on-light-2); }
.section-light .sec-close .hl,
.section-light .evo-close .hl,
.section-light .chain-close .hl,
.section-light .eco-close .hl { color: var(--impauer-blue-on-light); }

/* editorial column blocks (principles, capabilities, tokenomics, utilities) */
.section-light .prin h3,
.section-light .eco h3,
.section-light .p-cell h3,
.section-light .tok h3 { color: var(--text-on-light); }
.section-light .dif h3,
.section-light .aud h3 { color: var(--impauer-blue-on-light); }
.section-light .prin p,
.section-light .eco p,
.section-light .p-cell p,
.section-light .tok p,
.section-light .dif p,
.section-light .aud p { color: var(--text-muted-light); }
.section-light .prin::before,
.section-light .eco::before,
.section-light .p-cell::before,
.section-light .tok::before,
.section-light .dif::before,
.section-light .aud::before {
  background: linear-gradient(90deg, rgba(46, 119, 206, .85), rgba(46, 119, 206, .3) 44%, var(--section-border-light));
}
.section-light .prin::after,
.section-light .eco::after,
.section-light .p-cell::after,
.section-light .tok::after,
.section-light .dif::after,
.section-light .aud::after {
  background: var(--impauer-blue-on-light);
  box-shadow: 0 0 10px 2px rgba(46, 119, 206, .3);
}

/* data surfaces — comparison matrix, role table */
.section-light .cmp-scroll,
.section-light .roles {
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .66));
  box-shadow: 0 30px 70px -40px rgba(9, 30, 66, .28);
}
.section-light .cmp th,
.section-light .cmp td,
.section-light .roles td { border-bottom-color: var(--section-border-light); color: var(--text-muted-light); }
.section-light .cmp th + th,
.section-light .cmp td + td,
.section-light .roles td + td { border-left-color: var(--section-border-light); }
.section-light .cmp thead th { color: var(--text-label-light); border-bottom-color: var(--section-border-light-strong); }
.section-light .cmp td:first-child { color: var(--text-on-light-2); }
.section-light .roles td:first-child { color: var(--impauer-blue-on-light); }
.section-light .cmp .gcol { background: rgba(46, 119, 206, .06); }
.section-light .cmp thead .gcol { color: var(--text-on-light); box-shadow: inset 0 -1px 0 rgba(46, 119, 206, .5); }
.section-light .cmp .yes,
.section-light .cmp .gcol.yes { color: var(--impauer-blue-on-light); }
.section-light .cmp .dim { color: #8494AB; }

/* progression sequences */
.section-light .chain::before,
.section-light .prog::before {
  background: linear-gradient(180deg, rgba(46, 119, 206, 0), rgba(46, 119, 206, .45) 10%, rgba(46, 119, 206, .8) 90%, rgba(46, 119, 206, 0));
}
.section-light .chain .st { border-top-color: var(--section-border-light); }
.section-light .chain .st:last-child { border-bottom-color: var(--section-border-light); }
.section-light .chain .st .t { color: #6C7C95; }
.section-light .chain .st:nth-child(4) .t,
.section-light .chain .st:nth-child(7) .t { color: var(--impauer-blue-on-light); }
.section-light .chain .st:nth-child(8) .t { color: var(--text-on-light); }
.section-light .chain-notes p { color: var(--text-muted-light); }

/* evolution timeline (gPoW) */
.section-light .evo::before { background: linear-gradient(90deg, rgba(9,30,66,.14), var(--impauer-blue-on-light) 82%, #7FB0EC); }
.section-light .evo-step::before { background: #FFFFFF; border-color: rgba(46, 119, 206, .38); }
.section-light .evo-step.now::before { background: var(--impauer-blue-on-light); border-color: var(--impauer-blue-on-light); box-shadow: 0 0 16px rgba(46, 119, 206, .45); }
.section-light .evo-step .era { color: var(--text-label-light); }
.section-light .evo-step h3 { color: var(--text-on-light); }
.section-light .evo-step.now h3 { color: var(--impauer-blue-on-light); }
.section-light .evo-step p { color: var(--text-muted-light); }

/* word stack (PauerAI) */
.section-light .evolve-words span { color: var(--text-on-light); }
.section-light .evolve-words span:nth-child(2) { color: #3E5878; }
.section-light .evolve-words span:nth-child(3) { color: var(--impauer-blue-on-light); }
.section-light .evolve-words span:nth-child(4) { color: #8494AB; }

/* double engine (PauerCoin) */
.section-light .eng {
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .3) 70%, transparent);
  border-top-color: var(--section-border-light-strong);
}
.section-light .eng h3 { color: var(--text-on-light); }
.section-light .eng p { color: var(--text-muted-light); }
.section-light .eng .dir::before { background: linear-gradient(90deg, rgba(46,119,206,.2), var(--impauer-blue-on-light)); box-shadow: 0 0 8px 1px rgba(46,119,206,.25); }
.section-light .eng.down .dir::before { background: linear-gradient(90deg, rgba(46,119,206,.2), #8494AB); box-shadow: none; }

/* pills, buttons and labels keep the homepage system on light surfaces */
.section-light .pill { background: #FFFFFF; border: 1px solid var(--section-border-light-strong); color: var(--text-on-light-2); }
.section-light .btn-secondary { border-color: var(--section-border-light-strong); color: var(--text-on-light-2); }
.section-light .btn-secondary:hover { border-color: var(--impauer-blue-on-light); color: var(--impauer-blue-on-light); }
/* text links only — buttons keep the homepage's own colour tokens */
.section-light a:not(.btn) { color: var(--impauer-blue-on-light); }

/* visible keyboard focus on both surfaces */
.section-dark :is(a, button):focus-visible { outline: 2px solid var(--impauer-blue-on-dark); outline-offset: 3px; }
.section-light :is(a, button):focus-visible { outline: 2px solid var(--impauer-blue-on-light); outline-offset: 3px; }

/* ── background canvases ─────────────────────────────────────────────────── */
.gp-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.gp-bg canvas { width: 100%; height: 100%; display: block; }

/* ── responsive — the light/dark rhythm is preserved at every width ──────── */
@media (max-width: 1100px) {
  .section-dark, .section-light { padding: var(--section-spacing-tablet) 0; }
  .section-transition.section-transition { padding-bottom: calc(var(--section-spacing-tablet) + clamp(140px, 18vw, 300px)); }
}
@media (max-width: 700px) {
  .section-dark, .section-light { padding: var(--section-spacing-mobile) 0; }
  .section-transition.section-transition { padding-bottom: calc(var(--section-spacing-mobile) + clamp(140px, 18vw, 300px)); }
  .section-dark .gp-bg, .section-light .gp-bg { opacity: .3 !important; }
}


/* ── document CTA band — one per page, restrained ────────────────────────── */
.wp-cta, .hp-section.wp-cta, .gp-section.wp-cta { padding: clamp(64px, 7vw, 112px) 0; }
.wp-cta.section-transition.section-transition, .gp-section.wp-cta.section-transition {
  padding-bottom: calc(clamp(64px, 7vw, 112px) + clamp(140px, 18vw, 300px));
}
.wp-cta .wp-in { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 900px; }
.wp-cta .wp-h { margin: 0; font: 700 clamp(28px, 3.1vw, 50px)/1.08 var(--f-display); letter-spacing: -0.028em; color: var(--text-on-dark); text-wrap: balance; max-width: 22ch; }
.wp-cta .wp-copy { margin: 0; max-width: 680px; font: 400 clamp(16.5px, 1.35vw, 19px)/1.62 var(--f-sans); color: var(--text-muted-dark); text-wrap: pretty; }
.wp-cta .wp-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.section-light.wp-cta .wp-h { color: var(--text-on-light); }
.section-light.wp-cta .wp-copy { color: var(--text-muted-light); }


/* ── section transitions ─────────────────────────────────────────────────────
   The homepage fades dark into light with a .env-seam block:
     height clamp(110px, 16vh, 210px); margin-top: -1px;
     linear-gradient(180deg, var(--seam-from) 0%, var(--seam-to) 100%)
   with --seam-from/--seam-to set to #000000 and the light surface's own
   #F2F5F9 / #E4EBF4 endpoints. This reproduces that exact ramp as a
   pseudo-element on the section that transitions, so no spacer markup is
   needed and no content is ever faded (copy sits at z-index 1, above).
   ────────────────────────────────────────────────────────────────────────── */
.section-transition.section-transition {
  position: relative;
  /* the fade needs empty space to live in: normal bottom padding plus the
     full fade height, so the section's last copy sits above alpha ~0 */
  padding-bottom: calc(var(--section-spacing-desktop) + clamp(140px, 18vw, 300px));
}
.section-transition::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(140px, 18vw, 300px);
  pointer-events: none;
  z-index: 0;
}
/* black → the light surface's top colour (#F2F5F9) */
.section-transition--dark-to-light::after {
  background: linear-gradient(180deg, rgba(242, 245, 249, 0) 0%, rgba(242, 245, 249, 0.55) 62%, #F2F5F9 100%);
}
/* the light surface's bottom colour (#E4EBF4) → pure black */
.section-transition--light-to-dark::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 62%, #000000 100%);
}
/* 1px overlap kills sub-pixel seams, as on the homepage */
.section-transition + section,
.section-transition + footer { margin-top: -1px; }

/* ── shared subpage hero system (gPoW / ADE / PauerAI / PauerCoin) ────────
   One hero for all four product pages: one type scale, one composition, one
   set of spacing tokens. A page supplies only its eyebrow, headline lines,
   subtitle, body, tagline, artwork image and two artwork placement values. */
:root {
  --subhero-pad-left: clamp(24px, 7.5vw, 150px);
  --subhero-copy: min(41%, 780px);
  --subhero-title-size: clamp(50px, 4.6vw, 82px);
  --subhero-eyebrow-size: clamp(12px, 0.75vw, 14px);
  --subhero-subtitle-size: clamp(21px, 1.45vw, 27px);
  --subhero-body-size: clamp(18px, 1.15vw, 22px);
  --subhero-tagline-size: clamp(21px, 1.45vw, 27px);
  --subhero-gap-eyebrow: 30px;
  --subhero-gap-title: 38px;
  --subhero-gap-subtitle: 28px;
  --subhero-gap-body: 20px;
  --subhero-gap-tagline: 34px;
}
.subpage-hero {
  position: relative; overflow: hidden; background: #000;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: center;
  padding: clamp(28px, 4vh, 56px) 0;
}
/* these heroes end black: no light fade, no transition layer inside them */
.subpage-hero::before,
.subpage-hero::after { content: none; }

/* the layer takes the artwork's own height (all four images are 2.4:1), so the
   image fills it edge to edge and the feather below covers its real top and
   bottom — no rectangular seam anywhere in the black */
.subpage-hero__visual {
  --art-span: calc(var(--art-wn, 1) * var(--art-scale, 1));
  position: absolute; left: 0; right: 0; top: 50%; z-index: 0; overflow: hidden;
  height: calc(var(--art-span) * 100vw / 2.4);
  background-repeat: no-repeat;
  background-size: calc(var(--art-span) * 100%) auto;
  background-position: right calc(-1 * var(--art-bleed, 7vw)) center;
  transform: translate3d(calc(var(--artPX, 0) * -14px), calc(-50% + var(--artPY, 0) * 16px), 0);
  animation: subheroArtIn .7s var(--ease) .1s both;
}
@keyframes subheroArtIn { from { opacity: 0; } to { opacity: 1; } }
/* the copy side stays true black; top and bottom meet the page as black */
.subpage-hero__visual::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 12%, rgba(0,0,0,0) 88%, #000 100%),
    linear-gradient(90deg, #000 0%, rgba(0,0,0,.92) 24%, rgba(0,0,0,.42) 36%, rgba(0,0,0,0) 48%);
}
.subpage-hero__container {
  position: relative; z-index: 2; width: 100%; max-width: none; margin: 0;
  padding-left: var(--subhero-pad-left); padding-right: 0;
}
.subpage-hero__content {
  position: relative; z-index: 3; display: flex; flex-direction: column;
  align-items: flex-start; gap: 0;
  width: var(--subhero-copy); max-width: var(--subhero-copy);
}
/* block-level copy always owns the full column — a flex-start column would
   otherwise shrink a heading to its first line and force later lines to wrap
   inside that narrower box (the source of words painting over each other) */
.subpage-hero__product, .subpage-hero__eyebrow, .subpage-hero__title,
.subpage-hero__subtitle, .subpage-hero__body { align-self: stretch; width: 100%; max-width: 100%; box-sizing: border-box; }
/* the optional next-step affordance below the artwork; phones only */
.subpage-hero__next { display: none; }
/* ── product name: the page's own identity, above the layer label ─────────
   One shared style; only the words differ per page. Soft white with a short
   Impauer-blue rule beneath, always a step below the primary statement. */
.subpage-hero__product {
  margin: 0 0 var(--subhero-gap-product, 26px); font-family: var(--font-display);
  font-size: clamp(38px, 3.2vw, 62px); font-weight: 550; line-height: 1;
  letter-spacing: -0.035em; color: #F2F6FB; max-width: none; text-wrap: normal;
  animation: subheroProductIn .7s var(--ease) both;
}
.subpage-hero__product::after {
  content: ""; display: block; width: 46px; height: 2px; margin-top: 16px;
  background: var(--blue);
}
@keyframes subheroProductIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
/* the product name leads the entry, the rest of the stack follows behind it */
.subpage-hero__content > .subpage-hero__eyebrow { animation-delay: .1s; }

.subpage-hero__eyebrow {
  margin: 0 0 var(--subhero-gap-eyebrow); font-family: var(--font-technical);
  font-size: var(--subhero-eyebrow-size); font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--blue); line-height: 1.2; white-space: nowrap;
}
.subpage-hero__title {
  margin: 0 0 var(--subhero-gap-title); font-family: var(--font-display);
  font-size: var(--subhero-title-size); font-weight: 600; line-height: 1.02;
  letter-spacing: -0.045em; color: #FFFFFF; max-width: none; text-wrap: normal;
}
/* every intended line is its own block; a line that still cannot fit wraps
   naturally inside its own box and pushes the next line down */
.subpage-hero__title .subpage-hero__line { display: block; min-width: 0; overflow-wrap: normal; }
.subpage-hero__title .hl { color: var(--blue); }
.subpage-hero__subtitle {
  margin: 0 0 var(--subhero-gap-subtitle); font-family: var(--font-body);
  font-size: var(--subhero-subtitle-size); line-height: 1.4; font-weight: 500;
  letter-spacing: -0.015em; color: #FFFFFF; max-width: 100%; text-wrap: balance;
}
.subpage-hero__body {
  margin: 0; font-family: var(--font-body); font-size: var(--subhero-body-size);
  line-height: 1.58; font-weight: 400; letter-spacing: -0.01em;
  color: rgba(198,211,229,.84); max-width: min(100%, 620px); text-wrap: pretty;
}
.subpage-hero__body + .subpage-hero__body { margin-top: var(--subhero-gap-body); }
/* ── the hero signature ───────────────────────────────────────────────────
   The concluding statement, read as a signature rather than a caption: one
   line on desktop, a taller illuminated rule beside it, and nothing enclosing
   it. Free to run wider than the paragraph measure so it holds one line. */
.subpage-hero__tagline {
  position: relative; display: flex; align-items: center; gap: 0.34em;
  width: max-content; max-width: none; white-space: nowrap;
  min-height: 44px;
  margin-top: var(--subhero-gap-tagline);
  padding-left: 24px; border-left: 0;
  font-family: var(--font-body); font-size: var(--subhero-tagline-size); line-height: 1.35;
  font-weight: 500; letter-spacing: -0.015em; text-transform: none; color: rgba(246,250,255,.96);
  animation: subheroTagIn .7s var(--ease) .34s both;
}
/* the rule centres on the statement, and grows with it when it wraps */
.subpage-hero__tagline::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 2px; height: max(44px, 100%); background: var(--blue);
  box-shadow: 0 0 12px rgba(43,124,255,.45);
  animation: subheroTagLine .7s var(--ease) .34s both;
}
@keyframes subheroTagIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes subheroTagLine {
  from { opacity: 0; box-shadow: 0 0 0 rgba(43,124,255,0); }
  60%  { opacity: 1; box-shadow: 0 0 22px rgba(43,124,255,.75); }
  to   { opacity: 1; box-shadow: 0 0 12px rgba(43,124,255,.45); }
}
.subpage-hero__tagline .hl { color: var(--blue); }
.subpage-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--subhero-gap-tagline); }
@media (max-width: 480px) { .subpage-hero__actions { flex-direction: column; align-items: stretch; gap: 8px; } }
@media (max-width: 1180px) { :root { --subhero-tagline-size: clamp(19px, 1.9vw, 22px); } }
@media (max-width: 820px) {
  .subpage-hero__tagline { white-space: normal; width: auto; max-width: 100%; align-items: stretch; }
  .subpage-hero__tagline::before { top: 0; transform: none; height: 100%; }
}

/* short desktop screens: the rhythm tightens through the tokens only */
@media (max-height: 800px) {
  :root {
    --subhero-gap-product: 22px;
    --subhero-gap-eyebrow: 22px; --subhero-gap-title: 28px; --subhero-gap-subtitle: 22px;
    --subhero-gap-body: 16px; --subhero-gap-tagline: 34px;
  }
  .subpage-hero__product { font-size: clamp(38px, 2.9vw, 48px); }
  .subpage-hero__product::after { margin-top: 12px; }
}
@media (min-width: 1200px) {
  /* the long names stay on one line where there is room for them */
  .subpage-hero__product { white-space: nowrap; }
}
@media (max-height: 640px) and (min-width: 821px) {
  .subpage-hero { min-height: 0; }
}
/* tablet: same tokens, smaller scale, artwork further right */
@media (max-width: 1100px) {
  :root {
    --subhero-title-size: clamp(38px, 4.4vw, 62px);
    --subhero-copy: min(48%, 560px);
    --subhero-pad-left: clamp(22px, 6vw, 72px);
  }
  .subpage-hero__visual { --art-scale: 0.82; }
}
/* mobile: one column, copy first, artwork holding the lower band */
@media (max-width: 820px) {
  :root {
    --subhero-title-size: clamp(34px, 8.6vw, 52px);
    --subhero-tagline-size: clamp(18px, 4.6vw, 21px);
    --subhero-copy: 100%;
  }
  /* one shared artwork band: same height, framing and spacing on every page.
     Copy first, image beneath it, always clear of each other. */
  .subpage-hero { --m-art-h: min(calc(100vw / 1.35), 420px);
    min-height: 0; align-items: flex-start;
    padding: 44px 0 calc(var(--m-art-h) + 36px); }
  .subpage-hero__container { padding-inline: max(clamp(20px, 6vw, 40px), env(safe-area-inset-left), env(safe-area-inset-right)); }
  .subpage-hero__tagline { display: block; width: auto; max-width: 100%; white-space: normal; }
  .subpage-hero__visual { inset: auto 0 0 0; top: auto; height: var(--m-art-h);
    transform: none;
    background-size: cover; background-position: var(--m-art-pos, 55% bottom); opacity: 1;
    animation-name: subheroArtIn; }
  /* soft blend into the black above — never a visible rectangle */
  .subpage-hero__visual::after {
    background: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 16%, rgba(0,0,0,0) 44%); }
}
@media (prefers-reduced-motion: reduce) {
  .subpage-hero__visual { animation: none; transform: translate3d(0, -50%, 0); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 820px) {
  .subpage-hero__visual { transform: none; }
}
/* the black-to-light blend belongs to the section AFTER each hero */
.subhero-next { position: relative; }
/* above the section's own artwork layers (z-index 0) so it actually paints,
   below its copy (raised to 7) so nothing readable is dimmed */
.subhero-next::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; z-index: 6;
  pointer-events: none; background: linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 100%);
}
.subhero-next > .wrap-wide { position: relative; z-index: 7; }
