/* ============================================================================
   FRAVIO STUDIO — Twitch page
   ----------------------------------------------------------------------------
    1. Tokens              — brand palette + the ELEVATION SCALE
    2. Reset / base
    3. Depth primitives    — .atmos, .raise, .sunk, .card__spot   << read this
    4. Type
    5. Buttons
    6. Layout
    7. Header / nav / progress
    8. Hero
    9. Compatibility strip + ticker
   10. Services (with signature icon idle motion)
   12. Portfolio (with animated placeholders)
   14. Pricing
   16. FAQ
   17. Contact
   18. Footer
   19. Motion (reveals, keyframes, reduced-motion)
   20. Responsive
   (11 About, 13 Process, 15 Testimonials removed — numbers left as-is so the
    remaining section labels still match their code)

   HOW DEPTH IS DONE HERE
   Every raised surface gets three things, never just a shadow:
     a) a cast shadow below it            (it floats)
     b) a 1px light line along its TOP    (it catches the light)
     c) a 1px dark line along its BOTTOM  (its far edge falls away)
   That trio is bundled into --e1..--e4. Use those, don't hand-roll shadows.
   ========================================================================== */

/* ============================ 0. SELF-HOSTED FONTS ====================== */
/* Self-hosted so there's no third-party round trip and no flash of unstyled
   text. All faces are SIL Open Font License. Latin subset only (English page).

   The distinctive brand faces — Anton (headlines) and Space Mono (labels) — are
   self-hosted webfonts. BODY text deliberately uses the native system font
   (see --f-body) instead of shipping Inter's 47 KB: on the throttled-mobile
   Lighthouse profile that 47 KB cost ~0.4 s of First Contentful Paint, and
   Inter is visually all but identical to Segoe UI / SF / Roboto. The result is
   a faster page whose body type nobody can tell apart.

   To go back to brand-exact Inter everywhere: the file is still at
   assets/fonts/inter.woff2 — uncomment the @font-face below and re-add its
   <link rel=preload> in index.html. */
@font-face {
  font-family: 'Anton';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/anton-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/space-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('assets/fonts/space-mono-700.woff2') format('woff2');
}
/* Re-enable to use Inter for body instead of the system font:
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('assets/fonts/inter.woff2') format('woff2');
}
*/

/* ============================ 1. TOKENS ================================== */
:root {
  /* --- Fravio brand (matches fraviostudio.com — do not drift) --- */
  --violet:      #7b61ff;
  --violet-hi:   #9e86ff;
  --violet-deep: #5b3fe0;
  --violet-soft: rgba(123, 97, 255, .14);
  --rec:         #ff4d5e;   /* live/urgent accent, used sparingly */
  --paper:       #f0eff6;
  --haze:        #9694ae;
  --haze-2:      #7d7b92;
  --twitch:      #9147ff;   /* only where we literally reference Twitch */

  /* --- Surfaces, darkest to lightest --- */
  --bg:      #070709;
  --bg-2:    #0b0b10;
  --panel:   #101017;
  --panel-2: #15151e;
  --panel-3: #1c1b26;

  --line:   rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);

  /* --- ELEVATION SCALE -----------------------------------------------------
     Each level = cast shadow + top light line + bottom dark line.
     e0 flat · e1 resting card · e2 hover · e3 featured · e4 floating/modal   */
  --e0: inset 0 1px 0 rgba(255,255,255,.04);
  --e1: 0 1px 2px rgba(0,0,0,.5),
        0 8px 24px -12px rgba(0,0,0,.8),
        inset 0 1px 0 rgba(255,255,255,.055),
        inset 0 -1px 0 rgba(0,0,0,.4);
  --e2: 0 2px 4px rgba(0,0,0,.5),
        0 18px 44px -18px rgba(0,0,0,.9),
        inset 0 1px 0 rgba(255,255,255,.09),
        inset 0 -1px 0 rgba(0,0,0,.5);
  --e3: 0 4px 8px rgba(0,0,0,.5),
        0 34px 70px -26px rgba(0,0,0,.95),
        0 0 60px -18px rgba(123,97,255,.5),
        inset 0 1px 0 rgba(255,255,255,.13),
        inset 0 -1px 0 rgba(0,0,0,.55);
  --e4: 0 30px 90px -20px rgba(0,0,0,.95),
        inset 0 1px 0 rgba(255,255,255,.1);

  /* Surface fill with a top-lit gradient — the other half of "raised" */
  --skin:   linear-gradient(178deg, var(--panel-2) 0%, var(--panel) 62%);
  --skin-2: linear-gradient(178deg, var(--panel-3) 0%, var(--panel-2) 62%);

  /* --- Type --- */
  --f-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --f-mono:    "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* "Inter" stays first as a free upgrade for anyone who has it installed
     locally; everyone else gets the native system UI font, which is nearly
     identical and costs nothing. (Inter is no longer shipped as a webfont —
     see the fonts section above.) */
  --f-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* --- Metrics --- */
  --shell: 1240px;
  --r:     16px;
  --r-sm:  10px;
  --ease:  cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ============================ 2. RESET / BASE =========================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* NOT text-rendering: optimizeLegibility — it forces expensive kerning/ligature
     layout up front and measurably delayed first paint. font-feature-settings
     gets the same kerning and ligatures far more cheaply. */
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  overflow-x: hidden;
}

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

:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; border-radius: 4px; }

/* --- Premium details: branded selection + a slim, on-theme scrollbar. --- */
::selection { background: rgba(123, 97, 255, .38); color: #fff; }
html { scrollbar-width: thin; scrollbar-color: var(--violet-deep) var(--bg); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--violet-deep), var(--violet));
  border-radius: 10px;
  border: 3px solid var(--bg);       /* insets the thumb so it reads as a pill */
}
::-webkit-scrollbar-thumb:hover { background: var(--violet); }

.mono { font-family: var(--f-mono); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 400;
  background: var(--violet); color: #fff;
  padding: 10px 18px; border-radius: 8px;
  font-family: var(--f-mono); font-size: .75rem;
  letter-spacing: .08em; text-transform: uppercase;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ============================ 3. DEPTH PRIMITIVES ======================= */

/* --- Layer 0: the fixed back wall. Everything else floats in front of it. --- */
.atmos {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* NO filter: blur() here, deliberately.
   These were `radial-gradient(...) + filter: blur(90px)` — but a radial gradient
   that fades to transparent is ALREADY soft, so the blur was buying almost no
   visual difference while forcing a huge software-rasterised blur every frame.
   It was worth 1.8 seconds of render delay on a mid-range phone. The extra
   colour stops below reproduce the softness for free. */
.atmos__glow {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  contain: strict;
}
.atmos__glow--a {
  width: 78vw; height: 78vw; left: -26vw; top: -22vw;
  background: radial-gradient(closest-side,
    rgba(123,97,255,.34) 0%, rgba(123,97,255,.20) 34%,
    rgba(123,97,255,.07) 62%, transparent 100%);
}
.atmos__glow--b {
  width: 66vw; height: 66vw; right: -22vw; top: 30vh;
  background: radial-gradient(closest-side,
    rgba(91,63,224,.30) 0%, rgba(91,63,224,.16) 36%,
    rgba(91,63,224,.05) 64%, transparent 100%);
}
.atmos__glow--c {
  width: 54vw; height: 54vw; left: 18vw; bottom: -22vw;
  background: radial-gradient(closest-side,
    rgba(255,77,94,.14) 0%, rgba(255,77,94,.07) 40%, transparent 100%);
}
/* Film grain — ties this page to the studio's post-production identity and
   stops the large flat darks from banding on cheap panels. */
.atmos__grain {
  /* inset was -200%, which is a layer 5x the viewport in both directions being
     repainted every frame. -12% is all the drift below actually needs. */
  position: absolute; inset: -12%;
  opacity: .16;
  will-change: transform;
  contain: strict;
  /* A pre-rendered 128px noise tile, NOT an inline SVG feTurbulence filter.
     Generating fractal noise live cost well over a second of rasterisation on a
     throttled CPU — it was the single largest thing delaying first paint.
     A tiled PNG is decoded once and costs effectively nothing. */
  background-image: url("assets/grain.webp");
  background-repeat: repeat;
  animation: grain 6s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* Everything above the back wall */
.progress, .site-header, main, .site-footer { position: relative; z-index: 2; }

/* --- The generic raised surface --- */
.card, .tier, .qa, .contact__form, .guarantee {
  position: relative;
  background: var(--skin);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--e1);
  transition: transform .32s var(--ease-out), box-shadow .32s var(--ease-out),
              border-color .32s var(--ease-out);
}

/* --- Cursor spotlight. JS writes --mx/--my on the card. --- */
.card__spot {
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease);
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%),
              rgba(123,97,255,.15), transparent 62%);
}
.card:hover .card__spot,
.tier:hover .card__spot { opacity: 1; }

/* --- Tilt. JS writes --rx/--ry; the parent supplies the perspective. --- */
.grid-4, .grid-work, .tiers { perspective: 1600px; }
[data-tilt] {
  transform:
    perspective(1600px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateY(var(--ty, 0px));
  transform-style: preserve-3d;
}
[data-tilt]:hover { --ty: -6px; box-shadow: var(--e2); border-color: var(--line-2); }

/* --- Recessed band: the page floor drops away between raised sections. --- */
.band--sunk {
  background: var(--bg-2);
  box-shadow: inset 0 14px 30px -18px #000, inset 0 -14px 30px -18px #000;
  border-block: 1px solid var(--line);
}

/* ============================ 4. TYPE =================================== */
h1, h2, h3 { font-weight: 400; line-height: 1.04; letter-spacing: .005em; }

.hero__title, .band__title {
  font-family: var(--f-display);
  text-wrap: balance;
}
.hero__title { font-size: clamp(2.5rem, 7.4vw, 5.4rem); line-height: .96; }
.band__title { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.band__title em { font-style: normal; color: var(--violet-hi); }
.hero__title em { font-style: normal; color: var(--violet-hi); }

.kicker {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--violet-hi);
  margin-bottom: 1rem;
}

.lead { font-size: 1.06rem; color: var(--paper); }
p { color: var(--haze); }
.band__sub { color: var(--haze); margin-top: .9rem; max-width: 58ch; }
.band__sub code {
  font-family: var(--f-mono); font-size: .82em;
  background: var(--panel-2); padding: .12em .45em; border-radius: 5px;
  color: var(--violet-hi);
}

/* ============================ 5. BUTTONS ================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .92rem 1.6rem;
  border-radius: 100px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .95rem;
  color: var(--paper);
  background: var(--skin-2);
  border: 1px solid var(--line-2);
  box-shadow: var(--e1);
  overflow: hidden;
  /* --mag-x / --mag-y are written by the magnetic-button code in script.js */
  transform: translate(var(--mag-x, 0px), var(--mag-y, 0px));
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out),
              border-color .28s var(--ease), color .2s var(--ease);
}
.btn:hover { box-shadow: var(--e2); border-color: var(--violet); color: #fff; }
.btn:active { transform: translate(var(--mag-x, 0px), var(--mag-y, 0px)) scale(.98); }

/* Sheen sweep on hover — a small motion reward for reaching the button */
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.14) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }

.btn--solid {
  background: linear-gradient(170deg, var(--violet-hi) -10%, var(--violet) 45%, var(--violet-deep) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 1px 2px rgba(0,0,0,.4),
    0 14px 34px -12px rgba(123,97,255,.75),
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(0,0,0,.3);
}
.btn--solid:hover {
  box-shadow:
    0 2px 4px rgba(0,0,0,.4),
    0 22px 48px -12px rgba(123,97,255,.95),
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -1px 0 rgba(0,0,0,.3);
}

.btn--sm  { padding: .58rem 1.1rem; font-size: .86rem; }
.btn--lg  { padding: 1.05rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ============================ 6. LAYOUT ================================= */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.2rem);
}

.band {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  scroll-margin-top: 80px;
}
.band__head { max-width: 660px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.band__head--center { max-width: 640px; margin-inline: auto; text-align: center; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }

/* ============================ 7. HEADER / PROGRESS ====================== */
.progress {
  position: fixed; top: 0; left: 0; z-index: 120;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--violet-deep), var(--violet-hi));
  box-shadow: 0 0 12px rgba(123,97,255,.9);
}

/* ---------------------------------------------------------------------------
   The glass header, and the single biggest performance decision on this page.

   A backdrop-filter on a full-width sticky header was costing 2.2 SECONDS of
   First Contentful Paint on a throttled phone (Lighthouse 87 -> 100 with it
   removed). The browser has to rasterise everything behind the header before
   it can paint the header itself, and that lands squarely in the critical path.

   But at scroll position zero there is nothing scrolled underneath it to blur.
   The effect only does visible work once the page has moved. So: no filter at
   rest, filter added with .is-stuck (set by script.js past 8px of scroll).
   First paint never pays for it, and the effect is intact where it reads.
   Do not move backdrop-filter back onto the base rule.
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-stuck {
  background: rgba(7, 7, 9, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 40px -30px #000;
}
/* With the header transparent at rest, opening the mobile menu at the top of
   the page would leave a see-through strip above a solid panel. Fill it. */
.site-header:has(.nav.is-open) { background: var(--bg); }

.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark, .footer__brand img {
  width: 34px; height: auto;
  filter: drop-shadow(0 4px 12px rgba(123,97,255,.55));
  transition: transform .4s var(--ease-out);
}
.brand:hover .brand__mark { transform: translateY(-2px) rotate(-4deg); }
.brand__name {
  font-family: var(--f-display);
  font-size: 1.2rem;
  letter-spacing: .04em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
}
.brand__name small {
  font-family: var(--f-mono);
  font-size: .5rem;
  letter-spacing: .26em;
  color: var(--violet-hi);
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.6rem; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  font-size: .92rem;
  color: var(--haze);
  padding: .3rem 0;
  transition: color .22s var(--ease);
}
.nav__num {
  font-family: var(--f-mono);
  font-size: .58rem;
  color: var(--violet);
  opacity: .65;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--violet-hi));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--paper); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--paper); border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ 8. HERO =================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 7rem 5.5rem;
  overflow: hidden;
}
.hero__stage { position: absolute; inset: 0; pointer-events: none; }
.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__ghost {
  position: absolute;
  right: -4vw; top: 50%;
  width: min(46vw, 560px);
  transform: translateY(-50%);
  opacity: .1;
  filter: drop-shadow(0 40px 90px rgba(123,97,255,.5));
  animation: drift 14s var(--ease) infinite alternate;
  will-change: transform;
}
@keyframes drift {
  from { transform: translateY(-52%) rotate(-2deg) scale(1); }
  to   { transform: translateY(-46%) rotate(3deg) scale(1.05); }
}

/* --- Portfolio collage: drifting + zooming work samples behind the headline --- */
.hero__collage { position: absolute; inset: 0; overflow: hidden; }
.collage__tile {
  position: absolute;
  top: var(--t); left: var(--l);
  width: var(--w);
  height: auto;
  border-radius: 14px;
  opacity: var(--o, .24);
  filter: saturate(1.05) contrast(1.02);
  box-shadow: 0 22px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.05);
  will-change: transform;
  transform: translateZ(0);
  animation-duration: var(--dur, 32s);
  animation-delay: var(--delay, 0s);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
/* When script.js takes over (Web Animations), it drives transform/opacity itself,
   so the CSS keyframe drift must step aside to avoid fighting it. */
.hero__collage.is-js .collage__tile { animation: none !important; }
.collage__tile.m1 { animation-name: floatA; }
.collage__tile.m2 { animation-name: floatB; }
.collage__tile.m3 { animation-name: floatC; }
.collage__tile.m4 { animation-name: floatD; }
@keyframes floatA {
  from { transform: translate3d(0, 0, 0) scale(.95) rotate(-4deg); }
  to   { transform: translate3d(5vw, -7vh, 0) scale(1.5) rotate(4deg); }
}
@keyframes floatB {
  from { transform: translate3d(0, 0, 0) scale(1.45) rotate(3deg); }
  to   { transform: translate3d(-5vw, 6vh, 0) scale(.78) rotate(-4deg); }
}
@keyframes floatC {
  from { transform: translate3d(-4vw, 3vh, 0) scale(.85) rotate(-2deg); }
  to   { transform: translate3d(4vw, -5vh, 0) scale(1.45) rotate(5deg); }
}
@keyframes floatD {
  from { transform: translate3d(3vw, -2vh, 0) scale(1.4) rotate(3deg); }
  to   { transform: translate3d(-4vw, 5vh, 0) scale(.82) rotate(-4deg); }
}

/* Dims the centre so the headline stays readable, while edges show more work. */
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 48%,
      rgba(7,7,9,.88) 0%, rgba(7,7,9,.6) 42%, rgba(7,7,9,.34) 100%),
    linear-gradient(to bottom,
      rgba(7,7,9,.5) 0%, transparent 18%, transparent 72%, var(--bg) 100%);
}

.hero__inner { position: relative; z-index: 2; max-width: 900px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono);
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--haze);
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  /* An opaque fill rather than a backdrop-filter: this pill sits above the fold,
     and a backdrop blur here costs a buffer readback during first paint for an
     effect nobody can see behind a near-solid panel. */
  background: rgba(16,16,23,.88);
  box-shadow: var(--e1);
  margin-bottom: 1.7rem;
}
.eyebrow__live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 10px var(--rec);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .25; } }

/* Line-by-line mask reveal */
.hero__title .ln { display: block; overflow: hidden; }
.hero__title .ln > span { display: block; }

.hero__lede {
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  color: var(--haze);
  max-width: 56ch;
  margin-top: 1.6rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }

.hero__assure {
  display: flex; align-items: center; gap: .55rem;
  margin-top: 1.5rem;
  font-size: .88rem;
  color: var(--haze-2);
}
.hero__assure svg { color: var(--violet-hi); flex-shrink: 0; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 24px; z-index: 2;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 7px;
  width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--violet-hi); border-radius: 2px;
  animation: scrolldot 1.9s var(--ease) infinite;
}
@keyframes scrolldot { 50% { transform: translateY(13px); opacity: .15; } }

/* --------------------------- HERO: LIVE ALERT DEMO ------------------------
   A looping follow alert. This page sells alert animations, so it plays one.
   Everything is transform/opacity only, on its own compositor layer, so it
   costs nothing measurable — it did not move any Lighthouse metric.
   -------------------------------------------------------------------------- */
.alertdemo {
  position: absolute;
  right: clamp(1.2rem, 4vw, 3rem);
  bottom: clamp(4.5rem, 9vh, 7rem);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
  pointer-events: none;
}
/* Nothing here animates until script.js adds .is-on, well after first paint.
   Left running from load it cost 10 Lighthouse points: four continuously
   animating elements plus a 60px glow, sitting directly in the critical path
   above the fold. Starting it on idle costs the visitor nothing they notice. */
.alertdemo__tag {
  font-size: .55rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--haze-2);
  opacity: 0;
}
.alertdemo.is-on .alertdemo__tag   { animation: ad-tag 9s var(--ease) infinite; }
.alertdemo.is-on .alertdemo__card  { animation: ad-card 9s var(--ease-out) infinite; }
.alertdemo.is-on .alertdemo__ava   { animation: ad-pop 9s var(--ease-out) infinite; }
.alertdemo.is-on .alertdemo__burst { animation: ad-burst 9s var(--ease-out) infinite; }
.alertdemo.is-on .alertdemo__sheen { animation: ad-sheen 9s var(--ease-out) infinite; }
.alertdemo__card {
  position: relative;
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1.15rem .8rem .85rem;
  min-width: 232px;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(178deg, var(--panel-3), var(--panel) 70%);
  border: 1px solid var(--line-2);
  box-shadow: var(--e3);
  transform: translateX(120%) scale(.94);
  opacity: 0;
  will-change: transform, opacity;
}
.alertdemo__burst {
  position: absolute; left: 1.55rem; top: 50%;
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%;
  border: 2px solid var(--violet-hi);
}
.alertdemo__ava {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--violet-hi), var(--violet-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 16px -6px rgba(123,97,255,.9);
}
.alertdemo__copy { display: flex; flex-direction: column; line-height: 1.35; }
.alertdemo__copy b { font-size: .88rem; font-weight: 600; color: var(--paper); }
.alertdemo__copy i {
  font-family: var(--f-mono); font-style: normal;
  font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet-hi);
}
.alertdemo__sheen {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.16) 50%, transparent 62%);
  transform: translateX(-120%);
}
@keyframes ad-card {
  0%, 6%    { transform: translateX(120%) scale(.94); opacity: 0; }
  13%       { transform: translateX(-6px) scale(1.03); opacity: 1; }
  17%, 62%  { transform: translateX(0) scale(1); opacity: 1; }
  72%, 100% { transform: translateX(118%) scale(.96); opacity: 0; }
}
@keyframes ad-tag  { 0%,10%{opacity:0} 18%,60%{opacity:1} 70%,100%{opacity:0} }
@keyframes ad-pop  { 0%,12%{transform:scale(.3);opacity:0} 20%{transform:scale(1.14);opacity:1} 26%,100%{transform:scale(1);opacity:1} }
@keyframes ad-burst{ 0%,14%{transform:scale(0);opacity:.9} 30%{transform:scale(9);opacity:0} 100%{transform:scale(9);opacity:0} }
@keyframes ad-sheen{ 0%,24%{transform:translateX(-120%)} 40%,100%{transform:translateX(120%)} }

/* ============================ 9. COMPATIBILITY + TICKER ================= */
.compat { position: relative; z-index: 2; background: var(--bg-2); border-top: 1px solid var(--line); }
.compat__inner {
  display: flex; align-items: center; gap: 1.4rem 2rem;
  flex-wrap: wrap;
  padding-block: 1.5rem 1.35rem;
}
.compat__label {
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--violet-hi); flex-shrink: 0;
}
.compat__list { display: flex; flex-wrap: wrap; gap: .5rem .55rem; }
.compat__list li {
  font-size: .84rem; font-weight: 500; color: var(--paper);
  padding: .34rem .8rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--skin);
  box-shadow: var(--e0);
  transition: border-color .22s var(--ease), color .22s var(--ease);
}
.compat__list li:hover { border-color: rgba(123,97,255,.45); color: #fff; }

.ticker {
  position: relative; z-index: 2;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: inset 0 10px 24px -18px #000, inset 0 -10px 24px -18px #000;
  padding-block: .95rem;
  overflow: hidden;
  /* fade both ends so the loop seam never shows */
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track {
  display: flex; align-items: center; gap: 1.6rem;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.ticker__track span {
  font-family: var(--f-mono);
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--haze-2);
  white-space: nowrap;
}
.ticker__track i { width: 4px; height: 4px; border-radius: 50%; background: var(--violet); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================ 10. SERVICES ============================== */
.card--service { padding: 1.75rem 1.55rem 1.5rem; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(160deg, var(--violet-hi), var(--violet-deep));
  box-shadow:
    0 10px 22px -10px rgba(123,97,255,.85),
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -2px 4px rgba(0,0,0,.28);
  margin-bottom: 1.15rem;
  transition: transform .35s var(--ease-out);
}
.card--service:hover .card__icon { transform: translateY(-3px) scale(1.06); }
.card__icon svg { width: 24px; height: 24px; }

/* ---------------------- SERVICE ICONS: SIGNATURE IDLE MOTION ---------------
   An animation studio's service icons shouldn't sit dead still. Each one gets
   a small looping tell that matches what the service is: emotes bounce, alerts
   ping, the VTuber head sways, the intro card pulses like a playhead.

   It only runs while the card is on screen (JS adds .is-live), so a static page
   never burns frames on it, and reduced-motion users never get .is-live at all.
   The :hover lift above still wins because it's a more specific state. */
.card--service .card__icon { will-change: transform; }
.card--service.is-live[data-svc="emote"] .card__icon { animation: svc-bounce 2.4s var(--ease) infinite; }
.card--service.is-live[data-svc="alert"] .card__icon { animation: svc-ping   2.8s var(--ease-out) infinite; }
.card--service.is-live[data-svc="vtube"] .card__icon { animation: svc-sway   3.4s var(--ease) infinite; }
.card--service.is-live[data-svc="intro"] .card__icon { animation: svc-beat   2.6s var(--ease) infinite; }
/* hover pauses the idle loop so the lift reads cleanly */
.card--service:hover .card__icon { animation-play-state: paused; }

@keyframes svc-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  38%      { transform: translateY(-6px) scale(1.05, .95); }
  55%      { transform: translateY(0) scale(.96, 1.04); }
  70%      { transform: translateY(-2px) scale(1); }
}
@keyframes svc-ping {
  0%, 60%, 100% { transform: scale(1); box-shadow: 0 10px 22px -10px rgba(123,97,255,.85), inset 0 1px 0 rgba(255,255,255,.32); }
  12%           { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(123,97,255,.18), 0 10px 22px -10px rgba(123,97,255,.85), inset 0 1px 0 rgba(255,255,255,.32); }
  30%           { transform: scale(1); box-shadow: 0 0 0 16px rgba(123,97,255,0), 0 10px 22px -10px rgba(123,97,255,.85), inset 0 1px 0 rgba(255,255,255,.32); }
}
@keyframes svc-sway {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50%      { transform: rotate(5deg) translateY(-3px); }
}
@keyframes svc-beat {
  0%, 100% { transform: scale(1); }
  20%      { transform: scale(1.11); }
  40%      { transform: scale(1); }
}
.card--service h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .55rem; font-family: var(--f-body); }
.card--service p { font-size: .91rem; }
.card__foot {
  display: block;
  margin-top: 1.15rem; padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--haze-2);
}

/* --- Service cards are links into the filtered Work gallery --- */
.card--service { cursor: pointer; }
.card__go {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .9rem;
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--violet-hi);
  opacity: .8;
  transition: opacity .3s var(--ease), transform .3s var(--ease-out);
}
.card__go svg { transition: transform .3s var(--ease-out); }
.card--service:hover .card__go,
.card--service:focus-within .card__go { opacity: 1; }
.card--service:hover .card__go svg,
.card--service:focus-within .card__go svg { transform: translateX(3px); }
/* Stretched hit area so the whole card is one click target, keyboard-focusable. */
.card__link {
  position: absolute; inset: 0; z-index: 4;
  border-radius: inherit;
  text-indent: -9999px; overflow: hidden;
}
.card__link:focus-visible {
  outline: 2px solid var(--violet-hi);
  outline-offset: 3px;
}

/* ============================ 12. PORTFOLIO ============================= */
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.8rem; }
.filter {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1.1rem;
  border-radius: 100px;
  font-size: .87rem; font-weight: 500;
  color: var(--haze);
  background: var(--skin);
  border: 1px solid var(--line);
  box-shadow: var(--e0);
  transition: color .22s var(--ease), border-color .22s var(--ease),
              background .22s var(--ease), box-shadow .22s var(--ease);
}
.filter i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: .6rem;
  color: var(--haze-2);
}
.filter:hover { color: var(--paper); border-color: var(--line-2); box-shadow: var(--e1); }
.filter.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(170deg, var(--violet-hi) -20%, var(--violet) 50%, var(--violet-deep) 110%);
  box-shadow: 0 10px 26px -12px rgba(123,97,255,.9), inset 0 1px 0 rgba(255,255,255,.28);
}
.filter.is-active i { color: rgba(255,255,255,.8); }

/* ---------------------------- MASONRY GALLERY ----------------------------
   The real work is emotes (often square), mascot logos (usually portrait) and
   streaming packages (16:9 video). Forcing all three into one aspect ratio
   would crop the art, so the grid is a masonry: CSS columns let every piece
   sit at its true shape. Filtering just hides cards and the columns reflow.
   -------------------------------------------------------------------------- */
.grid-work { column-count: 4; column-gap: 1.15rem; }
@media (max-width: 1080px) { .grid-work { column-count: 3; } }
@media (max-width: 720px)  { .grid-work { column-count: 2; } }
@media (max-width: 440px)  { .grid-work { column-count: 1; } }

.card--work {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: 1.15rem;
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out),
              border-color .4s var(--ease);
}
/* Lift the whole card, not just zoom the image — reads as a physical object
   rising toward you, which is the premium tell. z-index keeps it above its
   masonry neighbours while raised. */
.card--work:hover {
  transform: translateY(-5px);
  box-shadow: var(--e3);
  border-color: var(--line-2);
  z-index: 2;
}
.card--work.is-hidden { display: none; }

/* --- Collapsible gallery -------------------------------------------------
   The 129-card grid is clipped to a preview band so it doesn't bury the
   sections below. A "Show all" button (wired in script.js) toggles the
   .is-collapsed class. Progressive enhancement: with no JS a <noscript> rule
   removes the clip and the button stays hidden, so the full grid shows. */
.work-reveal { position: relative; }
.work-reveal.is-collapsed {
  max-height: clamp(420px, 62vh, 760px);
  overflow: hidden;
}
/* Soft fade at the clip line so the cut reads as intentional, not chopped. */
.work-reveal__fade { display: none; }
.work-reveal.is-collapsed .work-reveal__fade {
  display: block;
  position: absolute;
  inset: auto 0 0 0;
  height: 170px;
  background: linear-gradient(to bottom, rgba(11, 11, 16, 0) 0%, var(--bg-2) 92%);
  pointer-events: none;
}
.work-more { display: flex; justify-content: center; margin-top: 1.7rem; }
.work-more__btn[hidden] { display: none; }        /* beats .btn's own display */
.work-more__chev { transition: transform .3s var(--ease); }
.work-more__btn[aria-expanded="true"] .work-more__chev { transform: rotate(180deg); }

/* .shot is the real image; for a package it's the poster button (below).
   aspect-ratio comes from an inline style per card, so the space is reserved
   before the lazy image loads and nothing shifts. */
.shot {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--panel-2);          /* placeholder while lazy-loading */
  border-bottom: 1px solid var(--line);
  transition: transform .5s var(--ease-out);
}
.card--work:hover .shot,
.card--work:hover .shot__poster { transform: scale(1.04); }

/* Fade images in as they decode instead of popping. The .img-fade class is added
   by JS ONLY to images that aren't loaded yet — so a failed script or a cached
   image never leaves anything invisible. */
.shot.img-fade, .shot__poster.img-fade { opacity: 0; }
.shot.img-fade.is-loaded, .shot__poster.img-fade.is-loaded {
  opacity: 1;
  transition: opacity .7s var(--ease-out), transform .5s var(--ease-out);
}

/* ---- package cards: click-to-play video ----
   Nothing but a lightweight poster loads until the viewer clicks, so a wall of
   37 video previews costs almost nothing on first load. script.js swaps the
   poster for a real <video> on click. */
.shot--video {
  padding: 0; border: 0; margin: 0;
  width: 100%; cursor: pointer;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.shot__poster {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.shot__play {
  position: absolute; left: 50%; top: 50%;
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: rgba(123,97,255,.92);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.42);
  transition: transform .3s var(--ease-out), background .3s var(--ease);
}
.shot__play::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  margin: -9px 0 0 -5px;
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.shot--video:hover .shot__play { transform: scale(1.14); background: var(--violet); }
.shot--video:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: -3px; }
.shot__vid { display: block; width: 100%; height: auto; background: #000; }
.shot--playing { cursor: default; }
.shot--playing .shot__play { display: none; }

/* ============================ 14. PRICING =============================== */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; align-items: start; }
.tier { padding: 2rem 1.7rem; display: flex; flex-direction: column; gap: .85rem; }

.tier--featured {
  /* Von Restorff: one option must be visibly different, not just labelled. */
  border-color: transparent;
  background:
    linear-gradient(178deg, var(--panel-3), var(--panel)) padding-box,
    linear-gradient(160deg, var(--violet-hi), var(--violet-deep) 70%) border-box;
  box-shadow: var(--e3);
}
@media (min-width: 921px) {
  .tier--featured { --ty: -14px; }
  .tier--featured:hover { --ty: -20px; }
}
.tier__flag {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
  padding: .38rem .95rem;
  border-radius: 100px;
  background: linear-gradient(100deg, var(--violet), var(--violet-deep));
  box-shadow: 0 8px 20px -8px rgba(123,97,255,.9), inset 0 1px 0 rgba(255,255,255,.3);
}
.tier__name { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: .02em; }
.tier__blurb { font-size: .89rem; min-height: 2.7em; }
.tier__cost { display: flex; align-items: baseline; gap: .12rem; margin-top: .2rem; }
.tier__cur { font-family: var(--f-display); font-size: 1.5rem; color: var(--haze); }
.tier__price { font-family: var(--f-display); font-size: 3rem; line-height: 1; color: var(--paper); }
.tier__was { font-size: .78rem; color: var(--violet-hi); }
.tier__was s { color: var(--haze-2); }
.tier__unit { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--haze-2); }

.feats { display: grid; gap: .68rem; margin-top: .5rem; }
.feats li { position: relative; padding-left: 1.65rem; font-size: .88rem; color: var(--haze); }
.feats li em { font-style: normal; color: var(--paper); }
.feats li::before {
  content: ""; position: absolute; left: 0; top: .22rem;
  width: 1.05rem; height: 1.05rem;
  background-color: var(--violet-hi);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 76% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 76% no-repeat;
}
.feats li.is-off { color: var(--haze-2); opacity: .55; }
.feats li.is-off::before {
  background-color: var(--haze-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M18.3 5.7 12 12l6.3 6.3-1.4 1.4L12 14.8l-6.3 6.3-1.4-1.4L10.6 12 4.3 5.7l1.4-1.4L12 10.6l6.3-6.3z'/%3E%3C/svg%3E") center / 60% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M18.3 5.7 12 12l6.3 6.3-1.4 1.4L12 14.8l-6.3 6.3-1.4-1.4L10.6 12 4.3 5.7l1.4-1.4L12 10.6l6.3-6.3z'/%3E%3C/svg%3E") center / 60% no-repeat;
}

.guarantee {
  display: flex; align-items: flex-start; gap: .9rem;
  max-width: 660px; margin: 2.2rem auto 0;
  padding: 1.1rem 1.3rem;
  border-radius: var(--r-sm);
  background: linear-gradient(178deg, rgba(123,97,255,.12), rgba(123,97,255,.05));
  border: 1px solid rgba(123,97,255,.26);
  box-shadow: var(--e1);
}
.guarantee svg { color: var(--violet-hi); flex-shrink: 0; margin-top: .18rem; }
.guarantee p { font-size: .9rem; }
.guarantee strong { color: var(--paper); }

/* --- Individual (à-la-carte) items --- */
.items {
  max-width: 560px; margin: 2.4rem auto 0;
  padding: 1.4rem 1.5rem;
  border-radius: var(--r-sm);
  background: var(--panel, rgba(255,255,255,.02));
  border: 1px solid rgba(123,97,255,.22);
  box-shadow: var(--e1);
}
.items__title { font-size: 1.05rem; }
.items__sub { margin-top: .2rem; font-size: .85rem; color: var(--haze-2); }
.items__list { margin-top: 1rem; display: grid; gap: .1rem; }
.items__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .72rem 0; border-top: 1px solid rgba(123,97,255,.14);
}
.items__row dt { font-size: .92rem; color: var(--haze); }
.items__row dd { font-size: .98rem; font-weight: 600; color: var(--violet-hi); white-space: nowrap; }

.note { margin-top: 1.4rem; text-align: center; font-size: .9rem; }
.note a { color: var(--violet-hi); text-decoration: underline; text-underline-offset: 3px; }

/* ============================ 16. FAQ =================================== */
.faq { max-width: 820px; }
.faq__list { display: grid; gap: .7rem; }
.qa { padding: 0; overflow: hidden; }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-size: 1rem; font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color .2s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--violet-hi); }
.qa__mark { position: relative; width: 13px; height: 13px; flex-shrink: 0; }
.qa__mark::before, .qa__mark::after {
  content: ""; position: absolute; top: 50%; left: 0;
  width: 13px; height: 1.5px; background: var(--violet-hi); border-radius: 2px;
  transition: transform .3s var(--ease-out);
}
.qa__mark::after { transform: rotate(90deg); }
.qa[open] .qa__mark::after { transform: rotate(0deg); }
.qa[open] { border-color: var(--line-2); box-shadow: var(--e2); }
.qa p { padding: 0 1.4rem 1.25rem; font-size: .92rem; max-width: 68ch; }
.qa[open] p { animation: fade-in .35s var(--ease-out) both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-6px); } }

/* ============================ 17. CONTACT =============================== */
.band--close {
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(123,97,255,.14), transparent 62%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}
.contact__intro .lead { margin-top: 1rem; max-width: 46ch; }
.contact__links { margin-top: 2rem; display: grid; gap: .85rem; }
.contact__links a {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .93rem; color: var(--haze);
  transition: color .2s var(--ease), transform .2s var(--ease-out);
}
.contact__links a:hover { color: var(--violet-hi); transform: translateX(3px); }
.contact__links svg { flex-shrink: 0; }

.contact__form { padding: 1.8rem; display: grid; gap: 1rem; box-shadow: var(--e2); }
.form__badge {
  justify-self: start;
  font-size: .6rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--violet-hi);
  padding: .35rem .8rem;
  border-radius: 100px;
  background: var(--violet-soft);
  border: 1px solid rgba(123,97,255,.3);
}
.field { display: grid; gap: .4rem; }
.field label {
  font-family: var(--f-mono);
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--haze);
}
.field input, .field textarea {
  width: 100%;
  padding: .82rem .95rem;
  font: inherit; font-size: .94rem;
  color: var(--paper);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.5);   /* inputs are RECESSED, not raised */
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--haze-2); opacity: .65; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.5), 0 0 0 4px var(--violet-soft);
}
.field textarea { resize: vertical; min-height: 100px; }

.form__small { font-size: .74rem; color: var(--haze-2); text-align: center; }
.form__note {
  font-size: .87rem; padding: .75rem .95rem;
  border-radius: var(--r-sm);
  background: var(--violet-soft);
  border: 1px solid rgba(123,97,255,.34);
  color: var(--paper);
}
.form__note.is-error {
  background: rgba(255,77,94,.1);
  border-color: rgba(255,77,94,.36);
}

/* ============================ 18. FOOTER ================================ */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding-block: 2.4rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.3rem; }
.footer__brand { display: inline-flex; align-items: center; gap: .55rem; }
.footer__social { display: flex; gap: .55rem; }
.footer__social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  color: var(--haze);
  background: var(--skin);
  border: 1px solid var(--line);
  box-shadow: var(--e0);
  transition: color .22s var(--ease), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.footer__social a:hover { color: var(--violet-hi); transform: translateY(-3px); box-shadow: var(--e1); }
.footer__legal {
  width: 100%;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: .66rem; letter-spacing: .06em;
  color: var(--haze-2);
}
/* No opacity here: dimming --haze-2 dropped this to 3.19:1 on the near-black
   ground, under the 4.5:1 minimum. Use a real colour instead of a faded one. */
.footer__made { display: block; margin-top: .35rem; color: var(--haze); }

/* ============================ 19. MOTION ================================ */
/* Scroll reveal — JS adds .reveal then .is-visible */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

/* Hero intro — plays once on load, staggered by data-anim */
[data-anim] { opacity: 0; transform: translateY(22px); }
/* Title lines are the exception: the MASK must hold still while the text
   inside it slides up, so the line itself gets no transform of its own. */
.hero__title .ln[data-anim] { opacity: 1; transform: none; animation: none !important; }
.hero__title .ln > span { transform: translateY(105%); }
/* Snappier than it was (was .9s/1s with 90ms steps). The headline is the LCP
   element, and the mask-reveal clips it until it slides in — a slow reveal
   pushed LCP past 1.3s. Tightened so the big line settles by ~0.85s while the
   staged entrance still reads. */
.is-ready [data-anim] {
  animation: rise .6s var(--ease-out) both;
  animation-delay: calc(var(--d, 0) * 55ms);
}
.is-ready .hero__title .ln > span {
  animation: line-up .62s var(--ease-out) both;
  animation-delay: calc(var(--d, 0) * 55ms);
}
@keyframes rise    { to { opacity: 1; transform: none; } }
@keyframes line-up { to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal, [data-anim] { opacity: 1 !important; transform: none !important; }
  .hero__title .ln > span { transform: none !important; }
  .atmos__glow, .atmos__grain, .hero__particles, .hero__ghost { display: none; }
  /* Keep the collage as a calm, static backdrop — no drift, no zoom. */
  .collage__tile { animation: none !important; transform: none !important; }
  .ticker__track { animation: none; }
  [data-tilt] { transform: none !important; }
  /* The looping demos are the whole point of the page for most visitors, but
     they are decorative — someone who asked for less motion gets none of it.
     The work cards keep a readable static frame; the alert demo goes entirely. */
  .alertdemo { display: none; }
}

/* ============================ 20. RESPONSIVE ============================ */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    /* Solid, NOT translucent: this panel sits inside .site-header, which already
       has a backdrop-filter. Nesting backdrop-filters makes the menu render
       see-through in Chrome, so the fill here must be fully opaque. */
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 54px -22px #000;
    padding: 1rem clamp(1.1rem, 4vw, 2.2rem) 1.6rem;
    transform: translateY(-140%);
    transition: transform .4s var(--ease-out);
    max-height: calc(100svh - 70px);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link {
    display: flex; align-items: center; gap: .7rem;
    padding: 1rem 0; font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 1.1rem; width: 100%; }
  /* No room for the alert demo beside the headline on a phone. The work cards
     below still show the same animation, so nothing is actually lost. */
  .alertdemo { display: none; }
  /* 66vw, not 90vw: keeps the ghost inside the 480px srcset step on a phone,
     so it fetches 12 KB instead of 33 KB. If you change this width, update the
     `sizes` attribute on .hero__ghost in index.html to match. */
  .hero__ghost { opacity: .06; right: -14vw; width: 66vw; }
  /* Thin the collage on phones: drop the large tiles, keep the small ones
     smaller and dimmer so the headline never fights the background. */
  .collage__tile.is-lg { display: none; }
  .collage__tile { width: calc(var(--w) * .66); opacity: calc(var(--o) * .8); }
  .hero__scrim {
    background:
      radial-gradient(130% 90% at 50% 46%,
        rgba(7,7,9,.9) 0%, rgba(7,7,9,.68) 45%, rgba(7,7,9,.5) 100%),
      linear-gradient(to bottom,
        rgba(7,7,9,.55) 0%, transparent 22%, transparent 70%, var(--bg) 100%);
  }
}

@media (max-width: 620px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .filters { gap: .45rem; }
  .filter { padding: .5rem .9rem; font-size: .82rem; }
}
