/* Offshore Allies */
:root {
  --carbon: #0b0b0d; --black: #000; --graphite: #17181c; --alu: #9ba0a6; --bone: #ece6da;
  --violet: #4a17a6; --violet-hi: #a48bff; --line: rgba(236, 230, 218, .14);
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --text: 'Instrument Sans', system-ui, sans-serif;
  --pad: clamp(1.25rem, 3.4vw, 3.5rem);
  --nav-h: 4.5rem;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); color: var(--bone); -webkit-text-size-adjust: 100%; scrollbar-color: #2a2b31 #000; }
body { margin: 0; font: 400 1.0625rem/1.55 var(--text); background: var(--black); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 4px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 300; background: var(--bone); color: #000; padding: .6rem 1rem; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- type ---------- */
.d { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .84; letter-spacing: -.005em; }
.h-xl { font: 900 clamp(3.4rem, 11vw, 12.5rem)/.82 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.h-lg { font: 800 clamp(2.6rem, 6.4vw, 6.75rem)/.86 var(--display); text-transform: uppercase; }
.h-md { font: 800 clamp(1.7rem, 3vw, 2.75rem)/.95 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.statement { font: 700 clamp(1.9rem, 4.5vw, 4.9rem)/.98 var(--display); text-transform: uppercase; letter-spacing: .002em; text-wrap: balance; }
.lede { font-size: clamp(1.15rem, 1.55vw, 1.45rem); line-height: 1.42; color: var(--bone); max-width: 34em; }
.prose { max-width: 36em; color: #c9c5bc; }
.prose p + p { margin-top: 1.05em; }
.prose strong { color: var(--bone); font-weight: 600; }
.tag { font: 500 .875rem/1.2 var(--text); font-stretch: 85%; color: var(--alu); letter-spacing: .01em; }
.tag b { color: var(--bone); font-weight: 600; }
.outline { color: transparent; -webkit-text-stroke: 1.5px rgba(236, 230, 218, .55); }
.split-line { overflow: hidden; display: block; padding-top: .04em; }
/* SplitText reveal masks clip to the line box; leave headroom so accents (Azúcar, Michaël) are not cut off */
.ch-mask, .ln-mask { padding-top: .3em; margin-top: -.3em; }

/* ---------- buttons / links ---------- */
.btn { display: inline-flex; align-items: center; gap: .9rem; min-height: 3.25rem; padding: .7rem 1.5rem; border: 1px solid rgba(236, 230, 218, .45); border-radius: 999px;
  font: 600 .95rem/1 var(--text); text-decoration: none; color: var(--bone); position: relative; overflow: hidden; isolation: isolate; transition: color .35s var(--ease), border-color .35s; pointer-events: auto; }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--bone); transform: translateY(101%); transition: transform .45s var(--ease); z-index: -1; }
.btn:hover, .btn:focus-visible { color: #000; border-color: var(--bone); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn--v { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn--onv { border-color: rgba(236, 230, 218, .6); color: var(--bone); }
.btn--onv:hover, .btn--onv:focus-visible { color: var(--violet); border-color: var(--bone); }
.btn i { width: .6rem; height: .6rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); flex: none; }
.btn i.ne { transform: none; }
.ulink { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: .15em; transition: background-size .4s var(--ease); pointer-events: auto; }
.ulink:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- preloader ---------- */
.pre { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.pre-half { position: absolute; left: 0; right: 0; height: 50.2%; overflow: hidden; background: #000; }
.pre-half.t { top: 0; } .pre-half.b { bottom: 0; }
.pre-in { position: absolute; left: 0; right: 0; height: 100vh; height: 100svh; }
.pre-half.t .pre-in { top: 0; } .pre-half.b .pre-in { bottom: 0; }
.pre-num { position: absolute; right: var(--pad); bottom: -0.06em; font: 900 min(46vw, 78vh)/.8 var(--display); letter-spacing: -.02em; color: var(--bone); font-variant-numeric: tabular-nums; }
.pre-mark { position: absolute; left: var(--pad); top: 1.5rem; display: flex; align-items: center; gap: .9rem; font: 800 1.15rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.pre-mark img { width: 3.4rem; }
.pre-note { position: absolute; left: var(--pad); bottom: 2rem; max-width: 15em; font: 700 clamp(1.3rem, 2.4vw, 2.2rem)/.95 var(--display); text-transform: uppercase; color: var(--alu); }
.pre-bar { position: absolute; left: 0; top: 50%; height: 2px; width: 100%; background: var(--violet); transform-origin: 0 50%; transform: scaleX(0); z-index: 2; }
.pre.quick .pre-num { font-size: min(17vw, 40vh); right: var(--pad); left: var(--pad); bottom: 50%; transform: translateY(50%); text-wrap: balance; }
.pre.quick .pre-note { display: none; }
html.pre-done .pre { display: none; }
/* first-visit preloader: the mark forms in the open space above the seam (see logoParticles in app.js) */
.pre-logo { position: absolute; left: var(--pad); top: calc(50vh - 2.2rem); top: calc(50svh - 2.2rem); transform: translateY(-100%);
  width: min(30vw, 26rem, (50vh - 9rem) * 1.34); aspect-ratio: 1101 / 822; }
.pre.logo .pre-mark img { display: none; }
@media (max-width: 899px) { .pre-note { bottom: auto; top: calc(50svh + 1.4rem); } .pre-logo { left: 50%; translate: -50% 0; width: min(64vw, 18rem, (50svh - 8rem) * 1.34); } }

/* ---------- stage + back type ---------- */
.stage { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 2; display: block; opacity: 0; outline: none; }
.backtype { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.bt-hero { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 3vh); padding: 0 calc(var(--pad) * .8); }
.bt-line { display: block; font: 900 11.9vw/.84 var(--display); text-transform: uppercase; white-space: nowrap; letter-spacing: -.012em; will-change: transform; }
.bt-line.r { text-align: right; }
.bt-fleet { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.bt-track { position: absolute; top: calc(var(--nav-h) + 2vh); left: 0; display: block; will-change: transform; }
.bt-name { position: absolute; top: 0; width: 100vw; padding: 0 calc(var(--pad) * .8); font: 900 24vw/.82 var(--display); text-transform: uppercase; white-space: nowrap; letter-spacing: -.012em; }
.bt-name.two { font-size: 19.4vw; white-space: normal; }
.no-webgl .stage { display: none; }
.fallback-boat { display: none; }
.no-webgl .fallback-boat { display: block; position: absolute; right: 0; bottom: 0; width: min(70vw, 60rem); opacity: .7; z-index: 1; clip-path: polygon(30% 0, 44% 0, 62% 22%, 78% 48%, 91% 74%, 100% 96%, 100% 100%, 20% 100%); }

/* ---------- header ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); pointer-events: none; transition: transform .5s var(--ease); }
.nav > * { pointer-events: auto; }
.nav.is-hidden { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font: 800 1.2rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.brand img { width: 3rem; height: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); font: 500 .95rem/1 var(--text); }
.nav-links a { text-decoration: none; position: relative; padding: .5rem 0; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: .1rem; height: 2px; background: var(--violet-hi); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .4s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-links .btn { min-height: 2.6rem; padding: .5rem 1.15rem; }
.menu-btn { display: none; align-items: center; gap: .7rem; font: 600 .95rem/1 var(--text); min-height: 2.75rem; padding: 0 .25rem; }
.menu-btn span { display: block; width: 1.7rem; height: 2px; background: currentColor; box-shadow: 0 6px 0 currentColor; transform: translateY(-3px); transition: .3s; }
.menu { position: fixed; inset: 0; z-index: 55; background: #000; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 1rem) var(--pad) 2rem; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease), visibility 0s .7s; overflow-y: auto; }
.menu.is-open { visibility: visible; clip-path: inset(0); transition: clip-path .7s var(--ease); }
.menu nav a { display: block; text-decoration: none; font: 900 clamp(2.6rem, 13vw, 5.5rem)/.9 var(--display); text-transform: uppercase; padding: .12em 0; border-top: 1px solid var(--line); }
.menu nav a small { display: block; font: 500 .85rem/1.2 var(--text); text-transform: none; color: var(--alu); margin-top: .2rem; }
.menu nav a.v { color: var(--violet-hi); }
.menu-foot { margin-top: 1.5rem; color: var(--alu); font-size: .9rem; }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; width: 0; height: 0; }
.cursor i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--bone); mix-blend-mode: difference; transition: transform .35s var(--ease), background .3s, opacity .3s; display: grid; place-items: center; }
.cursor b { position: absolute; left: -45px; top: -45px; width: 90px; height: 90px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font: 600 .8rem/1 var(--text); transform: scale(0); transition: transform .4s var(--ease); }
.cursor.is-link i { transform: scale(4.2); }
.cursor.is-drag i { opacity: 0; }
.cursor.is-drag b { transform: scale(1); }
.cursor.is-down b { transform: scale(.8); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- page transition ---------- */
.wipe { position: fixed; inset: 0; z-index: 180; pointer-events: none; visibility: hidden; }
.wipe div { position: absolute; inset: 0; transform: translateY(101%); }
.wipe .w1 { background: var(--violet); } .wipe .w1.carbon-v { background: var(--violet) url(../assets/tex/carbon-v-a.webp) 0 0 / 28px 28px; } .wipe .w2 { background: #000; display: grid; align-items: center; padding: 0 var(--pad); }
.wipe span { font: 900 min(17vw, 40vh)/.84 var(--display); text-transform: uppercase; text-wrap: balance; overflow-wrap: break-word; }

/* ---------- layout ---------- */
main { position: relative; z-index: 3; }
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
section { position: relative; }
.pt { padding-top: clamp(5rem, 13vw, 12rem); } .pb { padding-bottom: clamp(5rem, 13vw, 12rem); }
.solid { background: #000; }

/* hero (home + vessel) */
.hero { height: 100vh; height: 100svh; min-height: 34rem; pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; padding: 0 var(--pad) clamp(1.5rem, 4vh, 3rem); }
.hero-copy { max-width: 30rem; }
.hero-copy .lede { margin-bottom: 1.4rem; text-shadow: 0 0 24px #000, 0 0 6px #000; }
.hero-copy .tag { margin-bottom: .7rem; display: block; }
.hero-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; text-align: right; }
.cue { display: flex; align-items: center; gap: .8rem; color: var(--alu); font-size: .9rem; }
.cue::after { content: ''; width: 1px; height: 3.2rem; background: linear-gradient(var(--bone), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: 50% 0; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hero-big { font: 900 clamp(2.2rem, 4.6vw, 4.6rem)/.9 var(--display); text-transform: uppercase; margin-bottom: 1rem; text-shadow: 0 0 30px #000; }

/* mission */
.mission { padding: clamp(6rem, 16vw, 15rem) var(--pad); }
.mission .tag { display: block; margin-bottom: 2rem; }
.mission .statement { max-width: 17em; }
[data-fill] .w { opacity: .16; }

/* giant word rows */
.words { padding: clamp(2rem, 6vw, 6rem) 0 clamp(5rem, 12vw, 11rem); overflow: hidden; }
.word-row { position: relative; margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.mask-word { display: block; width: max-content; font: 900 19.6vw/.8 var(--display); text-transform: uppercase; letter-spacing: -.015em; white-space: nowrap; color: var(--bone);
  background: #333 center / cover no-repeat; will-change: transform; padding: .03em .02em 0; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) { .mask-word { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; } }
.word-row:nth-child(odd) .mask-word { transform-origin: 0 50%; rotate: -1.6deg; }
.word-row:nth-child(even) .mask-word { transform-origin: 100% 50%; rotate: 1.4deg; }
.word-info { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 24rem); gap: 1rem 2.5rem; align-items: start; padding: 1.4rem var(--pad) 0; }
.word-row:nth-child(even) .word-info { justify-content: end; }
.word-info h3 { font: 800 clamp(1.5rem, 2.2vw, 2.1rem)/.95 var(--display); text-transform: uppercase; }
.word-info p { color: #c9c5bc; }

/* fleet (horizontal) */
.fleet-head { padding: 0 var(--pad) clamp(2rem, 4vw, 4rem); display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.fleet-pin { position: relative; overflow: hidden; pointer-events: none; }
.fleet-track { display: flex; flex-direction: column; gap: 5rem; padding: 0 var(--pad); }
.fp-name { font: 900 clamp(3.4rem, 17vw, 8rem)/.84 var(--display); text-transform: uppercase; margin-bottom: 1.2rem; }
.fp-info { max-width: 27rem; }
.fp-info .tag { display: block; margin-bottom: .8rem; }
.fp-info p { color: #d3cfc6; margin-bottom: 1.5rem; }
.fp-sail { position: relative; }
.fp-sail .sail { width: min(78vw, 24rem); margin-top: 2rem; }
.fleet-rail { display: none; }

/* sail-shaped photo clips */
.sail { position: relative; aspect-ratio: 3 / 4.3; clip-path: polygon(27% 0, 43% 0, 60% 21%, 76% 47%, 90% 73%, 100% 95%, 100% 100%, 16% 100%); overflow: hidden; background: var(--graphite); }
.sail--jib { clip-path: polygon(94% 0, 100% 0, 100% 100%, 0 100%, 22% 80%, 52% 49%, 76% 23%); }
.sail img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.shot { position: relative; overflow: hidden; background: var(--graphite); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
figcaption { margin-top: .7rem; color: var(--alu); font-size: .85rem; }

/* chapters (vessel pages) */
.chapter { padding: clamp(5rem, 12vw, 11rem) var(--pad); }
.ch-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2vw, 2rem); align-items: start; }
.ch-grid > * { grid-column: 1 / -1; }
.ch-head { margin-bottom: clamp(2rem, 5vw, 4.5rem); }
.ch-head .tag { display: block; margin-bottom: 1rem; }
.figs { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 5rem); margin: clamp(2rem, 5vw, 4rem) 0; }
.fig b { display: block; font: 900 clamp(4rem, 12vw, 11rem)/.8 var(--display); letter-spacing: -.015em; }
.fig b small { font-size: .32em; letter-spacing: 0; margin-left: .12em; color: var(--violet-hi); }
.fig span { display: block; margin-top: .7rem; color: var(--alu); max-width: 15em; font-size: .95rem; }
.band { position: relative; height: clamp(18rem, 62vw, 46rem); overflow: hidden; }
.band img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#000, transparent 22%, transparent 72%, #000); }
.band-cap { position: absolute; left: var(--pad); bottom: 1.5rem; z-index: 2; color: var(--bone); font-size: .9rem; text-shadow: 0 0 12px #000; }
.slide-lines { overflow: hidden; padding: 1rem 0; }
.slide-lines span { display: block; width: max-content; font: 900 clamp(3.2rem, 13.5vw, 15rem)/.84 var(--display); text-transform: uppercase; white-space: nowrap; padding: 0 var(--pad); will-change: transform; }
.rule { height: 1px; background: var(--line); margin: 0 var(--pad); }
.timeline { border-top: 1px solid var(--line); margin-top: clamp(2rem, 5vw, 4rem); }
.timeline li { display: grid; grid-template-columns: minmax(5.5rem, 16vw) minmax(0, 1fr); gap: 1rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline b { font: 900 clamp(2.2rem, 5vw, 4.5rem)/.85 var(--display); }
.timeline h3 { font: 800 clamp(1.4rem, 2.4vw, 2.2rem)/.95 var(--display); text-transform: uppercase; margin-bottom: .35rem; }
.timeline p { color: #c9c5bc; max-width: 34em; }

/* marquee */
.marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .5rem 0 .35rem; }
.marquee div { display: inline-flex; animation: mq 34s linear infinite; }
.marquee span { font: 900 clamp(2.6rem, 7vw, 6.5rem)/1 var(--display); text-transform: uppercase; padding-right: .5em; }
.marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px rgba(236, 230, 218, .5); }
@keyframes mq { to { transform: translateX(-50%); } }

/* x-ray (WRAITH II transformation) */
.xray { pointer-events: none; }
.xray-steps { padding: 0 var(--pad); display: grid; gap: 3.5rem; }
.xstep { max-width: 27rem; }
.xstep h3 { font: 800 clamp(2rem, 3.6vw, 3.4rem)/.9 var(--display); text-transform: uppercase; margin-bottom: 1rem; }
.xstep p { color: #d3cfc6; }
.xstep p + p { margin-top: .9em; }
.xray-rail, .xray-note { display: none; }
.spots { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.spot { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .5s; }
.spot.is-on:not(.is-off) { opacity: 1; }
.spot i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--violet-hi); box-shadow: 0 0 0 6px rgba(164, 139, 255, .25), 0 0 24px 4px rgba(107, 43, 217, .9); }
.spot i::after { content: ''; position: absolute; inset: -12px; border: 1px solid var(--violet-hi); border-radius: 50%; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.spot span { position: absolute; left: 22px; top: -1.6rem; white-space: nowrap; font: 800 1.15rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; background: rgba(0, 0, 0, .72); padding: .35rem .6rem .3rem; border-left: 2px solid var(--violet-hi); }
.spot.l span { left: auto; right: 22px; border-left: 0; border-right: 2px solid var(--violet-hi); }

/* photo strips */
.strip { display: flex; align-items: flex-end; gap: clamp(1rem, 3vw, 3rem); padding: 0 var(--pad); width: max-content; will-change: transform; }
.strip figure { flex: none; }
.strip-wrap { overflow: hidden; padding: clamp(2rem, 5vw, 4rem) 0; }
.sailplan { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); gap: 1.5vw; align-items: end; max-width: 46rem; }

/* next vessel */
.next { position: relative; display: block; text-decoration: none; padding: clamp(3rem, 7vw, 6rem) var(--pad); border-top: 1px solid var(--line); overflow: hidden; pointer-events: auto; }
.next .tag { display: block; margin-bottom: .8rem; }
.next strong { display: block; width: max-content; font: 900 clamp(3.4rem, 14vw, 15rem)/.84 var(--display); text-transform: uppercase; white-space: nowrap; transition: transform .8s var(--ease), color .4s; }
.next:hover strong, .next:focus-visible strong { transform: translateX(2.5vw); color: var(--violet-hi); }

/* ally close */
.ally { background: var(--violet); color: var(--bone); padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; position: relative; }
.ally-big { display: block; text-decoration: none; font: 900 21.5vw/.8 var(--display); text-transform: uppercase; white-space: nowrap; letter-spacing: -.015em; padding: 0 calc(var(--pad) * .8); width: max-content; will-change: transform; }
.ally-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; padding: clamp(1.5rem, 3vw, 3rem) var(--pad) 0; }
.ally-row p { font: 700 clamp(1.5rem, 3vw, 2.9rem)/.98 var(--display); text-transform: uppercase; max-width: 14em; }
.ally-links { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: flex-end; }

/* ally page */
.ways { border-top: 1px solid var(--line); }
.way { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem clamp(1rem, 2vw, 2rem); padding: clamp(4rem, 9vw, 9rem) var(--pad); border-bottom: 1px solid var(--line); align-items: start; scroll-margin-top: 3rem; }
.way > * { grid-column: 1 / -1; }
.way h2 { margin-bottom: 1.5rem; }
.way .sub { font: 700 clamp(1.4rem, 2.4vw, 2.3rem)/.98 var(--display); text-transform: uppercase; color: var(--violet-hi); margin-bottom: 1.4rem; }
.way .btn { margin-top: 2rem; }
.way .note { margin-top: 1rem; font-size: .9rem; color: var(--alu); max-width: 30em; }
.way .note a { text-decoration: underline; text-underline-offset: .2em; }
.way--v { background: var(--violet); color: var(--bone); border-bottom: 0; }
.way--v .prose, .way--v .note { color: rgba(236, 230, 218, .86); } .way--v .sub { color: var(--bone); } .way--v .prose strong { color: #fff; }
.pledge { font: 900 clamp(2.6rem, 8.2vw, 9rem)/.82 var(--display); text-transform: uppercase; }
.hashtag { color: var(--violet-hi); font-weight: 600; }

/* footer */
.foot { background: var(--carbon); position: relative; z-index: 3; padding: clamp(3rem, 7vw, 6rem) var(--pad) 2rem; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 4vw, 4rem); }
.foot-logo img { width: min(100%, 19rem); }
.foot-logo p { font: 800 clamp(1.3rem, 2vw, 1.8rem)/.98 var(--display); text-transform: uppercase; margin-top: 1.2rem; max-width: 11em; }
.foot h2 { font: 500 .875rem/1.2 var(--text); color: var(--alu); margin-bottom: 1rem; }
.foot li + li { margin-top: .5rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--violet-hi); }
.foot address { font-style: normal; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--alu); font-size: .85rem; }

/* inspect mode */
.inspect-ui { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem var(--pad); visibility: hidden; opacity: 0; transition: opacity .4s, visibility 0s .4s; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.inspect-ui p { color: var(--alu); font-size: .9rem; max-width: 30em; }
.inspect-ui p b { display: block; font: 800 1.6rem/1 var(--display); text-transform: uppercase; color: var(--bone); margin-bottom: .3rem; }
.inspect-set { display: flex; flex-wrap: wrap; gap: .5rem; }
.inspect-set .btn { min-height: 2.75rem; padding: .5rem 1.1rem; }
.inspect-set .btn[aria-pressed="true"] { background: var(--bone); color: #000; }
body.inspect .inspect-ui { visibility: visible; opacity: 1; transition: opacity .4s; }
body.inspect main, body.inspect .foot, body.inspect .spots { opacity: 0; pointer-events: none; visibility: hidden; }
body.inspect .backtype { opacity: .16; }
body.inspect .stage { z-index: 40; opacity: 1 !important; cursor: grab; }
body.inspect .nav-links, body.inspect .menu-btn { visibility: hidden; }
body.inspect { overflow: hidden; }
main, .foot, .backtype { transition: opacity .5s; }

/* ---------- desktop (pinned horizontal fleet, xray) ---------- */
@media (min-width: 900px) {
  .ch-head.half { grid-column: 1 / 8; }
  .col-a { grid-column: 1 / 7; } .col-b { grid-column: 8 / 13; } .col-c { grid-column: 7 / 13; } .col-d { grid-column: 2 / 7; } .col-e { grid-column: 1 / 6; }
  .way h2 { grid-column: 1 / 7; margin: 0; } .way .way-body { grid-column: 7 / 12; } .way figure { grid-column: 1 / 6; }
  html.desk:not(.rm) .fleet-pin { height: 100vh; }
  html.desk:not(.rm) .fleet-track { flex-direction: row; gap: 0; padding: 0; height: 100%; width: max-content; will-change: transform; }
  html.desk:not(.rm) .fp { width: 100vw; height: 100%; flex: none; position: relative; }
  html.desk:not(.rm) .fp-info { position: absolute; left: var(--pad); bottom: clamp(2rem, 6vh, 4rem); }
  html.desk:not(.rm) .fp-info p { text-shadow: 0 0 20px #000, 0 0 6px #000; }
  html.desk:not(.rm) .fp-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  html.desk:not(.rm) .fp-sail { width: 70vw; height: 100%; flex: none; display: grid; place-items: center; }
  html.desk:not(.rm) .fp-sail .sail { height: 82vh; width: auto; margin: 4vh 0 0; }
  html.desk:not(.rm) .fleet-rail { display: flex; gap: .5rem; position: absolute; right: var(--pad); bottom: clamp(2rem, 6vh, 4rem); z-index: 3; align-items: center; color: var(--alu); font-size: .9rem; }
  html.desk:not(.rm) .fleet-rail i { display: block; width: 9rem; height: 2px; background: var(--line); position: relative; margin-left: .75rem; }
  html.desk:not(.rm) .fleet-rail i b { position: absolute; inset: 0; background: var(--violet-hi); transform-origin: 0 50%; transform: scaleX(0); }
  html.desk:not(.rm) .xray { height: 100vh; }
  html.desk:not(.rm) .xray-steps { display: block; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; padding: 0; }
  html.desk:not(.rm) .xstep { position: absolute; left: var(--pad); bottom: clamp(3rem, 9vh, 6rem); opacity: 0; visibility: hidden; text-shadow: 0 0 20px #000, 0 0 6px #000; }
  html.desk:not(.rm) .xray-rail { display: flex; flex-direction: column; gap: .6rem; position: absolute; right: var(--pad); top: 50%; translate: 0 -50%; }
  html.desk:not(.rm) .xray-rail i { display: block; width: 2px; height: 2.6rem; background: var(--line); transition: background .4s; }
  html.desk:not(.rm) .xray-rail i.is-on { background: var(--violet-hi); }
  html.desk:not(.rm) .xray-note { display: block; position: absolute; right: var(--pad); bottom: clamp(3rem, 9vh, 6rem); color: var(--alu); font-size: .85rem; text-align: right; max-width: 16em; }
}
@media (max-width: 899.98px) {
  .nav-links { display: none; } .menu-btn { display: inline-flex; }
  .brand span { display: none; }
  .hero-foot { grid-template-columns: 1fr; } .hero-tools { align-items: flex-start; text-align: left; } .cue { display: none; }
  .word-info { grid-template-columns: 1fr; } .word-row:nth-child(even) .word-info { justify-content: start; }
  .mask-word { font-size: 21vw; }
  .ally-row { grid-template-columns: 1fr; } .ally-links { justify-content: flex-start; }
  .foot-top { grid-template-columns: 1fr 1fr; } .foot-logo { grid-column: 1 / -1; }
  .timeline li { grid-template-columns: 1fr; gap: .2rem; }
  .bt-line { font-size: 21vw; white-space: normal; line-height: .82; } .bt-line.r { text-align: left; }
  .bt-name { font-size: 27vw; white-space: normal; } .bt-name.two { font-size: 21vw; }
  .bt-fleet { display: none; }
  .backtype { height: 100vh; height: 100lvh; }
  .spots { display: none; }
  .stage { height: 100lvh; }
}
html.rm .stage, html.rm .backtype { position: absolute; height: 100vh; height: 100svh; }
html.rm .bt-fleet, html.rm .spots, html.rm .cue::after { display: none; }
html.rm .marquee div { animation: none; }
html.rm [data-fill] .w { opacity: 1; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; } }

/* fleet photo placement: interlude sails on the pinned desktop track, inline sails elsewhere */
.fp-sail { display: none; }
.fp .sail.m { width: min(74vw, 22rem); margin: 0 0 1.5rem; }
@media (min-width: 900px) {
  html.desk:not(.rm) .fp-sail { display: grid; }
  html.desk:not(.rm) .fp .sail.m { display: none; }
}

/* per-page hero type scale */
.bt-line { font-size: var(--fs, 11.9vw); }
@media (max-width: 899.98px) { .bt-line { font-size: var(--fsm, 21vw); } }
/* xray in normal flow (mobile / reduced motion) */
.xray { padding: clamp(4rem, 10vw, 8rem) 0; }
.xray-steps .xstep { border-left: 2px solid var(--violet); padding-left: 1.25rem; }
@media (min-width: 900px) {
  html.desk:not(.rm) .xray { padding: 0; }
  html.desk:not(.rm) .xray-steps .xstep { border: 0; padding: 0; }
}
/* strips and small photos */
.strip figure img { height: clamp(15rem, 36vw, 32rem); width: auto; display: block; }
.strip figure.s img { height: clamp(9rem, 17vw, 15rem); }
html.rm .strip-wrap { overflow-x: auto; }
.way figure img { width: 100%; height: auto; display: block; }
.way figure.s { max-width: 24rem; }
.mask-word.xl { font-size: 36vw; }
.intro-name { font: 900 clamp(3rem, 10vw, 10.5rem)/.82 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.chapter.tight { padding-top: 0; }
.center-line { font: 900 clamp(2.4rem, 7.4vw, 8rem)/.84 var(--display); text-transform: uppercase; padding: clamp(3rem, 8vw, 7rem) var(--pad); }

html.is-dragging, html.is-dragging * { user-select: none; -webkit-user-select: none; }
@media (min-width: 900px) {
  html.desk:not(.rm) .xray-steps::before { content: ''; position: absolute; left: 0; bottom: 0; width: 52%; height: 62%; background: radial-gradient(ellipse at 0 100%, rgba(0, 0, 0, .88), rgba(0, 0, 0, .55) 45%, transparent 72%); }
}

/* nav backdrop: keeps the header legible over photo-filled lettering and the model */
.nav::before {
  content: ''; position: absolute; inset: 0 0 -2.5rem; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .7) 55%, rgba(0, 0, 0, 0) 100%);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent);
}
body.inspect .nav::before, body.menu-open .nav::before { display: none; }

/* portrait beside a bio */
.portrait { max-width: 22rem; margin-bottom: 2rem; }
.portrait .shot { aspect-ratio: 682 / 1024; }

/* carbon fibre: two lighting states of a 2/2 twill cross-fade with scroll and pointer (--flip, set in app.js),
   so the weave shimmers like real carbon. The element must already be positioned. */
.carbon, .carbon-v { isolation: isolate; background: #0d0d10 url(../assets/tex/carbon-a.webp) 0 0 / 28px 28px; }
.carbon-v { background: var(--violet) url(../assets/tex/carbon-v-a.webp) 0 0 / 28px 28px; }
.carbon::before, .carbon-v::before, .carbon::after, .carbon-v::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.carbon::before { background: url(../assets/tex/carbon-b.webp) 0 0 / 28px 28px; opacity: var(--flip, .5); }
.carbon-v::before { background: url(../assets/tex/carbon-v-b.webp) 0 0 / 28px 28px; opacity: var(--flip, .5); }
.carbon::after, .carbon-v::after { background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .055) 45%, rgba(255, 255, 255, .02) 55%, transparent 75%) 0 0 / 300% 100% no-repeat; background-position: calc(var(--flip, .5) * 100%) 0; }
.carbon-v::after { background-image: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .09) 45%, rgba(255, 255, 255, .03) 55%, transparent 75%); }

/* contact form (become-an-ally.html#contact) */
.contact { padding: clamp(4rem, 9vw, 9rem) var(--pad); border-top: 1px solid var(--line); scroll-margin-top: 3rem; }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem clamp(1rem, 2vw, 2rem); align-items: start; }
.contact-grid > * { grid-column: 1 / -1; }
.contact .lede { margin-top: 1.5rem; }
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem 1.5rem; }
.form .full { grid-column: 1 / -1; }
.field label, .field .label { display: block; font: 500 .875rem/1.2 var(--text); color: var(--alu); margin-bottom: .5rem; }
.field label i { font-style: normal; color: var(--violet-hi); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--text); color: var(--bone); background: rgba(236, 230, 218, .04); border: 1px solid rgba(236, 230, 218, .22); border-radius: 4px; padding: .85rem 1rem; transition: border-color .3s, background .3s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--alu) 50%), linear-gradient(135deg, var(--alu) 50%, transparent 50%); background-position: calc(100% - 1.2rem) 55%, calc(100% - .85rem) 55%; background-size: .35rem .35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.field select option { background: #111; color: var(--bone); }
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet-hi); background: rgba(236, 230, 218, .07); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff8b8b; }
.drop { position: relative; display: grid; gap: .35rem; place-items: center; text-align: center; padding: 1.75rem 1rem; border: 1px dashed rgba(236, 230, 218, .32); border-radius: 4px; color: var(--alu); font-size: .95rem; transition: border-color .3s, background .3s; }
.drop b { color: var(--bone); font-weight: 600; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:hover, .drop.is-over, .drop:focus-within { border-color: var(--violet-hi); background: rgba(164, 139, 255, .06); }
.files { margin-top: .6rem; display: grid; gap: .3rem; font-size: .9rem; color: #c9c5bc; }
.files li { display: flex; justify-content: space-between; gap: 1rem; }
.files li span { color: var(--alu); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-foot .btn[disabled] { opacity: .6; pointer-events: none; }
.status { font-size: .95rem; color: var(--alu); max-width: 34em; }
.status.ok { color: #b7f5c8; } .status.err { color: #ffb4b4; }
@media (min-width: 900px) {
  .contact-grid .contact-intro { grid-column: 1 / 6; } .contact-grid .form { grid-column: 7 / 13; }
}
@media (max-width: 599.98px) { .form { grid-template-columns: 1fr; } }
