/* ============================================================
   NoMiddle: institutional grotesque, dark Apple-Music theme
   Near-black surfaces, Helvetica-style type, flat red accent.
   ============================================================ */

:root {
  --bg: #0b0b0c;
  --bg-2: #131315;
  --panel: #161618;
  --ink: #f5f5f7;
  --ink-2: rgba(245, 245, 247, 0.66);
  --ink-3: rgba(245, 245, 247, 0.4);
  --hair: rgba(245, 245, 247, 0.16);
  --hair-soft: rgba(245, 245, 247, 0.09);
  --red: #fa2d48;
  --red-deep: #d21e36;
  --helv: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.container--wide { max-width: 1360px; }

/* ---------- ambient background grid ---------- */
.bggrid {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* ---------- scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 210; background: transparent;
}
.progress__bar {
  height: 100%; width: 100%;
  background: var(--red);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair-soft);
  transition: transform 0.45s var(--ease);
}
.nav--hidden { transform: translateY(-100%); }
.nav__inner {
  max-width: 1360px; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* Helvetica wordmark */
.brand {
  font-family: var(--helv);
  font-size: 20px; font-weight: 700; letter-spacing: -0.035em;
  display: inline-flex; align-items: baseline;
}
.brand--sm { font-size: 18px; }
.brand__struck { position: relative; margin-left: 1px; }
.brand__mark { font-family: var(--mono); font-size: 8px; font-weight: 400; margin-left: 3px; color: var(--ink-3); }

.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  position: relative; padding: 4px 0;
  transition: color 0.2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__links a.is-active { color: var(--red); }

.nav__right { display: flex; align-items: center; gap: 20px; }

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* mobile menu */
.mobmenu {
  position: fixed; inset: 0; z-index: 190;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 0 32px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.mobmenu.is-open { opacity: 1; pointer-events: auto; }
.mobmenu__links { display: flex; flex-direction: column; gap: 8px; }
.mobmenu__links a {
  font-family: var(--helv);
  font-size: clamp(30px, 8.4vw, 42px); font-weight: 600;
  letter-spacing: -0.03em; padding: 8px 0; border-bottom: 1px solid var(--hair-soft);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mobmenu.is-open .mobmenu__links a { opacity: 1; transform: none; }
.mobmenu__links a:nth-child(1) { transition-delay: 0.05s; }
.mobmenu__links a:nth-child(2) { transition-delay: 0.1s; }
.mobmenu__links a:nth-child(3) { transition-delay: 0.15s; }
.mobmenu__links a:nth-child(4) { transition-delay: 0.2s; }
.mobmenu__links a:nth-child(5) { transition-delay: 0.25s; }
.mobmenu__links a:nth-child(6) { transition-delay: 0.3s; }
.mobmenu__links a:nth-child(7) { transition-delay: 0.35s; }
.mobmenu__cta { color: var(--red); }
.mobmenu__foot { color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  padding: 14px 26px; border-radius: 4px;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
  white-space: nowrap;
}
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); }
.btn--ghost { border: 1px solid var(--hair); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn__arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- left rail ---------- */
.rail {
  position: fixed; left: clamp(10px, 1.6vw, 24px); top: 50%;
  transform: translateY(-50%); z-index: 100;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.rail__line { width: 1px; height: 56px; background: var(--hair); }
.rail__index { display: flex; flex-direction: column; gap: 10px; }
.rail__index li {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink-3); opacity: 0.55;
  transition: opacity 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.rail__index li.is-active { color: var(--red); opacity: 1; transform: translateX(2px); }

/* ---------- eyebrow / headings ---------- */
.eyebrow { color: var(--ink-3); margin-bottom: 28px; }
.eyebrow--invert { color: var(--ink-3); }

.h2 {
  font-family: var(--helv);
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.035em;
  max-width: 16em;
}
.h2 em { font-style: normal; color: var(--red); }

.section { padding: clamp(88px, 12vw, 160px) 0; border-top: 1px solid var(--hair-soft); }
.section__intro {
  max-width: 560px; margin-top: 26px;
  font-size: 17px; color: var(--ink-2);
}

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.line-mask { display: block; overflow: hidden; }
.line { display: block; transform: translateY(110%); transition: transform 1s var(--ease); }
.is-loaded .line { transform: none; }
.line-mask:nth-child(2) .line { transition-delay: 0.08s; }
.line-mask:nth-child(3) .line { transition-delay: 0.16s; }
.line-mask:nth-child(4) .line { transition-delay: 0.24s; }

/* ---------- hero ---------- */
.hero {
  padding-top: calc(var(--nav-h) + clamp(64px, 9vw, 120px));
  padding-bottom: clamp(20px, 3vw, 40px);
}
.hero__title {
  font-family: var(--helv);
  font-size: clamp(36px, 6.4vw, 82px);
  font-weight: 700; line-height: 1.0; letter-spacing: -0.04em;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.hero__period { color: var(--red); }
.hero__ai { font-style: normal; color: var(--red); }

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 40px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.hero__lede { max-width: 620px; font-size: 17.5px; color: var(--ink-2); }
.hero__lede strong { color: var(--ink); font-weight: 600; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- placeholder blocks ---------- */
.ph {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(245,245,247,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,245,247,0.03) 1px, transparent 1px),
    var(--bg-2);
  background-size: 40px 40px, 40px 40px, auto;
  border: 1px solid var(--hair-soft);
  display: flex; align-items: center; justify-content: center;
}
.ph::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--hair-soft) 50%, transparent calc(50% + 0.5px));
}
.ph__tag {
  position: absolute; top: 14px; left: 16px;
  color: var(--ink-3); font-size: 10px;
  background: var(--bg); border: 1px solid var(--hair-soft);
  padding: 5px 9px; z-index: 2; letter-spacing: 0.1em;
}

/* ---------- work: pinterest masonry ---------- */
.section.work {
  border-top: 0;
  padding-top: 0;
}
.work__grid {
  columns: 3;
  column-gap: clamp(16px, 2.2vw, 28px);
  margin-top: 0;
}
.workcard {
  display: block;
  break-inside: avoid;
  margin-bottom: clamp(16px, 2.2vw, 28px);
  border: 1px solid var(--hair-soft); background: var(--panel);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.workcard:hover { transform: translateY(-4px); border-color: var(--hair); }
.workcard__media { overflow: hidden; background: var(--bg-2); }
.workcard__media video {
  width: 100%; height: auto; display: block;
  transition: transform 0.6s var(--ease);
}
/* masonry tiles: uniform 16:9 frame (all landscape sources are 16:9) */
.work__grid .workcard__media { aspect-ratio: 16 / 9; }
.work__grid .workcard__media video { height: 100%; object-fit: cover; }
.workcard__media iframe {
  width: 100%; height: 100%; display: block; border: 0;
}
.workcard--yt .workcard__media { aspect-ratio: 16 / 9; }
.workcard:hover video { transform: scale(1.02); }
.work__row {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  margin-top: clamp(4px, 0.8vw, 10px);
}
.work__row .workcard { margin-bottom: 0; }
.workcard__cap {
  display: block; padding: 12px 16px;
  color: var(--ink-3); border-top: 1px solid var(--hair-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- case study ---------- */
.case__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 28px);
  margin-top: clamp(40px, 6vw, 64px);
}
.casecard {
  border: 1px solid var(--hair-soft); background: var(--panel);
  padding: clamp(22px, 2.8vw, 34px);
}
.casecard .card__num { margin-bottom: 14px; }
.casecard__title {
  font-family: var(--helv);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.14;
  margin-bottom: 12px;
}
.casecard__copy { color: var(--ink-2); font-size: 14.5px; margin-bottom: 16px; }
.case__charts {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.2vw, 28px);
  margin-top: clamp(16px, 2.2vw, 28px);
}
.growth {
  border: 1px solid var(--hair-soft);
  background: var(--bg-2);
  padding: clamp(20px, 2.6vw, 30px);
}
.growth__kicker { color: var(--ink-3); margin-bottom: 14px; }
.growth__stat {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.growth__stat b {
  font-family: var(--helv);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 700; letter-spacing: -0.03em;
}
.growth__stat em { font-style: normal; color: var(--red); }
.growth__stat .mono { color: var(--ink-3); }
.growthchart { display: block; width: 100%; height: auto; overflow: visible; }
.growth__base { stroke: var(--hair-soft); stroke-width: 1; }
.growth__axis {
  display: flex; justify-content: space-between;
  margin-top: 10px; color: var(--ink-3); font-size: 9px;
}
.spark__line {
  fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.2s var(--ease) 0.4s;
}
.spark__area { opacity: 0; transition: opacity 0.8s var(--ease) 1s; }
.spark__dot { opacity: 0; transition: opacity 0.4s var(--ease) 1.5s; }
.reveal.is-in .spark__line { stroke-dashoffset: 0; }
.reveal.is-in .spark__area { opacity: 1; }
.reveal.is-in .spark__dot { opacity: 1; }

/* ---------- case study flow chart ---------- */
.flow {
  margin-top: clamp(40px, 6vw, 64px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.flow svg {
  min-width: 900px; width: 100%; height: auto; display: block;
}
.fc-rect {
  fill: var(--panel);
  stroke: var(--hair);
  stroke-width: 1;
}
.fc-rect--end { stroke: var(--red); }
.fc-title {
  font-family: var(--helv);
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
  fill: var(--ink);
}
.fc-title--end { fill: var(--red); }
.fc-num { fill: var(--red); font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.08em; }
.fc-sub {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.13em;
  fill: rgba(245, 245, 247, 0.42);
}
.fc-lane {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.16em;
  fill: rgba(245, 245, 247, 0.32);
}
.fc-path {
  fill: none;
  stroke: rgba(245, 245, 247, 0.3);
  stroke-width: 1.2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.9s var(--ease);
}
.fc-node {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.flow.is-in .fc-path { stroke-dashoffset: 0; }
.flow.is-in .fc-node { opacity: 1; transform: none; }

/* ---------- services ---------- */
.services__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-bottom: clamp(36px, 5vw, 56px);
}
.services__nav { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.services__count { color: var(--ink-3); margin-right: 6px; }
.services__count b { color: var(--ink); font-weight: 500; }
.services__btn {
  width: 46px; height: 46px; border: 1px solid var(--hair); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.services__btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.services__btn:disabled { opacity: 0.3; pointer-events: none; }

.slider {
  overflow: hidden; cursor: grab;
  padding-left: max(calc((100vw - 1200px) / 2 + 48px), 20px);
}
.slider.is-dragging { cursor: grabbing; }
.slider__track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  padding-right: clamp(20px, 4vw, 48px);
  will-change: transform;
}
.card {
  flex: 0 0 auto;
  width: clamp(300px, 56vw, 560px);
  border: 1px solid var(--hair-soft);
  background: var(--panel);
  display: flex; flex-direction: column;
  user-select: none;
}
.ph--card { aspect-ratio: 16 / 10; border: none; border-bottom: 1px solid var(--hair-soft); }
.card__media {
  aspect-ratio: 16 / 10; overflow: hidden;
  border-bottom: 1px solid var(--hair-soft);
  background: var(--bg-2);
}
.card__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__body { padding: clamp(22px, 3vw, 34px); }
.card__num { color: var(--red); margin-bottom: 14px; }
.card__title {
  font-family: var(--helv);
  font-size: clamp(22px, 2.4vw, 29px);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.1;
  margin-bottom: 12px;
}
.card__copy { color: var(--ink-2); font-size: 15.5px; margin-bottom: 18px; }
.card__list li {
  position: relative; padding: 9px 0 9px 22px;
  font-size: 14.5px; color: var(--ink-2);
  border-top: 1px solid var(--hair-soft);
}
.card__list li::before {
  content: ""; position: absolute; left: 2px; top: 16px;
  width: 5px; height: 5px; background: var(--red);
}

/* ---------- proof ---------- */
.proof__grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px); margin-top: clamp(40px, 6vw, 64px);
}
.proofcard.proofcard--single {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: stretch;
}
.proofcard--single .proofcard__media {
  position: relative; overflow: hidden;
  border-right: 1px solid var(--hair-soft);
  min-height: 320px; background: var(--bg-2);
}
.proofcard--single .proofcard__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.proofcard--single .proofcard__body { justify-content: center; }
.proofcard {
  border: 1px solid var(--hair-soft); background: var(--panel);
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.proofcard:hover { transform: translateY(-4px); border-color: var(--hair); }
.ph--proof { aspect-ratio: 16 / 9.5; border: none; border-bottom: 1px solid var(--hair-soft); }
.proofcard__body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.proofcard__kicker { color: var(--red); }
.proofcard__body h3 {
  font-family: var(--helv);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.14;
}
.proofcard__body p { color: var(--ink-2); font-size: 15px; }
.proofcard__link {
  margin-top: auto; padding-top: 10px;
  font-size: 14px; font-weight: 600;
  display: inline-flex; gap: 8px; align-items: center;
}
.proofcard__link span { transition: transform 0.3s var(--ease); }
.proofcard:hover .proofcard__link span { transform: translateX(4px); }
.proofcard:hover .proofcard__link { color: var(--red); }

/* ---------- engagement ---------- */
.eng__grid {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(20px, 3vw, 32px); margin-top: clamp(40px, 6vw, 64px);
  align-items: stretch;
}
.engcard {
  border: 1px solid var(--hair-soft); background: var(--panel);
  padding: clamp(28px, 3.4vw, 44px);
  display: flex; flex-direction: column; gap: 16px;
}
.engcard--featured { border: 1px solid var(--red); position: relative; }
.engcard__kicker { color: var(--ink-3); }
.engcard__flag { color: var(--red); }
.engcard h3 {
  font-family: var(--helv);
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.14;
  max-width: 15em;
}
.engcard__copy { color: var(--ink-2); font-size: 15px; }
.engcard__price {
  display: flex; align-items: baseline; gap: 12px;
  margin-top: 4px;
}
.engcard__price b {
  font-family: var(--helv);
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 700; letter-spacing: -0.03em;
}
.engcard__price .mono { color: var(--ink-3); }
.engcard .card__list { margin-bottom: 10px; }
.engcard .btn { align-self: flex-start; margin-top: auto; }

/* ---------- contact ---------- */
.contact {
  background: #000; color: var(--ink);
  border-top: 1px solid var(--hair-soft);
}
.contact__title {
  font-family: var(--helv);
  font-size: clamp(38px, 6.4vw, 82px);
  font-weight: 700; line-height: 0.98; letter-spacing: -0.045em;
}
.contact__title em { font-style: normal; color: var(--red); }
.contact__lede {
  margin-top: 28px; max-width: 480px;
  color: var(--ink-2); font-size: 17px;
}
.contact__row { margin-top: clamp(40px, 6vw, 64px); }
.contact__mail {
  font-family: var(--helv);
  font-size: clamp(22px, 3.6vw, 40px); font-weight: 600; letter-spacing: -0.03em;
  position: relative; display: inline-block; padding-bottom: 6px;
}
.contact__mailline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red);
  transform: scaleX(0.25); transform-origin: 0 50%;
  transition: transform 0.5s var(--ease);
}
.contact__mail:hover .contact__mailline { transform: scaleX(1); }

/* ---------- footer ---------- */
.footer { background: #000; color: var(--ink); border-top: 1px solid var(--hair-soft); }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap;
}
.footer .brand__mark { color: var(--ink-3); }
.footer__meta { color: var(--ink-3); }
.footer__top { color: var(--ink-2); transition: color 0.2s; letter-spacing: 0.14em; font-size: 11px; }
.footer__top:hover { color: var(--ink); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(5, 5, 6, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px; padding: clamp(16px, 4vw, 48px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__body {
  max-width: min(1200px, 94vw); max-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  transform: scale(0.97);
  transition: transform 0.35s var(--ease);
}
.lightbox.is-open .lightbox__body { transform: none; }
.lightbox__body video {
  max-width: min(1200px, 94vw); max-height: 80vh;
  width: auto; height: auto;
  border: 1px solid var(--hair-soft);
  background: #000;
}
.lightbox__body iframe {
  width: min(1200px, 94vw, calc(80vh * 16 / 9));
  aspect-ratio: 16 / 9;
  border: 1px solid var(--hair-soft);
  background: #000;
}
.lightbox__close {
  position: absolute; top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px);
  color: var(--ink-2); letter-spacing: 0.14em; font-size: 11px;
  padding: 10px 14px;
  border: 1px solid var(--hair); border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lightbox__close:hover { color: #fff; border-color: var(--red); background: var(--red); }
.lightbox__cap { color: var(--ink-3); }

/* click-capture overlay on embed tiles */
.workcard__media { position: relative; }
.workcard__hit {
  position: absolute; inset: 0; z-index: 2;
  cursor: pointer;
}

/* ---------- custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 300;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-label { width: 64px; height: 64px; background: var(--red); }
.cursor__label { color: #fff; font-size: 9px; letter-spacing: 0.16em; opacity: 0; transition: opacity 0.2s; }
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .rail { display: none; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .case__grid { grid-template-columns: 1fr; }
  .case__charts { grid-template-columns: 1fr; }
  .proof__grid { grid-template-columns: 1fr; }
  .proofcard.proofcard--single { grid-template-columns: 1fr; }
  .proofcard--single .proofcard__media { border-right: 0; border-bottom: 1px solid var(--hair-soft); min-height: 0; aspect-ratio: 16 / 9; }
  .proofcard--single .proofcard__media video { position: static; }
  .eng__grid { grid-template-columns: 1fr; }
  .services__head { flex-direction: column; align-items: flex-start; }
  .slider { padding-left: 20px; }
}
@media (max-width: 1000px) {
  .work__grid { columns: 2; }
  .work__row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .work__grid { columns: 2; }
  .work__row { grid-template-columns: repeat(3, 1fr); }
  .flow { display: none; }
  /* main titles ~40% larger on phones */
  .hero__title { font-size: clamp(48px, 13.5vw, 58px); }
  .h2 { font-size: clamp(42px, 12vw, 50px); }
  .contact__title { font-size: clamp(50px, 14vw, 60px); }
}
@media (max-width: 560px) {
  .nav__right .btn { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .line { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .line { transform: none; }
  .fc-path { stroke-dashoffset: 0; transition: none; }
  .fc-node { opacity: 1; transform: none; transition: none; }
  .spark__line { stroke-dashoffset: 0; transition: none; }
  .spark__area, .spark__dot { opacity: 1; transition: none; }
}
