/* Page CSS for Manthan Teotia's portfolio. The kit (assets/system.css) owns tokens, grid, nav, buttons and the
   section box; this file holds what sits inside the visuals and the motion layer's resting states. */
:root { --cobalt: #1558c9; --lime: #d4ff24; --ease-out: cubic-bezier(.16, 1, .3, 1); }
html { background: var(--p-bg); }
.hero__watch { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--p-ink); font-weight: 500; text-decoration: none; min-height: 44px; }
.hero__watch:hover { color: var(--lime); }
.hero__watch-dot { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px; background: var(--lime); box-shadow: 0 0 0 6px rgba(212,255,36,.15); position: relative; }
.hero__watch-dot::after { content: ""; position: absolute; left: 13px; top: 10px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--p-bg); }
.lightbox video { max-width: min(94vw, 1180px); max-height: 86svh; border-radius: 14px; background: #000; box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 50; translate: -50% 12px; opacity: 0;
  max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 12px; background: var(--lime); color: var(--p-bg); font-weight: 500; font-size: 15px;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); transition: opacity .25s, translate .25s var(--ease-out); }
.toast.is-on { opacity: 1; translate: -50% 0; }
body { overflow-x: clip; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: clip; }
.hero__glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 90vh; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--cobalt) 55%, transparent), transparent 70%);
  filter: blur(20px); opacity: .55;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { font-kerning: none; }
.hero__stage {
  position: relative; border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center;
  background:
    radial-gradient(60% 55% at 50% 45%, color-mix(in oklab, var(--cobalt) 70%, transparent), transparent 75%),
    linear-gradient(180deg, #070a14, #030407);
  border: 1px solid color-mix(in oklab, var(--p-ink) 10%, transparent);
}
.hero__stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(transparent 95%, rgba(255,255,255,.25) 95%), linear-gradient(90deg, transparent 95%, rgba(255,255,255,.18) 95%);
  background-size: 28px 28px; mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent);
}
.phone {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 1; height: min(86%, 640px); aspect-ratio: 9 / 16; border-radius: 34px; padding: 8px;
  background: linear-gradient(160deg, #2a2d36, #0b0c10 60%); box-shadow: 0 40px 80px -30px rgba(21, 88, 201, .7), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.phone__video { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; display: block; background: #000; }
.phone__sound {
  position: absolute; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--p-bg); background: var(--lime); transition: transform .2s var(--ease-out);
}
.phone__sound svg { width: 20px; height: 20px; }
.phone__sound[aria-pressed="false"] .wave { opacity: .25; }
.phone__sound:hover { transform: scale(1.06); }
.cost-card { z-index: 2; min-width: 280px; }
.cost-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 8px; }
.cost-card__old { text-decoration: line-through; color: var(--p-muted); font-family: var(--font-mono); }
.cost-card__new { font-family: var(--font-display); font-size: 32px; color: var(--lime); letter-spacing: -.02em; }

/* ---------------------------------------------------------------- statement */
.statement { background: var(--cobalt); color: #f5f7ff; overflow: clip; }
.statement .wrap { justify-content: center; gap: var(--s-7); }
.statement__type {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -.045em; line-height: .92; margin: 0;
  font-size: clamp(56px, 10.5vw, 168px); color: #f5f7ff;
}
.statement__lime { color: var(--lime); }
.statement__fact { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.4; max-width: 46ch; margin: 0; color: #f5f7ff; }
.statement__fact .word { opacity: .28; }
.statement__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); margin: 0; border-top: 1px solid rgba(255,255,255,.28); padding-top: var(--s-6); }
.statement__facts div { min-width: 0; }
.statement__facts dt { font-size: var(--t-label); color: rgba(245,247,255,.82); }
.statement__facts dd { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(28px, 3vw, 44px); letter-spacing: -.03em; }
@media (max-width: 767px) { .statement__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- work reel */
.work { display: flex; flex-direction: column; overflow: clip; }
.work > .wrap { height: auto !important; flex: 0 0 auto; }
.work__head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; }
.work__head h2 { max-width: 22ch; }
.work__hint { margin: 0; }
.reel { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; margin-top: var(--s-6); }
.reel__track { display: flex; gap: var(--s-6); padding-inline: max(var(--gut), calc((100vw - 1280px) / 2)); will-change: transform; }
.ad { flex: 0 0 auto; width: clamp(180px, calc((100svh - 430px) * .5625), 300px); }
.ad__phone {
  display: block; width: 100%; aspect-ratio: 9 / 16; padding: 6px; border: 0; border-radius: 28px; cursor: pointer;
  background: linear-gradient(160deg, #262933, #0b0c10 65%); position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -36px rgba(21,88,201,.8); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.ad__phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; display: block; background: #000; }
.ad__phone::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; translate: -50% -50%; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23030407'/%3E%3C/svg%3E") center / 26px no-repeat;
  transition: opacity .25s, scale .25s var(--ease-out);
}
.ad__phone.is-playing::after { opacity: 0; scale: .6; }
.ad__phone:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -34px rgba(212,255,36,.35); }
.ad h3 { font-size: var(--t-card); margin: var(--s-5) 0 var(--s-2); }
.ad p { margin: 0; color: var(--p-muted); font-size: 16px; line-height: 1.5; }
@media (max-width: 1023px) {
  .reel { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-5); }
  .ad { scroll-snap-align: center; width: min(72vw, 280px); }
}

/* ---------------------------------------------------------------- case: the studio window */
.case__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6); align-content: start; }
.case__rows li { border-top: 1px solid var(--line); padding-top: var(--s-5); }
.case__rows p { margin: var(--s-3) 0 0; font-size: 19px; line-height: 1.5; }
.app {
  border-radius: 18px; border: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); overflow: hidden;
  background: linear-gradient(180deg, #0c0f17, #07080c); display: flex; flex-direction: column; min-height: 460px;
  box-shadow: 0 60px 120px -60px rgba(21,88,201,.8);
}
.app__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 13px; color: var(--p-muted); }
.app__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2e38; }
.app__bar span { margin-left: 8px; flex: 1; }
.app__pause { width: 44px; height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: transparent; color: var(--p-ink); display: grid; place-items: center; cursor: pointer; }
.app__pause svg { width: 12px; height: 12px; }
.app__body { display: grid; grid-template-columns: 150px 1fr; flex: 1; min-height: 0; }
.app__steps { list-style: none; margin: 0; padding: 16px; border-right: 1px solid rgba(255,255,255,.07); display: grid; align-content: start; gap: 6px; }
.app__steps li { font-size: 14px; padding: 9px 12px; border-radius: 8px; color: var(--p-muted); position: relative; transition: background .3s, color .3s; }
.app__steps li.is-on { color: var(--p-bg); background: var(--lime); }
.app__steps li.is-done { color: var(--p-ink); }
.app__steps li.is-done::after { content: "\2713"; position: absolute; right: 10px; color: var(--lime); }
.app__stage { position: relative; padding: 24px; overflow: hidden; min-height: 320px; }
.app__panel { position: absolute; inset: 24px; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: 0; visibility: hidden; }
.app__panel[data-panel="4"] { opacity: 1; visibility: visible; }
.app__panel[data-panel="0"] { flex-direction: row; align-items: center; gap: 24px; }
.app__photo { width: 42%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.app__meta { display: grid; gap: 6px; } .app__meta b { font-size: 22px; font-weight: 500; }
.script { border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px 16px; background: rgba(255,255,255,.02); }
.script p { margin: 4px 0 0; font-size: 17px; }
.script__tag { font-family: var(--font-mono); font-size: 13px; color: var(--lime); }
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.clips figure { margin: 0; } .clips img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; border-radius: 10px; display: block; }
.clips figcaption { font-family: var(--font-mono); font-size: 13px; color: var(--p-muted); margin-top: 6px; }
.capstyles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.capstyles span { border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 14px 8px; text-align: center; font-weight: 600; font-size: 15px; }
.capstyles .on { background: var(--lime); color: var(--p-bg); border-color: var(--lime); }
.ready { display: grid; justify-items: center; gap: 10px; text-align: center; }
.ready b { font-family: var(--font-display); font-size: 40px; font-weight: 500; letter-spacing: -.03em; }
.ready__tick { width: 72px; height: 72px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23030407' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 34px no-repeat; }
.app__progress { height: 3px; background: rgba(255,255,255,.06); } .app__progress i { display: block; height: 100%; width: 100%; background: var(--lime); transform-origin: left; }
@media (max-width: 639px) {
  .app__body { grid-template-columns: 1fr; }
  .app__steps { display: flex; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.07); padding: 10px; }
  .app__steps li { padding: 6px 10px; font-size: 13px; } .app__steps li.is-done::after { content: none; }
}

/* ---------------------------------------------------------------- built: bento tiles */
.tile__panel { position: relative; overflow: hidden; min-height: 200px; border-radius: var(--r-md); background: linear-gradient(180deg, #0d1018, #07080c); border: 1px solid rgba(255,255,255,.07); }
.bento .tile h3 { font-size: var(--t-card); }
.bars { position: absolute; inset: 0; display: grid; align-content: center; gap: 22px; padding: 28px; }
.bars__row { display: grid; grid-template-columns: 70px 1fr 60px; align-items: center; gap: 14px; font-size: 14px; color: var(--p-muted); }
.bars__row i { height: 14px; border-radius: 7px; background: rgba(255,255,255,.18); transform-origin: left; }
.bars__row--now i { background: var(--lime); }
.bars__row b { font-family: var(--font-mono); font-weight: 500; color: var(--p-ink); }
.hooks img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hooks img.on { opacity: 1; }
.hooks__label { position: absolute; left: 16px; bottom: 16px; font-family: var(--font-mono); font-size: 13px; background: var(--lime); color: var(--p-bg); padding: 6px 10px; border-radius: 6px; }
.caps { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 4px 14px; padding: 20px; }
.caps__w { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3vw, 46px); letter-spacing: -.02em; color: #fff; text-shadow: 0 3px 0 #000; display: inline-block; }
.caps__w--lime { color: var(--lime); }
.switch { display: grid; align-content: center; justify-items: center; gap: 14px; padding: 20px; font-family: var(--font-mono); font-size: 14px; }
.switch__a { color: var(--p-muted); text-decoration: line-through; }
.switch__b { color: var(--p-bg); background: var(--lime); padding: 8px 12px; border-radius: 6px; }
.switch__line { width: 2px; height: 48px; background: rgba(255,255,255,.15); position: relative; overflow: hidden; }
.switch__line i { position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--lime); animation: drop 1.6s linear infinite; }
@keyframes drop { to { top: 100%; } }

/* ---------------------------------------------------------------- campaign wall */
.wall { align-items: start; }
.wall__ad { display: block; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 5; background: #111; }
.wall__ad img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .6s var(--ease-out); }
.wall__ad:hover img { scale: 1.03; }

/* ---------------------------------------------------------------- earlier, skills */
.earlier__panel { min-height: 380px; border-radius: var(--r-lg); background: linear-gradient(180deg, #0d1018, #07080c); border: 1px solid rgba(255,255,255,.07); }
.rows small { display: block; color: var(--p-muted); font-size: 16px; line-height: 1.5; margin-top: 6px; font-weight: 400; }
.rows .rows__name { font-size: 20px; }
.skills__col h3 { margin: 0 0 var(--s-4); }
.chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chips li {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border-radius: 12px; font-size: 16px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); transition: border-color .25s, transform .25s var(--ease-out);
}
.chips li:hover { border-color: color-mix(in oklab, var(--lime) 60%, transparent); transform: translateX(3px); }
.chips img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 22px; }
.chip__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); margin-inline: 6px; flex: 0 0 10px; }

@media (prefers-reduced-motion: reduce) {
  .switch__line i { animation: none; top: 30%; }
  .statement__fact .word { opacity: 1 !important; }
}

/* the kit's lit card ground is sand by default; on this black-and-cobalt page the panels are a dark studio glass */
.panel.tile__panel, .panel.earlier__panel {
  background: radial-gradient(80% 70% at 30% 0%, rgba(21, 88, 201, .32), transparent 70%), linear-gradient(180deg, #0d1018, #07080c) !important;
  border: 1px solid rgba(255, 255, 255, .08);
}
.panel.tile__panel::before, .panel.earlier__panel::before { background: none !important; }
.work__head { margin-bottom: var(--s-6); }

@media (max-width: 639px) {
  .hero .cost-card { display: none; }
  .hero__stage { min-height: 300px; }
  /* phone: the work plays on the first screen, right after the story; the buttons follow it (Email is also in the bar) */
  .hero__grid { display: flex; flex-direction: column; }
  .hero__text { display: contents; }
  .hero__grid > * { width: 100%; }
  .hero__kicker { order: 1; }
  .hero__id { order: 2; }
  .hero__lead { order: 3; }
  .hero .hero__media { order: 4; flex: none; height: auto; min-height: 0 !important; margin-top: var(--s-4); padding: 14px 0; }
  .hero .hero__media .phone { position: relative; left: auto; top: auto; translate: none; height: min(46vh, 400px) !important; }
  .hero .btn-row { order: 5; margin-top: var(--s-5); }
  .hero .filmcard { order: 6; }
  .phone { height: 92%; border-radius: 22px; padding: 5px; }
  .phone__video { border-radius: 18px; }
  .phone__sound { right: 10px; bottom: 10px; }
}

@media (max-width: 1023px) {
  main > section.case, main > section.earlier, main > section.skills { height: auto; }
  .case .fill, .earlier .fill, .skills .fill { flex: none; }
  .app { margin-top: var(--s-6); }
  .app__stage { min-height: 400px; }
}
@media (max-width: 1023px) {
  main > section.case, main > section.earlier, main > section.skills { display: block !important; }
  main > section.case > .wrap, main > section.earlier > .wrap, main > section.skills > .wrap { height: auto !important; min-height: 0; }
}
@media (max-width: 1023px) {
  main > section:is(.case, .earlier, .skills) > .wrap > .fill { flex: none !important; }
}

/* ---------------------------------------------------------------- round 2 (gate fixes) */
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none; right: -10%; top: -20%; width: 70%; height: 90%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--cobalt) 55%, transparent), transparent 70%);
  opacity: .55; translate: var(--gx, 0px) var(--gy, 0px); transition: translate 1.2s var(--ease-out);
}
.statement__row { align-items: end; }
.statement__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; padding-top: 0; row-gap: var(--s-6); }
.statement__fact .word { display: inline; }
/* the ad row: five phones across the container, one screen */
.work > .wrap { height: 100% !important; }
.reel { margin-top: var(--s-5); align-items: start; }
.reel__track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-6); padding: 0; width: 100%; will-change: auto; }
.ad { width: auto; }
.ad__phone { max-height: calc(100svh - 430px); width: auto; max-width: 100%; aspect-ratio: 9 / 16; margin-inline: auto; }
.ad p { font-size: 16px; }
@media (max-width: 1023px) {
  .reel { overflow: visible; scroll-snap-type: none; padding: 0; }
  .reel__track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
  .ad { width: auto; } .ad__phone { max-height: none; width: 100%; }
  .ad:last-child { grid-column: 1 / -1; width: calc(50% - var(--s-5) / 2); justify-self: center; }
  main > section.work { --hm: 2; height: auto; }
  main > section.work > .wrap > .fill { flex: none !important; }
}
@media (max-width: 639px) { .ad p { display: none; } .ad h3 { font-size: 16px; } }
.models { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 18px; align-content: center; }
.models span { border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 10px 12px; font-weight: 500; font-size: 15px; display: grid; gap: 2px; background: rgba(255,255,255,.02); }
.models small { font-family: var(--font-mono); font-size: 13px; color: var(--p-muted); font-weight: 400; }
.app__steps li { color: #c9cdd6; }
.workflow { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #000; display: grid; place-items: center; }
.workflow img { width: 100%; height: 100%; object-fit: contain; display: block; }
.skills__label { margin: 0 0 var(--s-4); }
@media (max-width: 639px) {
  .earlier__panel { min-height: 520px; }
  .workflow { aspect-ratio: 3 / 1; }
  main > section.skills { --hm: 2; }
}
@media (max-width: 400px) { .nav__actions { display: none; } }

/* ---------------------------------------------------------------- round 3 (gate fixes) */
.clip { position: relative; } .clip img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; border-radius: 10px; display: block; }
.clip__tag { position: absolute; left: 8px; top: 8px; font-family: var(--font-mono); font-size: 13px; padding: 3px 7px; border-radius: 6px; background: rgba(3,4,7,.78); color: var(--p-ink); }
.chip__dot { width: 22px; height: 22px; margin: 0; flex: 0 0 22px; border-radius: 0; background: radial-gradient(circle, var(--lime) 0 5px, transparent 5.5px); }
.statement__row { align-items: start; }
.ad__phone { max-height: calc(100svh - 500px); }
@media (max-width: 1023px) { main > section.work { --hm: 1; } .ad__phone { max-height: none; } }
@media (max-width: 639px) {
  .earlier__panel { display: none; }
  .tile__panel { min-height: 150px; }
  .bento .tile p { font-size: 15px; }
}
.work__head h2 { max-width: none; }
@media (max-width: 359px) { .nav__logo { font-size: 16px; } .nav__logo .mark { display: none; } }
.ad__phone { max-height: calc(100svh - 540px); }
.ad p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1023px) { .ad__phone { max-height: none; } }
@media (max-width: 1023px) { .reel { margin-bottom: var(--s-7); } }

/* the DP: a circle left of the name, ringed in the accent */
.hero__id { display: flex; align-items: flex-start; gap: clamp(14px, 1.6vw, 22px); }
.hero__id h1 { margin: 0; min-width: 0; }
.hero__avatar { flex: 0 0 auto; width: clamp(64px, 6.2vw, 92px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-top: .35em;
  box-shadow: 0 0 0 3px var(--p-bg), 0 0 0 5px var(--lime), 0 18px 40px -16px rgba(212,255,36,.45); }
.hero__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 639px) { .hero__avatar { width: 56px; margin-top: .25em; } }
@media (min-width: 640px) { .hero__id h1 { font-size: clamp(40px, 3.6vw, 54px); } }

/* ---------------------------------------------------------------- hero at tablet widths and short laptop heights
   (a zoomed laptop lands at ~975x660): text and phone stay side by side from 768px, sized to the screen */
@media (min-width: 768px) and (max-width: 1279px) {
  .hero .hero__grid { display: grid !important; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) !important; column-gap: 32px; align-items: stretch; height: 100%; }
  .hero .hero__text { grid-column: 1 !important; grid-row: 1 !important; align-self: center; }
  .hero .hero__stage { grid-column: 2 !important; grid-row: 1 !important; height: 100% !important; min-height: 0; max-height: none; margin: 0 !important; }
  .hero .phone { height: min(88%, 560px); }
  .hero .cost-card { display: none; }
  main > .hero { height: 100svh !important; min-height: 560px; }
  .hero__id h1 { font-size: clamp(34px, 4.2vw, 48px); }
  .hero__lead { font-size: 17px; }
}
@media (min-width: 1280px) and (max-height: 760px) {
  .hero__id h1 { font-size: clamp(36px, 3.2vw, 46px); }
  .hero .cost-card { display: none; }
}

/* ---------------------------------------------------------------- pipeline motion graphic */
.pipeline { overflow: clip; background: radial-gradient(60% 40% at 50% 60%, rgba(21,88,201,.22), transparent 70%), var(--p-bg); }
.pipe__sticky { position: sticky; top: calc(var(--nav) + 24px); display: flex; flex-direction: column; gap: var(--s-6); height: calc(100svh - var(--nav) - 96px); }
.pipe__stage { position: relative; flex: 1 1 auto; min-height: 340px; }
.pipe__svg { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 220px; overflow: visible; }
.pipe__base, .pipe__line { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.pipe__base { stroke: rgba(255,255,255,.12); stroke-width: 2; stroke-dasharray: 2 8; }
.pipe__line { stroke: url(#pipe-g); stroke-width: 4; filter: drop-shadow(0 0 8px rgba(212,255,36,.55)); }
.pipe__packet { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; z-index: 3;
  background: #fff; box-shadow: 0 0 0 4px rgba(212,255,36,.35), 0 0 24px 8px rgba(212,255,36,.6); }
.pipe__nodes { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.pipe__node { position: absolute; left: var(--x); top: var(--y); width: 16.6%; translate: -50% 0; text-align: center;
  display: grid; justify-items: center; gap: 6px; opacity: .38; transition: opacity .4s; }
.pipe__node.is-on, .pipe__node.is-done { opacity: 1; }
.pipe__dot { width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; display: grid; place-items: center; z-index: 2;
  background: #0b0d12; border: 1px solid rgba(255,255,255,.16); color: var(--p-muted); transition: background .35s, color .35s, box-shadow .35s, scale .35s var(--ease-out); }
.pipe__dot svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pipe__node.is-done .pipe__dot { color: var(--lime); border-color: rgba(212,255,36,.5); }
.pipe__node.is-on .pipe__dot { background: var(--lime); color: var(--p-bg); border-color: var(--lime); scale: 1.18; box-shadow: 0 0 0 8px rgba(212,255,36,.14), 0 0 40px rgba(212,255,36,.5); }
.pipe__num { font-family: var(--font-mono); font-size: 13px; color: var(--lime); margin-top: 6px; }
.pipe__node h3 { margin: 0; font-size: 20px; }
.pipe__node p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--p-muted); max-width: 20ch; }
.pipe__console { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03); font-family: var(--font-mono); font-size: 14px; min-height: 52px; }
.pipe__step { color: var(--p-bg); background: var(--lime); padding: 3px 8px; border-radius: 6px; flex: 0 0 auto; }
.pipe__log { color: var(--p-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipe__log::after { content: "_"; color: var(--lime); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 1023px) {
  main > section.pipeline { height: auto; --hm: 1; }
  .pipe__sticky { position: static; height: auto; }
  .pipe__svg, .pipe__packet { display: none; }
  .pipe__stage { min-height: 0; }
  .pipe__nodes { position: relative; inset: auto; display: grid; gap: 22px; padding-left: 34px; }
  .pipe__nodes::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: rgba(255,255,255,.12); }
  .pipe__nodes::after { content: ""; position: absolute; left: 13px; top: 8px; width: 2px; height: calc(var(--fill, 0) * (100% - 16px)); background: linear-gradient(var(--cobalt), var(--lime)); box-shadow: 0 0 10px rgba(212,255,36,.6); }
  .pipe__node { position: relative; left: auto; top: auto; width: auto; translate: none; text-align: left; justify-items: start; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; }
  .pipe__dot { grid-row: 1 / span 3; width: 44px; height: 44px; margin: 0 0 0 -56px; }
  .pipe__dot svg { width: 20px; height: 20px; }
  .pipe__num { margin: 0; grid-column: 2; } .pipe__node h3, .pipe__node p { grid-column: 2; } .pipe__node p { max-width: none; }
  .pipe__console { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pipe__node { opacity: 1; } .pipe__log::after { animation: none; } }

/* ---------------------------------------------------------------- brand campaigns: tabs + gallery + lightbox */
.campaign__head { display: grid; gap: var(--s-5); }
.ctabs { display: flex; flex-wrap: wrap; gap: 10px; }
.ctab { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); color: var(--p-ink); font: 500 15px/1 var(--font-text);
  transition: background .25s, color .25s, border-color .25s; }
.ctab span { font-family: var(--font-mono); font-size: 13px; color: var(--p-muted); }
.ctab:hover { border-color: rgba(212,255,36,.6); }
.ctab[aria-selected="true"] { background: var(--lime); color: var(--p-bg); border-color: var(--lime); }
.ctab[aria-selected="true"] span { color: var(--p-bg); }
.cpanels { margin-top: var(--s-6); }
.cpanel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.cpanel .wall__ad { aspect-ratio: 4 / 5; }
@media (min-width: 1024px) { .cpanel { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1040px; } }
@media (max-width: 767px) { .cpanel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } main > section.campaign { height: auto; --hm: 1; } }
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(3,4,7,.9); backdrop-filter: blur(6px); }
.lightbox img { max-width: min(92vw, 640px); max-height: 88svh; border-radius: 16px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--lime); color: var(--p-bg); font-size: 28px; line-height: 1; }
main > section.campaign { height: auto !important; min-height: 100svh; }
main > section.campaign > .wrap { height: auto !important; }

/* ---------------------------------------------------------------- Fixed by morning: the incident log */
main > section.stories { height: auto !important; min-height: 100svh; background: linear-gradient(180deg, var(--p-bg), #05070d 40%, var(--p-bg)); }
main > section.stories > .wrap { height: auto !important; }
.stories__head { display: grid; gap: 14px; max-width: 900px; margin-bottom: var(--s-7); }
.stories__eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #ff7a7a; margin: 0; font-family: var(--font-mono); }
.stories__dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 0 0 rgba(255,90,90,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255,90,90,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,90,0); } }
.stories__head h2 { margin: 0; }
.stories__deep { width: fit-content; color: var(--lime); font-weight: 500; }
.inc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.inc__card { position: relative; border-radius: 18px; padding: clamp(20px, 2.2vw, 30px); border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); overflow: hidden; transition: transform .35s var(--ease-out), border-color .35s; }
.inc__card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(#ff5a5a, #ffc145 45%, var(--lime)); transform-origin: top; transform: scaleY(var(--prog, 1)); }
.inc__card:hover { transform: translateY(-3px); border-color: rgba(212,255,36,.4); }
.inc__top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 13px; }
.inc__id { color: var(--p-bg); background: var(--lime); padding: 3px 8px; border-radius: 6px; }
.inc__lane { color: var(--p-ink); border: 1px solid rgba(255,255,255,.16); padding: 2px 8px; border-radius: 6px; }
.inc__sev { color: #ff8f8f; }
.inc__card h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.25; margin: 14px 0 16px; }
.inc__rows { margin: 0; display: grid; gap: 12px; }
.inc__rows div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: baseline; }
.inc__rows dt { font-family: var(--font-mono); font-size: 13px; }
.inc__rows div:nth-child(1) dt { color: #ff7a7a; }
.inc__rows div:nth-child(2) dt { color: #ffc145; }
.inc__rows div:nth-child(3) dt { color: var(--lime); }
.inc__rows dd { margin: 0; font-size: 16px; line-height: 1.55; color: #d6d9e0; }
.inc__rows div:nth-child(3) dd { color: var(--p-ink); font-weight: 500; }
@media (max-width: 900px) { .inc { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .inc__rows div { grid-template-columns: 1fr; gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .stories__dot { animation: none; } }

/* ---------------------------------------------------------------- round 8: the ad row at true phone size
   The phones used to take their height from the screen (100svh - 540px), so a short laptop screen squeezed
   them into pills. Now they take their width from the column and keep 9:16; the section grows to fit. */
main > section.work { --hm: 2; height: auto !important; min-height: 0 !important; padding-block: clamp(72px, 9vh, 120px); }
main > section.work > .wrap { height: auto !important; }
main > section.work > .wrap > .fill { flex: none !important; }
.reel { margin-top: clamp(28px, 4vh, 48px); }
.ad__phone, .ad__phone.is-playing { max-height: none !important; width: 100% !important; aspect-ratio: 9 / 16; padding: 5px; border-radius: 26px; }
.ad__phone video { border-radius: 21px; transition: transform .6s var(--ease-out); }
.ad__phone:hover video { transform: scale(1.03); }
.ad__phone::after { width: 58px; height: 58px; box-shadow: 0 0 0 10px rgba(212,255,36,.16), 0 18px 40px -12px rgba(0,0,0,.7); }
.ad__phone.is-preview::after { opacity: .9; scale: .85; }
.ad__tag { position: absolute; left: 14px; top: 14px; z-index: 1; font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; padding: 4px 8px; border-radius: 6px; background: rgba(3,4,7,.72); color: var(--p-ink); backdrop-filter: blur(6px); pointer-events: none; }
@media (min-width: 1024px) {
  .reel__track { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
}
@media (max-width: 639px) { .ad__tag { font-size: 10px; left: 10px; top: 10px; padding: 3px 6px; white-space: nowrap; } .ad__phone::after { width: 48px; height: 48px; background-size: 20px; } }

/* ---------------------------------------------------------------- round 8: the hero phone says what is playing */
.phone__head { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 16px 16px 34px; border-radius: 27px 27px 0 0; background: linear-gradient(180deg, rgba(3,4,7,.82), rgba(3,4,7,0)); pointer-events: none;
  transition: opacity .22s, translate .22s var(--ease-out); }
.phone__avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--p-bg);
  font-weight: 700; font-size: 15px; box-shadow: 0 0 0 2px rgba(3,4,7,.6), 0 0 0 4px rgba(212,255,36,.35); }
.phone__who { display: grid; line-height: 1.2; min-width: 0; }
.phone__who strong { font-size: 15px; letter-spacing: .04em; color: #fff; }
.phone__who small { font-family: var(--font-mono); font-size: 11.5px; color: var(--lime); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone__cap { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; margin: 0; padding: 40px 74px 18px 16px; border-radius: 0 0 27px 27px;
  background: linear-gradient(0deg, rgba(3,4,7,.85), rgba(3,4,7,0)); color: #fff; font-size: 14px; line-height: 1.4; font-weight: 500; pointer-events: none;
  transition: opacity .22s, translate .22s var(--ease-out); }
.phone__head.is-swap, .phone__cap.is-swap { opacity: 0; translate: 0 6px; }
.phone__sound { z-index: 3; }
@media (max-width: 1023px) {
  .phone__head { left: 5px; right: 5px; top: 5px; padding: 10px 10px 24px; border-radius: 18px 18px 0 0; gap: 8px; }
  .phone__avatar { width: 26px; height: 26px; flex-basis: 26px; font-size: 12px; }
  .phone__who strong { font-size: 12px; } .phone__who small { font-size: 9.5px; }
  .phone__cap { left: 5px; right: 5px; bottom: 5px; padding: 26px 56px 10px 10px; border-radius: 0 0 18px 18px; font-size: 11px; }
}
.phone__who em { font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.phone__cap { font-size: 13px; padding: 34px 62px 16px 14px; }
@media (max-width: 1023px) { .phone__who em { font-size: 8px; } .phone__cap { font-size: 10.5px; padding: 22px 50px 9px 9px; } }

/* ---------------------------------------------------------------- round 8: campaign images arrive light and fade in */
.wall__ad { background: linear-gradient(110deg, #101218 30%, #1a1d26 50%, #101218 70%) 0 0 / 300% 100%; animation: wall-shimmer 1.4s linear infinite; }
.wall__ad img { opacity: 0; transition: opacity .45s var(--ease-out), scale .6s var(--ease-out); }
.wall__ad img.is-in { opacity: 1; }
.wall__ad:has(img.is-in) { animation: none; background: #111; }
@keyframes wall-shimmer { to { background-position: -300% 0; } }
@media (prefers-reduced-motion: reduce) { .wall__ad { animation: none; } }

/* ---------------------------------------------------------------- round 8: the film, as a card people want to click */
@property --fc-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.filmcard { display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; padding: 8px 18px 8px 8px; border-radius: 16px; text-decoration: none; color: var(--p-ink);
  border: 1px solid transparent; max-width: 100%;
  background: linear-gradient(#0b0d12, #0b0d12) padding-box, conic-gradient(from var(--fc-a), rgba(212,255,36,.08) 0 60%, var(--lime) 75%, rgba(21,88,201,.9) 85%, rgba(212,255,36,.08) 100%) border-box;
  animation: fc-spin 4s linear infinite; box-shadow: 0 18px 40px -22px rgba(212,255,36,.35); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.filmcard:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -20px rgba(212,255,36,.5); }
.filmcard:active { transform: translateY(0) scale(.99); }
.filmcard__media { position: relative; flex: 0 0 auto; width: 128px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.filmcard__media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .5s var(--ease-out); }
.filmcard:hover .filmcard__media video { scale: 1.06; }
.filmcard__play { position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; translate: -50% -50%; border-radius: 50%; background: var(--lime);
  animation: fc-pulse 1.8s var(--ease-out) infinite; }
.filmcard__play::after { content: ""; position: absolute; left: 12px; top: 9px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--p-bg); }
.filmcard__time { position: absolute; right: 5px; bottom: 5px; font-family: var(--font-mono); font-size: 10px; padding: 1px 5px; border-radius: 4px; background: rgba(3,4,7,.8); color: #fff; }
.filmcard__txt { display: grid; gap: 3px; min-width: 0; }
.filmcard__txt strong { font-size: 16px; font-weight: 600; }
.filmcard:hover .filmcard__txt strong { color: var(--lime); }
.filmcard__txt small { font-size: 13px; color: var(--p-muted); line-height: 1.35; }
@keyframes fc-spin { to { --fc-a: 360deg; } }
@keyframes fc-pulse { 0% { box-shadow: 0 0 0 0 rgba(212,255,36,.6); } 70%, 100% { box-shadow: 0 0 0 12px rgba(212,255,36,0); } }
@media (max-width: 639px) { .filmcard { gap: 10px; padding-right: 12px; } .filmcard__media { width: 104px; } .filmcard__txt strong { font-size: 14px; } .filmcard__txt small { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .filmcard, .filmcard__play { animation: none; } }

/* ---------------------------------------------------------------- round 8: the logo, an M that films */
.nav__logo { gap: 10px; }
.nav__logo .logo-mark { width: 34px; height: 34px; flex: 0 0 34px; overflow: visible; transition: transform .35s var(--ease-out); }
.nav__logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.logo-mark__rec { transform-box: fill-box; transform-origin: center; animation: logo-rec 2.4s ease-in-out infinite; }
@keyframes logo-rec { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.logo-word { display: inline-flex; gap: .28em; font-weight: 600; letter-spacing: -0.03em; }
.logo-word b { font-weight: 400; color: rgba(242,243,238,.62); }
@media (max-width: 359px) { .nav__logo .logo-mark { display: none; } }
@media (prefers-reduced-motion: reduce) { .logo-mark__rec { animation: none; } }

/* a playing ad never shows its play button, hover or not */
.ad__phone.is-playing::after, .ad__phone.is-playing.is-preview::after { opacity: 0 !important; scale: .6 !important; }

/* phone-size hero: the story line runs full width above the sound button, never one word a line */
@media (max-width: 639px) {
  .phone__cap { padding: 26px 10px 58px 10px; font-size: 11.5px; line-height: 1.35; }
  .phone__head { padding-bottom: 20px; }
}

/* AI presenter reels: three phones, same component as the ad row */
@media (min-width: 1024px) { .reel__track--3 { grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: start; } }

/* the hero montage clips carry their own captions and subtitles: the story line would sit on top of them */
.phone__cap { display: none !important; }
