/* The Innovation Hub. A cinematic film carries the page; the page is type, light and space.
   One family (Roboto Flex, self-hosted) through its width and weight axes. */
@font-face { font-family: "Roboto Flex"; font-style: normal; font-display: swap; font-weight: 100 1000; font-stretch: 25% 151%;
  src: url("fonts/roboto-flex-greek-full-normal.woff2") format("woff2-variations");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Roboto Flex"; font-style: normal; font-display: swap; font-weight: 100 1000; font-stretch: 25% 151%;
  src: url("fonts/roboto-flex-latin-ext-full-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto Flex"; font-style: normal; font-display: swap; font-weight: 100 1000; font-stretch: 25% 151%;
  src: url("fonts/roboto-flex-latin-full-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

:root {
  --ink: #000;
  --bone: #ecebe6;
  --soft: #b0b1aa;
  --dim: #74766f;
  --lime: #c6ff3d;
  --err: #ff9d8a;
  --gut: clamp(20px, 5vw, 88px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: "Roboto Flex", "Helvetica Neue", Arial, sans-serif;
  font-variation-settings: "wdth" 100, "opsz" 16;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
img { display: block; max-width: 100%; }
.lime { color: var(--lime); }

/* ---------- the stage: one film behind everything ---------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
body.is-ready .stage { opacity: 1; }
.cam { position: absolute; inset: 0; }
.film { position: absolute; inset: 0; display: block; }
.flash { position: absolute; inset: 0; opacity: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(232,255,180,0.55), rgba(198,255,61,0.12) 45%, rgba(0,0,0,0) 75%); mix-blend-mode: screen; }
.flash.go { animation: flash 1.1s ease-out; }
@keyframes flash { 0% { opacity: 0; } 8% { opacity: 1; } 100% { opacity: 0; } }
.grain { position: fixed; inset: -50%; z-index: 30; pointer-events: none; opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); } 50% { transform: translate(2%,-3%); } 75% { transform: translate(-2%,-1%); } 100% { transform: translate(0,0); } }
main, .foot { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gut) 18px; transition: background 0.5s; }
.nav.is-solid { background: linear-gradient(rgba(0,0,0,0.85) 30%, rgba(0,0,0,0)); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { width: 42px; height: 42px; mix-blend-mode: lighten; }
.brand .brand-word { width: 96px; height: auto; }
.nav-r { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 16px; background: rgba(0,0,0,0.35); color: var(--bone); border: 1px solid rgba(236,235,230,0.3); border-radius: 0; font: inherit; font-variation-settings: "wdth" 112, "wght" 560; font-size: 15px; cursor: pointer; transition: border-color 0.3s, color 0.3s; }
.menu-btn:hover { border-color: var(--lime); color: var(--lime); }
.auto { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 14px; background: rgba(0,0,0,0.35); color: var(--bone); border: 1px solid rgba(236,235,230,0.3); border-radius: 0; font: inherit; font-variation-settings: "wdth" 112, "wght" 560; font-size: 15px; cursor: pointer; transition: border-color 0.3s, color 0.3s; }
.auto[hidden] { display: none; }
.auto:hover { border-color: var(--lime); color: var(--lime); }
.auto::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 2px; background: var(--lime); transform: scaleX(var(--ap, 0)); transform-origin: 0 50%; }
.auto-ico { width: 16px; height: 16px; flex: none; overflow: visible; }
.auto-ico path { display: none; }
.auto-ico .i-pause, .auto-ico .i-play { fill: currentColor; }
.auto-ico .i-again { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.auto[data-state="play"] .i-pause, .auto[data-state="pause"] .i-play, .auto[data-state="done"] .i-again { display: block; }
.menu-open .auto:not([data-state="done"]) { opacity: 0; pointer-events: none; }
.menu .mi:focus-visible { outline: none; } /* the item itself lights up instead */
body.rewind main, body.rewind .stage { opacity: 0 !important; transition: opacity 0.35s ease !important; }
.mb-ico { position: relative; width: 18px; height: 10px; }
.mb-ico i { position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.mb-ico i:first-child { top: 0; }
.mb-ico i:last-child { top: 8.5px; }
.menu-open .mb-ico i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-open .mb-ico i:last-child { top: 4.25px; transform: rotate(-45deg); }
.menu-open .nav { background: none; }
.menu-open .nav .cta { opacity: 0; pointer-events: none; }
.link { position: relative; font-variation-settings: "wdth" 112, "wght" 560; font-size: 15px; text-decoration: none; padding: 10px 0; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform-origin: right; transform: scaleX(0.35); transition: transform 0.5s var(--ease), background 0.3s; }
.link:hover::after { transform: scaleX(1); transform-origin: left; background: var(--lime); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(env(safe-area-inset-top, 0px) + 120px) var(--gut) clamp(36px, 7vh, 72px); }
.hero::before, .join::before { content: ""; position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(rgba(0,0,0,0), #000 18%, #000 82%, rgba(0,0,0,0)); mask-image: linear-gradient(rgba(0,0,0,0), #000 18%, #000 82%, rgba(0,0,0,0)); }
.hero::before { background: linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 34%, rgba(0,0,0,0) 56%); -webkit-mask-image: linear-gradient(#000 70%, rgba(0,0,0,0)); mask-image: linear-gradient(#000 70%, rgba(0,0,0,0)); }
.hero-copy { max-width: none; }
.hero-intro { max-width: 34ch; margin: 0 0 28px; color: var(--soft); font-size: 18px; opacity: 0; }
.title { margin: 0; text-transform: uppercase; font-weight: 400; font-size: clamp(40px, min(7.4vw, calc((100vw - 2 * var(--gut)) / 6.7), calc((100svh - 390px) / 3.6), max(5.4vw, calc((70vw - max(17.8vw, 31.7vh) - 24px - var(--gut)) / 6.3))), 136px); line-height: 0.9; letter-spacing: -0.012em; }
.w { display: block; font-variation-settings: "wdth" 25, "wght" 300, "opsz" 144; opacity: 0; }
.title .tw { white-space: nowrap; } /* a word is never split across two lines */
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 32px; opacity: 0; }
body.is-ready .w { animation: widen 1.8s var(--ease) 0.5s both; }
body.is-ready .w + .w { animation-delay: 0.65s; }
body.is-ready .hero-intro { animation: rise 1.2s var(--ease) 1.1s both; }
body.is-ready .hero-cta { animation: rise 1.2s var(--ease) 1.3s both; }
@keyframes widen {
  from { font-variation-settings: "wdth" 25, "wght" 300, "opsz" 144; opacity: 0; }
  20% { opacity: 1; }
  to { font-variation-settings: "wdth" 151, "wght" 840, "opsz" 144; opacity: 1; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cue { position: absolute; right: var(--gut); bottom: clamp(36px, 7vh, 72px); margin: 0; display: flex; align-items: center; gap: 14px; color: var(--soft); font-size: 14px; font-variation-settings: "wdth" 112, "wght" 500; opacity: 0; }
body.is-ready .cue { animation: rise 1.2s var(--ease) 2s both; }
.cue b { font-weight: inherit; }
.cue span { position: relative; width: 1px; height: 48px; background: rgba(236,235,230,0.18); overflow: hidden; }
.cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--lime); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

.go { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--lime); text-decoration: none; font-variation-settings: "wdth" 125, "wght" 680; font-size: 20px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.4s var(--ease); }
.go:hover svg { transform: translateX(6px); }
.go.ghost { color: var(--bone); }

/* ---------- the connection sequence (pinned while the film plays) ---------- */
.seq { height: 400vh; }
.seq-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: flex-end; padding: 0 var(--gut) clamp(40px, 9vh, 96px); }
.shade { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 22%, rgba(0,0,0,0) 42%); }
.story { position: relative; width: min(100%, 13em); font-size: clamp(30px, 3.9vw, 62px); line-height: 1.04; letter-spacing: -0.01em; min-height: 3.3em; }
.line { position: absolute; left: 0; bottom: 0; margin: 0; font-variation-settings: "wdth" 118, "wght" 600, "opsz" 72; text-wrap: balance; opacity: 0; filter: blur(8px); transform: translateY(0.35em); transition: opacity 0.7s, transform 0.9s var(--ease), filter 0.9s var(--ease); }
.line.is-on { opacity: 1; filter: none; transform: none; }
.line-big { font-variation-settings: "wdth" 130, "wght" 760, "opsz" 72; }

/* ---------- the six ports: the camera visits each socket ---------- */
.ports { position: relative; height: 260vh; }
.ports-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.ports-pin::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 38%, rgba(0,0,0,0) 58%); }
.h2 { margin: 0; font-weight: 400; font-variation-settings: "wdth" 125, "wght" 720, "opsz" 72; font-size: clamp(32px, 3.6vw, 56px); line-height: 1; letter-spacing: -0.01em; text-wrap: balance; }
.h2.big { font-size: clamp(40px, 5.4vw, 92px); line-height: 0.95; }
.kick { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; color: var(--soft); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-variation-settings: "wdth" 120, "wght" 600; }
.kick::before { content: ""; width: 34px; height: 1px; background: var(--lime); }
.pi { position: absolute; left: var(--gut); bottom: clamp(56px, 13vh, 130px); width: min(44vw, 640px); visibility: hidden; }
.pi.is-on { visibility: visible; }
.pi > * { opacity: 0; transform: translateY(28px); filter: blur(10px); transition: opacity 0.5s, transform 0.8s var(--ease), filter 0.8s var(--ease); }
.pi.is-on > * { opacity: 1; transform: none; filter: none; transition: opacity 0.7s, transform 1s var(--ease), filter 1s var(--ease); }
.pi.is-on > :nth-child(2) { transition-delay: 0.08s; }
.pi.is-on > :nth-child(3) { transition-delay: 0.16s; }
.ports-sub { color: var(--soft); max-width: 42ch; margin: 26px 0 0; font-size: 18px; }
.port-n { color: var(--lime); }
.port-t { margin: 0; font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 4.4vw, 78px); line-height: 0.92; letter-spacing: -0.005em; text-wrap: balance; font-variation-settings: "wdth" 60, "wght" 420, "opsz" 144; transition: font-variation-settings 1.4s var(--ease); }
.pi.is-on .port-t { font-variation-settings: "wdth" 132, "wght" 800, "opsz" 144; }
.port-d { color: var(--soft); max-width: 38ch; margin: 24px 0 0; font-size: 19px; }
.rail { position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; opacity: 0; pointer-events: none; transition: opacity 0.5s; }
.rail.is-on { opacity: 1; pointer-events: auto; }
.rl { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 44px; min-height: 36px; padding: 0; background: none; border: 0; color: var(--dim); font: inherit; font-size: 13px; font-variation-settings: "wdth" 112, "wght" 600; cursor: pointer; transition: color 0.3s; }
.rl::after { content: ""; width: 14px; height: 1px; background: currentColor; transition: width 0.5s var(--ease); }
.rl:hover { color: var(--bone); }
.rl.is-on { color: var(--lime); }
.rl.is-on::after { width: 38px; }

/* the window a socket opens onto its world */
.win { --o: 0; --d: min(48vh, 36vw); position: absolute; left: 0; top: 0; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); pointer-events: none; will-change: transform; }
.win-ph { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; clip-path: circle(calc(var(--o) * 50%) at 50% 50%); background: #000; }
.wp, .mp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s; }
.wp { transform: scale(calc(1.25 - var(--o) * 0.25)); }
.wp.on, .mp.on { opacity: 1; }
.win-ring { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); overflow: visible; fill: none; transform: scale(var(--o)) rotate(calc(var(--o) * 90deg)); opacity: var(--o); }
.win-ring .r1 { stroke: var(--lime); stroke-width: 0.6; }
.win-ring .r2 { stroke: rgba(198,255,61,0.55); stroke-width: 0.5; stroke-dasharray: 0.6 3.2; transform-origin: 100px 100px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* the hub as a map: a label on every socket */
.hud { position: absolute; inset: 0; }
.tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; margin: 0; white-space: nowrap; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-variation-settings: "wdth" 115, "wght" 600; color: var(--bone); opacity: 0; transition: opacity 0.5s; will-change: transform; }
.tag::before { content: ""; width: 10px; height: 10px; flex: none; border: 1.5px solid var(--lime); transform: rotate(45deg); }
.tag-t::before { content: ""; display: inline-block; vertical-align: middle; width: 36px; height: 1px; margin: 0 10px 0 0; background: rgba(198,255,61,0.6); }
.tag.l { flex-direction: row-reverse; }
.tag.l .tag-t::before { display: none; }
.tag.l .tag-t::after { content: ""; display: inline-block; vertical-align: middle; width: 36px; height: 1px; margin: 0 0 0 10px; background: rgba(198,255,61,0.6); }
.tag-n { color: var(--lime); }
.tag.on { opacity: 1; transition-delay: calc(var(--i) * 0.07s); }
@media (min-width: 900px) {
  /* beside the form the names wrap onto two lines */
  .hud.wrap .tag { white-space: normal; }
  .hud.wrap .tag-t { display: flex; align-items: center; max-width: 15em; line-height: 1.3; }
  .hud.wrap .tag.l .tag-t { text-align: right; }
  .hud.wrap .tag-t::before, .hud.wrap .tag-t::after { flex: none; width: 24px; }
  /* the form keeps to the left third, the named hub takes the rest */
  main .join > * { max-width: min(660px, 34vw); }
  .join .join-title { font-size: clamp(36px, 3.6vw, 74px); }
}

/* the six worlds open together around the hub */
.bubs { position: absolute; inset: 0; --bd: 120px; }
.bub { position: absolute; left: 0; top: 0; width: var(--bd); height: var(--bd); margin: calc(var(--bd) / -2) 0 0 calc(var(--bd) / -2); will-change: transform; }
.bub-ph { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #000; clip-path: circle(0% at 50% 50%); transition: clip-path 0.5s var(--ease); }
.bub-ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); transition: transform 0.6s var(--ease); }
.bub-ring { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); overflow: visible; fill: none; stroke: var(--lime); stroke-width: 1.2; opacity: 0; transform: scale(0.4); transition: opacity 0.4s, transform 0.5s var(--ease); }
.bubs.on .bub-ph { clip-path: circle(50% at 50% 50%); transition: clip-path 1.1s var(--ease) calc(var(--i) * 0.03s); }
.bubs.on .bub-ph img { transform: scale(1); transition: transform 1.4s var(--ease) calc(var(--i) * 0.03s); }
.bubs.on .bub-ring { opacity: 1; transform: scale(1); transition: opacity 0.6s calc(var(--i) * 0.03s), transform 1.1s var(--ease) calc(var(--i) * 0.03s); }
.bub-t { position: absolute; left: 50%; top: calc(100% + 12px); width: 16em; margin: 0 0 0 -8em; text-align: center; font-size: 11px; line-height: 1.35; letter-spacing: 0.12em; text-transform: uppercase; font-variation-settings: "wdth" 115, "wght" 600; color: var(--bone); opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.4s var(--ease); }
.bub-n { margin-right: 0.7em; color: var(--lime); }
.bub-t, .tag { text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 0 14px rgba(0,0,0,0.85); }
.bubs.on .bub-t { opacity: 1; transform: none; transition: opacity 0.6s calc(0.35s + var(--i) * 0.03s), transform 0.8s var(--ease) calc(0.35s + var(--i) * 0.03s); }
@media (max-width: 899px) { .bub-tt { display: none; } .bub-t { top: calc(100% + 6px); } }

/* ---------- menu ---------- */
.menu { position: fixed; inset: 0; z-index: 40; background: #000; overflow-y: auto; overscroll-behavior: contain; clip-path: circle(0 at calc(100% - var(--gut) - 40px) 40px); transition: clip-path 0.9s var(--ease); }
.menu.open { clip-path: circle(150vmax at calc(100% - var(--gut) - 40px) 40px); }
.menu::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(236,235,230,0.035) 0 1px, transparent 1px calc((100% - 2 * var(--gut)) / 6)); background-position: var(--gut) 0; background-size: calc(100% - 2 * var(--gut)) 100%; background-repeat: no-repeat; }
.menu-grid { position: relative; min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 6vw; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + 110px) var(--gut) 56px; }
.mg { margin: 0 0 26px; }
.mg-t { margin: 0 0 8px; color: var(--dim); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-variation-settings: "wdth" 120, "wght" 600; }
.mi { display: flex; align-items: baseline; gap: 20px; padding: 6px 0; text-decoration: none; }
.mi-n { flex: none; width: 2.2ch; color: var(--lime); font-size: 14px; font-variation-settings: "wdth" 112, "wght" 600; }
.mi-t { font-size: clamp(24px, 2.8vw, 46px); line-height: 1.04; text-transform: uppercase; font-variation-settings: "wdth" 96, "wght" 560; transition: font-variation-settings 0.7s var(--ease), color 0.3s; }
.mi.is-hot .mi-t, .mi:focus-visible .mi-t { color: var(--lime); font-variation-settings: "wdth" 138, "wght" 780; }
.menu-side { display: flex; flex-direction: column; align-items: flex-start; gap: 36px; }
.menu-pic { position: relative; width: min(30vw, 46vh); aspect-ratio: 1; --o: 1; }
.menu-pic .mp { border-radius: 50%; }
.menu-pic .win-ring { transform: none; opacity: 1; }
.menu-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu-links .link { font-size: 17px; }
.menu-mail { color: var(--soft); font-size: 15px; }
.menu .mg-t, .menu .mi, .menu-side > * { opacity: 0; transform: translateY(24px); transition: opacity 0.4s, transform 0.6s var(--ease); }
.menu.open .mg-t, .menu.open .mi { opacity: 1; transform: none; transition: opacity 0.7s calc(0.25s + var(--i) * 0.045s), transform 0.9s var(--ease) calc(0.25s + var(--i) * 0.045s); }
.menu.open .menu-side > * { opacity: 1; transform: none; transition: opacity 0.8s 0.5s, transform 1s var(--ease) 0.5s; }


/* ---------- join ---------- */
.join { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 16vh var(--gut); }
.join::before { background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 42%, rgba(0,0,0,0) 62%); }
.join > * { max-width: 660px; }
.join-title { font-size: clamp(38px, 4.6vw, 74px); }
.join-sub { color: var(--soft); margin: 22px 0 0; max-width: 40ch; }
.form { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 28px; }
.form input[type="email"] { flex: 1 1 280px; min-width: 0; background: transparent; border: 0; border-bottom: 2px solid var(--dim); border-radius: 0; color: var(--bone); padding: 10px 0; font: inherit; font-variation-settings: "wdth" 110, "wght" 420; font-size: clamp(22px, 2.2vw, 30px); transition: border-color 0.3s; }
.form input[type="email"]::placeholder { color: var(--dim); }
.form input[type="email"]:focus { outline: none; border-color: var(--lime); }
.form input[aria-invalid="true"] { border-color: var(--err); }
.consent { flex-basis: 100%; display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; color: var(--soft); font-size: 14px; line-height: 1.5; cursor: pointer; }
.consent input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 2px solid var(--dim); background: transparent; cursor: pointer; display: grid; place-content: center; transition: border-color 0.2s, background 0.2s; }
.consent input:checked { background: var(--lime); border-color: var(--lime); }
.consent input:checked::after { content: ""; width: 9px; height: 5px; border: solid #000; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.consent input[aria-invalid="true"] { border-color: var(--err); }
.consent a { color: var(--bone); }
.go:disabled { opacity: 0.55; cursor: progress; }
.msg { flex-basis: 100%; min-height: 1.6em; margin: 0; font-size: 15px; }
.msg.is-done { color: var(--lime); }
.msg.is-error { color: var(--err); }
.hp { display: none; }

/* ---------- footer ---------- */
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px 32px; padding: 32px var(--gut) calc(env(safe-area-inset-bottom, 0px) + 32px); color: var(--dim); font-size: 14px; background: linear-gradient(rgba(0,0,0,0), #000 40%); }
.foot img { width: 110px; height: auto; mix-blend-mode: lighten; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--bone); }

/* ---------- legal page ---------- */
.legal { max-width: 760px; position: relative; z-index: 2; padding: calc(env(safe-area-inset-top, 0px) + 140px) var(--gut) 12vh; }
.legal h1 { margin: 0 0 12px; font-weight: 400; font-variation-settings: "wdth" 125, "wght" 760, "opsz" 72; font-size: clamp(34px, 4vw, 56px); line-height: 1.02; }
.legal h2 { margin: 48px 0 10px; font-weight: 400; font-variation-settings: "wdth" 115, "wght" 640, "opsz" 36; font-size: 22px; }
.legal p, .legal li { color: var(--soft); }
.legal strong { color: var(--bone); font-weight: 600; }
.legal .upd { color: var(--dim); font-size: 14px; }

@media (max-width: 899px) {
  .brand .brand-word { width: 84px; }
  .nav-r .cta { display: none; }
  .nav-r { gap: 10px; }
  .auto { padding: 0; justify-content: center; width: 44px; }
  .auto-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero::before { background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 34%, rgba(0,0,0,0) 58%); }
  .title { font-size: clamp(34px, min(10.6vw, calc((100vw - 2 * var(--gut)) / 5.8)), 72px); }
  @keyframes widen { from { font-variation-settings: "wdth" 25, "wght" 300, "opsz" 144; opacity: 0; } 20% { opacity: 1; } to { font-variation-settings: "wdth" 128, "wght" 820, "opsz" 144; opacity: 1; } }
  .cue { display: none; }
  .seq { height: 360vh; }
  .story { font-size: clamp(28px, 8vw, 40px); }
  .ports-pin::before { background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0) 62%); }
  .pi { width: auto; right: var(--gut); bottom: clamp(36px, 7vh, 64px); }
  .h2.big { font-size: clamp(34px, 9.4vw, 52px); }
  .port-t { font-size: clamp(30px, 8.6vw, 44px); }
  .port-d, .ports-sub { font-size: 16px; margin-top: 16px; }
  .rail { display: none; }
  .win { --d: min(66vw, 38vh); }
  .tag { font-size: 11px; gap: 6px; }
  .tag-t { display: none; }
  .menu-grid { grid-template-columns: 1fr; gap: 28px; align-items: start; padding-top: calc(env(safe-area-inset-top, 0px) + 96px); }
  .menu-pic { display: none; }
  .mi-t { font-size: clamp(20px, 6vw, 28px); }
  .join { padding-top: 44vh; justify-content: flex-end; }
  .join::before { background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 55%, rgba(0,0,0,0) 80%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .w, .hero-intro, .hero-cta, .cue { opacity: 1; }
  .w { font-variation-settings: "wdth" 151, "wght" 840, "opsz" 144; }
  .stage { opacity: 1; }
}

/* ---------- GSAP layer (html.gs is set only when motion is allowed) ---------- */
.prog { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; display: none; }
.gs .prog { display: block; }
.menu-open .prog { opacity: 0; }
.gs .hero-copy { visibility: hidden; }
.gs .w, .gs .hero-intro, .gs .hero-cta { opacity: 1; animation: none !important; }
.gs .cue { opacity: 0; animation: none !important; }
.gs .title .w { font-variation-settings: "wdth" 151, "wght" 840, "opsz" 144; } /* the spaces between words sit at the final width */
.gs .title .ch { font-variation-settings: "wdth" var(--wd, 151), "wght" var(--wg, 840), "opsz" 144; }
.gs .line { filter: none; transform: none; transition: opacity 0.25s; }
.gs .pi > * { opacity: 1; transform: none; filter: none; transition: none; }
.gs .pi .port-t { transition: font-variation-settings 1.4s var(--ease); }
.gs .join-title { font-variation-settings: "wdth" var(--jw, 125), "wght" 720, "opsz" 72; }
@media (max-width: 899px) {
  .gs .title .w { font-variation-settings: "wdth" 128, "wght" 820, "opsz" 144; }
  .gs .title .ch { font-variation-settings: "wdth" var(--wd, 128), "wght" var(--wg, 820), "opsz" 144; }
}

.loopvid { position: absolute; left: 0; top: 0; width: 2px; height: 2px; opacity: 0.01; pointer-events: none; }
