.cinematic-hero {
  --reel-accent: #a855f7;
  --reel-ambient: #5b21b6;
  display: grid;
  min-height: calc(100svh - 80px);
  margin-top: 80px;
  padding: 24px 24px 28px;
  overflow: clip;
  isolation: isolate;
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    #09090b;
  background-size: 72px 72px;
}

.cinematic-hero__ambient {
  position: absolute;
  z-index: -1;
  top: 64px;
  left: 42%;
  width: 58%;
  height: 620px;
  pointer-events: none;
  background:
    radial-gradient(circle at 38% 46%, color-mix(in srgb, var(--reel-ambient) 28%, transparent), transparent 58%),
    radial-gradient(circle at 80% 40%, rgba(249,115,22,0.09), transparent 46%);
  filter: blur(24px);
}

.cinematic-hero__shell {
  width: min(1360px, 100%);
  min-height: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  grid-template-rows: auto auto minmax(80px, 1fr);
  column-gap: clamp(40px, 5vw, 84px);
  row-gap: 18px;
  align-items: center;
}

.cinematic-hero__copy {
  align-self: center;
  max-width: 545px;
  padding-top: 4px;
}

.cinematic-hero__eyebrow,
.proof-reel__label {
  color: var(--purple-300);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cinematic-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.cinematic-hero__eyebrow::after {
  content: "";
  width: 112px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple-400), var(--orange-400));
}

.cinematic-hero h1 {
  max-width: 540px;
  color: #f8fafc;
  font-size: clamp(52px, 4.55vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: none;
  animation: none;
}

.cinematic-hero__lede {
  max-width: 500px;
  margin-top: 28px;
  color: #b8b8c2;
  font-size: 18px;
  line-height: 1.75;
}

.cinematic-hero__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}

.cinematic-hero__actions .btn-white,
.cinematic-hero__secondary {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-radius: 8px;
  text-decoration: none;
}

.cinematic-hero__actions .btn-white {
  padding: 0 24px;
  color: #fff;
  border: 1px solid transparent;
  background:
    linear-gradient(#09090b, #09090b) padding-box,
    linear-gradient(110deg, var(--purple-400), var(--orange-400)) border-box;
}

.cinematic-hero__secondary {
  min-height: 44px;
  padding: 0 2px;
  color: #d4d4d8;
  border-bottom: 1px solid var(--orange-400);
  border-radius: 0;
}

.proof-reel__viewport {
  position: relative;
  min-width: 0;
  width: 100%;
  height: min(38vw, 552px);
  max-height: 552px;
  align-self: center;
}

.proof-reel__slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  opacity: 0;
  transform: translateX(14px);
  pointer-events: none;
  transition: opacity 400ms ease, transform 400ms ease;
}

.proof-reel__slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.proof-reel__slide[hidden] {
  display: none;
}

.proof-reel__browser {
  position: relative;
  width: calc(100% - 38px);
  margin-right: 38px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  background: #080b17;
  box-shadow: 0 34px 84px rgba(0,0,0,0.5), 0 0 80px color-mix(in srgb, var(--reel-ambient) 20%, transparent);
}

.proof-reel__browser-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  color: #8a8a98;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-reel__window-dots { display: flex; gap: 6px; }
.proof-reel__window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
.proof-reel__window-dots i:nth-child(2) { background: #f59e0b; }
.proof-reel__window-dots i:nth-child(3) { background: #22c55e; }

.proof-reel__browser picture { display: block; }
.proof-reel__slide.has-media-error .proof-reel__browser picture { display: none; }
.proof-reel__media-fallback {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px;
  text-align: center;
  color: #a1a1aa;
}
.proof-reel__media-fallback strong {
  color: #f4f4f5;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
}
.proof-reel__media-fallback p { max-width: 500px; line-height: 1.6; }
.proof-reel__media-fallback a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: #f4f4f5;
  text-decoration: none;
  border-bottom: 1px solid var(--reel-accent);
}
.proof-reel__desktop-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 510px;
  object-fit: cover;
  object-position: top center;
}

.proof-reel__phone {
  position: absolute;
  right: 0;
  bottom: 10px;
  width: clamp(112px, 17%, 154px);
  z-index: 2;
  filter: drop-shadow(0 28px 36px rgba(0,0,0,0.56));
}

.proof-reel__phone-image { display: block; width: 100%; height: auto; }

.proof-reel__evidence {
  grid-column: 1 / -1;
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0, 2.45fr) minmax(170px, 0.85fr) minmax(240px, 1.05fr) 186px;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(17,17,26,0.62);
}

.proof-reel__meta-viewport { min-width: 0; display: grid; }

/* Panels stack in one cell so the rail holds the tallest panel's height
   and the founder wall below never jumps when the reel advances. */
.proof-reel__meta-panel {
  grid-area: 1 / 1;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(190px, 0.95fr) minmax(240px, 1.15fr);
  opacity: 0;
  transition: opacity 300ms ease;
}

.proof-reel__meta-panel.is-active { opacity: 1; }

.proof-reel__meta-panel[hidden] {
  display: grid;
  visibility: hidden;
}

.proof-reel__evidence-zone,
.proof-reel__controls {
  min-width: 0;
  padding: 20px 28px;
  border-right: 1px solid rgba(255,255,255,0.10);
}

.proof-reel__controls[hidden] { display: none !important; }

.rail-stack {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 42px;
  padding: 0 20px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.rail-stack__label {
  flex: none;
  font-size: 10px;
  color: #8484a0;
}

.rail-stack__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.rail-stack__track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  padding-right: 32px;
  animation: rail-stack-scroll 46s linear infinite;
}

.rail-stack:hover .rail-stack__track { animation-play-state: paused; }

@keyframes rail-stack-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.rail-stack__item {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #85858f;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rail-stack__item img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1) opacity(0.5);
}
.proof-reel__media-fallback[hidden],
.proof-reel__phone[hidden] { display: none !important; }

.proof-reel__evidence-zone { display: flex; flex-direction: column; justify-content: flex-start; gap: 7px; }
.proof-reel__evidence-zone strong { color: #f4f4f5; font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 1.2; }
.proof-reel__evidence-zone > span:not(.proof-reel__label):not(.project-status) { color: #9696a3; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.proof-reel__evidence-zone p { color: #cacad2; font-size: 13.5px; line-height: 1.5; }

.project-status { display: inline-flex; width: fit-content; align-items: center; gap: 7px; color: #a6a6b3; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.project-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
.project-status--private-production::before { background: #fdba74; box-shadow: 0 0 8px rgba(253, 186, 116, 0.5); }
.project-status--preview::before { background: #67e8f9; box-shadow: 0 0 8px rgba(103, 232, 249, 0.5); }
.project-status--in-development::before { background: #c4b5fd; box-shadow: 0 0 8px rgba(196, 181, 253, 0.5); }

.proof-reel__studio-stack { gap: 5px; }
.proof-reel__studio-stack .proof-reel__label:nth-of-type(2) { margin-top: 9px; }
.proof-reel__studio-stack p { font-family: var(--font-display); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }

.proof-reel__controls {
  border-right: 0;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.proof-reel__counter { color: #d4d4d8; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.08em; }
.proof-reel__controls > div { display: flex; gap: 2px; }
.proof-reel__controls button {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  color: #f4f4f5;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

@media (min-width: 821px) {
  .cinematic-hero ~ .ask-max { bottom: 8px; }
}


.hero-proof {
  grid-column: 1 / -1;
  align-self: stretch;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-proof__label-block {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 40px;
  border-right: 1px solid rgba(255,255,255,0.10);
}

.hero-proof__sublabel {
  color: #777784;
  font-size: 11px;
  line-height: 1.45;
  max-width: 132px;
}

.hero-proof__list {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-proof__list li {
  display: flex;
  align-items: center;
  opacity: 0.72;
  transition: opacity 300ms ease, transform 300ms ease;
}

.hero-proof__list li:hover { opacity: 1; transform: translateY(-2px); }

.hero-proof__logo {
  display: block;
  height: 30px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hero-proof__logo--unilever { height: 34px; }
.hero-proof__logo--nestle { height: 24px; }
.hero-proof__logo--wrigley { height: 27px; }
.hero-proof__logo--wu { height: 26px; }

.hero-proof__wordmark,
.hero-proof__lockup {
  color: #f0f0f4;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-proof__lockup { gap: 9px; }

.hero-proof__wordmark--nm { font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-size: 15px; letter-spacing: 0.02em; text-transform: none; }

.hero-proof__wordmark--pg {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: none;
}

@media (min-width: 861px) and (max-width: 1599px) {
  .cinematic-hero { padding-bottom: 48px; }
  .hero-proof { align-self: start; padding-right: 100px; }
  .hero-proof__list { gap: 20px 18px; }
  .hero-proof__wordmark, .hero-proof__lockup { font-size: 12.5px; }
  .hero-proof__wordmark--nm { font-size: 14px; }
  .hero-proof__wordmark--pg { font-size: 28px; }
  .hero-proof__logo--unilever { height: 32px; }
  .hero-proof__logo--wrigley { height: 25px; }
  .hero-proof__logo--nestle { height: 22px; }
  .hero-proof__logo--wu { height: 24px; }
}

@media (min-width: 861px) and (max-width: 1366px) {
  .cinematic-hero { padding-bottom: 36px; }
  .cinematic-hero__shell { row-gap: 14px; }
  .rail-stack { min-height: 38px; }
  .hero-proof { padding-right: 0; }
  .hero-proof__list { gap: 20px 14px; }
  .hero-proof__wordmark, .hero-proof__lockup { font-size: 11.5px; }
  .hero-proof__wordmark--nm { font-size: 13px; }
  .hero-proof__wordmark--pg { font-size: 25px; }
  .hero-proof__logo--unilever { height: 29px; }
  .hero-proof__logo--wrigley { height: 22px; }
  .hero-proof__logo--nestle { height: 20px; }
  .hero-proof__logo--wu { height: 22px; }
}

.hero-brand-bleed {
  position: absolute;
  top: 50%;
  left: 6px;
  width: 84px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.22;
}

.hero-brand-bleed img { display: block; width: 100%; height: auto; }

@media (min-width: 1600px) {
  .hero-brand-bleed {
    width: clamp(96px, 8vw, 130px);
    opacity: 0.95;
    filter: drop-shadow(0 0 36px rgba(168, 85, 247, 0.3));
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1120px) {
  .cinematic-hero__shell { grid-template-columns: minmax(320px, 0.42fr) minmax(0, 0.58fr); column-gap: 36px; }
  .cinematic-hero h1 { font-size: clamp(46px, 5vw, 62px); }
  .proof-reel__evidence { grid-template-columns: 1.8fr 0.9fr 1.1fr 172px; }
  .proof-reel__evidence-zone, .proof-reel__controls { padding: 20px 16px; }
}

@media (max-width: 860px) {
  .cinematic-hero { min-height: auto; padding-top: 36px; }
  .cinematic-hero__shell { min-height: auto; grid-template-columns: 1fr; grid-template-rows: auto; gap: 34px; }
  .hero-proof { grid-column: 1; flex-direction: column; align-items: flex-start; gap: 22px; padding: 8px 0; }
  .hero-proof__label-block { flex-direction: row; align-items: baseline; gap: 14px; padding-right: 0; border-right: 0; }
  .hero-proof__sublabel { max-width: none; }
  .hero-proof__list { width: 100%; justify-content: flex-start; gap: 22px 38px; }
  .hero-brand-bleed { display: none; }
  .cinematic-hero__copy { max-width: 690px; }
  .cinematic-hero h1 { max-width: 690px; }
  .cinematic-hero__lede { max-width: 650px; }
  .proof-reel__viewport { height: min(70vw, 570px); }
  .proof-reel__evidence { grid-column: 1; grid-template-columns: 1fr 1fr; }
  .proof-reel__meta-viewport { grid-column: 1 / -1; }
  .proof-reel__principle { border-top: 1px solid rgba(255,255,255,0.10); }
  .proof-reel__studio-stack { border-top: 1px solid rgba(255,255,255,0.10); }
  .proof-reel__controls { grid-column: 1 / -1; min-height: 74px; flex-direction: row; align-items: center; border-top: 1px solid rgba(255,255,255,0.10); }
}

@media (max-width: 639px) {
  .cinematic-hero { margin-top: 64px; padding: 28px 16px 48px; background-size: 48px 48px; }
  .cinematic-hero__shell { gap: 28px; }
  .cinematic-hero__eyebrow { margin-bottom: 20px; }
  .cinematic-hero__eyebrow::after { width: 72px; }
  .cinematic-hero h1 { font-size: clamp(38px, 11.8vw, 50px); line-height: 1.03; }
  .cinematic-hero__lede { margin-top: 22px; font-size: 16px; line-height: 1.65; }
  .cinematic-hero__actions { align-items: stretch; flex-direction: column; gap: 14px; margin-top: 28px; }
  .cinematic-hero__actions .btn-white { width: 100%; }
  .cinematic-hero__secondary { width: fit-content; align-self: center; }
  .proof-reel__viewport { height: 64vw; min-height: 208px; max-height: 258px; }
  .proof-reel__browser { width: 100%; margin-right: 0; border-radius: 10px; }
  .proof-reel__browser-bar { height: 30px; font-size: 8px; }
  .proof-reel__desktop-image { max-height: 380px; }
  .proof-reel__phone { display: none; }
  .proof-reel__evidence { grid-template-columns: 1fr; }
  .proof-reel__meta-viewport, .proof-reel__controls { grid-column: 1; }
  .proof-reel__meta-panel { grid-template-columns: 1fr; }
  .proof-reel__evidence-zone, .proof-reel__controls { border-right: 0; border-top: 1px solid rgba(255,255,255,0.10); padding: 20px; }
  .proof-reel__meta-panel .proof-reel__evidence-zone:first-child { border-top: 0; }
}

@media (max-width: 639px) {
  /* Centered, compact founder strip — even optical sizing, small enough that
     all seven marks sit above the fold without feeling cramped. */
  .hero-proof { gap: 12px; align-items: center; text-align: center; }
  .hero-proof__label-block { flex-direction: column; align-items: center; gap: 3px; }
  .hero-proof__list { justify-content: center; align-items: center; gap: 12px 18px; }
  .hero-proof__logo { height: 18px; max-width: 92px; }
  .hero-proof__logo--unilever { height: 20px; }
  .hero-proof__logo--nestle { height: 15px; }
  .hero-proof__logo--wrigley { height: 18px; }
  .hero-proof__logo--wu { height: 17px; }
  .hero-proof__wordmark, .hero-proof__lockup { font-size: 11px; }
  .hero-proof__wordmark--nm { font-size: 11px; }
  .hero-proof__wordmark--pg { font-size: 17px; }
}

@media (max-width: 639px) {
  /* Mobile hero order: eyebrow → title → auto-rotating proof image → buttons →
     founder logos. The subtitle and the (now scrolled-away, so disconnected)
     "Featured System" evidence box + reel controls are dropped; the reel just
     auto-advances. Desktop layout is untouched. `display: contents` lets the
     copy block's children reorder alongside the image via flex `order`. */
  .cinematic-hero__shell {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
  }
  .cinematic-hero__copy { display: contents; }
  .cinematic-hero__eyebrow { display: none; }   /* drop the pre-title kicker on phones to free vertical space */
  .cinematic-hero h1 { order: 2; }
  .proof-reel__viewport { order: 3; margin-top: 18px; }
  .cinematic-hero__lede { display: none; }
  .cinematic-hero__actions { order: 5; margin-top: 22px; gap: 12px; }
  .hero-proof { order: 6; margin-top: 24px; }
  .proof-reel__evidence { display: none; }
  .cinematic-hero [data-reel-live] { order: 7; }
}

@media (prefers-reduced-motion: reduce) {
  .proof-reel__slide { transition: none; transform: none; }
  .proof-reel__meta-panel { transition: none; }
  .cinematic-hero__ambient { filter: none; }
  .hero-brand-bleed { filter: none; }
  .rail-stack__track { animation: none; }
  .rail-stack__viewport { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}

@media (forced-colors: active) {
  .cinematic-hero__actions .btn-white,
  .proof-reel__browser,
  .proof-reel__evidence { border: 1px solid CanvasText; }
  .project-status::before { border: 1px solid CanvasText; }
}

.project-card__image { display: block; width: 100%; height: 100%; object-fit: cover; }
[data-project-slug="line-os"] .proof-reel__desktop-image { filter: brightness(0.92) saturate(0.95); }
.proof-body .project-status { margin: -2px 0 14px; }
.project-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.project-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  color: #e4e4e7;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
}
