/* EU Underwater Innovation Forum · concept "Eighty" · v2
   Palette: abyss, deep blue, lamp amber, warm white, steel. One accent only: lamp amber.
   Type: Fraunces (display), Inter (text), JetBrains Mono (numerals and meta). */

/* Self-hosted variable fonts (SIL Open Font License), Latin subset. No third-party requests. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("./fonts/fraunces-latin-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("./fonts/fraunces-latin-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("./fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("./fonts/jetbrains-mono-latin.woff2") format("woff2"); }

:root {
  --abyss: #050B14;
  --deep: #0B2545;
  --amber: #FFB347;
  --amber-hot: #FFD08A;
  --warm: #FFF4E0;
  --steel: #9FB3C8;
  --line: rgba(159, 179, 200, .22);
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 5vw, 72px);
  --bar: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--abyss); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--abyss); color: var(--warm); font: 400 18px/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--bar) + 12px); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--amber); color: var(--abyss); }

.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--amber); color: var(--abyss); padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }
.noscript { position: relative; z-index: 60; margin: 0; padding: calc(var(--bar) + 10px) var(--pad) 12px; background: #0A1626; font-size: 16px; }
.noscript a { color: var(--amber); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.soft { color: var(--steel); }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.meta { font: 500 13px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.link { color: var(--amber); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.link:hover { color: var(--amber-hot); }
.link--btn { background: none; border: 0; padding: 0; cursor: pointer; font-size: 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 54px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--amber); color: var(--abyss); font: 600 17px/1 var(--text); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: 0 0 0 1px rgba(255, 179, 71, .35), 0 10px 44px -8px rgba(255, 179, 71, .45); transition: background .5s var(--ease), box-shadow .7s var(--ease), transform .7s var(--ease); }
.btn:hover { background: var(--amber-hot); box-shadow: 0 0 0 1px rgba(255, 208, 138, .5), 0 14px 60px -6px rgba(255, 179, 71, .6); transform: translateY(-1px); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn--wide { width: 100%; }
.btn--ghost { background: transparent; color: var(--warm); box-shadow: inset 0 0 0 1px rgba(255, 244, 224, .45); }
.btn--ghost:hover { background: rgba(255, 244, 224, .08); box-shadow: inset 0 0 0 1px var(--warm); }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar); display: flex; align-items: center; gap: 24px; padding: 0 var(--pad); background: linear-gradient(rgba(5, 11, 20, .82), rgba(5, 11, 20, 0)); transition: background .6s var(--ease); }
.top.is-solid { background: linear-gradient(rgba(5, 11, 20, .96), rgba(5, 11, 20, .78) 70%, rgba(5, 11, 20, 0)); }
.top__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 500 17px/1.1 var(--display); letter-spacing: .005em; white-space: nowrap; }
.top__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 14px 3px rgba(255, 179, 71, .7); flex: none; }
.top__short { display: none; font: 600 15px/1 var(--display); letter-spacing: .06em; }
.top__nav { display: flex; gap: 26px; margin-left: auto; }
.top__nav a { font-size: 15px; text-decoration: none; color: var(--warm); opacity: .82; }
.top__nav a:hover { opacity: 1; color: var(--amber); }
.top__tools { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 244, 224, .35); padding: 3px; }
.lang__b { min-width: 38px; min-height: 30px; border: 0; border-radius: 999px; background: none; font: 500 12.5px/1 var(--mono); letter-spacing: .08em; cursor: pointer; color: var(--warm); }
.lang__b[aria-pressed="true"] { background: var(--warm); color: var(--abyss); }
.lang-swap { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 42px; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px rgba(255, 244, 224, .35); font: 500 12.5px/1 var(--mono); letter-spacing: .08em; cursor: pointer; color: var(--warm); }
.top__cta { transition: opacity .5s var(--ease), background .5s var(--ease), box-shadow .7s var(--ease), transform .7s var(--ease); }
@media (max-width: 900px) { .top__nav { display: none; } .top__tools { margin-left: auto; } }
@media (max-width: 620px) {
  :root { --bar: 60px; }
  .top { gap: 10px; }
  .top__name { display: none; }
  .top__short { display: inline; }
  .lang { display: none; }
  .lang-swap { display: inline-flex; }
  .top__tools { gap: 10px; }
}
/* phones: once the bottom Register bar is showing, the header button steps aside */
@media (max-width: 720px) { body.has-dock .top__cta { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---------- fixed stage ---------- */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--abyss); }
.stage__layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__layer > img, video.stage__layer { width: 100%; height: 100%; object-fit: cover; }
.stage__hero img { position: absolute; inset: 0; }
.stage__descent { opacity: 0; transition: opacity .5s linear; background: transparent; }
.stage__descent.is-on { opacity: 1; }
.stage__dark { background: var(--abyss); opacity: 0; }
.stage__field { opacity: 0; overflow: hidden; }
/* the seabed plate: main.js places it so its horizon sits high in the frame and the seabed fills the screen */
.stage__plate { position: absolute; left: 0; top: 0; width: 100%; height: 100%; will-change: transform; }
.stage__plate picture, .stage__plate img, .stage__plate video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#v-field { opacity: 0; transition: opacity 1.2s linear; }
#v-field.is-on { opacity: 1; }
.stage__lanterns { mix-blend-mode: screen; opacity: 0; }
.stage__scrim { background: linear-gradient(rgba(5, 11, 20, .5), rgba(5, 11, 20, 0) 22%), linear-gradient(0deg, rgba(5, 11, 20, .6), rgba(5, 11, 20, 0) 40%); pointer-events: none; }
/* portrait screens: lift the waterline so the copy sits below it */
@media (max-aspect-ratio: 4/5) {
  .stage__hero, video.stage__descent { top: -14%; height: 114%; }
}
/* the one lantern that is "yours": a quiet label that follows it */
.yours { position: absolute; left: 0; top: 0; display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; opacity: 0; pointer-events: none; white-space: nowrap; font: 500 11.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--amber-hot); text-shadow: 0 0 18px rgba(5, 11, 20, .95), 0 0 5px rgba(5, 11, 20, .95); will-change: transform, opacity; }
.yours i { width: 1px; height: 26px; background: linear-gradient(var(--amber-hot), rgba(255, 208, 138, 0)); }
.yours span { padding-left: .16em; }

.grain { position: fixed; inset: -50%; z-index: 40; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); } 60% { transform: translate(-2%, 3%); } 80% { transform: translate(4%, 1%); } 100% { transform: translate(0, 0); } }

main { position: relative; z-index: 2; }

/* ---------- 1 · hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--bar) + 16px) var(--pad) clamp(48px, 8vh, 88px); }
.hero__copy { max-width: 62rem; will-change: opacity; }
.hero__title { font-weight: 400; }
.hero__name { display: block; font: 500 clamp(1.45rem, 2.7vw, 2.5rem)/1.12 var(--display); letter-spacing: .002em; color: var(--warm); }
.hero__big { display: block; margin-top: clamp(4px, 1vh, 12px); font: 300 clamp(2.9rem, 8vw, 7rem)/.98 var(--display); letter-spacing: -.028em; font-variation-settings: "opsz" 144; text-wrap: balance; }
.hero__big em, .field__title em, .why__line em { font-style: italic; font-weight: 300; color: var(--amber); }
/* the four facts, one bold line */
.hero__facts { margin-top: clamp(14px, 2.4vh, 26px); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font: 600 clamp(19px, 1.7vw, 24px)/1.3 var(--text); letter-spacing: .004em; color: var(--warm); }
.hero__pair { display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; }
.hero__facts i { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); flex: none; }
.hero__free { color: var(--amber); }
.hero__lede { margin-top: clamp(12px, 2vh, 22px); max-width: 39rem; font-size: clamp(18px, 1.4vw, 20px); line-height: 1.55; color: var(--warm); text-wrap: pretty; }
.hero__row { margin-top: clamp(18px, 3vh, 32px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero__cue { position: absolute; right: var(--pad); bottom: clamp(48px, 8vh, 88px); writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px; }
.hero__cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--amber), transparent); animation: cue 2.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 720px) {
  .hero { padding-bottom: 28px; }
  .hero__cue { display: none; }
  .hero__name { font-size: clamp(1.05rem, 5.3vw, 1.45rem); white-space: nowrap; }
  .hero__big { font-size: clamp(2.6rem, 13.2vw, 4rem); }
  .hero__facts { display: block; font-size: 19px; line-height: 1.45; }
  .hero__pair { display: flex; gap: 12px; }
  .hero__sep { display: none; }
  .hero__org { display: none; }
  .hero__row .btn { width: 100%; }
}
@media (max-height: 700px) { .hero__lede { font-size: 18px; margin-top: 8px; } .hero__big { font-size: clamp(2.3rem, 7vw, 4.4rem); } .hero__facts { margin-top: 10px; } .hero__row { margin-top: 14px; } }

/* ---------- 2 · descent ---------- */
.sink { position: relative; height: 180vh; }
/* the stanza is pinned to the viewport and faded by scroll, so no frame of the descent is empty */
.sink__lines { position: fixed; left: 0; right: 0; top: 58%; z-index: 1; transform: translateY(-50%); padding: 0 var(--pad); text-align: center; pointer-events: none; opacity: 0; }
.sink__line { opacity: 0; font: italic 300 clamp(2rem, 5.4vw, 4.6rem)/1.12 var(--display); letter-spacing: -.02em; color: var(--warm); will-change: opacity, transform; }

/* ---------- 3 · the field ---------- */
.field { position: relative; height: 240vh; }
.field__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: flex-start; padding: calc(var(--bar) + 4vh) var(--pad) 0; }
.field__sticky::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(5, 11, 20, .78), rgba(5, 11, 20, .5) 26%, rgba(5, 11, 20, 0) 48%); opacity: var(--copy, 0); pointer-events: none; }
.field__copy { position: relative; width: 100%; opacity: 0; will-change: opacity, transform; }
.field__title { margin: 12px 0 18px; font: 300 clamp(2.1rem, 4.6vw, 4.4rem)/1.04 var(--display); letter-spacing: -.024em; text-wrap: balance; }
.field__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 34px; }
.field__text { max-width: 27rem; font-size: clamp(18px, 1.35vw, 20px); line-height: 1.5; }
.field::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70vh; background: linear-gradient(rgba(5, 11, 20, 0), var(--abyss)); pointer-events: none; }
@media (max-width: 720px) {
  .field__sticky { padding-top: calc(var(--bar) + 14px); }
  .field__sticky::before { background: linear-gradient(rgba(5, 11, 20, .9), rgba(5, 11, 20, .66) 34%, rgba(5, 11, 20, 0) 52%); }
  .field__title { margin: 8px 0 12px; }
  .field__row { gap: 14px; }
  .field__row .btn { width: 100%; }
}

/* ---------- shared section head ---------- */
.why, .voices, .day, .register, .foot { position: relative; background: var(--abyss); }
.head { max-width: 46rem; margin-bottom: clamp(36px, 6vw, 72px); }
.head h2, .register h2, .rise h2 { margin-top: 14px; font: 300 clamp(2.2rem, 4.8vw, 4.2rem)/1.04 var(--display); letter-spacing: -.022em; text-wrap: balance; }

/* ---------- 4 · why: a lamp travels across each picture as it crosses the screen ---------- */
.why { padding: clamp(40px, 8vw, 110px) 0 clamp(70px, 10vw, 150px); background: radial-gradient(90% 40% at 12% 22%, rgba(11, 37, 69, .5), rgba(5, 11, 20, 0) 70%), radial-gradient(80% 36% at 92% 62%, rgba(11, 37, 69, .42), rgba(5, 11, 20, 0) 70%), var(--abyss); overflow: hidden; }
.why__row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.why__row + .why__row { margin-top: clamp(56px, 9vw, 130px); }
.why__row--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.why__row--flip .pool { order: 2; }
.why__text h3 { margin: 10px 0 14px; font: 400 clamp(1.7rem, 2.8vw, 2.6rem)/1.08 var(--display); letter-spacing: -.012em; }
.why__text p:last-child { color: var(--warm); opacity: .92; max-width: 30rem; }
.num { font-size: 14px; letter-spacing: .14em; color: var(--amber); }
.pool { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 9; background: #02060c; box-shadow: 0 0 0 1px rgba(159, 179, 200, .12), 0 40px 120px -40px rgba(0, 0, 0, .9); --mx: 50%; --my: 55%; --r: 160%; --dim: .95; }
/* the pictures bleed off the page edge on their own side */
@media (min-width: 861px) {
  .why__row:not(.why__row--flip) .pool:not(.pool--square) { margin-left: calc(-1 * (var(--pad) + max(0px, (100vw - 1240px) / 2))); border-radius: 0 6px 6px 0; }
  .why__row--flip .pool { margin-right: calc(-1 * (var(--pad) + max(0px, (100vw - 1240px) / 2))); border-radius: 6px 0 0 6px; }
}
.pool--square { aspect-ratio: 1; max-width: 540px; justify-self: center; width: 100%; }
.pool img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.pool::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx) var(--my), rgba(5, 11, 20, 0) 0, rgba(5, 11, 20, 0) calc(var(--r) * .34), rgba(5, 11, 20, var(--dim)) var(--r)); }
.pool__lamp { position: absolute; left: var(--mx); top: var(--my); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #FFF6DC; box-shadow: 0 0 10px 3px rgba(255, 214, 150, .9), 0 0 46px 16px rgba(255, 179, 71, .5), 0 0 140px 50px rgba(255, 179, 71, .22); opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none; }
.pool.is-live .pool__lamp { opacity: var(--lamp, 1); }
.why__line { max-width: 30ch; margin: clamp(70px, 11vw, 170px) auto 0; text-align: center; font: 300 clamp(1.9rem, 4.2vw, 3.8rem)/1.12 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.why__line em { display: block; }
@media (max-width: 860px) {
  .why__row, .why__row--flip { grid-template-columns: 1fr; gap: 22px; }
  .why__row--flip .pool { order: 0; }
}

/* ---------- 5 · speakers ---------- */
.voices { padding: clamp(60px, 9vw, 130px) 0; background: radial-gradient(120% 60% at 50% 0, rgba(11, 37, 69, .55), rgba(5, 11, 20, 0) 70%), var(--abyss); }
.person { position: relative; background: none; border: 0; padding: 0; margin: 0; text-align: center; display: flex; flex-direction: column; align-items: center; color: var(--warm); font: inherit; }
button.person { cursor: pointer; }
.person__text { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.person__group { margin-top: 16px; font: 500 11.5px/1.35 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.person__name { margin-top: 7px; font: 400 1.2rem/1.2 var(--display); }
.person__role { margin-top: 7px; font-size: 16px; line-height: 1.42; color: rgba(255, 244, 224, .8); max-width: 17.5rem; }
.person__cue { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border-radius: 999px; font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255, 179, 71, .38); transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease); }
.person__cue::after { content: "+"; font-size: 14px; line-height: 1; }
.person--static .person__cue { color: var(--steel); box-shadow: none; padding: 0; }
.person--static .person__cue::after { content: none; }
button.person:hover .person__cue, button.person:focus-visible .person__cue { background: var(--amber); color: var(--abyss); box-shadow: inset 0 0 0 1px var(--amber); }

/* featured row: the European Parliament and the European Commission */
.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4.4vw, 60px) 22px; padding-bottom: clamp(44px, 5.5vw, 76px); margin-bottom: clamp(44px, 5.5vw, 76px); border-bottom: 1px solid var(--line); }
.person--feat .portrait { width: clamp(148px, 14vw, 176px); }
.person--feat .person__name { font-size: clamp(1.3rem, 1.75vw, 1.5rem); white-space: nowrap; }
.person--feat .person__role { max-width: 20rem; }
/* everyone else: one consistent grid */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(40px, 4.4vw, 60px) 22px; align-items: start; }
.more { align-self: center; text-align: left; padding: 0 clamp(0px, 2vw, 28px); }
.more__h { font: italic 300 clamp(1.5rem, 2.6vw, 2.3rem)/1.12 var(--display); letter-spacing: -.012em; color: var(--warm); text-wrap: balance; }
.more__p { margin-top: 10px; font-size: 16px; color: var(--steel); }
@media (max-width: 980px) { .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  /* phones: featured speakers become a list with large tap targets, the rest a two-column grid */
  .feat { grid-template-columns: 1fr; gap: 10px; }
  .person--feat { flex-direction: row; align-items: center; gap: 16px; text-align: left; padding: 12px 14px 12px 12px; border-radius: 14px; background: rgba(11, 37, 69, .32); box-shadow: inset 0 0 0 1px var(--line); }
  .person--feat .portrait { width: 88px; flex: none; }
  .person--feat .person__text { align-items: flex-start; }
  .person--feat .person__group { margin-top: 0; }
  .person--feat .person__name { white-space: normal; font-size: 1.2rem; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 14px; }
  .people .portrait { width: 112px; }
  .people .person__name { font-size: 1.1rem; }
  .more { grid-column: 1 / -1 !important; padding: 8px 0 0; text-align: center; }
}

.portrait { position: relative; display: block; width: 136px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; isolation: isolate; background: var(--deep); box-shadow: 0 0 0 1px rgba(255, 179, 71, .3), 0 0 42px -6px rgba(255, 179, 71, .34); transition: box-shadow .9s var(--ease), transform .9s var(--ease); }
.portrait img, .portrait__tone { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* fallback duotone (used only if the canvas grade below cannot run): highlights lamp amber, shadows deep blue */
.portrait img { filter: grayscale(1) contrast(1.12) brightness(1.06); }
.portrait::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #FFCB8A; mix-blend-mode: multiply; }
.portrait::after { content: ""; position: absolute; inset: 0; z-index: 2; background: #0B2545; mix-blend-mode: lighten; }
/* one grade for every portrait, drawn by main.js: levels are evened out, then mapped deep blue → bronze → lamp amber → warm white */
.portrait.is-toned img { opacity: 0; }
.portrait.is-toned::before, .portrait.is-toned::after { content: none; }
.portrait__tone { z-index: 1; }
.portrait__shade { position: absolute; inset: 0; z-index: 3; background: radial-gradient(95% 95% at 30% 22%, rgba(255, 226, 170, .12), rgba(5, 11, 20, 0) 46%, rgba(5, 11, 20, .5) 100%); }
.portrait__mono { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; font: 300 2.4rem/1 var(--display); color: var(--amber); background: radial-gradient(circle at 50% 46%, rgba(255, 179, 71, .34), rgba(11, 37, 69, .9) 62%, #050B14); }
button.person:hover .portrait, button.person:focus-visible .portrait { box-shadow: 0 0 0 1px rgba(255, 208, 138, .8), 0 0 64px -2px rgba(255, 179, 71, .6); transform: translateY(-3px); }
.portrait--lg { width: 148px; flex: none; }

.sheet { width: min(640px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 12px; background: #0A1626; color: var(--warm); box-shadow: 0 0 0 1px rgba(255, 179, 71, .25), 0 40px 120px rgba(0, 0, 0, .7); overflow: auto; }
.sheet::backdrop { background: rgba(5, 11, 20, .82); }
.sheet__in { display: grid; grid-template-columns: auto 1fr; gap: 22px 26px; align-items: center; padding: clamp(24px, 4vw, 40px); }
.sheet .person__group { margin-top: 0; }
.sheet h3 { margin-top: 6px; font: 400 clamp(1.5rem, 3vw, 2rem)/1.1 var(--display); }
.sheet__role { margin-top: 8px; color: rgba(255, 244, 224, .8); font-size: 16px; line-height: 1.45; }
.sheet__bio { grid-column: 1 / -1; font-size: 18px; }
.sheet .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 520px) { .sheet__in { grid-template-columns: 1fr; } .portrait--lg { width: 120px; } }

/* ---------- 6 · the day ---------- */
.day { padding: clamp(70px, 10vw, 150px) 0; overflow: hidden; }
.day__bg { position: absolute; inset: 0; }
.day__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.day__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--abyss), rgba(5, 11, 20, .3) 28%, rgba(5, 11, 20, .45) 72%, var(--abyss)), linear-gradient(90deg, rgba(5, 11, 20, .9), rgba(5, 11, 20, .72) 48%, rgba(5, 11, 20, .08)); }
.day .wrap { position: relative; }
.facts { display: grid; gap: 0; max-width: 54rem; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 11.5rem 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts dt { font: 500 13px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.facts dd { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; }
.facts dd .mono { color: var(--amber); margin-right: .5em; }
.facts dd .soft, .facts dd .link { font-size: 17px; }
.day__cta { margin-top: clamp(28px, 4vw, 44px); }
@media (max-width: 640px) { .facts > div { grid-template-columns: 1fr; gap: 6px; } .day__cta { display: none; } }

/* ---------- 7 · register ---------- */
.register { padding: clamp(70px, 10vw, 150px) 0 clamp(80px, 10vw, 150px); background: radial-gradient(70% 60% at 78% 46%, rgba(255, 179, 71, .11), rgba(5, 11, 20, 0) 70%), linear-gradient(var(--abyss), #07111f); }
.register.is-done { padding: 0; }
.register__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(30px, 6vw, 100px); align-items: start; }
.register__pitch p + p { margin-top: 16px; }
.register__pitch h2 { margin-bottom: 22px; }
.register__pitch .soft { font-size: 16px; }
/* the form sits in lamplight */
.form { position: relative; display: grid; gap: 18px; padding: clamp(22px, 3vw, 40px); border-radius: 14px; background: linear-gradient(155deg, rgba(24, 48, 78, .62), rgba(9, 22, 40, .78) 60%); box-shadow: inset 0 0 0 1px rgba(255, 196, 120, .26), 0 0 110px -18px rgba(255, 179, 71, .34), 0 40px 90px -40px rgba(0, 0, 0, .8); }
.form::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(60% 46% at 86% 0, rgba(255, 196, 120, .2), rgba(255, 179, 71, 0) 70%); pointer-events: none; }
.form > * { position: relative; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f { display: grid; gap: 8px; font-size: 16px; font-weight: 500; color: rgba(255, 244, 224, .86); }
.f input:not([type="checkbox"]), .f select { width: 100%; min-height: 54px; padding: 0 16px; border: 0; border-radius: 8px; background: rgba(5, 11, 20, .78); box-shadow: inset 0 0 0 1px rgba(159, 179, 200, .45); color: var(--warm); font-size: 18px; transition: box-shadow .4s var(--ease); }
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%), linear-gradient(135deg, var(--amber) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.f select option { background: #0A1626; color: var(--warm); }
.f input:not([type="checkbox"]):focus-visible, .f select:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--amber), 0 0 34px -6px rgba(255, 179, 71, .5); }
.f.is-bad input:not([type="checkbox"]), .f.is-bad select { box-shadow: inset 0 0 0 2px #FF8A6B; }
.f--check { grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-weight: 400; font-size: 16px; color: var(--warm); }
.f--check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--amber); }
.form__err { color: #FFB199; font-weight: 500; font-size: 16px; }
@media (max-width: 900px) { .register__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form__row { grid-template-columns: 1fr; } }

/* confirmation: the dawn surface, full bleed, then the card */
.rise { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; outline: none; scroll-margin-top: 0; }
.rise__bg, .rise__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rise::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5, 11, 20, .62), rgba(5, 11, 20, .2) 62%, rgba(5, 11, 20, 0)), linear-gradient(0deg, rgba(5, 11, 20, .9), rgba(5, 11, 20, 0) 34%), linear-gradient(rgba(5, 11, 20, .5), rgba(5, 11, 20, 0) 18%); pointer-events: none; }
.rise__in { position: relative; z-index: 2; padding-top: calc(var(--bar) + 22px); padding-bottom: clamp(40px, 7vh, 80px); }
.rise__card { max-width: 620px; padding: clamp(24px, 3.4vw, 44px); border-radius: 16px; background: rgba(5, 11, 20, .82); -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15); box-shadow: inset 0 0 0 1px rgba(255, 220, 160, .3), 0 40px 120px -30px rgba(0, 0, 0, .75), 0 0 120px -30px rgba(255, 190, 110, .35); opacity: 0; transform: translateY(26px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.rise__card.is-in { opacity: 1; transform: none; }
.rise__card h2 { margin-top: 12px; font-size: clamp(2.1rem, 4vw, 3.4rem); }
.rise__video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 20px; background: #02060c; }
.rise__lead { margin: 12px 0 16px; font: 400 clamp(1.3rem, 2.1vw, 1.7rem)/1.25 var(--display); color: var(--amber); }
.rise__row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.rise__addr { font-size: 17px; }
.rise__addr .mono { color: var(--warm); white-space: nowrap; }
.rise__details { margin: 14px 0 18px; font-size: 16px; }
.rise__details summary { cursor: pointer; color: var(--steel); }
.rise__details pre { margin: 12px 0 0; padding: 16px; border-radius: 6px; background: rgba(5, 11, 20, .8); box-shadow: inset 0 0 0 1px var(--line); white-space: pre-wrap; font: 400 14.5px/1.55 var(--mono); color: var(--warm); }
@media (max-width: 720px) { .rise { align-items: flex-end; } .rise__row .btn { width: 100%; } }

/* the ascent: page goes dark, a light leaves the button and rises to the surface */
.ascent { position: fixed; inset: 0; z-index: 90; overflow: hidden; background: rgba(5, 11, 20, 0); cursor: pointer; }
.ascent__dawn { position: absolute; inset: -10%; background: #0b2238 center / cover no-repeat; opacity: 0; will-change: transform, opacity; }
.ascent__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
#form-submit.is-lit { background: #FFF1D0; box-shadow: 0 0 0 1px #FFF1D0, 0 0 90px 10px rgba(255, 208, 138, .85); }

/* ---------- 8 · footer ---------- */
.foot { padding: 44px 0 56px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.55; }
.foot__in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 26px; }
.foot__name { font: 400 1.2rem/1.4 var(--display); }
.foot__name .soft { font: 400 15px/1.5 var(--text); }
.foot__lb[aria-pressed="true"] { color: var(--warm); text-decoration: none; cursor: default; }
@media (max-width: 860px) { .foot__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__in { grid-template-columns: 1fr; } .foot { padding-bottom: 110px; } }

/* ---------- phones: the Register bar that stays at the bottom after the hero ---------- */
.dock { display: none; }
@media (max-width: 720px) {
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(rgba(5, 11, 20, 0), rgba(5, 11, 20, .9) 34%, rgba(5, 11, 20, .97)); transform: translateY(110%); visibility: hidden; transition: transform .7s var(--ease), visibility 0s linear .7s; }
  .dock.is-on { transform: none; visibility: visible; transition: transform .7s var(--ease), visibility 0s; }
  .dock__meta { font: 500 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--warm); white-space: nowrap; }
  .dock__meta span { display: block; }
  .dock__meta span + span { color: var(--amber); }
  .dock .btn { min-height: 46px; padding: 0 26px; font-size: 16px; }
}

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* ---------- reduced motion: stills only ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .grain { display: none; }
  .stage video, .stage__lanterns, .rise__video, .yours, .pool__lamp, .ascent { display: none !important; }
  .rv { opacity: 1; transform: none; }
  .rise__card { opacity: 1; transform: none; }
  .sink { height: 150vh; }
  .field { height: 160vh; }
  .hero__cue::after { transform: none; }
}
