/* 15 · Above the noise — Merrow & Hale flagship. Tokens come from ../shared/brand.css */

html { scroll-behavior: auto; }
body { overflow-x: clip; background: var(--paper); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
em { font-style: italic; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; display: none; }
.gl #gl { display: block; }
main, .foot { position: relative; z-index: 1; }
main > section { position: relative; }

/* ================================================================ JOURNEY (Act I + II) */
.journey { background: var(--ink); color: var(--paper); }
.stage { position: relative; }
.gl .journey { height: 1050vh; background: transparent; }
.gl .finale { height: 320vh; background: transparent; }
.gl .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; touch-action: pan-y; }

/* fallback sky: storm grey into golden hour (no WebGL / reduced motion) */
.sky-fallback {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(60% 40% at 64% 30%, rgba(214,185,131,.75), rgba(214,185,131,0) 70%),
    linear-gradient(180deg, #E9E1CF 0%, #E3D2AE 38%, var(--brass-l) 58%, #CDBB98 64%, #8F8C82 82%, var(--ink-2) 100%);
}
.sf-sun { position: absolute; left: 64%; top: 30%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: radial-gradient(circle, var(--paper) 0 30%, rgba(214,185,131,.9) 46%, rgba(214,185,131,0) 72%); }
.sf-deck { position: absolute; left: -10%; right: -10%; bottom: -8%; height: 46%; background: radial-gradient(40% 50% at 30% 30%, rgba(246,243,236,.85), transparent 70%), radial-gradient(45% 50% at 75% 40%, rgba(236,230,217,.9), transparent 70%), linear-gradient(180deg, transparent, rgba(154,163,160,.6)); filter: blur(10px); }
.gl .sky-fallback, .gl .terrain-fallback, .gl .water-fallback { display: none; }

.storm-line, .hero, .view-h { position: relative; padding: 18vh var(--gutter) 10vh; }
html:not(.gl) .sky-fallback { display: none; }
html:not(.gl) .storm-line { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 55%, #59615C 100%); padding-top: 22vh; }
html:not(.gl) .hero { background: radial-gradient(38% 46% at 78% 26%, rgba(246,243,236,.95), rgba(214,185,131,.55) 38%, rgba(214,185,131,0) 72%), linear-gradient(180deg, #59615C 0%, #C9C3B2 22%, #E9E1CF 46%, #E3D2AE 80%, var(--brass-l) 100%); padding-bottom: 16vh; }
html:not(.gl) .view-h { padding-top: 16vh; }
.storm-line .label { color: var(--mute-d); margin: 0 0 22px; }
.storm-say { margin: 0; font-size: clamp(2rem, 4.4vw, 4.2rem); line-height: 1; letter-spacing: -.015em; color: rgba(246,243,236,.86); }
.storm-say em { color: var(--paper); }

.hero { color: var(--ink); }
.hero-k { display: flex; align-items: center; gap: 10px; color: rgba(15,20,23,.62); margin: 0 0 3vh; }
.sun-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 14px var(--brass-l); }
.hero-t { margin: 0; font-size: clamp(3.8rem, 10.4vw, 12rem); line-height: .86; letter-spacing: -.035em; color: var(--ink); }
.hero-t .ln { display: block; overflow: hidden; padding: 0 .06em .1em; margin: 0 -.06em -.1em; }
.hero-t .li { display: inline-block; }
.hero-t em { color: var(--green); }
.hero-f { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 5vh; }
.hero-lead { max-width: 40ch; margin: 0; font-size: 1.1rem; line-height: 1.5; color: rgba(15,20,23,.78); }
.hero-btn { flex-shrink: 0; }

.view-h { color: var(--paper); }
.view-h .label { color: var(--brass-l); }
.view-h h2 { font-size: var(--fs-h2); margin: 14px 0 20px; max-width: 15ch; line-height: .95; letter-spacing: -.02em; }
.view-h h2 em { color: var(--brass-l); }
.view-p { max-width: 44ch; margin: 0; color: rgba(246,243,236,.8); font-size: 1.05rem; }

.terrain-fallback { margin: 0 auto; padding: 0 var(--gutter) 16vh; max-width: var(--max); }
.terrain-fallback canvas { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--paper); }
.terrain-fallback figcaption { margin-top: 14px; font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--mute-d); }
.tf-notes { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: rgba(246,243,236,.82); }
.tf-notes b { color: var(--brass-l); font-weight: 400; margin-right: 12px; }

.noise, .pins, .legend, .cue, .horizon, .alt, .ripple-hint { display: none; }

/* ---------------- GL layout: everything becomes a layer of the sticky stage */
.gl .storm-line, .gl .hero, .gl .view-h { position: absolute; margin: 0; max-width: none; }
.gl .storm-line { inset: auto 0 0 0; padding: 0 var(--gutter) 15vh; will-change: transform, opacity; }
.gl .hero { inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 10vh var(--gutter) 9vh; }
.gl .hero-k, .gl .hero-f { will-change: transform, opacity; }
.gl .hero-t .li { will-change: transform; }
.gl .view-h { left: 0; top: 0; padding: 15vh var(--gutter) 0; max-width: 760px; will-change: transform, opacity; }
.gl .view-h h2 { font-size: clamp(2.1rem, 4.2vw, 4.2rem); }
.gl .view-h { color: var(--ink); }
.gl .view-h .label { color: var(--green); }
.gl .view-h h2 em { color: var(--green); }
.gl .view-p { color: rgba(15,20,23,.74); }

.gl .noise { display: block; position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.nz { position: absolute; left: 0; top: 0; white-space: nowrap; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: rgba(246,243,236,.72); will-change: transform, opacity; }
.nz b { font-weight: 500; color: var(--paper); margin-left: .6em; }
.nz .up { color: var(--brass-l); }
.nz .dn { color: var(--mute-d); }
.nz.hl { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0; color: rgba(246,243,236,.6); text-transform: none; }

.gl .cue { display: flex; position: absolute; left: 50%; bottom: 4.5vh; transform: translateX(-50%); flex-direction: column; align-items: center; gap: 10px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(246,243,236,.7); }
.cue i { width: 1px; height: 46px; background: linear-gradient(rgba(246,243,236,.7), transparent); transform-origin: top; animation: cue 2.4s var(--ease-inout) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.gl .pins { display: block; position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.pin-stem { position: absolute; left: 0; bottom: 0; width: 1px; height: var(--stem, 90px); background: linear-gradient(to top, rgba(179,142,85,.95), rgba(179,142,85,.15)); transform-origin: bottom; }
.pin-dot { position: absolute; left: -4px; bottom: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px rgba(214,185,131,.28); }
.pin-card { position: absolute; left: 12px; bottom: calc(var(--stem, 90px) - 18px); width: max-content; max-width: 230px; padding: 10px 14px 11px; border-radius: 10px; background: rgba(246,243,236,.9); color: var(--ink); box-shadow: 0 10px 40px rgba(15,20,23,.18); border: 1px solid rgba(179,142,85,.35); }
.pin-card b { display: block; font-family: var(--mono); font-weight: 500; font-size: .68rem; letter-spacing: .14em; color: var(--green); margin-bottom: 3px; }
.pin-card span { display: block; font-family: var(--serif); font-size: 1.22rem; line-height: 1.08; }
.pin-card small { display: block; margin-top: 5px; font-size: .74rem; color: var(--mute); line-height: 1.35; }
.pin.proj .pin-card { background: rgba(246,243,236,.62); border-style: dashed; }
.wp { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; will-change: transform, opacity; }
.wp-ring { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--brass-l); display: grid; place-items: center; font-family: var(--mono); font-size: .62rem; color: var(--ink); background: rgba(246,243,236,.82); box-shadow: 0 0 0 6px rgba(246,243,236,.18); }
.wp-t { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: rgba(246,243,236,.82); padding: 5px 9px; border-radius: 999px; }

.gl .legend { display: flex; position: absolute; right: var(--gutter); bottom: 5vh; gap: 22px; align-items: center; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(15,20,23,.7); opacity: 0; will-change: opacity; }
.legend span { display: flex; align-items: center; gap: 8px; }
.lg-c, .lg-d { width: 26px; height: 0; border-top: 1.5px solid var(--brass); }
.lg-d { border-top-style: dashed; }
.lg-y { font-size: 2.4rem; letter-spacing: -.02em; color: var(--ink); font-family: var(--serif); text-transform: none; line-height: 1; min-width: 3ch; }

/* horizon-line wipe: a brass hairline draws along the real horizon, then paper opens from it */
.gl .horizon { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.hz-paper { position: absolute; inset: 0; background: var(--paper); clip-path: inset(50% 0 50% 0); will-change: clip-path; }
.hz-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; background: var(--brass); transform: scaleX(0); will-change: transform, opacity; z-index: 1; }
.hz-top, .hz-bot { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--paper); will-change: transform; }
.hz-top { top: 0; } .hz-bot { bottom: 0; }
.horizon.split .hz-line { transform: scaleX(1); }

/* altitude instrument */
.gl .alt { display: grid; position: fixed; right: var(--gutter); top: 50%; z-index: 40; transform: translateY(-50%); grid-template-columns: auto auto; gap: 2px 6px; align-items: baseline; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(15,20,23,.66); opacity: 0; pointer-events: none; will-change: opacity; transition: color .8s; }
.alt-k { grid-column: 1 / -1; }
.alt b { font-weight: 400; font-size: 1.05rem; letter-spacing: .02em; color: var(--ink); transition: color .8s; }
.alt-bar { grid-column: 1 / -1; position: relative; display: block; width: 100%; height: 1px; margin: 6px 0 4px; background: rgba(15,20,23,.18); }
.alt-bar i { position: absolute; inset: 0; background: var(--brass); transform-origin: 0 50%; transform: scaleX(0); }
.alt-s { grid-column: 1 / -1; color: rgba(15,20,23,.5); transition: color .8s; }
.alt.on-dark { color: rgba(246,243,236,.7); }
.alt.on-dark b { color: var(--paper); }
.alt.on-dark .alt-s { color: rgba(246,243,236,.55); }

/* ================================================================ PAPER CHAPTERS */
.paper { background: var(--paper); color: var(--ink); }
.sec-h { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px 8vw; align-items: end; }
.sec-h .label { grid-column: 1 / -1; }
.sec-h h2, .ap-side h2, .faq h2 { font-size: var(--fs-h2); margin: 0; line-height: .95; letter-spacing: -.02em; }
.paper h2 em { color: var(--green); }
.sec-lead { margin: 0; color: var(--mute); font-size: var(--fs-lead); line-height: 1.45; max-width: 40ch; }

.svc { padding: 16vh 0 12vh; }
.svc-list { list-style: none; margin: 10vh 0 0; padding: 0; }
.s { display: grid; grid-template-columns: 4.5rem minmax(0, .9fr) minmax(0, 2fr); gap: 10px 3vw; padding: 46px 0 40px; border-top: 1px solid var(--line); position: relative; }
.s:last-child { border-bottom: 1px solid var(--line); }
.s::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--brass); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease-out); }
.s:hover::before { transform: scaleX(1); }
.s-n { font-size: .8rem; color: var(--brass); padding-top: .9rem; letter-spacing: .1em; }
.s-t { margin: 0; font-size: clamp(2rem, 3.4vw, 3.3rem); line-height: 1; letter-spacing: -.02em; }
.s-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; }
.s-pair p { margin: 0; line-height: 1.55; }
.s-pair span { display: block; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.s-noise { color: var(--mute); }
.s-noise span { color: var(--mute); }
.s-view span { color: var(--green); }
.s-view span::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--brass); vertical-align: middle; margin-right: 8px; }
.s-m { grid-column: 3; margin: 6px 0 0; font-size: .74rem; color: var(--brass); letter-spacing: .06em; }

/* approach with a scroll-driven altimeter */
.approach { padding: 14vh 0 16vh; background: var(--ivory); }
.ap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 8vw; }
.ap-side { position: sticky; top: 14vh; align-self: start; }
.altimeter { position: relative; margin-top: 8vh; height: 46vh; width: 140px; border-left: 1px solid var(--line); }
.am-scale { position: absolute; inset: 0; }
.am-scale span { position: absolute; left: 0; display: flex; align-items: center; gap: 8px; font-size: .64rem; letter-spacing: .1em; color: var(--mute); transform: translateY(-50%); }
.am-scale span::before { content: ""; width: 8px; height: 1px; background: rgba(15,20,23,.3); }
.am-scale span.maj::before { width: 16px; background: rgba(15,20,23,.6); }
.am-mark { position: absolute; left: -5px; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 5px rgba(179,142,85,.18); will-change: transform; }
.am-mark span { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: .78rem; color: var(--ink); white-space: nowrap; letter-spacing: .06em; }
.ap-steps { list-style: none; margin: 0; padding: 0; }
.ap { padding: 7vh 0; border-top: 1px solid var(--line); }
.ap:first-child { border-top: 0; padding-top: 2vh; }
.ap-a { margin: 0 0 14px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
.ap h3 { margin: 0 0 14px; font-size: var(--fs-h3); line-height: 1.05; }
.ap p:last-child { margin: 0; color: var(--mute); max-width: 46ch; }

/* proof */
.proof { padding: 16vh 0 14vh; }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 6vh 0 14vh; border-top: 1px solid var(--line); }
.num { padding: 28px 2vw 0 0; border-right: 1px solid var(--line); margin-right: 2vw; }
.num:last-child { border-right: 0; margin-right: 0; }
.num dt { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.num dd { margin: 18px 0 10px; font-size: clamp(4rem, 7.4vw, 7.6rem); line-height: .85; letter-spacing: -.04em; }
.num dd small { font-size: .42em; letter-spacing: 0; color: var(--brass); margin-left: .05em; }
.num p { margin: 0; font-size: .9rem; color: var(--mute); max-width: 26ch; }
.quote { margin: 0 auto; max-width: 1080px; }
.quote blockquote { margin: 0; font-size: clamp(2rem, 4.2vw, 4.1rem); line-height: 1.04; letter-spacing: -.018em; text-indent: -.42em; }
.quote figcaption { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.quote figcaption span:first-child { font-weight: 500; }
.quote figcaption .mono { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.quote figcaption::before { content: ""; width: 40px; height: 1px; background: var(--brass); align-self: center; }
.quote-s { margin-top: 10vh; max-width: 760px; margin-left: auto; margin-right: 0; }
.quote-s blockquote { font-size: clamp(1.5rem, 2.4vw, 2.2rem); color: rgba(15,20,23,.82); }

/* faq */
.faq { padding: 12vh 0 22vh; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8vw; }
.faq .label { margin-bottom: 18px; }
.qs { border-top: 1px solid var(--line); }
.qs details { border-bottom: 1px solid var(--line); }
.qs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 26px 0; font-size: 1.15rem; font-weight: 450; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary i { position: relative; flex: 0 0 14px; height: 14px; margin-top: 6px; }
.qs summary i::before, .qs summary i::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1px; background: var(--ink); transition: transform .6s var(--ease-out); }
.qs summary i::after { transform: rotate(90deg); }
.qs details[open] summary i::after { transform: rotate(0); }
.qs details p { margin: -6px 0 28px; color: var(--mute); max-width: 56ch; }
.qs details[open] p { animation: qIn .7s var(--ease-out); }
@keyframes qIn { from { opacity: 0; transform: translateY(-6px); } }
.qs summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

/* ================================================================ FINALE */
.finale { background: var(--ink); color: var(--paper); }
.water-fallback { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, #E9E1CF 0%, #E3D2AE 50%, var(--brass-l) 80%, #C9B389 84%, #59615C 84.3%, var(--ink-2) 92%, var(--ink) 100%); }
.wf-sun { position: absolute; left: 50%; top: 74%; width: 110px; height: 110px; margin-left: -55px; border-radius: 50%; background: radial-gradient(circle, var(--paper) 0 34%, rgba(214,185,131,.8) 50%, transparent 72%); }
.wf-sun::after { content: ""; position: absolute; left: 30%; right: 30%; top: 115%; height: 220%; background: linear-gradient(rgba(214,185,131,.55), transparent); filter: blur(6px); }
.cta { position: relative; padding: 20vh var(--gutter) 22vh; text-align: center; max-width: 900px; margin: 0 auto; }
.cta .label { color: rgba(15,20,23,.6); }
.cta h2 { margin: 16px 0 20px; font-size: clamp(3.2rem, 7.2vw, 7.6rem); line-height: .9; letter-spacing: -.03em; color: var(--ink); }
.cta h2 em { color: var(--green); }
.cta-p { margin: 0 auto; max-width: 44ch; color: rgba(15,20,23,.76); font-size: 1.08rem; }
.cta-a { display: flex; gap: 26px; justify-content: center; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.cta-l { color: var(--ink); text-decoration: none; font-size: .9rem; letter-spacing: .06em; border-bottom: 1px solid rgba(15,20,23,.3); padding-bottom: 2px; }
.cta-addr { margin-top: 18px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(15,20,23,.55); }
.gl .cta { position: absolute; left: 0; right: 0; top: 0; padding: 10.5vh var(--gutter) 0; will-change: transform, opacity; }
.gl .ripple-hint { display: block; position: absolute; left: 50%; bottom: 5vh; transform: translateX(-50%); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(246,243,236,.66); opacity: 0; will-change: opacity; }

.foot { background: var(--ink); color: var(--paper); padding: 9vh 0 12vh; }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: baseline; justify-content: space-between; }
.foot-logo { font-size: 2.2rem; margin: 0; }
.foot-logo em { color: var(--brass-l); }
.foot .mono { margin: 0; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute-d); }
.foot-note { width: 100%; }

/* restrained reveals (state set from JS) */
.motion [data-r] { opacity: 0; transform: translateY(28px); }

/* ================================================================ RESPONSIVE */
@media (max-width: 900px) {
  .sec-h, .ap-grid, .faq-grid { grid-template-columns: 1fr; }
  .s { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .s-pair { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 18px; }
  .s-m { grid-column: 1 / -1; }
  .ap-side { position: relative; top: 0; }
  .altimeter { display: none; }
  .nums { grid-template-columns: 1fr 1fr; }
  .num { border-right: 0; margin-right: 0; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
  .num:nth-child(odd) { border-right: 1px solid var(--line); margin-right: 5vw; }
}
@media (max-width: 720px) {
  .hero-f { flex-direction: column; align-items: flex-start; gap: 24px; }
  .gl .hero { justify-content: flex-start; padding-top: 22vh; }
  .hero-t { font-size: clamp(3.6rem, 17vw, 6rem); }
  .gl .view-h { padding-top: 12vh; }
  .gl .view-h .view-p { font-size: .95rem; }
  .gl .legend { left: var(--gutter); right: auto; bottom: 9vh; gap: 14px; flex-wrap: wrap; }
  .gl .legend span:not(.lg-y) { display: none; }
  .gl .alt { top: auto; bottom: 74px; transform: none; }
  .pin-card { max-width: 170px; padding: 8px 10px; }
  .pin-card span { font-size: 1rem; }
  .pin-card small { display: none; }
  .wp-t { display: none; }
  .nz.hl { font-size: 1.05rem; }
  .num dd { font-size: 3.6rem; }
  .s { padding: 34px 0 30px; }
  .quote blockquote { text-indent: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cue i { animation: none; }
}
