/* ==========================================================================
   FLIXIFY MEDIA — STYLES
   1. Tokens   2. Base   3. Layout & type   4. Buttons   5. Nav
   6. Hero     7. Values 8. Work  9. Services 10. Why  11. Process
   12. Pricing 13. Quotes 14. FAQ 15. CTA 16. Contact 17. Footer
   18. Player  19. Motion 20. Responsive
   ========================================================================== */

/* 1. TOKENS --------------------------------------------------------------- */
:root {
  --bg: #09090b;
  --bg-2: #111114;
  --bg-3: #17171b;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --dim: #8a8a93;
  --line: #232328;
  --line-2: #2f2f36;
  --accent: #7c3aed;
  --accent-hi: #8b5cf6;
  --accent-soft: #c4b5fd;
  --accent-glow: rgba(124, 58, 237, 0.35);

  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(88px, 12vw, 160px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }
/* Fine film grain over everything (fixed, non-interactive) */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* 3. LAYOUT & TYPE -------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); max-width: 16ch; text-wrap: balance; }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; }
h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent-soft);
  padding-right: 0.04em;
}
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 52ch; }
.mono { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
}
.eyebrow .tc { color: var(--accent-soft); padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 0.68rem; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15); display: inline-block; }

.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.section-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head--center h2 { margin: 0 auto; }
.section-head__copy { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.section-head--center .section-head__copy { margin-top: 24px; }

/* Placeholder token highlight (any [VALUE] from config.js) */
.ph {
  font-family: var(--font-mono); font-size: 0.82em; letter-spacing: 0;
  color: var(--accent-soft);
  background: rgba(124, 58, 237, 0.08);
  border: 1px dashed rgba(196, 181, 253, 0.45);
  border-radius: 6px; padding: 0.05em 0.4em;
  word-break: break-word;
}

.noscript { color: var(--muted); padding: 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* 4. BUTTONS -------------------------------------------------------------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 0.95rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn--sm { --h: 40px; padding: 0 18px; font-size: 0.88rem; }
.btn--lg { --h: 54px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 24px -10px var(--accent-glow); }
.btn--primary:hover { background: var(--accent-hi); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 14px 30px -12px var(--accent-glow); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--muted); background: rgba(255,255,255,0.05); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* 5. NAV ------------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
}
.nav.is-scrolled { background: rgba(9, 9, 11, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
/* Solid (no backdrop-filter) while the menu is open so the fixed menu panel positions against the viewport */
.nav.menu-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; flex-shrink: 0; padding: 5px 10px; border-radius: 6px; background: #fff; text-decoration: none; }
.logo__image { display: block; width: 148px; height: auto; }

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative; text-decoration: none; color: var(--muted); font-size: 0.92rem;
  padding: 8px 14px; border-radius: 999px; transition: color .25s, background-color .25s;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent-soft); transform: translateX(-50%);
}
.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative;
}
.nav__toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text);
  transition: transform .35s var(--ease);
}
.nav__toggle span:first-child { transform: translateY(-4px); }
.nav__toggle span:last-child { transform: translateY(4px); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
  background: var(--bg);
  padding: 32px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 600; letter-spacing: -0.03em;
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 32px; }

/* 6. HERO ----------------------------------------------------------------- */
.hero { position: relative; padding: clamp(48px, 8vw, 100px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.22), transparent 70%);
  pointer-events: none;
}
.hero__eyebrow { margin-bottom: 28px; }
.hero__title {
  font-size: clamp(3.1rem, 8.6vw, 7.6rem);
  line-height: 0.92; letter-spacing: -0.055em; font-weight: 600;
}
.hero__title .line { display: block; }
.hero__title em { font-size: 1.06em; }

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
  margin-top: clamp(36px, 5vw, 64px);
}
.hero__copy { padding-top: 8px; display: flex; flex-direction: column; gap: 28px; }
.hero__formats { color: var(--dim); font-size: 0.7rem; line-height: 1.8; }

/* Editor viewer */
.viewer { position: relative; padding-bottom: 40px; }
.viewer__screen {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 8px rgba(255,255,255,0.015);
  aspect-ratio: 1376 / 768; background: var(--bg-3);
}
.viewer__screen img { width: 100%; height: 100%; object-fit: cover; }
.viewer__screen::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,9,11,.35), transparent 30%, transparent 70%, rgba(9,9,11,.45)); }
.viewer__hud { position: absolute; z-index: 1; top: 16px; left: 20px; right: 20px; display: flex; justify-content: space-between; color: #fff; }
.viewer__hud .mono { display: inline-flex; align-items: center; gap: 8px; font-size: 0.7rem; }
.viewer__hud .rec { width: 6px; height: 6px; }
.viewer__corner { position: absolute; z-index: 1; width: 22px; height: 22px; border: 0 solid rgba(255,255,255,.55); }
.viewer__corner--tl { top: 44px; left: 20px; border-top-width: 1.5px; border-left-width: 1.5px; }
.viewer__corner--tr { top: 44px; right: 20px; border-top-width: 1.5px; border-right-width: 1.5px; }
.viewer__corner--bl { bottom: 20px; left: 20px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.viewer__corner--br { bottom: 20px; right: 20px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.timeline {
  position: relative; margin: 14px 0 0 clamp(60px, 22%, 160px);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px 12px 14px;
}
.timeline__ruler { display: flex; justify-content: space-between; color: var(--dim); font-size: 0.6rem; padding-left: 30px; margin-bottom: 6px; }
.timeline__track { position: relative; height: 22px; margin-top: 5px; padding-left: 30px; }
.track-label { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 0.6rem; }
.clip {
  position: absolute; top: 0; bottom: 0;
  left: calc(30px + (100% - 30px) * var(--s) / 100);
  width: calc((100% - 30px) * var(--w) / 100 - 3px);
  border-radius: 5px; overflow: hidden;
  font-family: var(--font-mono); font-size: 0.58rem; text-transform: uppercase; letter-spacing: .04em;
  display: flex; align-items: center; padding: 0 8px; white-space: nowrap;
}
.clip--title { background: rgba(124, 58, 237, 0.28); border: 1px solid rgba(167, 139, 250, 0.5); color: var(--accent-soft); }
.clip--img { background: var(--bg-3) var(--img) center / cover; border: 1px solid rgba(255,255,255,0.12); }
.clip--audio {
  border: 1px solid rgba(255,255,255,0.08);
  background:
    repeating-linear-gradient(90deg, rgba(196,181,253,.55) 0 2px, transparent 2px 5px) center / 100% 55% no-repeat,
    rgba(255,255,255,0.03);
}
.playhead {
  position: absolute; top: 6px; bottom: 6px; width: 1.5px; background: #fff;
  left: calc(14px + 30px + 0.62 * (100% - 58px));
  box-shadow: 0 0 10px rgba(255,255,255,.6);
}
.playhead::before { content: ''; position: absolute; top: -4px; left: -4.5px; border: 5px solid transparent; border-top: 7px solid #fff; }

.phone {
  position: absolute; left: clamp(-24px, -2vw, -8px); bottom: 0;
  width: clamp(110px, 17%, 160px); aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-2); outline: 5px solid var(--bg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.9);
  background: var(--bg-3);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone__caption {
  position: absolute; left: 8px; right: 8px; bottom: 26%; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(0.8rem, 1.3vw, 1rem); text-transform: uppercase; letter-spacing: -0.01em; line-height: 1;
  color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.phone__caption em { font-style: normal; color: #0b0b0d; background: var(--accent-soft); padding: 0 .2em; border-radius: 3px; }
.phone__ratio { position: absolute; top: 8px; right: 8px; font-size: 0.55rem; color: #fff; background: rgba(0,0,0,.5); padding: 2px 6px; border-radius: 4px; }

/* Hero entrance */
.js [data-hero-item] { opacity: 0; transform: translateY(18px); }
.js.is-ready [data-hero-item] { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js.is-ready .hero__title .line:nth-child(2) { transition-delay: .08s; }
.js.is-ready .hero__copy [data-hero-item]:nth-child(1) { transition-delay: .2s; }
.js.is-ready .hero__copy [data-hero-item]:nth-child(2) { transition-delay: .28s; }
.js.is-ready .hero__copy [data-hero-item]:nth-child(3) { transition-delay: .36s; }
.js.is-ready .viewer[data-hero-item] { transition-delay: .25s; transition-duration: 1.3s; }
.js.is-ready .playhead { animation: scrub 2.2s var(--ease) both .4s; }
@keyframes scrub { from { left: calc(14px + 30px); } }

/* 7. VALUES --------------------------------------------------------------- */
.values { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.values__list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.values__list li { padding: 32px 28px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line); }
.values__list li:first-child { border-left: 0; padding-left: 0; }
.values__list .mono { color: var(--accent-soft); font-size: 0.68rem; margin-bottom: 6px; }
.values__list strong { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.02em; }
.values__list span:last-child { color: var(--muted); font-size: 0.9rem; }

/* 8. WORK ----------------------------------------------------------------- */
.demo-note { color: var(--dim); font-size: 0.68rem; margin: -40px 0 24px; text-transform: none; letter-spacing: 0.02em; }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.work-card {
  position: relative; grid-column: span 1;
  border-radius: var(--radius); overflow: hidden; isolation: isolate;
  min-height: clamp(340px, 32vw, 440px);
  background: var(--bg-3); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between;
}
.work-card--wide { grid-column: span 2; }
.work-card__media { position: absolute; inset: 0; z-index: -1; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); filter: saturate(.9) brightness(.85); }
.work-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,9,11,.35) 0%, transparent 30%, rgba(9,9,11,.4) 55%, rgba(9,9,11,.94) 100%); }
.work-card:hover .work-card__media img { transform: scale(1.06); filter: saturate(1) brightness(.95); }
.work-card__top { display: flex; justify-content: space-between; gap: 8px; padding: 18px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(9,9,11,.6); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 0.64rem; color: var(--text); }
.chip--demo { color: var(--accent-soft); border-style: dashed; border-color: rgba(196,181,253,.45); }
.work-card__body { padding: 22px; transform: translateY(6px); transition: transform .6s var(--ease); }
.work-card:hover .work-card__body { transform: none; }
.work-card__format { color: var(--accent-soft); font-size: 0.64rem; }
.work-card h3 { margin: 8px 0 8px; font-size: clamp(1.1rem, 1.6vw, 1.4rem); }
.work-card p { color: #d4d4d8; font-size: 0.9rem; max-width: 44ch; }
.work-card__hit { position: absolute; inset: 0; z-index: 2; background: transparent; border: 0; cursor: pointer; border-radius: inherit; }
.work-card__ext { position: relative; z-index: 3; display: inline-block; margin-top: 12px; font-size: .85rem; color: var(--accent-soft); }
.work-card__play {
  position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(245,245,247,.92); transition: transform .4s var(--ease);
}
.work-card__play::after { content: ''; position: absolute; left: 26px; top: 21px; border: 11px solid transparent; border-left: 16px solid var(--bg); border-right: 0; }
.work-card.is-playable:hover .work-card__play { transform: scale(1.08); }

/* 9. SERVICES ------------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.service {
  grid-column: span 2;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.service--lg { grid-column: span 3; }
.service:hover { border-color: var(--line-2); transform: translateY(-3px); }
.service__media { aspect-ratio: 16 / 8; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-3); }
.service--lg .service__media { aspect-ratio: 16 / 7; }
.service__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82) saturate(.9); transition: transform 1.2s var(--ease), filter .6s; }
.service:hover .service__media img { transform: scale(1.05); filter: brightness(.95); }
.service__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service__num { color: var(--accent-soft); font-size: 0.66rem; }
.service--lg h3 { font-size: 1.6rem; }
.service p { color: var(--muted); font-size: 0.95rem; }
.tags { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.78rem; color: #d4d4d8; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); }
.services__extras { margin-top: 32px; color: var(--dim); font-size: 0.68rem; text-align: center; line-height: 1.9; }

/* 10. WHY ----------------------------------------------------------------- */
.why__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.why__copy .lead { margin-top: 24px; }
.why__list { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 0; }
.why__list li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.why__list li:last-child { border-bottom: 1px solid var(--line); }
.why__list .mono { color: var(--accent-soft); padding-top: 5px; font-size: 0.68rem; }
.why__list h3 { font-size: 1.12rem; margin-bottom: 4px; }
.why__list p { color: var(--muted); font-size: 0.94rem; }

.why__visual { position: sticky; top: calc(var(--nav-h) + 32px); }
.review { position: relative; padding-bottom: 80px; }
.review__frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 4 / 5; background: var(--bg-3); }
.review__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; filter: brightness(.85); }
.review__tag { position: absolute; top: 18px; left: 18px; font-size: 0.64rem; padding: 6px 10px; border-radius: 999px; background: rgba(9,9,11,.7); border: 1px solid var(--line-2); }
.review__panel {
  position: absolute; right: clamp(-12px, -2vw, 0px); bottom: 0; width: min(88%, 360px);
  background: rgba(17,17,20,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.9);
}
.review__title { color: var(--muted); font-size: 0.66rem; margin-bottom: 12px; }
.review__panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.review__panel li { display: grid; grid-template-columns: 48px 1fr; font-size: 0.86rem; color: #d4d4d8; line-height: 1.4; }
.review__panel li .mono { color: var(--accent-soft); font-size: 0.66rem; padding-top: 2px; }
.review__panel li.is-done { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }
.review__status { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.review__status .mono { font-size: 0.64rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 0 4px rgba(139,92,246,.18); }

/* 11. PROCESS ------------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; counter-reset: step; }
.steps::before {
  content: ''; position: absolute; top: 34px; left: 32px; right: 32px; height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--line-2) 60%, var(--line-2) 100%);
}
.step { position: relative; padding: 0 8px 0 0; }
.step__num {
  position: relative; display: inline-grid; place-items: center;
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--line-2);
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em;
  margin-bottom: 28px; transition: border-color .4s, background-color .4s;
}
.step:first-child .step__num { border-color: var(--accent); background: rgba(124,58,237,.12); color: var(--accent-soft); }
.step:hover .step__num { border-color: var(--accent-soft); }
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.95rem; max-width: 30ch; }

/* 12. PRICING ------------------------------------------------------------- */
.pricing { overflow: hidden; }
.pricing::before {
  content: ''; position: absolute; left: 50%; top: 40%; width: 900px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(124,58,237,.14), transparent 70%); pointer-events: none;
}
.plans { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px 28px; border-radius: var(--radius-lg);
  background: var(--bg); border: 1px solid var(--line);
}
.plan--scale {
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(160deg, var(--line-2), var(--line)) border-box;
  border: 1px solid transparent;
}
.plan--scale::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask: linear-gradient(180deg, #000, transparent 45%); mask: linear-gradient(180deg, #000, transparent 45%);
}
.plan--featured {
  background:
    linear-gradient(180deg, #1a1426, #111114 55%) padding-box,
    linear-gradient(180deg, var(--accent-hi), rgba(124,58,237,.15) 60%, var(--line)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 40px 80px -40px rgba(124,58,237,.45);
  transform: translateY(-12px);
}
.plan > * { position: relative; }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan__name { font-size: 1.6rem; }
.plan__label { font-size: 0.62rem; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.plan__summary { color: var(--muted); font-size: 0.95rem; margin-top: 10px; min-height: 3em; }
.plan__price { display: flex; flex-direction: column; gap: 6px; margin: 28px 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.plan__amount { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.plan__amount .ph { font-size: 0.42em; vertical-align: middle; padding: .4em .6em; }
.plan__billing { color: var(--dim); font-size: 0.85rem; }
.plan__specs, .plan__terms { margin: 0; display: grid; gap: 12px; }
.plan__specs div, .plan__terms div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; }
.plan dt { color: var(--dim); font-size: 0.64rem; }
.plan dd { margin: 0; font-size: 0.92rem; }
.plan__list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; flex: 1; }
.plan__list li { position: relative; padding-left: 26px; font-size: 0.92rem; color: #d4d4d8; }
.plan__list li::before {
  content: ''; position: absolute; left: 0; top: 0.35em; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(124,58,237,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23c4b5fd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan__terms { padding-top: 20px; border-top: 1px solid var(--line); }
.plan__cta { margin-top: 28px; }
.plan__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; text-align: center; color: var(--dim); font-size: 0.78rem; }
.lock { width: 10px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; margin-top: 3px; flex: none; }
.lock::before { content: ''; position: absolute; left: 1px; top: -6px; width: 5px; height: 5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; }
.pricing__custom { text-align: center; margin-top: 48px; color: var(--muted); }
.pricing__custom a { color: var(--accent-soft); text-underline-offset: 4px; }

/* 13. QUOTES -------------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quote {
  margin: 0; padding: 32px 28px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 24px; min-height: 260px;
}
.quote--placeholder { border-style: dashed; border-color: var(--line-2); }
.quote .chip { align-self: flex-start; }
.quote__mark { font-family: var(--font-serif); font-size: 4rem; line-height: .6; color: var(--accent-soft); height: 28px; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.4; flex: 1; }
.quote figcaption { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; padding-top: 20px; border-top: 1px solid var(--line); }
.quote figcaption span { color: var(--muted); }

/* 14. FAQ ----------------------------------------------------------------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq__head p:last-child { color: var(--muted); margin-top: 24px; }
.faq__head a { color: var(--accent-soft); text-underline-offset: 4px; }
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc__h { margin: 0; font-size: inherit; }
.acc__btn {
  width: 100%; display: grid; grid-template-columns: 40px 1fr 28px; align-items: center; gap: 12px;
  padding: 24px 0; background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--font-display); font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3;
  transition: color .25s;
}
.acc__btn:hover { color: var(--accent-soft); }
.acc__num { color: var(--dim); font-size: 0.66rem; }
.acc__icon { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .4s var(--ease), background-color .3s, border-color .3s; }
.acc__icon::before, .acc__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.acc.is-open .acc__icon { background: var(--accent); border-color: var(--accent); color: #fff; }
.acc.is-open .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__inner { padding: 0 40px 26px 52px; }
.acc__inner p { color: var(--muted); max-width: 62ch; }
.acc.is-open .acc__panel { animation: accIn .45s var(--ease); }
@keyframes accIn { from { opacity: 0; transform: translateY(-6px); } }

/* 15. CTA ----------------------------------------------------------------- */
.cta { position: relative; padding: clamp(120px, 16vw, 220px) 0; overflow: hidden; text-align: center; border-top: 1px solid var(--line); }
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.45) saturate(1.1); }
.cta__bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(9,9,11,.55), rgba(9,9,11,.92) 70%), linear-gradient(180deg, var(--bg), transparent 25%, transparent 75%, var(--bg)); }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: clamp(2.6rem, 7vw, 6.4rem); max-width: 14ch; letter-spacing: -0.045em; }
.cta .lead { margin: 28px auto 40px; color: #d4d4d8; }

/* 16. CONTACT ------------------------------------------------------------- */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__copy .lead { margin-top: 24px; }
.contact__links { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 0; }
.contact__links li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.contact__links li:last-child { border-bottom: 1px solid var(--line); }
.contact__links .mono { color: var(--dim); font-size: 0.66rem; }
.contact__links a { color: var(--text); text-underline-offset: 4px; word-break: break-word; }
.contact__links a:hover { color: var(--accent-soft); }
.contact__links span:last-child { color: var(--muted); }

.form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 0.85rem; color: var(--muted); }
.field small { color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 14px 16px; font-size: 1rem; transition: border-color .25s, box-shadow .25s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a1a1aa' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #6b6b74; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-hi); box-shadow: 0 0 0 4px rgba(124,58,237,.18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 0.92rem; min-height: 1.4em; }
.form__status.is-success { color: #86efac; }
.form__status.is-error { color: #fca5a5; }

/* 17. FOOTER -------------------------------------------------------------- */
.footer { padding: 80px 0 0; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer__brand p { color: var(--muted); font-size: 0.92rem; max-width: 38ch; margin-top: 18px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h3 { font-family: var(--font-mono); font-weight: 500; font-size: 0.66rem; color: var(--dim); margin-bottom: 6px; letter-spacing: .1em; }
.footer__col a, .footer__col [data-footer-contact] a { color: #d4d4d8; text-decoration: none; font-size: 0.92rem; width: fit-content; transition: color .25s; }
[data-footer-contact] { display: flex; flex-direction: column; gap: 10px; }
.footer__col a:hover { color: var(--accent-soft); }
.socials { list-style: none; padding: 0; margin: 24px 0 0; display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); transition: color .25s, border-color .25s; }
.socials a:hover { color: var(--text); border-color: var(--muted); }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.85rem; }
.footer__bottom a { color: var(--muted); margin-left: 20px; text-underline-offset: 4px; }
.footer__bottom a:first-child { margin-left: 0; }
.footer__bottom a:hover { color: var(--text); }
.footer__wordmark {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.07em; line-height: .75;
  font-size: clamp(5rem, 24vw, 22rem); text-align: center;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
  margin: 8px 0 -0.06em; user-select: none;
}

/* 18. PLAYER -------------------------------------------------------------- */
.player { padding: 0; border: 0; background: transparent; width: min(1100px, 92vw); max-width: none; overflow: visible; color: var(--text); }
.player::backdrop { background: rgba(5,5,7,.88); backdrop-filter: blur(6px); }
.player__inner { position: relative; padding-top: 56px; }
.player__frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line-2); }
.player__frame iframe { width: 100%; height: 100%; border: 0; }
.player__close { position: absolute; top: 0; right: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.player__close:hover { border-color: var(--muted); }

/* Legal / simple pages */
.page { padding: clamp(60px, 10vw, 120px) 0 var(--section); }
.page h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 24px; }
.page .prose { max-width: 70ch; color: var(--muted); }
.page .prose h2 { font-size: 1.4rem; color: var(--text); margin: 40px 0 12px; max-width: none; letter-spacing: -0.02em; }
.page .prose p, .page .prose li { margin-bottom: 12px; }
.page .notice { margin: 24px 0 8px; padding: 16px 18px; border: 1px dashed rgba(196,181,253,.45); border-radius: 12px; color: var(--accent-soft); font-size: .92rem; }
.page--center { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.page--center .lead { margin: 0 auto 32px; }
.big-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 22vw, 14rem); letter-spacing: -0.07em; line-height: .85; color: transparent; -webkit-text-stroke: 1px var(--line-2); }

/* 19. MOTION -------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.plan--featured[data-reveal].is-visible { transform: translateY(-12px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-hero-item] { opacity: 1 !important; transform: none !important; }
  .plan--featured { transform: none !important; }
}

/* 20. RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card--wide { grid-column: span 2; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service, .service--lg { grid-column: span 1; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .logo__image { width: 124px; }
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-block; }
  .hero__grid { grid-template-columns: 1fr; }
  .viewer { margin-left: clamp(24px, 6vw, 48px); }
  .section-head--split { grid-template-columns: 1fr; gap: 24px; }
  .values__list { grid-template-columns: 1fr 1fr; }
  .values__list li { padding: 28px 24px; border-left: 0; border-top: 1px solid var(--line); }
  .values__list li:nth-child(-n+2) { border-top: 0; }
  .values__list li:nth-child(odd) { padding-left: 0; }
  .values__list li:nth-child(even) { border-left: 1px solid var(--line); }
  .why__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .why__visual, .faq__head { position: static; }
  .why__visual { max-width: 520px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps::before { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .plan--featured, .plan--featured[data-reveal].is-visible { transform: none; }
  .plan__summary { min-height: 0; }
  .quotes { grid-template-columns: 1fr; }
  .quote { min-height: 0; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .hero__title { font-size: clamp(2.5rem, 12vw, 4.2rem); }
  .btn-row .btn { flex: 1 1 100%; }
  .viewer { margin-left: 28px; }
  .timeline { margin-left: 52px; padding: 8px 10px; }
  .timeline__ruler span:nth-child(even) { visibility: hidden; }
  .clip { font-size: 0; }
  .phone { left: -28px; width: 96px; border-radius: 12px; outline-width: 4px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card, .work-card--wide { grid-column: span 1; min-height: 360px; }
  .demo-note { margin-top: -24px; }
  .services { grid-template-columns: 1fr; }
  .values__list { grid-template-columns: 1fr; }
  .values__list li, .values__list li:nth-child(odd), .values__list li:nth-child(even) { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .values__list li:first-child { border-top: 0; }
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .step { display: grid; grid-template-columns: 60px 1fr; column-gap: 18px; }
  .step__num { width: 56px; height: 56px; font-size: 1.1rem; margin: 0; grid-row: span 2; }
  .plan { padding: 28px 22px 24px; }
  .plan__specs div, .plan__terms div { grid-template-columns: 1fr; gap: 4px; }
  .acc__btn { grid-template-columns: 30px 1fr 28px; gap: 10px; }
  .acc__inner { padding: 0 0 22px 40px; }
  .form__row { grid-template-columns: 1fr; }
  .contact__links li { grid-template-columns: 1fr; gap: 4px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__bottom a { margin: 0 16px 0 0; }
  .review__panel { position: relative; right: auto; width: 100%; margin-top: -60px; }
  .review { padding-bottom: 0; padding-left: 0; }
  .review__frame { margin: 0 24px; }
}
