/* =====================================================================
   TEMPORARY LOOK — swap these tokens when the final graphic package lands.
   Colors, fonts and motion timing are all controlled here.
   ===================================================================== */
/* ---------- Proxima Nova (self-hosted, fonts/) ---------- */
@font-face { font-family: "Proxima Nova"; src: url("fonts/proximanova-regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Proxima Nova"; src: url("fonts/proximanova-regularit.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Proxima Nova"; src: url("fonts/proximanova-medium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Proxima Nova"; src: url("fonts/proximanova-semibold.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Proxima Nova"; src: url("fonts/proximanova-semiboldit.otf") format("opentype"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Proxima Nova"; src: url("fonts/proximanova-bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Proxima Nova"; src: url("fonts/proximanova-extrabold.otf") format("opentype"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --bg: #050c22;            /* page background (studio navy) */
  --bg-2: #0a1738;          /* alternate section background */
  --surface: #101f47;       /* cards */
  --line: rgba(255, 255, 255, 0.12);
  --text: #f3f5fb;
  --muted: #a9b4d0;
  --accent: #f2c230;        /* ABC30-style gold */
  --accent-2: #2f6bff;      /* studio blue glow */

  --font-display: "Proxima Nova", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Proxima Nova", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-time: 1.1s;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.1vw + 10px, 19px);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
/* Clip sideways overflow (the career glow, slide-in reveals) so the page never gets wider than the screen. */
main { overflow: hidden; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.section-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section-intro { margin: 0 0 48px; max-width: 640px; color: var(--muted); }


/* ---------- reveal system ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity var(--reveal-time) var(--ease), transform var(--reveal-time) var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal--zoom { transform: scale(0.94); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
  transform: scale(calc(1.12 + var(--hero-p, 0) * 0.12)) translate3d(0, calc(var(--hero-p, 0) * 6%), 0);
  animation: hero-in 2.6s var(--ease) both;
}
@keyframes hero-in { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: none; } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 12, 34, 0.92) 0%, rgba(5, 12, 34, 0.55) 38%, rgba(5, 12, 34, 0) 65%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 12, 34, 0) 40%);
}
.hero__content {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(90px, 14vh, 150px);
  opacity: calc(1 - var(--hero-p, 0) * 1.6);
  transform: translate3d(0, calc(var(--hero-p, 0) * -80px), 0);
}
.hero__logo {
  display: block;
  width: clamp(150px, 16vw, 230px); height: auto;
  margin: 0 0 clamp(6px, 1.2vh, 12px);
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
  animation: rise 1.2s var(--ease) 0.5s both;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(54px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .line > span { display: inline-block; animation: line-up 1.4s var(--ease) both; }
.hero__title .line:nth-child(1) { font-size: 0.55em; line-height: 1.15; }
.hero__title .line:nth-child(1) > span { animation-delay: 0.7s; font-style: italic; font-weight: 600; color: var(--muted); }
.hero__title .line:nth-child(2) > span { animation-delay: 0.9s; }
.hero__title .line:nth-child(3) > span { animation-delay: 1.05s; }
.hero__subtitle {
  margin: 22px 0 0; max-width: 520px; color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
  animation: rise 1.2s var(--ease) 1.3s both;
}
@keyframes line-up { from { transform: translate3d(0, 110%, 0); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }

.hero__cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); text-decoration: none;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  animation: rise 1s var(--ease) 1.8s both;
  opacity: calc(1 - var(--hero-p, 0) * 3);
}
.hero__cue i { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.hero__cue i::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--text); animation: cue 2s ease-in-out infinite;
}
@keyframes cue { to { top: 110%; } }

/* ---------- CAREER ---------- */
.career { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.career::before {
  content: ""; position: absolute; right: -10%; top: 10%; width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.18), transparent 65%);
  pointer-events: none;
}
.career__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; position: relative; }
.career__body p { margin: 0 0 1.2em; color: #d7ddee; }
.career__body p:first-child::first-letter {
  font-family: var(--font-display); font-weight: 800; color: var(--accent);
  float: left; font-size: 4.2em; line-height: 0.85; padding: 0.06em 0.12em 0 0;
}
.quote {
  margin: 0 0 48px; padding: 72px 0 0; position: relative;
  border-left: 2px solid var(--accent); padding-left: 28px;
}
.quote::before {
  content: "\201C"; position: absolute; top: -0.12em; left: 20px;
  font-family: var(--font-display); font-size: 120px; line-height: 1; color: var(--accent);
}
.quote p { margin: 0 0 16px; font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; }
.quote cite { font-style: normal; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 16px; }
.stats li { padding: 20px 0 0; border-top: 2px solid var(--accent); }
.stats strong { display: block; font-family: var(--font-display); font-size: clamp(36px, 4vw, 54px); line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* ---------- INTERLUDE ---------- */
.interlude { position: relative; height: clamp(420px, 90vh, 900px); overflow: hidden; display: grid; place-items: center; }
.interlude__frame {
  position: absolute; inset: 0;
  clip-path: inset(var(--clip, 12%) round 24px);
  transition: clip-path 1.6s var(--ease);
}
.interlude.is-in .interlude__frame { --clip: 0%; }
.interlude__frame img {
  position: relative; top: -10%; width: 100%; height: 120%; object-fit: cover; object-position: center 40%;
  transform: translate3d(0, calc(var(--para, 0) * -7%), 0);
}
.interlude__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 12, 34, 0.85), rgba(5, 12, 34, 0.1) 55%); }
.interlude__text {
  position: relative; align-self: end; margin: 0; padding: 0 var(--gutter) clamp(40px, 8vh, 90px);
  max-width: 900px; text-align: center;
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: clamp(26px, 3.6vw, 52px); line-height: 1.2;
  opacity: 0; transform: translate3d(0, 30px, 0);
  transition: opacity 1.2s var(--ease) 0.6s, transform 1.2s var(--ease) 0.6s;
}
.interlude.is-in .interlude__text { opacity: 1; transform: none; }
.interlude__text p { margin: 0; }
.interlude__text cite {
  display: block; margin-top: clamp(14px, 2vh, 22px);
  font-family: var(--font-body); font-style: normal; font-weight: 600;
  font-size: clamp(12px, 1.1vw, 14px); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.interlude__text cite:empty { display: none; }

/* ---------- PHOTO GALLERY ---------- */
.photos { padding: clamp(80px, 12vw, 160px) 0; background: var(--bg-2); }
.strip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.strip-head .section-intro { margin-bottom: 36px; }
.strip-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; flex-shrink: 0; }
.tl-now {
  margin-right: 14px; min-width: 3.2ch; text-align: right;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 4.4vw, 64px); line-height: 1;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.strip-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-size: 20px; transition: background 0.3s, border-color 0.3s, opacity 0.3s;
}
.strip-btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.strip-btn:disabled { opacity: 0.3; cursor: default; }

.strip {
  --strip-h: clamp(220px, 36vh, 380px);
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  display: flex; gap: 20px; align-items: flex-start;
  overflow-x: auto; overflow-y: hidden;
  padding: 0 var(--edge) 8px;
  scroll-padding: 0 var(--edge);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.is-dragging .photo__btn { pointer-events: none; }
.strip:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.reveal--side { transform: translate3d(80px, 0, 0); }

.photo {
  flex: 0 0 auto; margin: 0; scroll-snap-align: start;
  width: calc(var(--strip-h) * var(--ar));
  max-width: 82vw;
}
.photo__btn {
  display: block; width: 100%; padding: 0; border: 0; background: var(--surface);
  border-radius: 10px; overflow: hidden; cursor: zoom-in; position: relative;
  height: var(--strip-h);
}
.photo__btn img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease); user-select: none; -webkit-user-drag: none;
}
.photo__btn:hover img, .photo__btn:focus-visible img { transform: scale(1.04); }
.photo__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.photo figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- timeline ---------- */
.tl-decades { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.tl-chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.tl-chip:hover { border-color: var(--accent); color: var(--text); }
.tl-chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.timeline { gap: 0; scroll-snap-type: none; }
.tl-year { flex: 0 0 auto; width: 46px; position: relative; }
.tl-year.has-items { width: auto; padding-right: 28px; }
.tl-axis { position: relative; height: 64px; }
.tl-axis::after { /* the line itself, drawn per year so it runs unbroken */
  content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; background: var(--line);
}
.tl-label {
  position: absolute; left: 0; bottom: 28px; font-size: 12px; font-weight: 500;
  color: rgba(169, 180, 208, 0.55); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tl-dot {
  position: absolute; left: 0; bottom: 11px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); z-index: 1;
}
.tl-year.is-major .tl-label { color: var(--muted); font-weight: 700; }
.tl-year.has-items .tl-label { color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 26px; bottom: 26px; }
.tl-year.has-items .tl-dot { width: 16px; height: 16px; bottom: 7px; left: -4px; background: var(--accent); box-shadow: 0 0 0 5px rgba(242, 194, 48, 0.18); }
.tl-items { display: flex; gap: 20px; align-items: flex-start; position: relative; padding-top: 18px; }
.tl-items::before { /* stem from the dot down to the first card */
  content: ""; position: absolute; left: 3px; top: 0; width: 2px; height: 18px; background: var(--accent);
}
.tl-milestone {
  flex: 0 0 auto; width: clamp(200px, 22vw, 280px); height: var(--strip-h);
  padding: 28px; border-radius: 10px;
  background: linear-gradient(160deg, rgba(242, 194, 48, 0.16), rgba(242, 194, 48, 0.03));
  border: 1px solid rgba(242, 194, 48, 0.45);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
}
.tl-milestone strong { font-family: var(--font-display); font-size: clamp(44px, 5vw, 72px); line-height: 1; color: var(--accent); }
.tl-milestone span { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 20px; line-height: 1.3; }
.timeline .photo { scroll-snap-align: none; }

.strip-progress { margin-top: 28px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.strip-progress span { display: block; height: 100%; background: var(--accent); width: 100%; transform-origin: 0 50%; transform: scaleX(0.05); transition: transform 0.2s linear; }

/* ---------- VIDEO GALLERY ---------- */
.videos { padding: clamp(80px, 12vw, 160px) 0; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.video-grid .video:first-child { grid-column: 1 / -1; }
.video__player {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: var(--surface); border: 0; padding: 0; width: 100%; display: block; cursor: pointer;
}
.video__player img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s; filter: brightness(0.7) saturate(0.9); }
.video__player:hover img { transform: scale(1.04); filter: brightness(0.85); }
.video__player iframe, .video__player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s var(--ease);
}
.video__play::after { content: ""; border-left: 22px solid var(--bg); border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.video__player:hover .video__play { transform: translate(-50%, -50%) scale(1.1); }
.video__player.is-soon { cursor: default; }
.video__player.is-soon .video__play { display: none; }
.video__soon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 10px 18px; border: 1px solid var(--accent); border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
  background: rgba(5, 12, 34, 0.6); white-space: nowrap;
}
.video h3 { margin: 16px 0 4px; font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 26px); }
.video p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- CLOSING ---------- */
.closing { padding: clamp(60px, 10vw, 140px) 0 clamp(80px, 12vw, 160px); background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.closing__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.closing__media { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; }
.closing__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.closing__title { margin: 0 0 20px; font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 6.4vw, 96px); line-height: 1; }
.closing__text p { color: var(--muted); font-size: clamp(17px, 1.4vw, 21px); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3, 7, 20, 0.95);
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox.is-absolute { position: absolute; inset: auto 0 auto 0; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; min-width: 0; height: 100%; justify-content: center; padding: 56px 0 24px; }
.lightbox__figure img { max-width: 100%; max-height: calc(var(--lb-h, 100vh) - 170px); object-fit: contain; border-radius: 6px; transition: opacity 0.3s; }
.lightbox__figure figcaption { margin-top: 16px; max-width: 760px; text-align: center; color: var(--muted); font-size: 15px; padding: 0 8px; }
.lightbox__count { color: var(--accent); font-weight: 600; margin-right: 10px; font-variant-numeric: tabular-nums; }
.lightbox__close, .lightbox__nav { background: none; border: 0; cursor: pointer; color: var(--text); opacity: 0.8; transition: opacity 0.2s; }
.lightbox__close:hover, .lightbox__nav:hover { opacity: 1; }
.lightbox__close { position: absolute; top: 8px; right: 12px; font-size: 44px; line-height: 1; padding: 4px 12px; }
.lightbox__nav { font-size: 64px; height: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .career__grid, .closing__grid { grid-template-columns: 1fr; }
  .closing__media { max-width: 460px; }
}
@media (max-width: 760px) {
  .hero__media img {
    object-position: 63% 30%;
    transform: scale(calc(1.02 + var(--hero-p, 0) * 0.1)) translate3d(0, calc(var(--hero-p, 0) * 6%), 0);
  }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(5, 12, 34, 0.8) 30%, rgba(5, 12, 34, 0) 58%); }
  .hero__content { padding-bottom: 116px; }
  .hero__logo { width: 120px; margin-bottom: 6px; }
  .hero__title { font-size: clamp(44px, 15vw, 80px); }
  .hero__subtitle { margin-top: 14px; font-size: 15px; max-width: 32ch; }
  .video-grid { grid-template-columns: 1fr; gap: 28px; }
  .strip { --strip-h: clamp(220px, 38vh, 320px); gap: 14px; }
  .strip-nav { display: none; }
  .tl-decades { gap: 6px; margin-bottom: 26px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tl-decades::-webkit-scrollbar { display: none; }
  .tl-chip { padding: 6px 12px; font-size: 13px; flex-shrink: 0; }
  .tl-year { width: 34px; }
  .tl-year.has-items { padding-right: 18px; }
  .tl-items { gap: 14px; }
  .tl-year.has-items .tl-label { font-size: 22px; }
  .tl-milestone { width: 200px; padding: 20px; }
  .photo figcaption { font-size: 13px; }
  .stats { gap: 10px; }
  .interlude__frame { clip-path: inset(var(--clip, 6%) round 16px); }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 4px; height: 56px; font-size: 48px; z-index: 2; }
  .lightbox__nav--prev { left: 8px; } .lightbox__nav--next { right: 8px; }
  .lightbox__figure { padding: 56px 12px 64px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
