/* ==========================================================
   alex.cuts — video editor portfolio
   Accent #1838c8; sections alternate black / light
   ========================================================== */
:root {
  --brand: #1838c8;
  --brand-2: #2c4ff0;          /* hover / gradient partner */
  --brand-lift: #6f88ff;       /* brand for small text on black */
  --brand-deep: #0a1650;

  --dark: #0a0a0b;
  --dark-card: #141416;
  --dark-card-2: #1c1c1f;
  --dark-soft: rgba(255, 255, 255, 0.64);
  --dark-line: rgba(255, 255, 255, 0.1);

  --light: #f4f4f6;
  --light-card: #ffffff;
  --light-card-2: #e8e9ee;
  --ink: #0b0b0d;
  --ink-soft: #5a5d68;
  --light-line: rgba(11, 11, 13, 0.09);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --r: 22px;
  --panel-inset: clamp(8px, 1.4vw, 16px);   /* black gap around light panels */
  --panel-r: clamp(24px, 3vw, 40px);         /* light panel corner radius */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* header glass */
  --glass-edge: rgba(255, 255, 255, 0.16);                 /* one colour, all the way round */
  --glass-tint: rgba(16, 17, 26, 0.34);
  --glass-fill:
    radial-gradient(120% 160% at 0% 0%, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 42%),        /* specular glare, top-left */
    radial-gradient(70% 140% at 100% 100%, rgba(44,79,240,0.26) 0%, rgba(44,79,240,0) 65%),         /* brand glow, bottom-right */
    linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.015) 50%, rgba(0,0,0,0.10) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");  /* frosted grain */
  --glass-blur: blur(24px) saturate(210%) brightness(1.08) contrast(1.04);   /* frosted, a bit lighter to redraw over the hero video */
  --glass-depth:
    inset 0 14px 28px -18px rgba(255, 255, 255, 0.22),     /* soft light pooling at the top (blurred, not a line) */
    inset 0 -16px 28px -20px rgba(0, 0, 0, 0.45);          /* depth at the bottom */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--dark); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: transparent; color: #fff; font-family: var(--font); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--brand-lift); outline-offset: 3px; border-radius: 8px; }
.sec--light :focus-visible { outline-color: var(--brand); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; border-radius: 999px; background: #fff; color: #000; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ==========================================================
   Floating header
   ========================================================== */
.topbar {
  position: fixed; z-index: 50;
  top: max(16px, env(safe-area-inset-top)); left: 0; right: 0; margin-inline: auto;   /* centred on whole pixels */
  width: min(calc(100% - var(--gutter) * 2), var(--max));   /* same edges as the page content */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 10px;
  border-radius: 10px;                                       /* boxy */
  border: 1px solid;                                         /* the one rounded stroke */
  border-color: var(--glass-edge);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75), 0 8px 24px -12px rgba(24, 56, 200, 0.25);
  transition: transform 0.4s var(--ease);
}
.topbar.is-hidden { transform: translateY(calc(-100% - 24px)); }
/* snap the left edge to a whole pixel (half-pixel edges look doubled) */
@supports (left: round(down, 10.5px, 1px)) {
  .topbar { right: auto; margin-inline: 0; left: round(down, calc((100% - min(100% - var(--gutter) * 2, var(--max))) / 2), 1px); }
}

/* ---- Premium glass ----
   The frosted layer lives on ::before (not the bar itself) so the dropdown menu
   inside can run its own backdrop blur against the page.
   ONE outline only: a 1px gradient border drawn with background-clip, so it
   always follows the rounded corners (no second ring, no inner highlight line). */
.topbar::before, .topbar::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
}
.topbar::before {
  z-index: -2;
  border-radius: 9px;               /* fits just inside the 1px border */
  background: var(--glass-fill);
  background-color: var(--glass-tint);
  box-shadow: var(--glass-depth);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  clip-path: inset(0 round 9px);    /* keep the blur inside the rounded corners */
  transition: background-color 0.35s ease;
}
/* over the light About panel: deepen the tint so white links stay readable */
.topbar.on-light::before { background-color: rgba(14, 15, 24, 0.7); }

/* slow sheen gliding across (its own layer, no outline) */
.topbar::after {
  z-index: -1;
  border-radius: 9px;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.08) 48%, rgba(255,255,255,0.02) 54%, transparent 62%) 160% 0 / 260% 100% no-repeat;
  animation: glassSheen 9s var(--ease) infinite;
}
@keyframes glassSheen { 0%, 55% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.logo { display: block; justify-self: start; margin-left: 12px; }
.logo img { height: 30px; width: auto; }

/* links sit in the middle of the bar */
.topnav { justify-self: center; }
.topnav ul { display: flex; gap: 4px; }
.topnav a {
  position: relative; display: inline-flex; align-items: center; white-space: nowrap;
  min-height: 44px; padding: 0 16px;
  border-radius: 7px; border: 1px solid transparent;
  font-size: 0.9375rem; font-weight: 500; color: rgba(255,255,255,0.72);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.topnav a:hover { color: #fff; background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.topnav a.has-dot::after { content: ""; position: absolute; top: 12px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-lift); box-shadow: 0 0 8px var(--brand-lift); }
.topnav__cta-mobile { display: none; }

.topbar__end { justify-self: end; display: flex; align-items: center; gap: 8px; }
.talk {
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; flex: none;                           /* always one line */
  min-height: 44px; padding: 0 18px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);               /* subtle light edge on the blue */
  background: var(--brand); color: #fff;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 8px 20px -10px rgba(24, 56, 200, 0.9);
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.talk:hover { background: var(--brand-2); }
.talk:active { transform: scale(0.97); }

.menu-btn {
  display: none; position: relative; width: 44px; height: 44px; border-radius: 7px; color: #fff;
  border: 1px solid var(--glass-edge);
  background: radial-gradient(120% 120% at 0% 0%, rgba(255,255,255,0.18), rgba(255,255,255,0) 55%), rgba(255,255,255,0.05);
  box-shadow: 0 4px 12px -6px rgba(0,0,0,0.5);
  transition: background-color 0.2s, border-color 0.2s;
}
.menu-btn:hover, .menu-btn[aria-expanded="true"] { border-color: rgba(255,255,255,0.3); background-color: rgba(255,255,255,0.08); }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-btn span:nth-child(1) { top: 15px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================
   Shared
   ========================================================== */
/* glows behind the whole page: js/home.js moves them around, bouncing off the screen edges and off
   each other. Each one is a soft gradient that only moves (transform), so it costs almost nothing. */
.bg-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-glow i { position: absolute; left: 0; top: 0; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); border-radius: 50%; will-change: transform;
  background: radial-gradient(circle, rgb(var(--c) / 0.3) 0%, rgb(var(--c) / 0.24) 28%, rgb(var(--c) / 0.1) 46%, transparent 56%); }   /* gentle, with a firmer edge */
.bg-glow i:nth-child(1) { --d: 72vmax; --c: 24 56 200; }
.bg-glow i:nth-child(2) { --d: 58vmax; --c: 124 77 255; }
.bg-glow i:nth-child(3) { --d: 64vmax; --c: 30 120 255; }
.bg-glow i:nth-child(4) { --d: 50vmax; --c: 61 92 255; }

.sec { position: relative; padding: clamp(88px, 12vw, 140px) 0; overflow: hidden; overflow: clip; }   /* clip, not hidden, so sticky labels work */
.sec--tight { padding: clamp(72px, 9vw, 110px) 0; }
.sec--dark { background: transparent; color: #fff; }   /* the page glow shows through */
.sec--light { background: var(--light); color: var(--ink); }

/* from the numbers section on, black sections alternate with a slightly lifted black;
   cards inside lift one step too so they still read as cards */
.sec--alt {
  --dark: #141416;
  --dark-card: #1c1c1f;
  --dark-card-2: #252529;
  background: rgba(24, 24, 28, 0.72);   /* lifted panel, with the page glow faintly behind it */
}
.sec--alt {
  margin-inline: var(--panel-inset);
  border-radius: var(--panel-r);
}
/* glossy light rim all the way round, a little brighter at the corners like light on glass */
.sec--alt::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  padding: 1.5px;   /* the rim's thickness */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(190, 205, 255, 0.5) 30%, rgba(190, 205, 255, 0.5) 70%, rgba(255, 255, 255, 0.7));   /* same bright, glossy stroke all the way round */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.sec--alt { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }   /* a hint of sheen inside the top edge */

/* light sections sit on the black page as rounded panels */
.sec--light {
  margin-inline: var(--panel-inset);
  border-radius: var(--panel-r);
}

.tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 0.875rem; font-weight: 600; }
.tag__icon { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--brand); }
.tag__icon::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); animation: pulse 2.4s ease-in-out infinite; }
.sec--dark .tag__icon { border-color: var(--brand-lift); }
@keyframes pulse { 50% { transform: scale(0.55); opacity: 0.6; } }

.h2 { font-size: clamp(2.25rem, 5.2vw, 4rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.045em; white-space: nowrap; }   /* one line; main.js shrinks it to fit */
.h2.is-wrapped { white-space: normal; text-wrap: balance; }   /* only on very narrow screens */
.lede { margin-top: 16px; font-size: clamp(1rem, 1.4vw, 1.125rem); max-width: 32rem; }
.sec--dark .lede { color: var(--dark-soft); }
.sec--light .lede { color: var(--ink-soft); }
.head { margin-bottom: clamp(40px, 6vw, 64px); }
.head--center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.head--center .h2 { max-width: 100%; }
.head--center .btn { margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.9375rem; font-weight: 600; white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: scale(0.97); }
.btn--brand { background: var(--brand); color: #fff; border-color: rgba(255,255,255,0.2); box-shadow: 0 10px 24px -12px rgba(24, 56, 200, 0.9); }
.btn--brand:hover { background: var(--brand-2); }
.btn--light { background: #fff; color: var(--ink); border-color: rgba(11,11,13,0.12); }
.btn--light:hover { background: #e4e7f2; }
.btn--glass { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255,255,255,0.24); }
.btn--outline { border-color: rgba(255,255,255,0.16); color: #fff; }
.btn--outline:hover { border-color: #fff; }
.btn--full { width: 100%; }

/* reveals */
[data-words] .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(0.45em) rotate(2deg); transform-origin: 0 100%;
  transition: opacity 0.7s var(--ease), filter 0.8s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i) * 38ms + var(--d, 0ms)); }
[data-words].is-in .w { opacity: 1; filter: none; transform: none; }

/* premium pop: rises, un-blurs and settles; media opens from a smaller rounded frame */
/* "html" prefix so these win over each element's own transition (buttons, showreel) */
html [data-pop] { opacity: 0; transform: translateY(56px) scale(0.94); filter: blur(12px);
  transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 1.2s var(--ease) var(--d, 0ms), filter 1s var(--ease) var(--d, 0ms),
              background-color 0.25s, border-color 0.3s, color 0.25s, box-shadow 0.25s; }
html [data-pop].is-in { opacity: 1; transform: none; filter: none; }
html [data-pop="media"] { filter: none; transform: translateY(80px) scale(0.86); clip-path: inset(12% 10% 12% 10% round 40px);
  transition: opacity 0.8s var(--ease), transform 1.4s var(--ease), clip-path 1.4s var(--ease), border-color 0.3s; }
html [data-pop="media"].is-in { transform: none; clip-path: inset(0 0 0 0 round 0px); }
html .btn[data-pop].is-in:active { transform: scale(0.97); }
html.no-js [data-pop] { opacity: 1; transform: none; filter: none; clip-path: none; }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ==========================================================
   1. Hero
   ========================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 110px 0 28px;
  overflow: hidden;
  background: #000;
}

/* video slideshow (same behaviour as sequenzz.com) */
.hero__slides, .hero__video, .hero__scrim { position: absolute; inset: 0; }
.hero__slides { z-index: -2;
  /* the first slide's still, shown until its video plays (AVIF, with a JPEG for older browsers) */
  background: #000 url("../media/posters/hero-1.jpg") center / cover no-repeat;
  background-image: url("../media/posters/hero-1.jpg"); }   /* JPG: the host serves .avif as text/plain, which iPhones refuse */
.hero__video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 0.9s ease, transform 6s linear;
}
.hero__video.is-active { opacity: 1; transform: scale(1); }
.hero__scrim {
  z-index: -1;
  background:
    radial-gradient(ellipse 65% 50% at 50% 48%, rgba(0,0,0,0.4), rgba(0,0,0,0) 72%),
    linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0) 34%),
    linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 22%);
}

/* centred title, subtitle and buttons */
.hero__inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hero__title {
  font-family: "Google Sans Flex", var(--font);
  font-size: clamp(2.75rem, min(10vw, 17vh), 9.5rem);
  font-weight: 650;
  font-variation-settings: "wdth" 125, "opsz" 144;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}
.hero__subtitle {             /* JS sizes this line to 80% of the title's width */
  margin-top: 0.4em;
  font-family: "Google Sans Flex", var(--font);
  font-size: clamp(1.125rem, 2.6vw, 2.5rem);
  font-weight: 450;
  line-height: 1.1;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.94);
  --d: 120ms;
}
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(28px, 4.5vh, 44px); --d: 240ms; }

/* bottom row: client strip on the left, slideshow controls on the right */
.hero__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; --d: 400ms; }
.hero__controls { display: flex; align-items: center; gap: 10px; flex: none; }
.round-btn {
  width: 44px; height: 44px; border-radius: 8px;
  display: grid; place-items: center; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s, border-color 0.2s;
}
.round-btn:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); }
.hero__pause { margin-left: 6px; }
.hero__pause .i-play { display: none; }
.hero__pause[aria-pressed="true"] .i-play { display: block; }
.hero__pause[aria-pressed="true"] .i-pause { display: none; }
.hero__pager { display: flex; align-items: center; gap: 2px; }
.pager-dot { position: relative; width: 20px; height: 44px; display: grid; place-items: center; transition: width 0.5s var(--ease); }
.pager-dot::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.8); transition: width 0.5s var(--ease), background-color 0.3s; }
.pager-dot.is-active { width: 84px; }
.pager-dot.is-active::before { width: 100%; background: rgba(255,255,255,0.3); }
.pager-dot span { position: absolute; left: 0; top: 50%; height: 7px; margin-top: -3.5px; width: 100%; border-radius: 4px; background: #fff; transform-origin: left center; transform: scaleX(0); opacity: 0; }
.pager-dot.is-active span { opacity: 1; transform: scaleX(var(--progress, 0)); }
.hero__partners { display: flex; align-items: center; gap: 28px; flex: 1; min-width: 0; max-width: 720px; }
.hero__partners > p { flex: none; font-size: 0.8125rem; line-height: 1.35; color: rgba(255,255,255,0.75); }
.marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.pl { margin-right: 56px; font-size: 1.5rem; line-height: 1; white-space: nowrap; color: rgba(255,255,255,0.92); }
.pl--1 { font-weight: 800; letter-spacing: -0.05em; }
.pl--2 { font-weight: 400; letter-spacing: 0.02em; }
.pl--3 { font-family: Georgia, serif; font-style: italic; }
.pl--4 { font-weight: 800; font-size: 1.25rem; letter-spacing: 0.2em; }
.pl--5 { font-weight: 700; letter-spacing: -0.06em; text-transform: lowercase; }
.pl--6 { font-weight: 300; letter-spacing: 0.08em; text-transform: uppercase; font-size: 1.125rem; }

/* ==========================================================
   2. Projects (black)
   ========================================================== */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 auto 36px; padding: 6px; width: max-content; max-width: 100%; border-radius: 10px; background: rgba(6, 7, 12, 0.45); border: 1px solid rgba(255, 255, 255, 0.3); }   /* lightly darkened glass, clear outline */
.tabs.is-wrapped .tabs__btn { flex: 1 1 auto; }   /* two rows: both rows share the same left and right edges */
.tabs__btn { min-height: 40px; padding: 0 16px; border-radius: 7px; border: 1px solid transparent; font-size: 0.875rem; font-weight: 500; color: var(--dark-soft); transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.tabs__btn:hover { color: #fff; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.35); }   /* a box appears around the button under the cursor */
.tabs__btn.is-on { background: var(--brand); color: #fff; border-color: rgba(255,255,255,0.2); }

.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.project.is-refiltered { animation: rise 0.7s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
html .project[data-pop] { transform: translateY(80px) scale(0.92) rotateX(8deg); transform-origin: 50% 100%; }
html .project[data-pop], html [data-pop="media"] { filter: none; }   /* no blur on cards holding a video: they pop in just as their video starts */
html .project[data-pop].is-in { transform: none; }
.projects { perspective: 1200px; }
.project[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(0.98); } }
.project__card { display: block; width: 100%; text-align: left; padding: 10px 10px 16px; border-radius: calc(var(--r) + 6px); background: var(--dark-card); border: 1px solid var(--dark-line); transition: border-color 0.3s, transform 0.4s var(--ease); }
.project__card:hover { border-color: rgba(111, 136, 255, 0.5); transform: translateY(-4px); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: #0d0d10; border-radius: var(--r); overflow: hidden; isolation: isolate; }
.thumb__art { position: absolute; inset: 0; transition: transform 0.9s var(--ease); }
.project__card:hover .thumb__art { transform: scale(1.06); }
.thumb__glyph { position: absolute; z-index: 1; left: 22px; bottom: 18px; font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.thumb__img { width: 100%; height: 100%; object-fit: cover; }
.thumb__vid { opacity: 0; transition: opacity 0.4s ease, transform 0.9s var(--ease); }   /* the still underneath shows until the video can */
.thumb__vid.is-ready { opacity: 1; }
.thumb::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0) 50%); pointer-events: none; }
/* round play button, always visible on every cover */
.thumb__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(20, 22, 32, 0.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.35); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6); transition: transform 0.4s var(--ease), background-color 0.3s, border-color 0.3s; }
.thumb__play svg { width: 22px; height: 22px; margin-left: 3px; }
.project__card:hover .thumb__play, .project__card:focus-visible .thumb__play { transform: scale(1.1); background: var(--brand); border-color: rgba(255,255,255,0.4); }
.project__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 8px 0; }
.project__title { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }
.project__tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.project__tags span { padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; color: var(--dark-soft); background: var(--dark-card-2); white-space: nowrap; }

/* generated poster art */
.art-1 { background: radial-gradient(70% 90% at 75% 30%, #ffb36b, transparent 60%), radial-gradient(60% 80% at 20% 80%, #c2410c, transparent 70%), #3b0d0d; }
.art-2 { background: conic-gradient(from 200deg at 60% 45%, #1838c8, #6f88ff, #0b1240, #1838c8); }
.art-3 { background: linear-gradient(160deg, #0f766e 0%, #134e4a 45%, #052e2b 100%); }
.art-3::after { content: ""; position: absolute; inset: 18% 22% auto auto; width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fde68a, #f59e0b 60%, transparent 62%); }
.art-4 { background: repeating-linear-gradient(115deg, #111 0 22px, #1a1a1a 22px 44px); }
.art-4::after { content: ""; position: absolute; left: 50%; top: 45%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(12deg); border-radius: 28%; background: linear-gradient(135deg, #f472b6, #8b5cf6); box-shadow: 0 30px 60px -10px rgba(139, 92, 246, 0.6); }
.art-5 { background: linear-gradient(180deg, #fde68a 0%, #fb923c 45%, #7c2d12 46%, #1c0a05 100%); }
.art-6 { background: radial-gradient(50% 60% at 50% 40%, #a5b4fc, transparent 70%), linear-gradient(135deg, #1e1b4b, #312e81); }
.art-6::after { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 40%, transparent 0 18px, rgba(255,255,255,0.08) 18px 19px); }
.art-7 { background: linear-gradient(90deg, #4b5563 0 50%, #1838c8 50% 100%); }
.art-7::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(50% - 1px), #fff calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
.art-8 { background: radial-gradient(40% 50% at 30% 40%, #22d3ee, transparent 70%), radial-gradient(40% 50% at 70% 60%, #1838c8, transparent 70%), #020617; }

/* ==========================================================
   3. About (light)
   ========================================================== */
.about { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 0 clamp(32px, 5vw, 80px); }
.about__label { grid-column: 1; grid-row: 1 / span 2; align-self: start; position: sticky; top: 120px; }
.about__body { grid-column: 2; }
.about__h { color: var(--brand); }
.about__lead { font-size: clamp(1.875rem, 3.6vw, 3.25rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.045em; max-width: 22em; text-wrap: balance; }
.about__lead .w--accent { color: var(--brand); }
.about__sub { margin-top: clamp(18px, 2vw, 26px); max-width: 38rem; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); }
.about__body .btn { margin-top: 32px; }
/* outlined frame around the video, lined up with the text column */
.showreel {
  grid-column: 2; display: block; width: 100%;
  margin-top: clamp(32px, 5vw, 48px);
  padding: 10px;
  border: 1px solid rgba(11, 11, 13, 0.14);
  border-radius: calc(var(--r) + 10px);
  background: transparent;
  transition: border-color 0.3s;
}
.showreel:hover { border-color: rgba(24, 56, 200, 0.45); }
.showreel__screen {
  position: relative; display: block; isolation: isolate;
  aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden;
  background: radial-gradient(80% 120% at 50% 100%, #1838c8, #0a1650 55%, #04081f);
}
.showreel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.showreel:hover .showreel__video { transform: scale(1.03); }
.showreel__screen::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, rgba(0,0,0,0), rgba(0,0,0,0.35)); pointer-events: none; }
.showreel__play, .showreel__meta { z-index: 1; }
.showreel__art { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); transform: translate(-50%, -50%); animation: ring 6s linear infinite; }
.ring--1 { width: 30%; aspect-ratio: 1; }
.ring--2 { width: 55%; aspect-ratio: 1; animation-delay: -2s; }
.ring--3 { width: 80%; aspect-ratio: 1; animation-delay: -4s; }
@keyframes ring { from { transform: translate(-50%, -50%) scale(0.6); opacity: 0; } 30% { opacity: 1; } to { transform: translate(-50%, -50%) scale(1.4); opacity: 0; } }
.showreel__word { font-size: clamp(5rem, 22vw, 18rem); font-weight: 800; letter-spacing: -0.08em; color: rgba(255,255,255,0.06); line-height: 1; }
.showreel__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(72px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: 0 0 0 12px rgba(255,255,255,0.14); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.showreel__play svg { width: 30%; height: 30%; margin-left: 5%; }
.showreel:hover .showreel__play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 20px rgba(255,255,255,0.1); }
.showreel__meta { position: absolute; left: 24px; bottom: 20px; font-family: var(--mono); font-size: 0.75rem; color: rgba(255,255,255,0.8); }
.showreel__meta b { font-weight: 500; color: #fff; margin-right: 8px; }

/* ==========================================================
   4. Process (black)
   ========================================================== */
.process { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.pcard--3 { grid-column: span 3; }
.pcard--2 { grid-column: span 2; }

/* --- progress rail: fills with scroll, lights each step as it is reached --- */
.rail { position: relative; max-width: 980px; margin: 0 auto clamp(36px, 5vw, 56px); padding-top: 4px; }
.rail__track { position: absolute; left: 10%; right: 10%; top: 12px; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.1); overflow: hidden; }
.rail__fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--rail, 0)); background: linear-gradient(90deg, var(--brand), var(--brand-lift)); box-shadow: 0 0 12px rgba(111,136,255,0.8); }
.rail__nodes { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); }
.rail__nodes li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.rail__nodes i { width: 18px; height: 18px; border-radius: 50%; background: var(--dark); border: 2px solid rgba(255,255,255,0.2); transition: border-color 0.4s, background-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease); }
.rail__nodes b { font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,0.45); transition: color 0.4s; white-space: nowrap; }
.rail__nodes li.is-on i { border-color: var(--brand-lift); background: var(--brand); box-shadow: 0 0 0 5px rgba(24,56,200,0.25), 0 0 16px rgba(111,136,255,0.7); transform: scale(1.1); }
.rail__nodes li.is-on b { color: #fff; }

/* --- cards: pointer-follow glow, lit when their step is reached --- */
.pcard { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 28px); border-radius: var(--r); background: var(--dark-card); border: 1px solid var(--dark-line); overflow: hidden; transition: border-color 0.4s; }
.pcard__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(44,79,240,0.22), transparent 60%); }
.pcard:hover .pcard__glow { opacity: 1; }
.pcard.is-current { border-color: rgba(111,136,255,0.45); }
.pcard.is-current .pcard__glow { opacity: 0.7; }
.pcard__top { display: flex; align-items: center; gap: 12px; }
.pcard__num { font-family: var(--mono); font-size: 0.75rem; color: var(--brand-lift); padding: 3px 7px; border-radius: 6px; border: 1px solid rgba(111,136,255,0.35); background: rgba(24,56,200,0.12); }
.pcard h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.03em; }
.pcard .pips { margin-left: auto; }
.pcard p { margin-top: 10px; color: var(--dark-soft); max-width: 30rem; }
.pips { display: flex; gap: 4px; }
.pips i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.pips i.on { background: var(--brand-lift); }
.pviz { position: relative; margin-top: auto; min-height: 230px; border-radius: 16px; background: #0d0d0f; border: 1px solid var(--dark-line); overflow: hidden; padding: 20px; }
.pcard p + .pviz { margin-top: 22px; }

/* animations only run while the card is on screen (.is-live) */
.pcard:not(.is-live) .pviz *, .pcard:not(.is-live) .pviz::before, .pcard:not(.is-live) .pviz::after { animation-play-state: paused !important; }

/* colourful steps: a slow aurora drifts behind Planning, Storyboarding and Deliver */
.pviz--color { isolation: isolate; }
.pviz--color::before { content: ""; position: absolute; inset: -30%; z-index: -1; pointer-events: none; will-change: transform;
  background: radial-gradient(32% 38% at 22% 26%, rgba(139, 92, 246, 0.42), transparent 70%), radial-gradient(30% 34% at 80% 30%, rgba(236, 72, 153, 0.32), transparent 70%), radial-gradient(38% 38% at 58% 86%, rgba(34, 211, 238, 0.28), transparent 70%);
  animation: aurora 12s ease-in-out infinite alternate; }
@keyframes aurora { 0% { transform: translate(-6%, -4%) rotate(0deg); } 50% { transform: translate(5%, 3%) rotate(8deg); } 100% { transform: translate(-3%, 6%) rotate(-6deg); } }

/* 01 Planning: chat with typing indicator + brief checklist ticking */
.pviz--plan { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 0.8125rem; line-height: 1.4; opacity: 0; animation: bubble 8s var(--ease) infinite; }
.bubble--l { align-self: flex-start; background: var(--dark-card-2); border-bottom-left-radius: 4px; }
.bubble--r { align-self: flex-end; background: var(--brand); border-bottom-right-radius: 4px; animation-delay: 1.8s; }
@keyframes bubble { 0% { opacity: 0; transform: translateY(10px) scale(0.96); } 8%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
.typing { align-self: flex-end; display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 14px; background: rgba(24,56,200,0.35); height: 0; padding-block: 0; opacity: 0; overflow: hidden; animation: typing 8s linear infinite; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: dot 0.9s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 7% { opacity: 0; height: 0; padding-block: 0; } 9%, 20% { opacity: 1; height: 26px; padding-block: 10px; } 22%, 100% { opacity: 0; height: 0; padding-block: 0; } }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-3px); opacity: 1; } }
.brief { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.brief li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 7px; font-size: 0.75rem; font-weight: 600; background: rgba(255,255,255,0.05); border: 1px solid var(--dark-line); color: var(--dark-soft); animation: briefOn 8s var(--ease) infinite; }
.brief li::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid rgba(255,255,255,0.3); background: center / 10px no-repeat; }
.brief li:nth-child(1) { animation-delay: 3.2s; } .brief li:nth-child(2) { animation-delay: 3.6s; } .brief li:nth-child(3) { animation-delay: 4s; } .brief li:nth-child(4) { animation-delay: 4.4s; }
.brief li:nth-child(1)::before { animation: tick 8s var(--ease) infinite 3.2s; } .brief li:nth-child(2)::before { animation: tick 8s var(--ease) infinite 3.6s; }
.brief li:nth-child(3)::before { animation: tick 8s var(--ease) infinite 4s; } .brief li:nth-child(4)::before { animation: tick 8s var(--ease) infinite 4.4s; }
@keyframes briefOn { 0%, 2% { color: var(--dark-soft); border-color: var(--dark-line); } 6%, 55% { color: #fff; border-color: rgba(111,136,255,0.45); } 62%, 100% { color: var(--dark-soft); border-color: var(--dark-line); } }
@keyframes tick { 0%, 2% { background-color: transparent; border-color: rgba(255,255,255,0.3); background-image: none; } 6%, 55% { background-color: var(--brand); border-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); } 62%, 100% { background-color: transparent; border-color: rgba(255,255,255,0.3); background-image: none; } }

/* 02 Storyboarding: frames sketch themselves line by line, then get approved */
.pviz--board { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.board__frame { width: 100%; height: auto; border-radius: 8px; background: #f4f4f6; fill: none; stroke: #1b1d24; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: frameIn 7s var(--ease) infinite; }
.board__frame text { fill: #6b6f7b; stroke: none; font-family: var(--mono); font-size: 9px; }
.board__frame path, .board__frame circle, .board__frame rect { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 7s var(--ease) infinite; }
.board__frame:nth-child(2), .board__frame:nth-child(2) * { animation-delay: 0.6s; }
.board__frame:nth-child(3), .board__frame:nth-child(3) * { animation-delay: 1.2s; }
.board__frame:nth-child(4), .board__frame:nth-child(4) * { animation-delay: 1.8s; }
@keyframes frameIn { 0% { opacity: 0; transform: translateY(8px) rotate(-2deg); } 6%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes draw { 0%, 6% { stroke-dashoffset: 1; } 22%, 100% { stroke-dashoffset: 0; } }
.chip-ok { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; border-radius: 8px; font-size: 0.8125rem; font-weight: 600; background: var(--brand); border: 1px solid rgba(255,255,255,0.2); opacity: 0; animation: chipOk 7s var(--ease) infinite; }
.chip-ok svg { width: 15px; height: 15px; stroke-width: 2.8; }
@keyframes chipOk { 0%, 42% { opacity: 0; transform: scale(0.85); } 48%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 03 Generation: shot resolves from noise to sharp as the scan passes */
.pviz--gen { display: flex; flex-direction: column; gap: 14px; padding: 14px; }
.gen { position: relative; flex: 1; min-height: 150px; border-radius: 10px; overflow: hidden; background: #000; }
.gen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: resolve 4s var(--ease) infinite; }
@keyframes resolve { 0% { filter: saturate(0.15) brightness(0.6); transform: scale(1.08); } 55%, 100% { filter: none; transform: none; } }
.gen__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(111,136,255,0.25) 1px, transparent 1px), linear-gradient(90deg, rgba(111,136,255,0.25) 1px, transparent 1px); background-size: 22px 22px; animation: gridFade 4s linear infinite; }
@keyframes gridFade { 0%, 20% { opacity: 0.9; } 55%, 100% { opacity: 0; } }
.gen__scan { position: absolute; left: 0; right: 0; height: 40%; top: -40%; background: linear-gradient(to bottom, rgba(111,136,255,0), rgba(111,136,255,0.45) 90%, #fff 100%); mix-blend-mode: screen; will-change: transform; animation: scanDown 4s var(--ease) infinite; }
@keyframes scanDown { 0% { transform: translateY(0); } 55%, 100% { transform: translateY(350%); } }   /* -40% to 100% of the shot, in its own heights */
.gen__meta { display: grid; gap: 8px; }
.gen__label { font-family: var(--mono); font-size: 0.75rem; color: var(--dark-soft); }
.gen__label b { color: #fff; font-weight: 500; }
.gen__bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.gen__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-lift)); transform-origin: left; animation: genBar 4s var(--ease) infinite; }
@keyframes genBar { from { transform: scaleX(0.04); } 55%, to { transform: scaleX(1); } }

/* 04 Fine tuning: timeline with clips snapping in, colour track, moving playhead */
.pviz--edit { display: grid; place-items: center; }
.tline { position: relative; width: 100%; display: grid; gap: 8px; }
.tline__row { position: relative; height: 28px; display: flex; align-items: center; }
.tline__row b { width: 22px; flex: none; font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; color: var(--dark-soft); }
.tline__row i { position: absolute; top: 2px; bottom: 2px; left: calc(22px + (100% - 22px) * var(--s) / 100); width: calc((100% - 22px) * var(--w) / 100 - 3px); border-radius: 6px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); transform-origin: left; animation: clipIn 6s var(--ease) infinite; }
.tline__row i:nth-of-type(2) { animation-delay: 0.15s; } .tline__row i:nth-of-type(3) { animation-delay: 0.3s; } .tline__row i:nth-of-type(4) { animation-delay: 0.45s; }
@keyframes clipIn { 0% { transform: scaleX(0); opacity: 0; } 10%, 100% { transform: none; opacity: 1; } }
.tline__row--txt i { background: #f5f5f5; opacity: 0.85; top: 7px; bottom: 7px; }
.tline__row--grade i { top: 9px; bottom: 9px; background: linear-gradient(90deg, #f0a35c, #d45a8c, #5b6cff, #39c3b6); background-size: 200% 100%; animation: clipIn 6s var(--ease) infinite, gradeShift 6s linear infinite; }
@keyframes gradeShift { to { background-position: 200% 0; } }
.tline__row--aud i { background: repeating-linear-gradient(90deg, rgba(111,136,255,0.85) 0 2px, transparent 2px 5px); opacity: 0.75; animation: clipIn 6s var(--ease) infinite, wave 1.2s ease-in-out infinite; }
@keyframes wave { 50% { transform: scaleY(0.55); } }
.tline__head { position: absolute; top: -8px; bottom: -8px; left: 22px; right: 2px; will-change: transform; animation: head 6s linear infinite; }   /* spans the track; the line is its left edge */
.tline__head::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.6); }
.tline__head::before { content: ""; position: absolute; top: -4px; left: -5px; width: 12px; height: 12px; border-radius: 3px 3px 6px 6px; background: #fff; }
@keyframes head { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* 05 Deliver: three formats (playing hero 2.2) export one after another */
.pviz--formats { padding: 0; }
.fmts { position: absolute; inset: 16px; }
.fmt { position: absolute; display: block; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 18px 40px -16px rgba(0,0,0,0.85); animation: fmtIn 6s var(--ease) infinite; }
.fmt video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fmt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%) -150% 0 / 250% 100% no-repeat; animation: fmtShine 6s var(--ease) infinite; }
.fmt em { position: absolute; z-index: 1; left: 8px; bottom: 8px; font-style: normal; font-family: var(--mono); font-size: 0.6875rem; padding: 2px 7px; border-radius: 5px; background: rgba(0,0,0,0.6); color: #fff; }
/* 16:9 large at the top right, 1:1 overlapping at the bottom left */
.fmt--h { right: 0; top: 30px; width: 80%; aspect-ratio: 16 / 9; }
.fmt--s { left: 0; bottom: 0; width: 44%; aspect-ratio: 1; animation-delay: 0.3s; } .fmt--s::after { animation-delay: 0.3s; }
@keyframes fmtIn { 0% { opacity: 0; transform: translateY(16px) scale(0.92); } 10%, 100% { opacity: 1; transform: none; } }
@keyframes fmtShine { 0%, 14% { background-position: -150% 0; } 30%, 100% { background-position: 150% 0; } }

/* "Exported" badge: always visible, status light blinking through colours */
.fmt__done { position: absolute; z-index: 2; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 9px; border-radius: 8px; font-size: 0.75rem; font-weight: 700; background: rgba(255,255,255,0.95); color: var(--ink); border: 1px solid rgba(255,255,255,0.6); box-shadow: 0 8px 20px -10px rgba(0,0,0,0.7); }
.fmt__done i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: beep 2.4s steps(1) infinite; }
.fmt__done i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; color: inherit; opacity: 0; animation: beepRing 0.8s ease-out infinite; }
@keyframes beep { 0% { background: #22c55e; color: #22c55e; } 33% { background: #3d5cff; color: #3d5cff; } 66% { background: #f59e0b; color: #f59e0b; } }
@keyframes beepRing { 0% { opacity: 0.8; transform: scale(0.5); border-color: rgba(34,197,94,0.8); } 100% { opacity: 0; transform: scale(1.6); } }


/* --- colour pass: Planning --- */
.plan__call { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.02em; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); }
.plan__call i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); animation: callPulse 1.6s ease-out infinite; }
.plan__call em { font-style: normal; font-family: var(--mono); font-weight: 500; color: rgba(255, 255, 255, 0.6); }
@keyframes callPulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); } 100% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } }
.bubble--l { background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.12); }
.bubble--r { background: linear-gradient(135deg, #2c4ff0, #8b5cf6); box-shadow: 0 10px 24px -12px rgba(139, 92, 246, 0.9); }
.typing { background: linear-gradient(135deg, rgba(44, 79, 240, 0.5), rgba(139, 92, 246, 0.5)); }
.brief .c1 { --c: #8b5cf6; } .brief .c2 { --c: #ec4899; } .brief .c3 { --c: #22d3ee; } .brief .c4 { --c: #f59e0b; }
.brief li { animation-name: briefOnColor; }
.brief li:nth-child(n)::before { animation-name: tickColor; }
@keyframes briefOnColor { 0%, 2% { color: var(--dark-soft); border-color: var(--dark-line); background-color: rgba(255, 255, 255, 0.05); box-shadow: none; } 6%, 55% { color: #fff; border-color: var(--c); background-color: color-mix(in srgb, var(--c) 24%, transparent); box-shadow: 0 0 16px -4px var(--c); } 62%, 100% { color: var(--dark-soft); border-color: var(--dark-line); background-color: rgba(255, 255, 255, 0.05); box-shadow: none; } }
@keyframes tickColor { 0%, 2% { background-color: transparent; border-color: rgba(255,255,255,0.3); background-image: none; } 6%, 55% { background-color: var(--c); border-color: var(--c); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); } 62%, 100% { background-color: transparent; border-color: rgba(255,255,255,0.3); background-image: none; } }

/* --- colour pass: Storyboarding (each frame sketched in its own colour, then tinted; a pen runs along) --- */
.board { position: relative; }
.board__frame:nth-child(1) { --c: #8b5cf6; } .board__frame:nth-child(2) { --c: #ec4899; } .board__frame:nth-child(3) { --c: #22d3ee; } .board__frame:nth-child(4) { --c: #f59e0b; }
.board__frame { stroke: var(--c); stroke-width: 2; animation: frameIn 7s var(--ease) infinite, boardTint 7s var(--ease) infinite; box-shadow: 0 10px 22px -14px var(--c); }
.board__frame text { fill: var(--c); font-weight: 700; }
@keyframes boardTint { 0%, 20% { background-color: #f4f4f6; } 30%, 88% { background-color: color-mix(in srgb, var(--c) 16%, #fff); } 100% { background-color: #f4f4f6; } }
.board__pen { position: absolute; z-index: 2; top: 50%; left: 3%; right: 3%; height: 12px; margin-top: -6px; pointer-events: none; opacity: 0; will-change: transform; animation: pen 7s var(--ease) infinite; }   /* spans the frames; the dot is its left edge */
.board__pen::before { content: ""; position: absolute; left: -6px; top: 0; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #f472b6 45%, #8b5cf6); box-shadow: 0 0 14px 3px rgba(236, 72, 153, 0.6); }
@keyframes pen { 0% { transform: translateX(0); opacity: 0; } 5% { opacity: 1; } 22% { transform: translateX(28.7%); } 31% { transform: translateX(55.3%); } 40% { transform: translateX(81.9%); } 46% { transform: translateX(100%); opacity: 1; } 52%, 100% { transform: translateX(100%); opacity: 0; } }
.chip-ok { background: linear-gradient(135deg, #22c55e, #10b981); box-shadow: 0 10px 26px -10px rgba(34, 197, 94, 0.8); }

/* --- colour pass: Deliver (each format exports with its own bar, then goes out to every platform) --- */
.fmt--h em { background: #2c4ff0; } .fmt--s em { background: #ec4899; }
.fmt--h { --c: linear-gradient(90deg, #2c4ff0, #22d3ee); } .fmt--s { --c: linear-gradient(90deg, #ec4899, #f59e0b); }
.fmt__bar { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); transform-origin: left; animation: fmtBar 6s var(--ease) infinite; }
.fmt--s .fmt__bar { animation-delay: 0.3s; }
@keyframes fmtBar { 0%, 8% { transform: scaleX(0); } 34%, 100% { transform: scaleX(1); } }
.fmt__to { position: absolute; z-index: 3; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 52%; }
.fmt__to b { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; background: rgba(10, 10, 14, 0.78); border: 1px solid rgba(255, 255, 255, 0.16); opacity: 0; animation: toPop 6s var(--ease) infinite; }
.fmt__to b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.fmt__to .to1 { --c: #ff3b30; animation-delay: 0s; } .fmt__to .to2 { --c: #e1306c; animation-delay: 0.25s; } .fmt__to .to3 { --c: #25f4ee; animation-delay: 0.5s; } .fmt__to .to4 { --c: #22c55e; animation-delay: 0.75s; }
@keyframes toPop { 0%, 36% { opacity: 0; transform: translateY(8px) scale(0.9); } 42%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }


/* ==========================================================
   5. Stats (light)
   ========================================================== */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats > div { padding: 28px 24px; border-radius: var(--r); background: var(--dark-card); border: 1px solid var(--dark-line); text-align: center; }
.stats dd { font-size: clamp(2.75rem, 5.6vw, 4.75rem); font-weight: 800; line-height: 1; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats sup { font-size: 0.42em; vertical-align: top; position: relative; top: 0.2em; margin-left: 3px; color: var(--brand-lift); letter-spacing: -0.02em; }
.stats dt { margin-top: 10px; color: var(--dark-soft); font-weight: 500; }

/* ==========================================================
   6. Features (black) — bento grid, each card shows its feature
   ========================================================== */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.fcard { position: relative; display: flex; flex-direction: column; gap: 22px; padding: clamp(18px, 2vw, 24px); border-radius: var(--r); background: var(--dark-card); border: 1px solid var(--dark-line); overflow: hidden; isolation: isolate; transition: border-color 0.4s; }
.fcard__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(44, 79, 240, 0.16), transparent 60%); }
.fcard:hover { border-color: rgba(111, 136, 255, 0.28); }
.fcard:hover .fcard__glow { opacity: 1; }
.fcard__copy { padding: 0 4px 2px; }
.fcard h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.03em; }
.fcard p { margin-top: 8px; color: var(--dark-soft); max-width: 32rem; }
.fviz { position: relative; flex: 1; min-height: 270px; border-radius: 16px; background: #0b0c12; border: 1px solid var(--dark-line); overflow: hidden; }
/* animations rest while a card is off screen */
.fcard:not(.is-live) .fviz *, .fcard:not(.is-live) .fviz *::before, .fcard:not(.is-live) .fviz *::after { animation-play-state: paused !important; }

/* the feature drawings opt out of the global icon style (20px, outlined) */
.avm { stroke: none; }
.bm { stroke: none; }
.fchip { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 7px; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; color: #fff; background: rgba(10, 10, 14, 0.8); border: 1px solid rgba(255, 255, 255, 0.16); }
.fchip--ok i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }

/* 1. Skin: a loupe glides over the face, zooming into real detail (photo is 16:10, so the maths lines up) */
.fviz--skin { flex: none; aspect-ratio: 16 / 10; min-height: 0; background: #1a1412; }
.skin__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fviz--skin::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(90% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.45)); pointer-events: none; }
.skin__loupe { position: absolute; z-index: 2; left: 9%; top: 4%; width: 30%; will-change: transform; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12), 0 24px 60px -12px rgba(0, 0, 0, 0.8); animation: loupe 6s var(--ease) infinite; }   /* moves in its own widths/heights: card is 16:10, loupe 30% wide */
.skin__zoom { position: absolute; left: 0; top: 0; width: 1000%; height: 625%; background: var(--skin) center / 100% 100% no-repeat; will-change: transform; animation: loupeZoom 6s var(--ease) infinite; }   /* 10 × the loupe = 3 × the photo (16:10) */
.skin__loupe em { position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); padding: 2px 7px; border-radius: 5px; font-style: normal; font-family: var(--mono); font-size: 0.625rem; background: rgba(0, 0, 0, 0.55); }
@keyframes loupe { 0%, 22% { transform: translate(0, 0); } 33%, 55% { transform: translate(86.667%, 45.833%); } 66%, 88% { transform: translate(13.333%, 91.667%); } 100% { transform: translate(0, 0); } }
@keyframes loupeZoom { 0%, 22% { transform: translate(-18.99%, -19.992%); } 33%, 55% { transform: translate(-45%, -42%); } 66%, 88% { transform: translate(-23.04%, -64.008%); } 100% { transform: translate(-18.99%, -19.992%); } }   /* = background-position 21.1% 23.8% / 50% 50% / 25.6% 76.2% */
.skin__chip { left: 14px; top: 14px; }
.skin__tags { position: absolute; z-index: 4; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.skin__tags i { padding: 5px 10px; border-radius: 7px; font-style: normal; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); background: rgba(10, 10, 14, 0.75); border: 1px solid rgba(255, 255, 255, 0.14); animation: skinTag 6s var(--ease) infinite; }
.skin__tags i:nth-child(2) { animation-delay: 2s; } .skin__tags i:nth-child(3) { animation-delay: 4s; }
@keyframes skinTag { 0%, 24% { color: #fff; background: var(--brand); border-color: rgba(255, 255, 255, 0.3); } 30%, 100% { color: rgba(255, 255, 255, 0.6); background: rgba(10, 10, 14, 0.75); border-color: rgba(255, 255, 255, 0.14); } }

/* 2. AI avatar: a face mesh (from the portrait's real landmarks) draws itself, a scan reveals the real face (8 s loop) */
.fviz--avatar { display: block; background: radial-gradient(55% 60% at 50% 45%, rgba(24, 56, 200, 0.32), transparent 70%), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 22px), #0b0c12; }
.avf { position: absolute; inset: 0; }
.avf img { object-fit: cover; }   /* the mesh uses the same crop: preserveAspectRatio="xMidYMid slice" */
.avf img, .avm { position: absolute; inset: 0; width: 100%; height: 100%; }
.avf__ghost { display: none; }
.avf__photo { filter: brightness(0.86) saturate(1.05); }   /* always visible; the mesh draws over it */
@keyframes avReveal { 0%, 32% { clip-path: inset(0 0 100% 0); opacity: 1; } 55%, 90% { clip-path: inset(0 0 0 0); opacity: 1; } 97%, 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
.avm { overflow: visible; }
.av__mesh { fill: none; stroke: rgba(170, 188, 255, 0.85); stroke-width: 0.8px; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0.12; animation: avMesh 8s ease-in-out infinite; }
@keyframes avMesh { 0% { stroke-dashoffset: 1; opacity: 1; } 30%, 52% { stroke-dashoffset: 0; opacity: 1; } 64%, 88% { stroke-dashoffset: 0; opacity: 0.12; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.av__dots circle { fill: #fff; filter: drop-shadow(0 0 1.5px #6f88ff); transform-box: fill-box; transform-origin: center; opacity: 0.15; animation: avDot 8s var(--ease) infinite; animation-delay: calc(var(--i) * 70ms); }
@keyframes avDot { 0%, 3% { transform: scale(0); opacity: 0; } 7% { transform: scale(1.8); opacity: 1; } 12%, 50% { transform: scale(1); opacity: 1; } 62%, 86% { transform: scale(1); opacity: 0.15; } 94%, 100% { transform: scale(0); opacity: 0; } }
.av__scan { position: absolute; left: 0; right: 0; top: 0; height: 100%; opacity: 0; pointer-events: none; will-change: transform; animation: avScan 8s ease-in-out infinite; }
.av__scan::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #c7d2ff; box-shadow: 0 0 12px #6f88ff, 0 0 2px #fff; }
.av__scan::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 2px); height: 60px; background: linear-gradient(to bottom, transparent, rgba(111, 136, 255, 0.25)); }
@keyframes avScan { 0%, 30% { transform: translateY(0); opacity: 0; } 32% { opacity: 1; } 55% { transform: translateY(100%); opacity: 1; } 57%, 100% { transform: translateY(100%); opacity: 0; } }
.av__chip { right: 14px; top: 14px; animation: avChip 8s var(--ease) infinite; }
@keyframes avChip { 0%, 52% { opacity: 0; transform: translateY(-6px) scale(0.92); } 58%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
.av__roles { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.av__roles b { padding: 5px 9px; border-radius: 7px; font-size: 0.75rem; font-weight: 600; color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); animation: avRole 9s var(--ease) infinite; }
.av__roles b:nth-child(2) { animation-delay: 3s; } .av__roles b:nth-child(3) { animation-delay: 6s; }
@keyframes avRole { 0%, 30% { color: #fff; background: var(--brand); border-color: rgba(255, 255, 255, 0.28); } 36%, 100% { color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); } }

/* 3. Voice cloning: sample waveform on top, the clone builds bar by bar below */
.fviz--voice { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 46px 20px 22px; background: radial-gradient(70% 60% at 50% 100%, rgba(24, 56, 200, 0.3), transparent 70%), #0b0c12; }
.vc__row { display: grid; gap: 8px; }
.vc__label { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dark-soft); }
.vc__label svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vc__row--clone .vc__label { color: var(--brand-lift); }
.vc__row--clone .vc__label svg { fill: currentColor; stroke: none; }
.vc__wave { display: flex; align-items: center; gap: 3px; height: 46px; }
.vc__wave i { flex: 1; min-width: 2px; height: calc(var(--h) * 100%); border-radius: 2px; background: rgba(255, 255, 255, 0.5); transform-origin: center; animation: vcTalk 1.4s ease-in-out infinite; animation-delay: calc(var(--i) * -90ms); }
@keyframes vcTalk { 50% { transform: scaleY(0.55); } }
.vc__row--clone .vc__wave i { background: linear-gradient(180deg, #8ea3ff, var(--brand-2)); box-shadow: 0 0 10px rgba(44, 79, 240, 0.45); animation: vcClone 6s var(--ease) infinite; animation-delay: calc(var(--i) * 45ms); }
@keyframes vcClone { 0%, 6% { transform: scaleY(0.06); opacity: 0.25; } 18%, 84% { transform: scaleY(1); opacity: 1; } 92%, 100% { transform: scaleY(0.06); opacity: 0.25; } }
.vc__link { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.vc__link span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(111, 136, 255, 0.9), transparent) -100% 0 / 50% 100% no-repeat, rgba(255, 255, 255, 0.1); animation: vcFlow 1.6s linear infinite; }
.vc__link b { font-weight: 500; }
@keyframes vcFlow { to { background-position: 200% 0, 0 0; } }
.vc__chip { right: 14px; top: 14px; animation: vcChip 8s var(--ease) infinite; }
@keyframes vcChip { 0%, 64% { opacity: 0; transform: translateY(-6px) scale(0.92); } 70%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
.fviz--voice { gap: 12px; padding: 48px 18px 18px; }
.vc__label em { margin-left: 4px; font-style: normal; color: rgba(255, 255, 255, 0.4); }
.vc__row--sample .vc__wave { height: 34px; animation: vcSample 8s ease-in-out infinite; }
@keyframes vcSample { 0%, 30% { opacity: 1; } 40%, 92% { opacity: 0.35; } 100% { opacity: 1; } }
.vc__learn { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.vc__orb { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(from 0deg, #2c4ff0, #8b5cf6, #ec4899, #22d3ee, #2c4ff0); box-shadow: 0 0 18px rgba(139, 92, 246, 0.6); animation: vcOrb 8s linear infinite; }
@keyframes vcOrb { 0%, 26% { transform: rotate(0) scale(0.85); filter: saturate(0.4); } 30% { filter: none; } 52% { transform: rotate(540deg) scale(1.08); } 60%, 100% { transform: rotate(600deg) scale(1); } }
.vc__steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.vc__steps b { font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.vc__traits { display: flex; gap: 5px; }
.vc__traits i { padding: 2px 7px; border-radius: 6px; font-style: normal; font-size: 0.6875rem; font-weight: 600; color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.05); animation: vcTrait 8s var(--ease) infinite; }
.vc__traits i:nth-child(2) { animation-delay: 0.5s; } .vc__traits i:nth-child(3) { animation-delay: 1s; }
@keyframes vcTrait { 0%, 32% { color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.05); } 36%, 92% { color: #fff; background: rgba(139, 92, 246, 0.45); } 100% { color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.05); } }
.vc__bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.vc__bar i { display: block; height: 100%; background: linear-gradient(90deg, #2c4ff0, #8b5cf6, #ec4899); transform-origin: left; animation: vcLearn 8s var(--ease) infinite; }
@keyframes vcLearn { 0%, 28% { transform: scaleX(0); } 52%, 94% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.vc__script { font-size: 0.875rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; clip-path: inset(0 100% 0 0); animation: vcType 8s steps(40, end) infinite; }
@keyframes vcType { 0%, 54% { clip-path: inset(0 100% 0 0); } 66%, 94% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
.vc__row--clone .vc__wave { height: 34px; }
.vc__row--clone .vc__wave i { animation: vcClone8 8s var(--ease) infinite, vcTalk 1.4s ease-in-out infinite; animation-delay: calc(var(--i) * 30ms), calc(var(--i) * -90ms); }
@keyframes vcClone8 { 0%, 58% { opacity: 0.15; } 64%, 94% { opacity: 1; } 100% { opacity: 0.15; } }

/* 4. Character consistency: the scene changes every 2 s, the character never does.
      Scenes, labels, light washes and thumbnails share one 8 s clock (delays of 0, 2, 4 and 6 s). */
.fviz--cc { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.cc__stage { position: relative; flex: 1; min-height: 210px; border-radius: 10px; overflow: hidden; isolation: isolate; background: #10121c; }
.cc__scene, .cc__wash { position: absolute; inset: 0; opacity: 0; animation: ccScene 8s linear infinite; }
.cc__scene { inset: -4px; filter: blur(1.2px); }
.cc__scene:nth-child(2), .cc__wash--night { animation-delay: 2s; }
.cc__scene:nth-child(3), .cc__wash--beach { animation-delay: 4s; }
.cc__scene:nth-child(4), .cc__wash--park { animation-delay: 6s; }
@keyframes ccScene { 0% { opacity: 0; } 4%, 25% { opacity: 1; } 29%, 100% { opacity: 0; } }

/* the four places, drawn with gradients only */
.sc--office { background: linear-gradient(180deg, transparent 66%, #6d7890 66%, #545e74), repeating-linear-gradient(90deg, rgba(80, 100, 135, 0.45) 0 3px, transparent 3px 19%), linear-gradient(180deg, transparent 0 30%, rgba(80, 100, 135, 0.35) 30% calc(30% + 3px), transparent calc(30% + 3px)), linear-gradient(180deg, #eef4fb, #bccde4 66%); }
.sc--night { background: radial-gradient(26% 22% at 18% 34%, rgba(255, 40, 180, 0.6), transparent 70%), radial-gradient(26% 22% at 84% 28%, rgba(40, 170, 255, 0.6), transparent 70%), linear-gradient(180deg, #160f34, #2a1250 62%, #0b0b18); }
.sc--night::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; background: repeating-linear-gradient(0deg, rgba(255, 220, 140, 0.5) 0 2px, transparent 2px 9px), #0b0e22; -webkit-mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 9px); mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 9px); clip-path: polygon(0 40%, 9% 40%, 9% 12%, 18% 12%, 18% 52%, 26% 52%, 26% 0, 36% 0, 36% 34%, 46% 34%, 46% 58%, 56% 58%, 56% 18%, 64% 18%, 64% 44%, 74% 44%, 74% 6%, 84% 6%, 84% 38%, 92% 38%, 92% 24%, 100% 24%, 100% 100%, 0 100%); }
.sc--beach { background: radial-gradient(11% 15% at 50% 60%, #fff1b8, #ffc15e 55%, transparent 60%), linear-gradient(180deg, transparent 62%, #3a3f86 62%, #1f2458), linear-gradient(180deg, #ffa65e, #ff6f61 42%, #a24c8a 62%); }
.sc--beach::after { content: ""; position: absolute; left: 30%; right: 30%; top: 64%; bottom: 8%; background: repeating-linear-gradient(180deg, rgba(255, 200, 120, 0.7) 0 2px, transparent 2px 7px); -webkit-mask: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent); mask: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent); }
.sc--park { background: radial-gradient(7% 9% at 16% 26%, rgba(255, 250, 200, 0.55), transparent 70%), radial-gradient(5% 7% at 34% 18%, rgba(255, 250, 200, 0.45), transparent 70%), radial-gradient(8% 10% at 78% 22%, rgba(255, 250, 200, 0.5), transparent 70%), radial-gradient(6% 8% at 90% 44%, rgba(255, 250, 200, 0.4), transparent 70%), linear-gradient(180deg, transparent 70%, #3f6b35 70%, #2b4a25), linear-gradient(180deg, #8fc6a0, #3d7a52 50%, #24503a 70%); }

/* the character: identical in every scene, breathing and blinking */
.cc__char { position: absolute; z-index: 1; left: 50%; bottom: 0; height: 92%; width: auto; transform: translateX(-50%); stroke: none; overflow: visible; }
.cc__char #ccChar { transform-box: view-box; transform-origin: 100px 220px; animation: ccBreathe 4s ease-in-out infinite; }
@keyframes ccBreathe { 50% { transform: scale(1.012) translateY(-1px); } }
.cc__eyes { transform-box: fill-box; transform-origin: center; animation: ccBlink 4s ease-in-out infinite; }
@keyframes ccBlink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(0.1); } }

/* each scene's light falls on the character too */
.cc__wash { z-index: 2; mix-blend-mode: soft-light; pointer-events: none; }
.cc__wash--office { background: linear-gradient(180deg, rgba(210, 230, 255, 0.5), transparent 70%); }
.cc__wash--night { background: linear-gradient(90deg, rgba(255, 0, 170, 0.7), rgba(0, 140, 255, 0.7)); }
.cc__wash--beach { background: linear-gradient(200deg, rgba(255, 150, 60, 0.8), rgba(120, 60, 140, 0.4)); }
.cc__wash--park { background: linear-gradient(180deg, rgba(200, 255, 200, 0.45), rgba(40, 90, 50, 0.4)); }

/* face-ID lock re-checks the face on every scene change */
.cc__lockon { transform-box: fill-box; transform-origin: center; animation: ccLock 2s var(--ease) infinite; }
.cc__lockon path { fill: none; stroke: #a9bbff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(111, 136, 255, 0.9)); }
.cc__scanline { fill: #c7d2ff; animation: ccScan 2s ease-in-out infinite; }
@keyframes ccLock { 0%, 4% { opacity: 0; transform: scale(1.25); } 14%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes ccScan { 0%, 10% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 55% { transform: translateY(84px); opacity: 1; } 60%, 100% { transform: translateY(84px); opacity: 0; } }
.cc__match { right: 10px; top: 10px; animation: ccMatch 2s var(--ease) infinite; }
@keyframes ccMatch { 0%, 50% { opacity: 0; transform: translateY(-4px) scale(0.94); } 60%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.cc__labels { position: absolute; z-index: 3; left: 10px; top: 10px; display: grid; }
.cc__labels b { grid-area: 1 / 1; justify-self: start; padding: 5px 9px; border-radius: 7px; font-family: var(--mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; background: rgba(10, 10, 14, 0.8); border: 1px solid rgba(255, 255, 255, 0.16); opacity: 0; animation: ccScene 8s linear infinite; }
.cc__labels b:nth-child(2) { animation-delay: 2s; } .cc__labels b:nth-child(3) { animation-delay: 4s; } .cc__labels b:nth-child(4) { animation-delay: 6s; }

/* filmstrip: the same character in all four places, ticked off as each one is checked */
.cc__strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cc__thumb { position: relative; height: 62px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); animation: ccThumb 8s linear infinite; }
.cc__thumb svg, .cc__thumb b, .cc__tick { z-index: 1; }
.cc__thumb svg { position: absolute; left: 50%; bottom: 0; height: 88%; width: auto; transform: translateX(-50%); stroke: none; }
.cc__thumb b { position: absolute; left: 4px; bottom: 4px; padding: 1px 4px; border-radius: 3px; font-family: var(--mono); font-size: 0.5rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; background: rgba(0, 0, 0, 0.55); }
.cc__thumb:nth-child(2) { animation-delay: 2s; } .cc__thumb:nth-child(3) { animation-delay: 4s; } .cc__thumb:nth-child(4) { animation-delay: 6s; }
@keyframes ccThumb { 0%, 25% { border-color: #8ea3ff; box-shadow: 0 0 0 1px #8ea3ff, 0 0 14px rgba(111, 136, 255, 0.5); } 29%, 100% { border-color: rgba(255, 255, 255, 0.12); box-shadow: none; } }
.cc__tick { position: absolute; right: 4px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); opacity: 0; animation: ccTick1 8s var(--ease) infinite; }
.cc__thumb:nth-child(2) .cc__tick { animation-name: ccTick2; } .cc__thumb:nth-child(3) .cc__tick { animation-name: ccTick3; } .cc__thumb:nth-child(4) .cc__tick { animation-name: ccTick4; }
@keyframes ccTick1 { 0%, 12% { opacity: 0; transform: scale(0.4); } 16%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ccTick2 { 0%, 37% { opacity: 0; transform: scale(0.4); } 41%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ccTick3 { 0%, 62% { opacity: 0; transform: scale(0.4); } 66%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ccTick4 { 0%, 87% { opacity: 0; transform: scale(0.4); } 91%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 5. Lip-sync: a real AI talking-head clip (hero-1) framed on the mouth.
      The mouth sits at 49.5% across and 41% down the 16:9 clip; zoom 2.78 shows 36% of its width. */
.fviz--lips { container-type: inline-size; background: #000; }
.ls__video { position: absolute; width: 160%; max-width: none; height: auto; left: -29.2%; top: calc(56% - 36.9cqw); }   /* mouth at 50% across, 56% down */
.fviz--lips::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 26%, transparent 62%, rgba(0, 0, 0, 0.7)); pointer-events: none; }
.ls__box { position: absolute; z-index: 2; left: 41%; width: 18%; top: calc(56% - 7.4cqw); height: 11.6cqw; }
.ls__box i { position: absolute; width: 12px; height: 12px; border: 0 solid #a9bbff; filter: drop-shadow(0 0 3px rgba(111, 136, 255, 0.9)); }
.ls__box i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; } .ls__box i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.ls__box i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; } .ls__box i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.ls__box em { position: absolute; left: 0; bottom: calc(100% + 6px); padding: 2px 6px; border-radius: 4px; font-style: normal; font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; background: var(--brand); }
.ls__box::after { content: ""; position: absolute; left: 4px; right: 4px; height: 1px; top: 0; background: rgba(169, 187, 255, 0.8); box-shadow: 0 0 6px #6f88ff; animation: lsScan 1.6s ease-in-out infinite alternate; }
@keyframes lsScan { to { top: 100%; } }
.ls__chip { left: 14px; top: 14px; }
.ls__tag { right: 14px; top: 14px; color: rgba(255, 255, 255, 0.8); }
.ls__timeline { position: absolute; z-index: 3; left: 14px; right: 14px; bottom: 14px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.7); border: 1px solid rgba(255, 255, 255, 0.12); }
.ls__timeline { display: grid; gap: 5px; }
.ls__track { display: flex; align-items: center; gap: 8px; }
.ls__track em { width: 34px; flex: none; font-style: normal; font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.ls__timeline .vc__wave { flex: 1; height: 16px; gap: 2px; }
.ls__box em b { margin-left: 4px; display: inline-block; min-width: 2.2em; padding: 0 4px; border-radius: 3px; text-align: center; background: #fff; color: var(--brand); font-weight: 700; }
.ls__langs { position: absolute; z-index: 3; right: 14px; top: 14px; display: flex; gap: 4px; }
.ls__langs b { padding: 4px 7px; border-radius: 6px; font-family: var(--mono); font-size: 0.625rem; font-weight: 500; color: rgba(255, 255, 255, 0.6); background: rgba(10, 10, 14, 0.6); border: 1px solid rgba(255, 255, 255, 0.14); animation: lsLang 10s var(--ease) infinite; }
.ls__langs b:nth-child(2) { animation-delay: 2s; } .ls__langs b:nth-child(3) { animation-delay: 4s; } .ls__langs b:nth-child(4) { animation-delay: 6s; } .ls__langs b:nth-child(5) { animation-delay: 8s; }
@keyframes lsLang { 0%, 18% { color: #fff; background: var(--brand); border-color: rgba(255, 255, 255, 0.3); } 22%, 100% { color: rgba(255, 255, 255, 0.6); background: rgba(10, 10, 14, 0.6); border-color: rgba(255, 255, 255, 0.14); } }
.ls__timeline .vc__wave i { animation: none; background: rgba(255, 255, 255, 0.28); transition: background-color 0.15s; }
.ls__timeline .vc__wave i.is-on { background: linear-gradient(180deg, #a9bbff, var(--brand-2)); }
.ls__track--lips .vc__wave i.is-on { background: linear-gradient(180deg, #f9a8d4, #ec4899); }
.ls__head { position: absolute; top: 4px; bottom: 4px; left: 10px; width: 2px; border-radius: 1px; background: #fff; box-shadow: 0 0 10px #8ea3ff; }

/* 6. Body movement: motion-capture style walk cycle (1.2 s stride) on a moving floor */
.fviz--body { display: grid; place-items: center; background: radial-gradient(55% 50% at 50% 55%, rgba(24, 56, 200, 0.3), transparent 70%), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 26px), #0b0c12; }
.bm { position: absolute; left: 50%; top: 58px; bottom: 26px; width: auto; height: auto; max-width: 80%; transform: translateX(-50%); overflow: visible; }
.bm line { stroke: rgba(255, 255, 255, 0.92); stroke-width: 5; stroke-linecap: round; }
.bm circle { fill: #8ea3ff; filter: drop-shadow(0 0 4px #6f88ff); }
.bm .bm__head { fill: rgba(255, 255, 255, 0.92); filter: none; }
.bm__body { animation: bmBob 0.6s ease-in-out infinite alternate; }
.bm__arm, .bm__leg, .bm__fore, .bm__shin { transform-box: view-box; }
.bm__arm { transform-origin: 80px 56px; animation: bmArm 1.2s ease-in-out infinite; }
.bm__fore { transform-origin: 80px 88px; animation: bmFore 1.2s ease-in-out infinite; }
.bm__leg { transform-origin: 80px 108px; animation: bmLeg 1.2s ease-in-out infinite; }
.bm__shin { transform-origin: 80px 148px; animation: bmShin 1.2s linear infinite; }
.bm__arm--b, .bm__leg--b { opacity: 0.4; }
.bm__arm--b, .bm__arm--b .bm__fore, .bm__leg--b, .bm__leg--b .bm__shin { animation-delay: -0.6s; }
@keyframes bmBob { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@keyframes bmLeg { 0%, 100% { transform: rotate(-24deg); } 50% { transform: rotate(22deg); } }
@keyframes bmShin { 0% { transform: rotate(4deg); } 40% { transform: rotate(8deg); } 55% { transform: rotate(20deg); } 72% { transform: rotate(58deg); } 88% { transform: rotate(18deg); } 100% { transform: rotate(4deg); } }
@keyframes bmArm { 0%, 100% { transform: rotate(24deg); } 50% { transform: rotate(-24deg); } }
@keyframes bmFore { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(-38deg); } }
.bm .bm__floor { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1.5; stroke-linecap: butt; stroke-dasharray: 10 10; animation: bmFloor 0.6s linear infinite; }
@keyframes bmFloor { to { stroke-dashoffset: 20; } }   /* the floor slides back as the figure walks */
.bm__chip { left: 14px; top: 14px; }

/* ==========================================================
   7. Testimonials (light) — two columns drifting opposite ways
   ========================================================== */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; height: 620px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.quotes__col { display: flex; flex-direction: column; gap: 20px; animation: up 30s linear infinite; }
.quotes:not(.is-live) .quotes__col, .marquee:not(.is-live) .marquee__track { animation-play-state: paused; }   /* rest while off screen */
.quotes__col--down { animation-name: down; }
.quotes:hover .quotes__col { animation-play-state: paused; }
@keyframes up { to { transform: translateY(calc(-50% - 10px)); } }
@keyframes down { from { transform: translateY(calc(-50% - 10px)); } to { transform: none; } }
.quote { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--r); background: var(--dark-card); border: 1px solid var(--dark-line); }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.875rem; color: var(--dark-soft); }
.quote figcaption b { display: block; font-size: 1rem; font-weight: 700; color: #fff; }
.av { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; background: #e5e7ff; border: 2px solid rgba(255,255,255,0.14); }
.quote blockquote { font-size: 1.0625rem; line-height: 1.55; }
.quote__tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: var(--brand-lift); background: rgba(24, 56, 200, 0.2); }

/* ==========================================================
   8. Pricing (black)
   ========================================================== */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); max-width: 960px; margin: 0 auto; align-items: start; }
.plan { display: flex; flex-direction: column; padding: 0 0 clamp(20px, 2.4vw, 28px); border-radius: calc(var(--r) + 4px); background: var(--dark-card); }
@media (min-width: 801px) {   /* side by side: both cards share two rows, so the price blocks match and the ticks line up */
  .plans { grid-template-rows: auto auto; align-items: stretch; }
  .plan { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
}

/* raised top block: name, line, price, button */
.plan__top {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: calc(var(--r) + 4px);
  background: var(--dark-card-2);
}
.plan h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.plan__sub { margin-top: 6px; color: var(--dark-soft); font-size: 0.9375rem; max-width: 22rem; }
.plan__price { display: flex; align-items: baseline; gap: 2px; margin: 18px 0 22px; }
.plan__price b { font-size: clamp(1.75rem, 2.6vw, 2.125rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.plan__price span { font-size: 1.125rem; font-weight: 500; color: rgba(255,255,255,0.85); }
/* monthly plan: slanted tags beside the name, and the saving spelled out under the button */
.plan__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.plan__tags { display: inline-flex; gap: 6px; }
.ptag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 8px; border-radius: 6px; font-size: 0.6875rem; font-weight: 800; font-style: italic; letter-spacing: 0.04em; line-height: 1.35; text-transform: uppercase; white-space: nowrap; transform: skewX(-8deg); }
.ptag--off { background: #fff; color: var(--brand); box-shadow: 0 6px 16px -8px rgba(255, 255, 255, 0.7); }
.ptag--pick { background: linear-gradient(135deg, #ff4f9a, #e8156b); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 6px 16px -8px rgba(232, 21, 107, 0.9); }
.ptag svg { width: 12px; height: 12px; fill: rgba(255, 255, 255, 0.25); stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.plan__saving { margin-top: 12px; text-align: center; font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }
.plan__saving b { color: #fff; font-weight: 700; }
@media (min-width: 801px) and (max-width: 960px) { .ptag--pick { display: none; } }   /* not enough room beside the name: keep the buttons level */
}
.plan__badge {
  position: absolute; top: clamp(22px, 2.6vw, 30px); right: clamp(22px, 2.6vw, 30px);
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  background: rgba(255,255,255,0.12); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* plain check marks, no circle */
.ticks { display: grid; gap: 14px; padding: clamp(20px, 2.4vw, 26px) clamp(22px, 2.6vw, 30px) 0; }
.ticks li { display: flex; gap: 12px; font-size: 0.9375rem; color: var(--dark-soft); }
.ticks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* premium plan: slowly moving brand-blue gradient behind the top block */
.plan--hot .plan__top { background: #0b0d1c; }
.plan__glow { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.plan__glow i { position: absolute; border-radius: 50%; will-change: transform; background: radial-gradient(circle closest-side, var(--g) 35%, transparent 100%) !important; }
.plan__glow i:nth-child(1) { width: 84%; aspect-ratio: 1; right: -25%; top: -47%; --g: #1838c8; animation: glowA 3.4s ease-in-out infinite alternate; }
.plan__glow i:nth-child(2) { width: 56%; aspect-ratio: 1; right: 3%; top: 14%; --g: #6a5cff; opacity: 0.85; animation: glowB 2.6s ease-in-out infinite alternate; }
.plan__glow i:nth-child(3) { width: 48%; aspect-ratio: 1; right: -15%; bottom: -36%; --g: #1a8cff; opacity: 0.75; animation: glowC 4.2s ease-in-out infinite alternate; }
@keyframes glowA { 0% { transform: none; } 50% { transform: translate(-30%, 22%) scale(1.2); } 100% { transform: translate(-55%, 6%) scale(0.95); } }
@keyframes glowB { 0% { transform: none; } 50% { transform: translate(-70%, -20%) scale(1.1); } 100% { transform: translate(-120%, 10%) scale(0.85); } }
@keyframes glowC { 0% { transform: none; } 50% { transform: translate(-80%, -40%) scale(1.3); } 100% { transform: translate(-150%, -10%) scale(1); } }
.plan__glow::after {   /* streaky sheen sweeping across */
  content: ""; position: absolute; inset: -50%;
  background: conic-gradient(from 0deg at 75% 40%, transparent 0deg, rgba(120, 145, 255, 0.22) 45deg, transparent 100deg, transparent 195deg, rgba(24, 56, 200, 0.32) 250deg, transparent 310deg);
  will-change: transform;
  animation: sheen 5s linear infinite;
}
@keyframes sheen { to { transform: rotate(360deg); } }
.plan--hot .plan__sub { color: rgba(255,255,255,0.75); }

.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); max-width: 960px; margin: clamp(16px, 2vw, 24px) auto 0; }
.extra { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 26px 28px; border-radius: var(--r); background: var(--dark-card); border: 1px solid var(--dark-line); }
.extra h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.extra p { margin-top: 4px; color: var(--dark-soft); }
.extra--brand { background: #fff; color: var(--ink); border-color: transparent; }
.extra--brand p { color: var(--ink-soft); }
.extra--brand .btn--light { background: var(--ink); color: #fff; border-color: rgba(255,255,255,0.12); }
.extra--brand .btn--light:hover { background: var(--brand); }

/* ==========================================================
   9. Contact (light)
   ========================================================== */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.points { display: grid; gap: 14px; margin-top: 32px; }
.points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.points li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 34px); border-radius: calc(var(--r) + 4px); background: var(--dark-card); border: 1px solid var(--dark-line); }
.form label { display: grid; gap: 8px; font-size: 0.875rem; font-weight: 600; }
.form input, .form textarea, .phone { border: 1.5px solid rgba(255, 255, 255, 0.32); transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease); }
.form input, .form textarea { width: 100%; padding: 14px 16px; border-radius: 14px; background: var(--dark-card-2); font-size: 1rem; font-weight: 400; color: #fff; }
/* each box lifts a little with a soft glow when the mouse is over it, and more while you type in it */
.form input:hover, .form textarea:hover, .phone:hover { border-color: rgba(142, 163, 255, 0.7); transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.9), 0 0 0 3px rgba(44, 79, 240, 0.18); }
.form textarea { resize: vertical; min-height: 140px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* spam trap, hidden from people */
.form__note a { color: #fff; text-decoration: underline; }
.form button:disabled { opacity: 0.7; cursor: progress; }
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,0.38); }
.form input:focus, .form textarea:focus { outline: none; border-color: #8ea3ff; transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(44, 79, 240, 0.8), 0 0 0 4px rgba(44, 79, 240, 0.35); }
.form [aria-invalid="true"] { border-color: #f87171; }
.form__note { min-height: 1.4em; font-size: 0.875rem; color: var(--dark-soft); }
.form__phone { display: grid; gap: 8px; }
.form__phone > label { display: block; font-size: 0.875rem; font-weight: 600; }
.form__phone > label span { font-weight: 400; color: var(--dark-soft); }
.phone { display: flex; align-items: stretch; border-radius: 14px; background: var(--dark-card-2); }
.phone:focus-within { border-color: #8ea3ff; transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(44, 79, 240, 0.8), 0 0 0 4px rgba(44, 79, 240, 0.35); }
.phone:has([aria-invalid="true"]) { border-color: #f87171; }
.phone__cc { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 12px 0 14px; border-right: 1px solid var(--dark-line); color: rgba(255, 255, 255, 0.8); }
.phone__cc svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.phone__cc .phone__chev { width: 14px; height: 14px; opacity: 0.7; }
.phone__code { font-weight: 600; font-variant-numeric: tabular-nums; }
.phone__cc select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 1rem; }   /* the native picker, invisible over the code */
.form .phone input, .form .phone input:hover, .form .phone input:focus { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; transform: none; }   /* the whole .phone box lifts instead */

/* ==========================================================
   10. FAQ (black)
   ========================================================== */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.faq__side { position: sticky; top: 110px; }
.faq__list { display: grid; gap: 12px; }
.qa { border-radius: 18px; background: var(--dark-card); border: 1px solid var(--dark-line); transition: border-color 0.3s; }
.qa[open] { border-color: rgba(111, 136, 255, 0.45); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 18px 16px 24px; cursor: pointer; list-style: none; font-size: 1.0625rem; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--dark-card-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform 0.35s var(--ease), background-color 0.2s; }
.qa[open] summary::after { transform: rotate(45deg); background-color: var(--brand); }
.qa__a { padding: 0 24px 22px; color: var(--dark-soft); max-width: 40rem; }

/* ==========================================================
   Footer (light)
   ========================================================== */
.footer {
  padding: clamp(56px, 9vh, 96px) var(--gutter) 28px;
  background: transparent; color: #fff;   /* the page glow carries on under the closing line and footer */
  border-top: 1px solid var(--dark-line);
}
.footer__row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap;
  font-size: 0.9375rem;
}
.footer__row p { color: var(--dark-soft); }
.footer__row p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.35); }
.footer__row p a:hover { text-decoration-color: #fff; }
.footer__nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px; }
/* same as the header links: boxy, subtle stroke on hover */
.footer__links a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 16px;
  border-radius: 7px; border: 1px solid transparent;
  font-size: 0.9375rem; font-weight: 500; color: rgba(255,255,255,0.72);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.footer__links a:hover { color: #fff; background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }

/* ==========================================================
   Closing line — one line, exactly as wide as the footer logo
   ========================================================== */
.outro { background: transparent; padding: clamp(96px, 14vw, 180px) var(--gutter) clamp(48px, 7vw, 88px); overflow: hidden; }
.outro__line {
  font-size: 100px;                 /* main.js scales this so the line fills the width */
  font-weight: 800; line-height: 1.1; letter-spacing: -0.05em;
  white-space: nowrap; text-align: center;
  margin-bottom: 1.1em;             /* one more line of space before the footer */
}
/* room under each word so descenders (g, y) are never clipped by the gradient text */
.outro__line .w { padding-bottom: 0.14em; margin-bottom: -0.14em; }
.outro__line .w--accent { background: linear-gradient(90deg, var(--brand-lift), #a9b8ff 50%, var(--brand-lift)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: outroShine 6s linear infinite; }
@keyframes outroShine { to { background-position: -200% 0; } }
/* main logo spanning the full footer width */
.footer__wordmark {
  display: block; width: 100%; height: auto; max-width: none;
  box-sizing: content-box;
  padding: clamp(48px, 9vh, 112px) 0;
  border-bottom: 1px solid var(--dark-line);
}
/* copyright + company pages on one line */
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px clamp(14px, 2vw, 56px); flex-wrap: nowrap;
  padding-top: 16px;
  font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.footer__copy { margin: 0; white-space: nowrap; color: rgba(255, 255, 255, 0.5); }
.footer__mono { display: flex; flex-wrap: nowrap; gap: 4px clamp(14px, 2vw, 56px); }
.footer__mono a { display: inline-flex; min-height: 44px; align-items: center; white-space: nowrap; color: var(--dark-soft); transition: color 0.2s; }
.footer__mono a:hover { color: #fff; }

/* ==========================================================
   Modal
   ========================================================== */
.modal { width: min(1000px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: 20px; background: #000; color: #fff; overflow: visible; }
.modal::backdrop { background: rgba(0,0,0,0.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal__frame { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(80% 100% at 50% 100%, #1838c8, #050a26); }
.modal__frame iframe, .modal__frame video { width: 100%; height: 100%; border: 0; background: #000; }
/* Shorts open upright (9:16) */
.modal.is-vertical { width: min(calc(min(86vh, 780px) * 9 / 16), calc(100vw - 32px)); }
.modal.is-vertical .modal__frame { aspect-ratio: 9 / 16; }
.modal__empty { padding: 24px; text-align: center; color: rgba(255,255,255,0.8); }
.modal__empty b { display: block; font-size: 1.25rem; color: #fff; margin-bottom: 6px; }
.modal__close { position: absolute; top: -56px; right: 0; width: 44px; height: 44px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center; background: rgba(255,255,255,0.14); }
.modal__close:hover { background: rgba(255,255,255,0.26); }

/* ==========================================================
   Responsive
   ========================================================== */
/* ==========================================================
   Brand glow cards: every dark card gets a soft blue light from its top-left corner
   and a gradient edge that is brightest there, like a lit glass panel
   ========================================================== */
:root {
  --glow-fill: linear-gradient(150deg, rgba(44, 79, 240, 0.2) 0%, rgba(24, 56, 200, 0.07) 38%, rgba(24, 56, 200, 0) 70%);
  --glow-edge: linear-gradient(150deg, rgba(130, 152, 255, 0.55) 0%, rgba(111, 136, 255, 0.16) 30%, rgba(255, 255, 255, 0.06) 62%, rgba(111, 136, 255, 0.14) 100%);
  --glow-edge-hot: linear-gradient(150deg, rgba(160, 178, 255, 0.95) 0%, rgba(111, 136, 255, 0.42) 35%, rgba(111, 136, 255, 0.12) 70%, rgba(111, 136, 255, 0.32) 100%);
}
.pcard, .fcard, .stats > div, .quote, .plan, .extra:not(.extra--brand), .form, .qa, .project__card {
  border: 1px solid transparent;
  background: var(--glow-fill) padding-box, linear-gradient(var(--dark-card), var(--dark-card)) padding-box, var(--edge, var(--glow-edge)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.plan:not(.plan--hot) .plan__top { background: var(--glow-fill), var(--dark-card-2); }   /* the price block carries the corner light */
/* hover, open or active: the edge lights up */
.pcard:hover, .pcard.is-current, .fcard:hover, .project__card:hover, .quote:hover, .qa:hover, .qa[open], .plan--hot, .extra:not(.extra--brand):hover {
  --edge: var(--glow-edge-hot);
  border-color: transparent;
}

@media (max-width: 1100px) { .footer__bottom { font-size: 0.6875rem; letter-spacing: 0.02em; } }
@media (max-width: 1060px) {
  /* narrower cards: caption on top, tags on one row beneath */
  .project__meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .project__tags { justify-content: flex-start; }
}
@media (max-width: 1060px) and (min-width: 801px) {
  .topnav a { padding: 0 11px; font-size: 0.875rem; }
  .topnav ul { gap: 0; }
  .talk { padding: 0 14px; }
}
@media (max-width: 960px) {
  /* footer: the link row spans the logo's full width, LET'S TALK on its right edge */
  .footer__row { flex-direction: column; align-items: stretch; }
  .footer__nav { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 16px; }
  .footer__links { flex: 1; justify-content: space-between; }
  .footer__links li:first-child a { padding-left: 0; }
  .pcard--3, .pcard--2 { grid-column: span 3; }
  .pcard--2:last-child { grid-column: 1 / -1; }
  .about, .contact, .faq { grid-template-columns: 1fr; }
  .about__label, .faq__side { position: static; }
  .about { row-gap: 24px; }
  .about__label, .about__body, .showreel { grid-column: 1; grid-row: auto; }
  .pcard--wide { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showreel { aspect-ratio: 16 / 10; }
}
@media (max-width: 800px) {
  .topbar { grid-template-columns: 1fr auto; }
  .logo { margin-left: 6px; }
  .logo img { height: 24px; }
  .menu-btn { display: block; }
  .topnav { position: absolute; left: -1px; right: -1px; top: calc(100% + 8px); justify-self: stretch; pointer-events: none; }   /* the closed menu must not swallow taps on the page */
  .topnav ul {          /* dropdown: same premium glass as the bar */
    position: relative;
    flex-direction: column; gap: 2px; padding: 8px;
    border-radius: 10px;
    border: 1px solid;
    border-color: var(--glass-edge);
    background: var(--glass-fill);
    background-color: rgba(16, 17, 26, 0.55);
    background-clip: padding-box;
    -webkit-backdrop-filter: var(--glass-blur);
            backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-depth), 0 28px 60px -24px rgba(0,0,0,0.8);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top center;
    transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .topnav ul.is-open li { animation: menuItem 0.45s var(--ease) both; }
  .topnav ul.is-open li:nth-child(2) { animation-delay: 30ms; } .topnav ul.is-open li:nth-child(3) { animation-delay: 60ms; }
  .topnav ul.is-open li:nth-child(4) { animation-delay: 90ms; } .topnav ul.is-open li:nth-child(5) { animation-delay: 120ms; }
  .topnav ul.is-open li:nth-child(6) { animation-delay: 150ms; }
  @keyframes menuItem { from { opacity: 0; transform: translateY(-4px); } }
  .topnav a:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); }
  .topnav ul.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity 0.25s, transform 0.35s var(--ease); }
  .topnav a { width: 100%; min-height: 50px; padding: 0 14px; font-size: 1.0625rem; }
  .topnav a.has-dot::after { position: static; margin-left: 8px; }
  .projects, .process, .plans, .extras { grid-template-columns: 1fr; }
  .pcard--3, .pcard--2, .pcard--2:last-child { grid-column: auto; }
  .rail__nodes b { font-size: 0.6875rem; }
  .plans, .extras { max-width: 540px; }
  .quotes { grid-template-columns: 1fr; height: 640px; }
  .quotes__col--down { display: none; }
}
@media (max-width: 640px) {
  .footer__row { flex-direction: column; align-items: flex-start; }
  /* footer on phones: links on one line, LET'S TALK below — never more than two lines */
  .footer__nav { width: 100%; }
  .footer__links { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 0; }
  .footer__links a { padding: 0 8px; font-size: 0.875rem; }
  .footer__links li:first-child a { padding-left: 0; }
  .footer__links li:last-child a { padding-right: 0; }
  .footer__nav { flex-wrap: wrap; }
  .footer__nav .talk { width: 100%; }   /* full width, like the logo below */
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; flex-wrap: wrap; }
  .footer__mono { flex-wrap: wrap; }
  .rail__nodes b { display: none; }
  .rail { margin-bottom: 28px; }
  .topbar .talk { display: none; }   /* the header moves it into the menu; the footer keeps its button */
  .topnav__cta-mobile { display: block; margin-top: 6px; }
  .topnav__cta-mobile a { justify-content: center; background: var(--brand); color: #fff; border-color: rgba(255,255,255,0.18); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
  .topnav__cta-mobile a:hover { background: var(--brand-2); }
  .hero { padding-top: 96px; }
  .hero__bottom { flex-direction: column-reverse; align-items: stretch; gap: 18px; }
  .hero__controls { justify-content: center; }
  .hero__pause { display: none; }
  .hero__partners { flex-direction: column; align-items: flex-start; gap: 14px; max-width: none; }
  .hero__partners br { display: none; }
  .marquee { width: 100%; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; border-radius: 10px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs__btn { flex: none; white-space: nowrap; }
  .project__meta { flex-direction: column; align-items: flex-start; }
  .project__tags { justify-content: flex-start; }
  .stats > div { padding: 22px 14px; }
  .features { grid-template-columns: 1fr; }   /* phones: one card per row */
  .fviz--lips { min-height: 300px; }
  .plan__badge { position: static; align-self: flex-start; order: -1; margin-bottom: 14px; }
  .plan h3 { padding-right: 0; }
  .modal__close { top: -52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-words] .w { opacity: 1; filter: none; transform: none; }
  html [data-pop] { opacity: 1; transform: none; filter: none; clip-path: none; }
  .fviz *, .fviz *::before, .fviz *::after { animation: none !important; }   /* feature cards rest on their finished frame */
  .cc__scene:first-child, .cc__wash--office, .cc__labels b:first-child, .cc__tick { opacity: 1; }
}
