/* ---------- cinematic stage ---------- */
.cinema { position: relative; height: 1050vh; background: #02040a; --fog: .42; }
.cinema__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.cinema canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cinema__moon {
  position: absolute; left: -4%; right: -4%; bottom: 0; height: 47vh; z-index: 1; pointer-events: none;
  background: url("../img/moon-horizon.webp") center top / cover no-repeat;
  transform: translate3d(0, var(--moonY, 0), 0); opacity: var(--moonO, 1); will-change: transform;
}
.cinema__moon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(1, 2, 5, .75) 100%); }
.cinema__fog {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: var(--fog);
  background:
    radial-gradient(ellipse 70% 45% at 30% 30%, rgba(150, 165, 195, .38), transparent 70%),
    radial-gradient(ellipse 60% 40% at 75% 65%, rgba(120, 135, 170, .32), transparent 70%),
    radial-gradient(ellipse 120% 70% at 50% 100%, rgba(80, 90, 120, .55), transparent 70%),
    linear-gradient(180deg, rgba(20, 26, 44, .55), rgba(30, 36, 56, .85));
}
.cinema.fog-off .cinema__fog, .cinema.moon-off .cinema__moon { visibility: hidden; }
.beat { will-change: opacity, transform; }
.cinema__vignette {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(ellipse 85% 75% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55) 100%),
    linear-gradient(180deg, rgba(2, 4, 10, .55) 0%, transparent 18%, transparent 78%, rgba(2, 4, 10, .7) 100%);
}
.cinema.no-webgl .cinema__stage { background: #02040a url("../img/earthrise.jpg") center 70% / cover no-repeat; }
.cinema.no-webgl .cinema__fog, .cinema.no-webgl .cinema__moon { display: none; }

/* HUD corners like a mission display */
.hud { position: absolute; inset: 0; z-index: 6; pointer-events: none; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(244, 238, 225, .62); }
.hud > div { position: absolute; line-height: 1.9; }
.hud b { color: var(--gold-bright); font-weight: 500; }
.hud__tl { left: var(--gutter); top: calc(var(--header-h) + 22px); }
.hud__tr { right: var(--gutter); top: calc(var(--header-h) + 22px); text-align: right; }
.hud__tr .t-target { display: none; }
.hud__tr.is-target .t-elev { display: none; }
.hud__tr.is-target .t-target { display: block; }
.hud__bl { left: var(--gutter); bottom: 26px; }
.hud__br { right: var(--gutter); bottom: 26px; display: flex; align-items: center; gap: 12px; }
.hud__bar { position: relative; width: 120px; height: 1px; background: rgba(244, 238, 225, .2); display: inline-block; }
.hud__bar i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.hud .frame { position: absolute; width: 18px; height: 18px; border-color: rgba(241, 203, 114, .5); border-style: solid; border-width: 0; }
.hud .frame.a { left: calc(var(--gutter) - 14px); top: calc(var(--header-h) + 10px); border-left-width: 1px; border-top-width: 1px; }
.hud .frame.b { right: calc(var(--gutter) - 14px); top: calc(var(--header-h) + 10px); border-right-width: 1px; border-top-width: 1px; }
.hud .frame.c { left: calc(var(--gutter) - 14px); bottom: 14px; border-left-width: 1px; border-bottom-width: 1px; }
.hud .frame.d { right: calc(var(--gutter) - 14px); bottom: 14px; border-right-width: 1px; border-bottom-width: 1px; }

/* beats: the copy layered over the scene */
.beat { position: absolute; inset: 0; z-index: 5; display: flex; pointer-events: none; }
.beat a, .beat button { pointer-events: auto; }
.js .beat--title, .js .beat--centre, .js .beat--reach, .js .beat--final { visibility: hidden; opacity: 0; }

.beat--intro { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding-inline: var(--gutter); }
.beat--intro .kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: rgba(244, 238, 225, .7); }
.beat--intro .call { font-family: var(--f-display); font-weight: 500; font-size: clamp(1rem, 2.2vw, 1.5rem); letter-spacing: .42em; text-transform: uppercase; color: var(--ivory); padding-left: .42em; }
.beat--intro .chev { width: 14px; height: 22px; color: var(--gold); animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(8px); opacity: 1; } }

.beat--title { align-items: center; justify-content: center; flex-direction: column; text-align: center; padding-inline: 12px; transform: translateY(-6vh); }
.cinema__title {
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase; color: #fff;
  font-size: clamp(2.6rem, 8.6vw, 10rem); line-height: .92; letter-spacing: .04em;
  text-shadow: 0 0 40px rgba(0, 0, 0, .35); white-space: nowrap;
}
.cinema__title .ln { display: block; overflow: hidden; }
.cinema__title .ln > span { display: inline-block; }
.cinema__title .ln + .ln { margin-top: .02em; }
.beat--title .sub { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 28px; }
.beat--title .sub .and { font-family: var(--f-display); font-size: clamp(.9rem, 1.6vw, 1.35rem); letter-spacing: .34em; color: var(--ivory); padding-left: .34em; }
.tsi { display: inline-flex; align-items: stretch; border: 1px solid rgba(241, 203, 114, .55); background: rgba(5, 11, 26, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tsi span { padding: 10px clamp(14px, 2.4vw, 28px); font-family: var(--f-display); font-weight: 600; letter-spacing: .26em; font-size: clamp(.72rem, 1.1vw, .95rem); color: var(--gold-bright); }
.tsi span + span { border-left: 1px solid rgba(241, 203, 114, .4); }

.beat .panel { align-self: center; width: min(560px, 44vw); display: flex; flex-direction: column; gap: 22px; }
.beat--centre { justify-content: flex-start; padding-left: var(--gutter); }
.beat--reach { justify-content: flex-end; padding-right: var(--gutter); }
.beat .panel h2 { font-family: var(--f-serif); font-weight: 500; font-size: clamp(2.4rem, 4.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.beat .panel h2 em { color: var(--gold-bright); }
.beat .panel p { color: rgba(244, 238, 225, .8); font-size: 1.06rem; max-width: 48ch; }
.beat .facts { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.beat .facts div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark-soft); font-size: 14.5px; align-items: baseline; }
.beat .facts dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.beat .facts dd { margin: 0; color: var(--ivory); }
.beat .stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.beat .stats3 .stat b { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.beat .stats3 .stat > span { font-size: 13.5px; }

.beat--final { align-items: flex-end; justify-content: center; text-align: center; padding: 0 var(--gutter) clamp(70px, 11vh, 120px); }
.beat--final .stagger { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.beat--final .tag { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.15rem, 2.6vw, 2.2rem); letter-spacing: .14em; line-height: 1.35; text-transform: uppercase; }
.beat--final .tag span { color: var(--gold-bright); white-space: nowrap; }
.beat--final .btn-row { justify-content: center; }

.city-labels { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.city-label {
  position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; margin: -9px 0 0 12px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory);
  padding: 3px 8px; background: rgba(5, 11, 26, .55); border-left: 1px solid var(--gold); transition: opacity .3s;
}

/* loader */
.loader { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: #02040a; transition: opacity 1.2s var(--ease), visibility 1.2s; }
.cinema.is-ready .loader, .cinema.no-webgl .loader { opacity: 0; visibility: hidden; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.loader__inner img { width: 92px; animation: breathe 2.4s var(--ease) infinite; }
.loader__inner .mono { color: var(--mist); }
.loader__inner b { font-family: var(--f-display); font-size: 1.8rem; color: var(--gold-bright); font-weight: 600; letter-spacing: .08em; }
@keyframes breathe { 50% { transform: scale(1.06); filter: drop-shadow(0 0 22px rgba(241, 203, 114, .45)); } }

/* ---------- manifesto ---------- */
.manifesto .h1 { max-width: 18ch; }
.tsi-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(56px, 7vw, 96px); }
.tsi-col { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.tsi-col .mono { color: var(--gold-deep); }
.tsi-col h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: .1em; font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: 1; }
.tsi-col p { color: var(--ink-soft); }

/* ---------- reel of pillars (horizontal scroll) ---------- */
.reel { position: relative; background: var(--space); overflow: hidden; }
.reel__pin { height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.reel__track { display: flex; align-items: flex-start; gap: clamp(18px, 2.4vw, 36px); padding-inline: var(--gutter); will-change: transform; }
.reel__intro > .link-arrow, .reel__intro > .reel__hint { align-self: flex-start; }
.reel__intro { align-self: center; flex: none; width: min(460px, 80vw); display: flex; flex-direction: column; gap: 24px; padding-right: clamp(10px, 3vw, 40px); }
.reel__intro .h2 { font-size: clamp(2.6rem, 5vw, 4.8rem); }
.reel__card { flex: none; width: clamp(280px, 26vw, 400px); display: flex; flex-direction: column; gap: 18px; }
.reel__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--navy-900); }
.reel__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.4s var(--ease), filter 1s; filter: saturate(.9) contrast(1.05); }
.reel__card:hover .reel__media img { transform: scale(1.08); filter: saturate(1.05) contrast(1.05); }
.reel__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 7, 15, .45) 0%, transparent 30%, transparent 60%, rgba(3, 7, 15, .65)); }
.reel__media .tag { position: absolute; left: 16px; top: 14px; z-index: 2; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; color: var(--ivory); text-transform: uppercase; }
.reel__media .ico { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(241, 203, 114, .7); color: var(--gold-bright); background: rgba(5, 11, 26, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.reel__media .ico svg { width: 22px; height: 22px; }
.reel__meta { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 10px; }
.reel__meta .n { font-family: var(--f-mono); font-size: 11px; color: var(--gold); padding-top: 6px; }
.reel__meta h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35; min-height: 2.7em; }
.reel__meta p { grid-column: 2; color: var(--mist); font-size: 14.5px; line-height: 1.6; }
.reel__hint { display: none; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }
.reel__hint i { position: relative; width: 44px; height: 1px; background: rgba(241, 203, 114, .35); overflow: hidden; }
.reel__hint i::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 1px; background: var(--gold-bright); animation: hint 2s var(--ease) infinite; }
@keyframes hint { to { left: 110%; } }
.reel__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; height: 1px; background: rgba(244, 238, 225, .14); }
.reel__progress i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* ---------- founder teaser ---------- */
.founder-teaser { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
/* ---------- think & do ---------- */
.td-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 6vw, 96px); margin-top: clamp(48px, 6vw, 80px); }
.td-col h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(3.2rem, 7vw, 6rem); line-height: .9; letter-spacing: .06em; color: var(--gold-bright); }
.td-col .sub { font-family: var(--f-serif); font-style: italic; font-size: 1.5rem; color: var(--ivory); margin: 14px 0 26px; }

/* ---------- thesis teaser ---------- */
.thesis-card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border: 1px solid var(--line-light); background: #fff; }
.thesis-card__body { padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; gap: 22px; }
.thesis-card__title { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.18; text-wrap: balance; }
.thesis-card__media { position: relative; min-height: 340px; }
.thesis-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thesis-card .multiplier { font-family: var(--f-display); font-weight: 600; letter-spacing: .06em; font-size: 1.05rem; color: var(--navy-800); border-left: 3px solid var(--gold); padding-left: 16px; }

@media (max-width: 900px) {
  .cinema { height: 960vh; }
  .hud { font-size: 9.5px; letter-spacing: .14em; }
  .hud__tl, .hud__tr { top: calc(var(--header-h) + 12px); }
  .hud .frame { display: none; }
  .hud__bar { width: 60px; }
  .hud__bl { max-width: 52vw; }
  .cinema__title { font-size: clamp(2.2rem, 11.5vw, 5rem); }
  .beat--title { transform: translateY(-14vh); }
  .beat--centre, .beat--reach { justify-content: center; padding: 0 var(--gutter); }
  .beat .panel { width: 100%; align-self: flex-end; padding-bottom: 76px; gap: 14px;
    background: linear-gradient(180deg, transparent, rgba(2, 4, 10, .82) 22%); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-top: 60px; }
  .beat .panel h2 { font-size: clamp(2rem, 8.6vw, 2.8rem); }
  .beat .panel p { font-size: .98rem; }
  .beat .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line-dark-soft); }
  .beat .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; font-size: 13px; line-height: 1.35; padding: 10px 10px 10px 0; border-bottom: 0; align-content: start; }
  .beat .facts div + div { padding-left: 10px; border-left: 1px solid var(--line-dark-soft); }
  .beat .facts dt { font-size: 9.5px; letter-spacing: .14em; line-height: 1.35; min-height: calc(2 * 1.35em); }
  .beat .stats3 { gap: 14px; }
  .tsi span { padding: 9px 12px; letter-spacing: .18em; }
  .beat--title .sub .and { letter-spacing: .16em; padding-left: .16em; font-size: .78rem; }
  .tsi-cols { grid-template-columns: minmax(0, 1fr); }
  .reel__pin { height: auto; padding-block: 96px; }
  .reel__track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .reel__track::-webkit-scrollbar { display: none; }
  .reel__card, .reel__intro { scroll-snap-align: start; }
  .reel__card { width: min(78vw, 340px); }
  .founder-teaser .portrait-frame { width: 100%; max-width: 440px; }
  .reel__progress { display: none; }
  .reel__hint { display: inline-flex; }
  .founder-teaser, .td-grid, .thesis-card { grid-template-columns: minmax(0, 1fr); }
  .thesis-card__media { min-height: 260px; }
}
@media (max-width: 420px) {
  .beat .stats3 .stat > span { font-size: 12px; }
  .beat .panel p { font-size: .93rem; line-height: 1.55; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .beat .panel { gap: 10px; padding-bottom: 64px; }
  .beat .panel h2 { font-size: clamp(1.7rem, 7.4vw, 2.2rem); }
  .beat .panel p { font-size: .9rem; line-height: 1.5; }
  .beat .stats3 .stat b { font-size: 1.9rem; }
}

@media (max-width: 600px) {
  .beat--final .btn-row { flex-direction: column; align-items: stretch; width: min(100%, 320px); }
  .beat--final .btn-row .btn { justify-content: center; }
}
/* short desktop and landscape tablets: keep the copy clear of the corner HUD */
@media (min-width: 901px) and (max-height: 820px) {
  .beat--centre, .beat--reach { padding-top: calc(var(--header-h) + 72px); padding-bottom: 72px; }
  .beat .panel { gap: 16px; }
  .beat .panel h2 { font-size: clamp(2.1rem, 3.8vw, 3.4rem); }
  .beat .facts div { padding: 9px 0; }
}
