/* =====================================================
   HARSH RAMANI — Short-form Video Editor
   Dark by default, light via [data-theme="light"]
   ===================================================== */

:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --bg-2: #0e0e0e;
  --bg-3: #141414;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #e5e5e5;
  --text-2: #d4d4d4;
  --muted: #7a7a7a;
  --muted-2: #8f8f8f;
  --accent: #f25d00;
  --accent-2: #ff5001;
  --accent-glow: rgba(242, 93, 0, .38);
  --nav-bg: rgba(11, 11, 11, .72);
  --grain-opacity: .05;
  --grain-blend: overlay;
  --on-accent: #0b0b0b;

  --font: 'Geist', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --pad: clamp(16px, 5vw, 72px);
  --radius: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f4f2;
  --bg-2: #ebebe8;
  --bg-3: #e2e2de;
  --line: rgba(0, 0, 0, .09);
  --line-2: rgba(0, 0, 0, .18);
  --text: #101010;
  --text-2: #2b2b2b;
  --muted: #6e6e6a;
  --muted-2: #575753;
  --accent: #e85500;
  --accent-2: #f25d00;
  --accent-glow: rgba(242, 93, 0, .22);
  --nav-bg: rgba(244, 244, 242, .74);
  --grain-opacity: .07;
  --grain-blend: multiply;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
/* film-grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }
section { padding-block: clamp(72px, 10vw, 140px); }
.dot { color: var(--accent); }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 700; letter-spacing: -.03em; line-height: .95; text-transform: uppercase; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 8.5vw, 8rem); font-weight: 800; letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 5vw, 4.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h1 em, h2 em, .statement__text em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--accent);
  font-size: 1.08em;
  letter-spacing: -.01em;
}
.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .95em 1.6em;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .5s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }

/* ---------- preloader ---------- */
.loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--pad);
  transition: transform .9s var(--ease);
  will-change: transform;
}
.js .loader { display: flex; }
.loader.is-done { transform: translateY(-100%); }
.loader__brand { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.loader__count {
  font-size: clamp(4rem, 14vw, 12rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .8;
  font-variant-numeric: tabular-nums;
}

/* ---------- scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 950; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; white-space: nowrap; }
.nav__links {
  display: flex;
  gap: 32px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.nav__links a { position: relative; padding-block: 4px; transition: color .3s; white-space: nowrap; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle, .nav__burger {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  transition: border-color .3s, background .3s, transform .5s var(--ease);
}
.theme-toggle:hover, .nav__burger:hover { border-color: var(--text); }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ico-moon { display: block; }

.nav__burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav__burger span { width: 18px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: var(--pad);
  transform: translateY(-100%);
  transition: transform .7s var(--ease);
}
.mobile-menu.is-open { transform: none; }
.mobile-menu > a:not(.btn) {
  font-size: clamp(2.25rem, 9vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 140px;
  padding-bottom: 0;
  overflow: hidden;
}
.hero__glow, .page-head__glow {
  position: absolute;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  top: -20%; right: -15%;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  filter: blur(60px);
  opacity: .8;
  pointer-events: none;
}
.hero__inner { position: relative; padding-bottom: clamp(48px, 7vw, 96px); }
.hero__title { max-width: 14ch; margin-top: 24px; font-size: clamp(2.4rem, 7.4vw, 6.9rem); }
.hero__sub { max-width: 52ch; margin-top: 32px; color: var(--text-2); font-size: clamp(1rem, 1.4vw, 1.25rem); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: var(--bg);
}
.ticker__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker__track span {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-inline: 14px 28px;
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- inner page head ---------- */
.page-head { position: relative; padding-top: 160px; padding-bottom: clamp(24px, 4vw, 48px); overflow: visible; }
.page-head__title { max-width: 14ch; margin-top: 24px; font-size: clamp(2.5rem, 7vw, 6.5rem); }
.page-head .hero__sub { margin-top: 24px; }

/* ---------- section head ---------- */
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head h2 { max-width: 18ch; margin-top: 16px; }
.section-head--row { grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.section-head__note { max-width: 34ch; color: var(--muted-2); font-size: .95rem; }
@media (max-width: 760px) { .section-head--row { grid-template-columns: 1fr; align-items: start; } }

/* ---------- before / after ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .ba-grid { gap: 12px; } }

.ba__stage {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  background: #111;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  --cut: 50%;
}
.ba__layer { position: absolute; inset: 0; }
.ba__layer video { width: 100%; height: 100%; object-fit: cover; }
.ba__layer--before { background: linear-gradient(160deg, #3a3a3a, #141414); }
.ba__layer--after { background: linear-gradient(160deg, var(--g1, #f25d00), var(--g2, #1a0a02)); clip-path: inset(0 0 0 var(--cut)); }
/* placeholder watermark, hidden once real video covers it */
.ba__layer::before {
  content: attr(data-word);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  letter-spacing: -.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, .09);
  pointer-events: none;
}
.ba__layer--before::before { left: 25%; }
.ba__layer--after::before { left: 75%; }
.ba__label {
  position: absolute;
  top: 12px;
  z-index: 3;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .5em .8em;
  border-radius: 999px;
  background: rgba(11, 11, 11, .6);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.ba__label--l { left: 12px; }
.ba__label--r { right: 12px; color: #ffb27a; }
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--cut);
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
}
.ba__handle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 40px; height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  color: #0b0b0b;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.ba__handle span::before { content: "\25C2\2009\25B8"; font-size: .8rem; letter-spacing: .05em; }
.ba__sound {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 4;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(11, 11, 11, .6);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background .3s, transform .4s var(--ease);
}
.ba__sound:hover { transform: scale(1.08); }
.ba__sound .ico-sound { display: none; }
.ba.is-sound .ba__sound { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.ba.is-sound .ba__sound .ico-sound { display: block; }
.ba.is-sound .ba__sound .ico-muted { display: none; }
.ba__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.ba__meta h3 { font-size: .95rem; font-weight: 600; letter-spacing: 0; text-transform: none; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .45em .8em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted-2);
}

/* ---------- teaser link ---------- */
.teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: border-color .4s, transform .6s var(--ease);
}
.teaser:hover { border-color: var(--accent); transform: translateY(-3px); }
.teaser__label { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.teaser__arrow { font-size: 1.6rem; transition: transform .5s var(--ease); }
.teaser:hover .teaser__arrow { transform: translateX(6px); }

/* ---------- services ---------- */
.services { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-list { border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.service h3 { transition: color .3s; }
.service:hover h3 { color: var(--accent); }
.service__body p { color: var(--text-2); max-width: 52ch; }
.service__body .tags { margin-top: 18px; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: 12px; } }

.includes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 32px;
  margin-top: clamp(32px, 4vw, 48px);
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.includes li { display: flex; align-items: center; gap: 12px; }
.includes li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23000'/%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23000'/%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 860px) { .includes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .includes { grid-template-columns: 1fr; } }

/* ---------- statement ---------- */
.statement { text-align: center; }
.statement__text {
  font-size: clamp(1.5rem, 3.6vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.15;
  max-width: 24ch;
  margin-inline: auto;
  text-wrap: balance;
}

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  transition: border-color .4s;
}
.step::before {
  content: "";
  position: absolute;
  inset: auto -30% -40% auto;
  width: 60%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  filter: blur(30px);
  opacity: 0;
  transition: opacity .6s;
}
.step:hover { border-color: var(--line-2); }
.step:hover::before { opacity: 1; }
.step > * { position: relative; }
.step__num { font-family: var(--mono); color: var(--accent); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.step h3 { font-size: 1.4rem; margin-top: 56px; text-transform: none; letter-spacing: -.02em; }
.step p { color: var(--text-2); margin-top: 12px; font-size: .95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step h3 { margin-top: 32px; } }

/* ---------- other work page ---------- */
.featured { padding-top: clamp(24px, 4vw, 48px); padding-bottom: 0; }
.work-grid-section { padding-top: clamp(48px, 6vw, 80px); }
.work-group__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.work-group__head h3 { font-size: 1.05rem; letter-spacing: .02em; }
.work-group__head span { font-family: var(--mono); font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; text-align: right; }

.vid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .vid-grid { grid-template-columns: repeat(2, 1fr); } }
.vid[hidden] { display: none; }

/* reel stage: featured clip centre, two tilted clips either side */
.reel-stage { position: relative; isolation: isolate; padding-top: clamp(24px, 4vw, 48px); padding-bottom: 0; }
.reel-stage__glow {
  position: absolute;
  inset: 12% 22% 18%;
  z-index: -1;
  background: center / cover no-repeat;
  filter: blur(90px) saturate(1.5);
  opacity: .4;
  border-radius: 50%;
  pointer-events: none;
}
:root[data-theme="light"] .reel-stage__glow { opacity: .25; }
.reel-stage__row { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 4vw, 64px); }
.reel-main { width: min(380px, 100%); flex: none; }
.reel-main .vid__frame { border-radius: var(--radius); border-color: var(--line-2); box-shadow: 0 50px 120px -40px rgba(242, 93, 0, .55); }
.reel-main .vid__play { width: 84px; height: 84px; }
.reel-main .vid__tag { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.reel-side { width: clamp(150px, 17vw, 240px); flex: none; opacity: .5; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.reel-side--l { transform: rotate(-7deg) translateY(32px); }
.reel-side--r { transform: rotate(7deg) translateY(32px); }
.reel-side:hover, .reel-side.is-playing { opacity: 1; transform: none; }
.reel-side .vid__play { width: 48px; height: 48px; }
.reel-stage__stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: clamp(40px, 5vw, 64px);
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.reel-stage__stats b { color: var(--text); font-weight: 500; }
@media (max-width: 760px) {
  .reel-side { display: none; }
  .reel-main { width: min(360px, 100%); }
}

/* filter chips */
.work-group__head--filter { align-items: center; flex-wrap: wrap; }
.work-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.work-filter button {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .75em 1.2em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  transition: background .3s, color .3s, border-color .3s;
}
.work-filter button:hover { color: var(--text); border-color: var(--text-2); }
.work-filter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.work-filter sup { font-size: .8em; opacity: .7; margin-left: 2px; }
@media (max-width: 700px) { .work-group__head--filter > span { display: none; } }

@media (max-width: 700px) { .vid-grid { gap: 12px; } }

.vid__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--g1, #222), var(--g2, #0e0e0e));
  transition: border-color .4s;
}
.vid:hover .vid__frame { border-color: var(--line-2); }
.vid--wide .vid__frame { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.vid__frame::before {
  content: attr(data-idx);
  position: absolute;
  right: -.05em; bottom: -.18em;
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  color: rgba(255, 255, 255, .06);
  pointer-events: none;
}
.vid__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; background: transparent; }
.vid__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .5s var(--ease), background .3s;
}
.vid--wide .vid__play { width: 84px; height: 84px; }
.vid:hover .vid__play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent-2); }
.vid.is-playing .vid__play { display: none; }
.vid__tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .5em .8em;
  border-radius: 999px;
  background: rgba(11, 11, 11, .6);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.vid.is-playing .vid__tag { display: none; }
.vid__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.vid__meta h3 { font-size: .95rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.vid__meta span { font-family: var(--mono); font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }

/* ---------- contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  text-align: center;
  padding-block: clamp(96px, 14vw, 200px);
}
.contact::before {
  content: "";
  position: absolute;
  left: 50%; bottom: -45%;
  width: 90vw; height: 90vw;
  max-width: 1100px; max-height: 1100px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  filter: blur(70px);
  opacity: .7;
  pointer-events: none;
}
.contact .container { position: relative; }
.contact__title { font-size: clamp(2.5rem, 7vw, 7rem); max-width: 14ch; margin: 24px auto 0; }
.contact__mail {
  display: inline-block;
  margin-top: 40px;
  font-size: clamp(1.1rem, 2.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition: border-color .3s, color .3s;
}
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }
.contact__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 56px 28px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer__brand { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.footer p { color: var(--muted); font-size: .9rem; margin-top: 12px; max-width: 32ch; }
.footer h5 { margin-bottom: 14px; font-family: var(--mono); font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer li { margin-bottom: 8px; font-size: .92rem; }
.footer li a { transition: color .3s; }
.footer li a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.footer__bottom a:hover { color: var(--accent); }
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- phones ---------- */
@media (max-width: 560px) {
  .hero { min-height: 92svh; padding-top: 110px; }
  .hero__title { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .hero__sub { margin-top: 24px; }
  .hero__cta { margin-top: 28px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .page-head { padding-top: 120px; }
  .page-head__title { font-size: clamp(2.4rem, 11vw, 3.4rem); max-width: none; text-wrap: wrap; }

  /* compare cards get the full width so the slider is easy to drag */
  .ba-grid { grid-template-columns: 1fr; gap: 40px; max-width: 380px; margin-inline: auto; }
  .ba__handle span { width: 46px; height: 46px; }
  .ba__meta h3 { font-size: 1.05rem; }

  .vid-grid .vid__play { width: 48px; height: 48px; }
  .vid-grid .vid__play svg { width: 16px; height: 16px; }
  .vid-grid .vid__tag { top: 8px; left: 8px; font-size: .58rem; }
  .vid-grid .vid__frame { border-radius: 12px; }
  .vid__meta { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 10px; }
  .reel-main .vid__play { width: 72px; height: 72px; }
  .reel-stage__stats { gap: 8px 20px; }

  .step { padding: 24px; }
  .contact__actions { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .contact__actions .btn { justify-content: center; }
  .teaser { padding: 22px 24px; }
}

/* ---------- reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .loader { display: none; }
}
