:root {
  --brand: #3654d9;
  --brand-light: #7a93ff;
  --bg: #060608;
  --bg-2: #0a0a10;
  --ink: #f5f5f7;
  --muted: #8a8d99;
  --muted-2: #5e6270;
  --line: rgba(255,255,255,0.08);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--brand); color: white; }
a, button { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── SCROLL PROGRESS ─── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  z-index: 200;
  box-shadow: 0 0 12px rgba(122,147,255,0.6);
  transition: width .1s linear;
}

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 40px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(6,6,8,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
}
.nav.scrolled {
  background: rgba(6,6,8,0.7);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--line);
  padding: 14px 40px;
}
.nav-brand {
  font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: 4px; font-size: 13px;
  display: flex; align-items: center; gap: 10px;
}
.nav-brand .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-light); box-shadow: 0 0 12px var(--brand-light); animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .5; } 50% { opacity: 1; box-shadow: 0 0 24px var(--brand-light); } }
.nav-links { display: flex; gap: 36px; font-size: 13px; letter-spacing: 0.5px; color: var(--muted); position: relative; }
.nav-links a { position: relative; padding: 4px 0; transition: color .3s; }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; position: absolute; left: -10px; top: 50%;
  width: 4px; height: 4px; border-radius: 50%; background: var(--brand-light);
  transform: translateY(-50%); box-shadow: 0 0 10px var(--brand-light);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600;
  padding: 11px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2);
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.nav-cta:hover { background: var(--brand); border-color: var(--brand); color: white; transform: translateY(-1px); }

/* Mobile hamburger — hidden on desktop, shown via @media below */
.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  background: transparent; border: none; padding: 0;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  cursor: pointer;
  z-index: 110;
  position: relative;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s ease, background .25s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-toggle.open span { background: var(--brand-light); }

@media (max-width: 760px) { .nav, .nav.scrolled { padding: 16px 20px; } }

/* ─── HERO ─── */
.hero {
  position: relative; min-height: 100vh; padding: 0 40px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0;
  transform: scale(1.15);
  will-change: transform, opacity, filter;
  animation: heroBgIn 1.8s var(--ease-out) forwards;
  background: #050507;
  pointer-events: none;
}
@keyframes heroBgIn {
  0%   { opacity: 0; transform: scale(1.15); filter: blur(8px) saturate(1.1); }
  100% { opacity: 0.85; transform: scale(1.04); filter: blur(0) saturate(1.15); }
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 700px 500px at 75% 30%, rgba(54,84,217,0.25), transparent 65%),
    linear-gradient(180deg, rgba(6,6,8,0.45) 0%, rgba(6,6,8,0.55) 50%, rgba(6,6,8,0.95) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; width: 100%; padding-top: 80px; will-change: transform, opacity; }
.hero-eyebrow {
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--brand-light); font-weight: 600;
  opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease-out) .15s, transform .9s var(--ease-out) .15s;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--brand-light); display: inline-block; }
.hero h1 {
  font-family: 'Fraunces', serif; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15;
  font-size: clamp(42px, 7.5vw, 116px);
  margin: 32px 0 28px;
}
/* Character-by-character mask reveal — refined hero entrance */
.hero h1 .char {
  display: inline-block; vertical-align: top;
  overflow: hidden;
  line-height: 1;
  padding: 0.28em 0.02em;
  margin: -0.28em -0.02em;
}
.hero h1 .char span {
  display: inline-block;
  transform: translateY(180%);
  will-change: transform;
  transition: transform 1.1s var(--ease-out);
}
.hero.in h1 .char span { transform: translateY(0); }
.hero h1 em { color: var(--brand-light); font-weight: 400; font-style: italic; }
.hero-sub {
  font-size: clamp(17px, 1.3vw, 20px); color: #c8cad5; max-width: 52ch; line-height: 1.55;
  opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease-out) 1.0s, transform 1.1s var(--ease-out) 1.0s;
}
.hero-actions {
  display: flex; gap: 14px; margin-top: 44px;
  opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease-out) 1.2s, transform 1.1s var(--ease-out) 1.2s;
}
.btn {
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600;
  padding: 16px 28px; border-radius: 999px;
  transition: transform .35s var(--ease), background .3s, border-color .3s, color .3s;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: white; box-shadow: 0 10px 30px -10px rgba(54,84,217,0.6); }
.btn-primary:hover { background: var(--brand-light); box-shadow: 0 14px 36px -8px rgba(122,147,255,0.7); }
.btn-ghost { color: var(--ink); border: 1px solid rgba(255,255,255,0.25); }
.btn-ghost:hover { border-color: var(--brand-light); color: var(--brand-light); }
.btn .arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.hero.in .hero-eyebrow,
.hero.in .hero-sub,
.hero.in .hero-actions { opacity: 1; transform: translateY(0); }

.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0; transition: opacity 1s ease 1.8s;
}
.hero.in .scroll-cue { opacity: 1; }
.scroll-cue .line { width: 1px; height: 40px; background: linear-gradient(180deg, transparent, var(--muted)); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .25; transform: scaleY(.5); } 50% { opacity: 1; transform: scaleY(1); } }

/* ─── MARQUEE ─── */
.marquee {
  overflow: hidden; padding: 36px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.5);
}
.marquee-track {
  display: flex; gap: 80px; white-space: nowrap;
  width: max-content;
  will-change: transform;
}
.marquee-track span {
  font-family: 'Fraunces', serif; font-size: clamp(24px, 3vw, 42px); font-weight: 400; letter-spacing: -0.01em;
  color: var(--muted); font-style: italic;
  display: inline-flex; align-items: center; gap: 14px;
}
.marquee-track span em {
  color: var(--brand-light); font-style: normal; font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 0.32em; letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid currentColor; padding: 4px 10px; border-radius: 999px;
}

/* ─── SECTION SCAFFOLD ─── */
section.s { padding: 180px 40px; position: relative; }
.container { max-width: 1280px; margin: 0 auto; }
.eyebrow {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--brand-light);
  font-weight: 600; margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--brand-light); display: inline-block; }
h2 {
  font-family: 'Fraunces', serif; font-weight: 500; letter-spacing: -0.025em; line-height: 1.02;
  font-size: clamp(40px, 6vw, 84px);
  max-width: 18ch;
}
h2 em { color: var(--brand-light); font-weight: 400; font-style: italic; }
.lead { font-size: clamp(18px, 1.4vw, 22px); color: var(--muted); max-width: 56ch; line-height: 1.55; margin-top: 28px; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .24s; }
.reveal.delay-3 { transition-delay: .36s; }

.divider { height: 1px; background: var(--line); position: relative; margin: 0 40px; }
.divider::after {
  content: ''; position: absolute; left: 0; top: 0; height: 100%;
  width: 0; background: var(--brand-light);
  transition: width 1.4s var(--ease-out);
}
.divider.in::after { width: 100%; }

/* ─── PILLARS ─── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 96px; }
.pillar {
  border: 1px solid var(--line); border-radius: 20px; padding: 44px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  min-height: 360px; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .6s var(--ease), border-color .4s, background .4s;
  position: relative; overflow: hidden;
}
.pillar::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 280px 200px at var(--mx, 50%) var(--my, 0%), rgba(54,84,217,0.18), transparent 70%);
  opacity: 0; transition: opacity .5s;
}
.pillar:hover { transform: translateY(-8px); border-color: rgba(122,147,255,0.35); }
.pillar:hover::after { opacity: 1; }
.pillar .num { font-family: 'Fraunces', serif; font-size: 14px; color: var(--brand-light); }
.pillar h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 32px; line-height: 1.1; margin: 32px 0 16px; }
.pillar p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.pillar .more { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand-light); margin-top: 32px; font-weight: 600; }
.pillar .more .arrow { display: inline-block; margin-left: 6px; transition: transform .35s var(--ease); }
.pillar:hover .more .arrow { transform: translateX(5px); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ─── PINNED-SCRUB FEATURE ─── */
.pin-wrapper { position: relative; height: 280vh; }
.pin-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pin-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 50% 50%, rgba(54,84,217,0.4), transparent 70%),
    linear-gradient(180deg, #050507 0%, #0a0a14 100%);
}
.pin-grid {
  position: absolute; inset: 0; opacity: 0.16;
  background-image:
    linear-gradient(rgba(122,147,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,147,255,0.10) 1px, transparent 1px);
  background-size: 80px 80px;
}
.pin-card {
  position: relative; z-index: 2;
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 9;
  border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 80px 120px -40px rgba(54,84,217,0.4), 0 30px 60px -20px rgba(0,0,0,0.6);
  transform: scale(0.78);
  transition: transform .1s linear;
  will-change: transform;
  background-size: cover; background-position: center;
  background-color: #1a2050;
}
.pin-card .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
  display: flex; align-items: flex-end; padding: 48px;
}
.pin-card .label { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--brand-light); font-weight: 600; margin-bottom: 14px;}
.pin-card .quote { font-family: 'Fraunces', serif; font-weight: 400; font-style: italic; font-size: clamp(28px, 3.5vw, 56px); line-height: 1.1; max-width: 22ch; }
.pin-card .credit { font-size: 13px; color: var(--muted); margin-top: 18px; letter-spacing: 1px;}
.pin-text {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 6vh; text-align: center;
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--muted);
  z-index: 3;
}

/* ─── HORIZONTAL SCROLL "PROCESS" ─── */
.h-scroll-wrap { position: relative; height: 320vh; }
.h-scroll-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.h-scroll-header { max-width: 1280px; margin: 0 auto; padding: 0 40px 48px; width: 100%; }
.h-scroll-track { display: flex; gap: 32px; padding: 0 8vw; will-change: transform; }
.step-card {
  flex: 0 0 auto; width: 70vw; max-width: 720px; min-height: 50vh;
  border: 1px solid var(--line); border-radius: 24px; padding: 56px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.step-card::before {
  content: ''; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(54,84,217,0.4), transparent 65%); pointer-events: none;
}
.step-card .step-num {
  font-family: 'Fraunces', serif; font-size: clamp(120px, 14vw, 220px);
  font-weight: 500; line-height: 0.85; letter-spacing: -0.04em;
  color: rgba(255,255,255,0.06); position: absolute; bottom: -20px; right: 32px; pointer-events: none;
}
.step-card .step-tag { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--brand-light); font-weight: 600; }
.step-card h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(36px, 4.5vw, 64px); line-height: 1.05; margin: 24px 0 20px; max-width: 14ch; }
.step-card p { font-size: 17px; color: var(--muted); line-height: 1.6; max-width: 48ch; }
.h-scroll-progress { position: absolute; bottom: 6vh; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.h-scroll-progress .pip { width: 36px; height: 2px; background: rgba(255,255,255,0.15); transition: background .3s; }
.h-scroll-progress .pip.on { background: var(--brand-light); }

/* ─── WORK GRID ─── */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 80px; }
.work-tile {
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 4 / 5; background: #111;
  border: 1px solid var(--line);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.3s var(--ease-out);
}
.work-tile.in { clip-path: inset(0 0 0 0); }
.work-tile.wide { grid-column: span 2; aspect-ratio: 21 / 9; }
.work-tile .img {
  position: absolute; inset: -10%;
  background-size: cover; background-position: center;
  transition: transform .9s var(--ease);
  will-change: transform;
}
.work-tile:hover .img { transform: scale(1.06); }
.work-tile .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.85) 100%); }
.work-tile .meta {
  position: absolute; bottom: 32px; left: 32px; right: 32px; z-index: 2;
  transform: translateY(8px); transition: transform .4s var(--ease);
}
.work-tile:hover .meta { transform: translateY(0); }
.work-tile .meta .tag { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--brand-light); font-weight: 600; }
.work-tile .meta h3  { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(22px, 2vw, 32px); margin-top: 10px; }
.work-tile .meta p   { font-size: 13px; color: var(--muted); margin-top: 6px; }
.work-tile .arrow-tag {
  position: absolute; top: 24px; right: 24px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: background .35s, border-color .35s, transform .45s var(--ease);
  color: white; font-size: 14px;
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.3);
}
.work-tile:hover .arrow-tag { background: var(--brand); border-color: var(--brand); transform: rotate(-45deg); }
@media (max-width: 760px) {
  .pin-wrapper { height: auto; }
  .h-scroll-wrap { height: auto; }

  .pin-stage,
  .h-scroll-stage {
    height: auto;
    min-height: 0;
  }

  .step-card {
    width: 100%;
    padding: 28px 22px;
  }
}

/* ─── CONSOLE RENTAL ─── */
.rental { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; margin-top: 72px; }
.rental-stage {
  position: relative; aspect-ratio: 16 / 11; min-height: 380px; max-height: 460px;
  border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(ellipse 90% 75% at 50% 30%, rgba(54,84,217,0.55), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(54,84,217,0.30), transparent 70%),
    linear-gradient(180deg, #131c50 0%, #0c1238 50%, #0a0e2c 100%);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  isolation: isolate;
}
.rental-stage::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(122,147,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,147,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}
.rental-beams { position: absolute; top: 0; left: 0; right: 0; height: 75%; pointer-events: none; z-index: 1; }
.rental-beams .beam {
  position: absolute; top: -8%;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, transparent, rgba(122,147,255,0.55) 18%, rgba(122,147,255,0.15) 70%, transparent);
  transform-origin: 50% 0%;
  animation: beamSweep 6s ease-in-out infinite;
  filter: blur(0.6px);
}
.rental-beams .beam:nth-child(1) { left: 18%; animation-delay: -0.5s; animation-duration: 6.2s; }
.rental-beams .beam:nth-child(2) { left: 30%; animation-delay: -1.8s; animation-duration: 7s; }
.rental-beams .beam:nth-child(3) { left: 42%; animation-delay: -2.5s; animation-duration: 5.5s; }
.rental-beams .beam:nth-child(4) { left: 54%; animation-delay: -1s;   animation-duration: 6.5s; }
.rental-beams .beam:nth-child(5) { left: 66%; animation-delay: -3.2s; animation-duration: 5.2s; }
.rental-beams .beam:nth-child(6) { left: 78%; animation-delay: -2.1s; animation-duration: 7.4s; }
@keyframes beamSweep {
  0%, 100% { transform: rotate(-14deg); opacity: 0.35; }
  50%      { transform: rotate(14deg);  opacity: 0.85; }
}
.rental-glow {
  position: absolute; left: 50%; top: 32%;
  width: 70%; height: 32%; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(54,84,217,0.55), transparent 65%);
  filter: blur(48px);
  z-index: 1;
  animation: glowPulse 3.6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(0.95); }
  50%      { opacity: 0.85; transform: translateX(-50%) scale(1.05); }
}
.rental-img-wrap {
  position: relative; z-index: 3;
  width: 92%; max-width: 720px;
  transition: transform .9s var(--ease);
}
.rental-stage:hover .rental-img-wrap { transform: translateY(-8px); }
.rental-img-wrap img {
  width: 100%; display: block;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.85)) drop-shadow(0 10px 24px rgba(54,84,217,0.5));
}

.rental-content h2 { font-size: clamp(36px, 4.5vw, 64px); }
.rental-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.tier {
  border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  transition: border-color .35s, background .35s, transform .35s var(--ease);
  position: relative;
}
.tier:hover { border-color: rgba(122,147,255,0.45); transform: translateY(-3px); }
.tier.featured { border-color: var(--brand); background: linear-gradient(180deg, rgba(54,84,217,0.12), rgba(54,84,217,0.02)); }
.tier .tier-tag { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--brand-light); font-weight: 600; }
.tier h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 24px; line-height: 1.1; margin: 12px 0 10px; letter-spacing: -0.01em; }
.tier .tier-desc { font-size: 14px; color: var(--muted); line-height: 1.55; }
.tier .tier-includes { font-size: 12px; color: var(--muted-2); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); letter-spacing: 0.4px; }
.tier.featured::after {
  content: 'POPULAR'; position: absolute; top: -9px; right: 16px;
  background: var(--brand); color: white; font-size: 9px; letter-spacing: 1.8px; padding: 4px 10px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 6px 16px -4px rgba(54,84,217,0.6);
}
.rental-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 900px) { .rental { grid-template-columns: 1fr; gap: 40px; } .rental-tiers { grid-template-columns: 1fr; } .rental-stage { min-height: 320px; max-height: 380px; } }

/* ─── CREDITS LIST ─── */
.credits { margin-top: 80px; border-top: 1px solid var(--line); }
.credit-row {
  display: grid;
  grid-template-columns: 60px 90px 1fr 1.5fr 1fr;
  gap: 24px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: background .35s var(--ease), padding .35s var(--ease);
  font-size: 14px;
}
.credit-row:hover { background: rgba(122,147,255,0.04); padding-left: 18px; }
.credit-row .yr { font-family: 'Fraunces', serif; font-size: 16px; color: var(--brand-light); font-weight: 500; }
.credit-row .tag { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.credit-row .name { font-family: 'Fraunces', serif; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; color: var(--ink); letter-spacing: -0.005em; }
.credit-row .role { color: var(--muted); font-size: 14px; }
.credit-row .city { color: var(--muted-2); font-size: 13px; text-align: right; letter-spacing: 0.5px; }
.credit-row .arrow-mini { display: inline-block; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s var(--ease); color: var(--brand-light); margin-left: 8px;}
.credit-row:hover .arrow-mini { opacity: 1; transform: translateX(0); }
@media (max-width: 760px) {
  .credit-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }

  .credit-row .yr,
  .credit-row .name,
  .credit-row .role,
  .credit-row .city,
  .credit-row .tag {
    display: block;
    text-align: left;
  }

  .credit-row .yr {
    color: var(--brand-light);
  }

  .credit-row .tag {
    font-size: 10px;
    margin-top: 2px;
  }

  .credit-row .name {
    font-size: 22px;
  }

  .credit-row .role {
    font-size: 14px;
    color: var(--muted);
  }

  .credit-row .city {
    font-size: 13px;
    color: var(--muted-2);
  }
}

/* ─── STATS — pinned moment ─── */
.stats-pin-wrap { position: relative; height: 200vh; }
.stats-pin-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 0 40px; }
.stats-pin-stage .container { width: 100%; }
.stats-pin-stage .lead { margin-bottom: 64px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 40px 0; border-top: 1px solid var(--line); }
.stat .num { font-family: 'Fraunces', serif; font-size: clamp(48px, 6vw, 88px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--brand-light); }
.stat .label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stats-pin-wrap { height: 240vh; } }

/* ─── CTA ─── */
.cta-band {
  margin: 0 auto; max-width: 1280px;
  border-radius: 28px; padding: 96px 56px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 600px 400px at 80% 30%, rgba(54,84,217,0.5), transparent 60%),
    radial-gradient(ellipse 500px 350px at 20% 90%, rgba(54,84,217,0.3), transparent 60%),
    linear-gradient(135deg, #0a0e26 0%, #060608 100%);
  border: 1px solid var(--line);
}
.cta-band h2 { max-width: 16ch; margin-bottom: 36px; }
.cta-band .lead { margin-bottom: 48px; }

/* ─── FOOTER ─── */
footer { padding: 80px 40px 48px; border-top: 1px solid var(--line); }
.foot-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
footer .col h4 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 600; }
footer .col a, footer .col li { display: block; font-size: 14px; color: var(--ink); padding: 6px 0; }
footer .col a:hover { color: var(--brand-light); }
.foot-brand { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.foot-brand .em { color: var(--brand-light); font-style: italic; }
.foot-tag { font-size: 14px; color: var(--muted); margin-top: 14px; max-width: 30ch; line-height: 1.55; }
.foot-bot { max-width: 1280px; margin: 64px auto 0; padding-top: 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 36px; } .foot-bot { flex-direction: column; gap: 12px; } }

/* ═══════════════════════════════════════════════════════════════
   MOBILE — comprehensive tuning. Desktop styles stay default; these
   override only on phones/tablets. Three tiers: 900px, 760px, 480px.
   ═══════════════════════════════════════════════════════════════ */

/* ── TABLET / SMALL LAPTOP (≤900px) ── */
@media (max-width: 900px) {
  section.s { padding: 70px 24px; }
  .divider  { margin: 0 24px; }

  .hero { padding: 0 24px; }
  .hero-content { padding-top: 100px; }
  .hero h1 { font-size: clamp(38px, 11vw, 88px); margin: 24px 0 20px; line-height: 1.1; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 32px; max-width: 360px; }
  .hero-actions .btn { justify-content: center; }
  .hero-sub { max-width: 100%; }

  .marquee { padding: 24px 0; }
  .marquee-track { gap: 48px; }
  .marquee-track span { font-size: clamp(20px, 5vw, 28px); gap: 10px; }
  .marquee-track span em { font-size: 0.42em; padding: 3px 8px; }

  h2 { font-size: clamp(34px, 8vw, 56px); max-width: 100%; }
  .lead { font-size: 17px; }

  .pillars { gap: 14px; margin-top: 56px; }
  .pillar  { padding: 32px 28px; min-height: 0; }
  .pillar h3 { font-size: 26px; margin: 24px 0 14px; }

  /* Featured project: un-pin, render as a normal block (also covers iPad portrait) */
  .pin-wrapper { height: auto; }
  .pin-stage {
    position: relative; height: auto; min-height: 0;
    padding: 24px 24px 16px;
    overflow: visible;
    display: block;
  }
  .pin-bg, .pin-grid { display: none; }
  .pin-card {
    transform: scale(1) !important;
    aspect-ratio: 4/5;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    box-shadow: 0 30px 60px -20px rgba(54,84,217,0.4), 0 16px 30px -12px rgba(0,0,0,0.5);
  }
  .pin-card .veil { padding: 32px 24px; }
  .pin-card .quote { font-size: clamp(22px, 5.5vw, 36px); }
  .pin-text { display: none; }

  /* Process: un-pin, vertical stack instead of horizontal scroll */
  .h-scroll-wrap { height: auto; }
  .h-scroll-stage {
    position: relative; height: auto;
    padding: 32px 0 16px;
    display: block;
    overflow: visible;
  }
  .h-scroll-track {
    flex-direction: column;
    transform: none !important;
    padding: 0 24px;
    gap: 14px;
    will-change: auto;
  }
  .step-card {
    width: 100% !important;
    min-height: 0 !important;
    max-width: none;
    padding: 32px 28px;
    border-radius: 20px;
    flex: none;
  }
  .step-card h3 { font-size: clamp(26px, 6.5vw, 38px); margin: 18px 0 14px; }
  .step-card p  { font-size: 15px; }
  .step-card .step-num { font-size: clamp(80px, 14vw, 140px); right: 18px; bottom: -10px; }
  .h-scroll-progress { display: none; }
  .h-scroll-header { padding: 0 24px 24px; }

  .rental { gap: 28px; margin-top: 48px; }
  .rental-content h2 { font-size: clamp(30px, 7vw, 44px); }
  .rental-content .lead { font-size: 16px; }
  .tier { padding: 22px; border-radius: 14px; }
  .tier h4 { font-size: 22px; }
  .rental-cta { gap: 10px; }
  .rental-cta .btn { padding: 14px 22px; font-size: 12px; }

  /* Rental stage: drop aspect ratio + larger console */
  .rental-stage {
    aspect-ratio: auto;
    height: 240px;
    min-height: 240px;
    max-height: 240px;
    width: 100%;
  }
  .rental-img-wrap {
    width: 100%;
    max-width: none;
    padding: 0 12px;
  }

  /* Stats: un-pin, render normally */
  .stats-pin-wrap { height: auto; }
  .stats-pin-stage {
    position: relative; height: auto;
    padding: 80px 24px;
    display: block;
  }
  .stats { gap: 14px; margin-top: 48px; }
  .stat  { padding: 28px 0; }
  .stat .num { font-size: clamp(40px, 10vw, 64px); }

  .cta-band { padding: 56px 28px; border-radius: 20px; margin: 0 12px; }
  .cta-band h2 { font-size: clamp(28px, 7vw, 44px); }
  .cta-band .hero-actions { max-width: 100%; }

  footer { padding: 60px 24px 32px; }
}

/* ── PHONE (≤760px) ── */
@media (max-width: 760px) {
  /* Hero: prevent words from breaking across lines */
  .hero h1 .word { display: inline-block; white-space: nowrap; }

  /* Nav: hide desktop links, use hamburger toggle (added in header.php) */
  .nav-toggle { display: flex; }
  .nav-cta    { display: none; }                /* freed by hamburger panel */
  .nav-links {
    display: flex;
    position: fixed; top: 0; left: 0; right: 0;
    height: 100vh; padding: 80px 32px;
    background: rgba(6,6,8,0.95);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    flex-direction: column; gap: 8px;
    transform: translateY(-100%);
    transition: transform .45s var(--ease);
    z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    font-family: 'Fraunces', serif; font-size: 32px; font-weight: 500; letter-spacing: -0.01em;
    color: var(--ink); padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a.active { color: var(--brand-light); }
  .nav-links a.active::after { display: none; }

  .pin-wrapper { height: 180vh; }
  .h-scroll-wrap { height: 220vh; }
  .step-card { width: 82vw; padding: 28px 22px; }

  .work { grid-template-columns: 1fr; }
  .work-tile.wide { grid-column: span 1; aspect-ratio: 4/5; }
  .work-tile .meta { left: 24px; right: 24px; bottom: 24px; }

  .credits { margin-top: 56px; }
  .credit-row { grid-template-columns: 50px 1fr; gap: 12px; padding: 20px 4px; }
  .credit-row .tag, .credit-row .role, .credit-row .city { display: none; }

  .stats { grid-template-columns: 1fr 1fr; }

  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-bot  { flex-direction: column; gap: 12px; }
}

/* ── SMALL PHONE (≤480px) ── */
@media (max-width: 480px) {
  section.s { padding: 80px 18px; }
  .divider  { margin: 0 18px; }

  .hero { padding: 0 18px; }
  .hero-content { padding-top: 90px; }
  .hero h1 { font-size: clamp(32px, 11vw, 52px); }
  .hero-eyebrow { font-size: 11px; letter-spacing: 3px; }
  .hero-sub { font-size: 16px; }

  h2 { font-size: clamp(28px, 8vw, 42px); }
  .eyebrow { font-size: 10px; letter-spacing: 3px; margin-bottom: 18px; }
  .lead { font-size: 15px; }

  .pillars { gap: 10px; margin-top: 40px; }
  .pillar  { padding: 26px 22px; }

  .h-scroll-track { padding: 0 18px; }
  .step-card { padding: 24px 20px; }
  .step-card h3 { font-size: 24px; }
  .step-card p  { font-size: 14px; }

  .pin-card .veil { padding: 24px 20px; }
  .pin-card .quote { font-size: clamp(20px, 6vw, 30px); }

  .rental-content h2 { font-size: clamp(26px, 8vw, 36px); }
  .tier { padding: 20px; }

  .cta-band { padding: 48px 22px; margin: 0 6px; }

  .marquee-track { gap: 32px; }
  .marquee-track span { font-size: 20px; }

  footer { padding: 48px 18px 28px; }
  .foot-bot { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-bg { opacity: 0.85; transform: scale(1.04); filter: none; }
  .hero h1 .char span { transform: none; }
  .hero-eyebrow, .hero-sub, .hero-actions, .reveal { opacity: 1 !important; transform: none !important; }
  .work-tile { clip-path: none !important; }
}
