/* ---------- Switzer font ---------- */
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Thin.otf")            format("opentype"); font-weight: 100; font-style: normal; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-ThinItalic.otf")      format("opentype"); font-weight: 100; font-style: italic; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Extralight.otf")      format("opentype"); font-weight: 200; font-style: normal; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-ExtralightItalic.otf")format("opentype"); font-weight: 200; font-style: italic; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Light.otf")           format("opentype"); font-weight: 300; font-style: normal; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-LightItalic.otf")     format("opentype"); font-weight: 300; font-style: italic; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Regular.otf")         format("opentype"); font-weight: 400; font-style: normal; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Italic.otf")          format("opentype"); font-weight: 400; font-style: italic; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Semibold.otf")        format("opentype"); font-weight: 600; font-style: normal; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-SemiboldItalic.otf")  format("opentype"); font-weight: 600; font-style: italic; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Bold.otf")            format("opentype"); font-weight: 700; font-style: normal; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-BoldItalic.otf")      format("opentype"); font-weight: 700; font-style: italic; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Extrabold.otf")       format("opentype"); font-weight: 800; font-style: normal; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-ExtraboldItalic.otf") format("opentype"); font-weight: 800; font-style: italic; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Black.otf")           format("opentype"); font-weight: 900; font-style: normal; }

/* ---------- tokens ---------- */
:root {
  --bg: #f0ede8;
  --ink: #0a0a0a;
  --ink-2: #2b2926;
  --mute: #6b665e;
  --inv: #f0ede8;
  --accent: #ff5b1f;

  --f-display: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Switzer", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(18px, 3.5vw, 56px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px var(--pad);
  mix-blend-mode: normal;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }

/* Pong court mark */
/* Nav spacer keeps clock centred now that pong floats freely */
.nav-spacer { width: 260px; flex-shrink: 0; }

/* Pong widget — floats fixed, draggable */
.nav-pong {
  position: fixed;
  left: 26px;
  top: 20px;
  z-index: 50;
  width: 260px;
  height: 100px;
  border: 2px solid #fff;
  background: transparent;
  overflow: hidden;
  color: #fff;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  /* border is the last to flip */
  transition: border-color 0.4s ease 0.2s;
}

.nav-pong.pong-dark {
  border-color: var(--ink);
}

.pong-center-line {
  position: absolute;
  left: 50%;
  top: 7px;
  bottom: 7px;
  width: 1px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    to bottom,
    currentColor 0, currentColor 6px,
    transparent 6px, transparent 12px
  );
  opacity: 0.3;
  color: #fff;
  transition: color 0.35s ease 0.1s;
}
.nav-pong.pong-dark .pong-center-line { color: var(--ink); }

.pong-paddle {
  position: absolute;
  width: 5px;
  height: 30px;
  background: #fff;
  border-radius: 2px;
  top: 35px;
  transition: background 0.35s ease 0s;
}
.pong-paddle--l { left: 8px; }
.pong-paddle--r { right: 8px; transition: background 0.35s ease 0.08s; }

.nav-pong.pong-dark .pong-paddle { background: var(--ink); }

.pong-ball {
  position: absolute;
  width: 38px;
  height: 38px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  pointer-events: none;
  top: 50px;
  left: 130px;
  filter: none;
  transition: filter 0.35s ease 0.05s;
}
/* invert ball on light background so it reads dark */
.nav-pong.pong-dark .pong-ball { filter: invert(1); }

/* Rotating badge — right side, draggable */
.spin-badge-wrap {
  position: fixed;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  pointer-events: auto;
  cursor: grab;
  width: 180px;
  height: 180px;
}

.spin-badge {
  width: 100%;
  height: 100%;
  display: block;
  animation: badge-spin 14s linear infinite;
}

.spin-badge-wrap {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.spin-badge-wrap.badge-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 600px) {
  .spin-badge-wrap,
  body.intro-done .spin-badge-wrap {
    width: 72px;
    height: 72px;
    right: 12px;
    left: auto;
    top: 86%;
    transform: translateY(-50%);
  }
}

@keyframes badge-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .spin-badge { animation: none; }
}


/* Clock */
.nav-clocks {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
}
.nav-clock {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.3;
  margin-top: 4px;
}
.nav-clock-city {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-clock-time { font-variant-numeric: tabular-nums; }
.nav-clock-tz { opacity: 0.55; font-size: 10px; }

/* Vertical nav stack */
.nav-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-top: 2px;
}
.nav-stack a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  padding: 2px 0;
  line-height: 1.6;
  transition: opacity .2s;
}
.nav-stack a:hover { opacity: 0.55; }

/* Nav color flip when over dark sections */
.nav.over-hero .nav-pong,
.nav.over-hero .nav-clock,
.nav.over-hero .nav-clock-city,
.nav.over-hero .nav-clock-tz,
.nav.over-hero .nav-stack a {
  color: #fff;
}
.nav-clocks,
.nav-clock,
.nav-stack a {
  transition: color .3s ease;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #111;
}

/* Rotating slides */
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.active { opacity: 1; }

/* Hero slide images — desktop */
.hero-slide--1 { background-image: url('img/cropped/DK.jpg'); }
.hero-slide--2 { background-image: url('img/cropped/CW.jpg'); }
.hero-slide--3 { background-image: url('img/cropped/hulu.jpg'); }
.hero-slide--4 { background-image: url('img/tcscreens.jpg'); }
.hero-slide--5 { background-image: url('img/cropped/hero-skateboards.jpg'); }

/* Hero slide images — mobile overrides */
@media (max-width: 600px) {
  .hero-slide--1 { background-image: url('img/distrokid-skater.jpg'); }
  .hero-slide--2 { background-image: url('img/Untitled design (7).png'); }
  .hero-slide--3 { background-image: url('img/Hulu/Hulu_Mar26_NHL_Concept5_Meta_IG_Story_1080x1920.jpg'); }
  .hero-slide--4 { background-image: url('img/tcsingle1.jpg'); }
}

/* Gradient overlay so text is readable */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.12) 100%);
  pointer-events: none;
}

/* Tagline — mid left */
.hero-bottom-left {
  position: absolute;
  left: var(--pad);
  bottom: clamp(20px, 4vw, 48px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tagline {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 24px);
  line-height: 1.25;
  color: #fff;
  margin: 0 0 clamp(6px, 1vw, 14px) 0;
  letter-spacing: -0.01em;
}

/* Giant wordmark — bottom left */
.hero-wordmark {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(72px, 14.5vw, 220px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: #fff;
  user-select: none;
  pointer-events: none;
}
.hero-wordmark span { display: block; }

/* Scroll progress dots — right side */
.hero-dots {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background .3s, transform .3s;
}
.hero-dot.active {
  background: #fff;
  transform: scale(1.4);
}

/* ---------- STATEMENT + RISING CARDS ---------- */
.stmt-pin-wrap {
  height: 295vh;
  position: relative;
}

.stmt-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Giant statement text */
.stmt-text {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  pointer-events: none;
  user-select: none;
}
.stmt-line {
  display: block;
  line-height: 0.88;
}
/* Small thin lines — "The Growth" / "for your" */
.stmt-line--thin {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 5.5vw, 88px);
  letter-spacing: 0.08em;
  color: var(--mute);
  text-transform: none;
  line-height: 1.1;
}
/* The hero word — fills the viewport width */
.stmt-line--mega {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(72px, 16vw, 240px);
  letter-spacing: -0.05em;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 0.85;
}
/* The closer — italic, blue (uses Switzer-ExtraboldItalic w800 — no Black Italic exists) */
.stmt-line--accent {
  font-family: var(--f-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(52px, 10vw, 168px);
  letter-spacing: -0.04em;
  color: #5bb8ff;
  text-transform: uppercase;
  line-height: 0.9;
  margin-top: 0.05em;
}
/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  font-style: normal;
  font-weight: 200;
  color: #5bb8ff;
  margin-left: 0.05em;
  animation: cursor-blink 0.75s step-end infinite;
}
.typewriter-cursor--done {
  animation: cursor-fade 0.4s ease forwards;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes cursor-fade {
  to { opacity: 0; }
}

/* Keep old classes for backwards compat */
.stmt-line--bold {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(52px, 10.5vw, 168px);
  letter-spacing: -0.04em;
  color: var(--ink);
  text-transform: uppercase;
}
.stmt-line--italic {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(44px, 8.5vw, 136px);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 0.05em;
}

/* Rising project cards */
.rise-card {
  position: absolute;
  z-index: 10;
  cursor: pointer;
  text-align: left;
  border: none;
  background: none;
  /* start below screen */
  transform: translateY(110vh);
  transition: transform 0s; /* JS drives this */
  will-change: transform;
}

/* Card positions (will be revealed by JS at different scroll offsets) */
.rise-card--1 { width: clamp(300px, 44%, 620px); left: 4%;   bottom: 0; }
.rise-card--2 { width: clamp(180px, 24%, 340px); right: 5%;  bottom: 0; }
.rise-card--3 { width: clamp(280px, 40%, 560px); left: 7%;   bottom: 30%; }
.rise-card--4 { width: clamp(300px, 44%, 620px); right: 4%;  bottom: 0; }
.rise-card--5 { width: clamp(300px, 52%, 720px); right: 4%;  bottom: 0; }
.rise-card--6 { width: clamp(200px, 26%, 360px); left: 5%;   bottom: 28%; }
.rise-card--7 { width: clamp(280px, 40%, 560px); left: 6%;   bottom: 0; }

.rise-card-img--placeholder {
  height: 200px;
  background: #1a1a2e;
}

.rise-card-img {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
}
.rise-card-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.rise-card:hover .rise-card-img img { transform: scale(1.04); }

.rise-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.rise-card:hover .rise-card-video { opacity: 1; }

/* View bubble — pops up on card hover */
/* View bubble — follows cursor. left/top set by JS; transform handles centering + scale */
.rise-card-view {
  position: absolute;
  left: 0; top: 0;                          /* JS overrides these every mousemove */
  transform: translate(-50%, -50%) scale(0);
  width: clamp(130px, 12vw, 180px);
  height: clamp(130px, 12vw, 180px);
  border-radius: 50%;
  /* Use the logo PNG directly — it already has the right fill, border ring, and diagonal slits */
  background: url('img/bluelogo-modified.png') center / 100% 100% no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 26px);
  color: #fff;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  will-change: transform, left, top;
  /* Only animate scale/opacity — position snaps directly to cursor */
  transition: transform 0.35s cubic-bezier(0.34, 1.5, 0.64, 1),
              opacity 0.2s ease;
}
.rise-card:hover .rise-card-view {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.rise-card-name {
  display: inline-block;
  margin: 10px 0 0;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(14px, 1.3vw, 20px);
  letter-spacing: -0.01em;
  color: #fff;
  background: #000;
  padding: 0.35em 0.9em;
  border-radius: 999px;
}

/* ---------- IMAGE MARQUEE ---------- */
.img-marquee {
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.07);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  background: var(--bg);
}
.marquee-track {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-track img {
  width: auto;
  height: 160px;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-play-state: paused; }
}

/* ---------- WORK SECTION ---------- */
.work-section {
  padding: clamp(80px, 10vw, 160px) var(--pad);
  background: var(--bg);
}
.work-section-inner { max-width: 1400px; margin: 0 auto; }

.work-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: clamp(40px, 6vw, 80px);
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 20px;
}
.work-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}
.work-since {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 36px);
}

.work-item {
  cursor: pointer;
  text-align: left;
  display: block;
}
.work-item--lg { grid-column: span 2; }

.work-item-img {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}
.work-item-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.work-item--lg .work-item-img img { aspect-ratio: 21/9; }
.work-item:hover .work-item-img img { transform: scale(1.04); }

.work-item-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background .3s ease;
}
.work-item:hover .work-item-hover { background: rgba(0,0,0,0.2); }
.work-item-hover span {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity .25s, transform .25s;
}
.work-item:hover .work-item-hover span { opacity: 1; transform: scale(1); }

.work-item-meta { padding: 14px 0 0; }
.work-item-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 26px);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--ink);
}
.work-item-tags {
  font-size: 12px;
  color: var(--mute);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ---------- CONTACT FOOTER ---------- */
.foot-cta {
  background: var(--ink);
  color: var(--inv);
  padding: clamp(80px, 12vw, 180px) var(--pad) clamp(48px, 6vw, 80px);
}
.foot-cta-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}
.foot-cta-left { flex: 1; }
.foot-cta-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.foot-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  border: 2px solid rgba(240,237,232,0.8);
  border-radius: 100px;
  padding: clamp(1.2rem, 2.5vw, 2rem) clamp(2rem, 4vw, 3.5rem);
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--inv);
  background: transparent;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.foot-cta-btn .btn-arrow {
  font-size: 0.9em;
  line-height: 1;
  transition: transform 0.25s ease;
  display: inline-block;
}
.foot-cta-btn:hover {
  background: var(--inv);
  color: var(--ink);
  border-color: var(--inv);
  transform: scale(1.03);
}
.foot-cta-btn:hover .btn-arrow {
  transform: translate(5px, -5px);
}
.foot-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.45);
  margin: 0 0 28px;
}
.foot-head {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(56px, 10vw, 160px);
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: var(--inv);
  margin: 0 0 clamp(36px, 5vw, 64px);
}
.foot-head em {
  font-style: italic;
  font-weight: 600;
}
.foot-email {
  font-family: var(--f-display);
  font-size: clamp(18px, 2.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--inv);
  border-bottom: 1px solid rgba(240,237,232,0.35);
  padding-bottom: 6px;
  display: inline-block;
  transition: color .2s, border-color .2s;
}
.foot-email:hover { color: var(--accent); border-color: var(--accent); }

.foot-meta {
  max-width: 1400px;
  margin: clamp(48px, 6vw, 96px) auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(240,237,232,0.12);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.35);
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- MODAL ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 64px);
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,5,5,0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: modal-fade .25s ease;
}
.modal-stage {
  position: relative;
  width: min(860px, 100%);
  max-height: 90vh;
  background: #0a0a0a;
  color: var(--inv);
  border-radius: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,0.85);
  animation: modal-rise .35s cubic-bezier(.2,.7,.2,1);
  scrollbar-width: none;
}
.modal-stage::-webkit-scrollbar { display: none; }
.modal-close {
  position: sticky;
  top: 14px;
  left: 100%;
  z-index: 10;
  float: right;
  margin: 14px 14px 0 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--inv);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
  display: grid; place-items: center;
}
.modal-close:hover { background: rgba(255,255,255,0.22); }
.modal-media { background: #000; width: 100%; clear: both; }
.modal-media video, .modal-media img {
  width: 100%; max-height: 60vh; object-fit: cover; display: block;
}
.modal-body { padding: 28px 32px 36px; }
.modal-eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(240,237,232,0.45); margin: 0 0 8px;
}
.modal-title {
  font-family: var(--f-display);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900; letter-spacing: -0.025em;
  margin: 0 0 6px; line-height: 1.05;
}
.modal-caption {
  font-style: italic; font-size: 15px;
  color: rgba(240,237,232,0.6); margin: 0;
}
.modal-stats {
  display: flex; gap: 0; margin: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.modal-stat { flex: 1; text-align: center; border-right: 1px solid rgba(255,255,255,0.08); padding: 0 16px; }
.modal-stat:last-child { border-right: none; }
.modal-stat strong {
  display: block; font-family: var(--f-display);
  font-size: clamp(24px, 2.8vw, 38px); font-weight: 900;
  letter-spacing: -0.02em; color: #fff; line-height: 1;
}
.modal-stat span {
  display: block; font-size: 11px; color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em; text-transform: uppercase; margin-top: 5px;
}
.modal-desc { font-size: 15px; line-height: 1.65; color: rgba(240,237,232,0.75); margin: 0 0 24px; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.modal-tag {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7); font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; padding: 5px 12px; border-radius: 999px;
}
.modal-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
@media (max-width: 600px) {
  .modal-gallery { grid-template-columns: repeat(3, 1fr); }
}
.modal-gallery img,
.modal-gallery video {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 8px; opacity: 0.75; transition: opacity .2s;
}
.modal-gallery img:hover,
.modal-gallery video:hover { opacity: 1; }

/* Modal nav arrows */
.modal-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  z-index: 110; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background .2s;
  backdrop-filter: blur(6px);
}
.modal-nav:hover { background: rgba(255,255,255,0.24); }
.modal-nav--prev { left: clamp(8px, 2vw, 24px); }
.modal-nav--next { right: clamp(8px, 2vw, 24px); }
.modal-nav svg { width: 20px; height: 20px; }

@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
body.modal-open { overflow: hidden; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 3vh 3vw;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(12px);
  animation: modal-fade .2s ease;
}
.lightbox-close {
  position: fixed; top: 20px; right: 24px; z-index: 10;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); color: #fff;
  font-size: 24px; cursor: pointer; display: grid; place-items: center;
}
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background .2s; backdrop-filter: blur(6px);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-nav--prev { left: clamp(8px, 2vw, 24px); }
.lightbox-nav--next { right: clamp(8px, 2vw, 24px); }
.lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-img,
.lightbox-video {
  position: relative; z-index: 5;
  max-width: 94vw; max-height: 92vh;
  object-fit: contain; border-radius: 10px;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.9);
}
.lightbox-video {
  background: #000;
  width: min(90vw, 1280px);
  height: min(85vh, 720px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .nav-clock { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .work-item--lg { grid-column: span 1; }
  .work-item--lg .work-item-img img { aspect-ratio: 16/10; }
  .stmt-line--bold { font-size: clamp(36px, 12vw, 80px); }
  .stmt-line--italic { font-size: clamp(30px, 9vw, 64px); }
  .stmt-pin-wrap { height: 295vh; }
  .rise-card { transform: translateY(50vh); }
  .rise-card--1, .rise-card--2, .rise-card--3, .rise-card--4,
  .rise-card--5, .rise-card--6, .rise-card--7 { width: 46%; }
  .rise-card-view { display: none; }
  .rise-card--1 { left: 3%; }
  .rise-card--2 { right: 3%; bottom: -8%; }
  .rise-card--3 { left: 5%; bottom: 0; }
  .rise-card--4 { right: 5%; }
  .rise-card--5 { right: 3%; bottom: 22%; }
  .rise-card--6 { left: 3%; bottom: 0; }
  .rise-card--7 { left: 5%; }
  .foot-meta { flex-direction: column; gap: 8px; }
  .foot-cta-inner { flex-direction: column; align-items: flex-start; gap: 2.5rem; }
  .foot-cta-right { justify-content: flex-start; }
  .foot-cta-btn { font-size: clamp(1.3rem, 6vw, 1.8rem); }
  .modal-nav { display: none; }
}

/* ─── INTRO — scale up from final positions ───────────────────────────────
   Hero zooms gently in while UI elements bloom up from their resting spots,
   staggered so the page assembles left → right.
   ─────────────────────────────────────────────────────────────────────── */
@keyframes ix-scale-hero {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 1; transform: none; }
}
@keyframes ix-scale {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: none; }
}
@keyframes ix-scale-badge {
  from { opacity: 0; transform: translateY(-50%) scale(0.88); }
  to   { opacity: 1; transform: translateY(-50%); }
}

body.intro-anim .hero-slides,
body.intro-anim .hero-overlay     { animation: ix-scale-hero 1.1s    0ms cubic-bezier(.22,1,.36,1) both; }
body.intro-anim .nav-pong         { animation: ix-scale      700ms 100ms cubic-bezier(.16,1,.3,1)  both; }
body.intro-anim .nav-clocks       { animation: ix-scale      700ms 220ms cubic-bezier(.16,1,.3,1)  both; }
body.intro-anim .nav-stack        { animation: ix-scale      700ms 320ms cubic-bezier(.16,1,.3,1)  both; }
body.intro-anim .spin-badge-wrap  { animation: ix-scale-badge 700ms 420ms cubic-bezier(.16,1,.3,1) both; }
body.intro-anim .hero-bottom-left { animation: ix-scale      800ms 500ms cubic-bezier(.16,1,.3,1)  both; }

/* Restore normal CSS once intro finishes */
body.intro-done .hero-slides,
body.intro-done .hero-overlay,
body.intro-done .hero-bottom-left,
body.intro-done .nav-pong,
body.intro-done .nav-clocks,
body.intro-done .nav-stack        { animation: none; transform: none; }
body.intro-done .spin-badge-wrap  { animation: none; transform: translateY(-50%); }

/* Mobile override — must come after the intro-done rule to win the cascade */
@media (max-width: 600px) {
  body.intro-done .spin-badge-wrap {
    right: 12px;
    left: auto;
    top: 86%;
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .marquee-track { animation: none; }
}
