/* ═══════════════════════════════════════════════════════════════
   WOHLIG — Liquid Glass Redesign (light)
   Warm white canvas · logo-purple accents · frosted glass · calm
   Type: Fraunces (display) + Switzer (body)
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Canvas — warm white with a violet whisper */
  --paper: #fdfcff;
  --paper-2: #f5f5fe;
  --ink: #0e0a38;          /* sampled from the wordmark (#070031, gently lifted) */
  --ink-dim: #555177;
  --ink-faint: #8b88ab;

  /* Brand blue-purple family — #4254d4 sampled from the logo's "o" */
  --purple: #4254d4;
  --purple-deep: #3242b2;
  --purple-soft: #7d8cee;
  --lilac: #c6cdff;
  --periwinkle: #a9bbff;
  --mint: #bdeee2;

  --grad-accent: linear-gradient(110deg, var(--purple) 10%, var(--purple-soft) 55%, var(--periwinkle));

  /* Liquid glass recipe (light) */
  --glass-fill: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.42) 45%, rgba(255,255,255,.62));
  --glass-stroke: rgba(255,255,255,.95);
  --glass-stroke-soft: rgba(77, 73, 221, .14);
  --glass-highlight: rgba(255,255,255,.95);
  --glass-shadow:
    0 2px 6px rgba(27, 22, 80, .04),
    0 24px 60px rgba(77, 73, 221, .12);
  --glass-blur: 24px;

  /* Type — refined weight scale */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Switzer", "Helvetica Neue", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;

  /* Font weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Rhythm */
  --container: 1180px;
  --radius: 28px;
  --radius-sm: 16px;
  --section-pad: clamp(6rem, 11vw, 10.5rem);

  --ease-out: cubic-bezier(.22, .8, .26, .99);
  --ease-spring: cubic-bezier(.34, 1.4, .44, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: var(--fw-regular);
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: rgba(77, 73, 221, .22); }

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  padding: .6rem 1rem; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: var(--fw-semibold);
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 12px; }

.container { width: min(var(--container), 92vw); margin-inline: auto; }

/* ── Ambient: pastel bloom field + grain ───────────────────── */
.bloom {
  position: fixed; inset: -12%;
  z-index: -1;
  filter: blur(70px) saturate(115%);
  pointer-events: none;
}
.bloom__blob { position: absolute; display: block; border-radius: 50%; opacity: .55; }
.bloom__blob--1 {
  width: 54vw; height: 54vw; left: -10%; top: -12%;
  background: radial-gradient(circle at 40% 40%, var(--lilac), transparent 65%);
  animation: drift-a 36s var(--ease-out) infinite alternate;
}
.bloom__blob--2 {
  width: 46vw; height: 46vw; right: -12%; top: 4%;
  background: radial-gradient(circle at 55% 45%, var(--periwinkle), transparent 65%);
  animation: drift-b 44s var(--ease-out) infinite alternate;
}
.bloom__blob--3 {
  width: 40vw; height: 40vw; left: 24%; bottom: -16%;
  background: radial-gradient(circle at 50% 55%, var(--mint), transparent 65%);
  animation: drift-c 50s var(--ease-out) infinite alternate;
  opacity: .45;
}
.bloom__blob--4 {
  width: 30vw; height: 30vw; right: 18%; bottom: 10%;
  background: radial-gradient(circle at 50% 50%, #ffd9ec, transparent 65%);
  animation: drift-a 58s var(--ease-out) infinite alternate-reverse;
  opacity: .35;
}
@keyframes drift-a { to { transform: translate(8vw, 6vh) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-6vw, 7vh) scale(.94); } }
@keyframes drift-c { to { transform: translate(6vw, -7vh) scale(1.07); } }

.grain {
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Liquid glass primitive (light frost) ──────────────────── */
.glass {
  position: relative;
  background: var(--glass-fill);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 0 0 1px rgba(255,255,255,.25),
    var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
}
@supports not (backdrop-filter: blur(1px)) {
  .glass { background: rgba(255,255,255,.92); }
}

/* Specular highlight that follows the cursor (JS sets --mx/--my) */
.glass::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, -20%),
              rgba(255,255,255,.9), transparent 45%);
  opacity: 0;
  transition: opacity .45s var(--ease-out);
  pointer-events: none;
}
.glass:hover::before { opacity: .8; }
.glass > * { position: relative; z-index: 1; }

/* ── Type scale ────────────────────────────────────────────── */
.eyebrow {
  font-size: .72rem;
  font-weight: var(--fw-semibold);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1.2rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section__sub {
  color: var(--ink-dim);
  max-width: 56ch;
  margin-bottom: 2.6rem;
  font-size: 1.1rem;
  font-weight: var(--fw-regular);
  line-height: 1.65;
}

.section { padding-block: var(--section-pad); }

/* The signature smile, borrowed from the logo's "o" */
.smile-divider {
  width: 56px; height: 16px;
  color: var(--purple);
  margin: .2rem 0 1.6rem;
  opacity: .9;
}

/* Center smile divider only in Contact section */
.contact .smile-divider {
  margin-inline: auto;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.55rem;
  border-radius: 999px;
  font-family: var(--font-display);   /* the wordmark's soft serif, everywhere */
  font-weight: var(--fw-semibold);
  font-size: 1.02rem;
  letter-spacing: .005em;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out),
              background-color .35s var(--ease-out), border-color .35s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 1em; height: 1em; }
.btn:active { transform: scale(.97); }

.btn--primary {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-soft) -20%, var(--purple) 45%, var(--purple-deep));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 10px 26px rgba(77, 73, 221, .35);
  overflow: hidden;
}
.btn--primary::after {           /* shine sweep */
  content: "";
  position: absolute; top: 0; bottom: 0; left: -80%; width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--ease-out);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 16px 36px rgba(77,73,221,.45); }
.btn--primary:hover::after { left: 130%; }

.btn--ghost {
  border: 1px solid rgba(77, 73, 221, .22);
  background: rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
}
.btn--ghost:hover { background: rgba(255,255,255,.95); border-color: rgba(77,73,221,.45); transform: translateY(-2px); }

.btn--lg { padding: .98rem 1.95rem; font-size: 1.05rem; }

/* ── Logo — the official wordmark image, as-is ─────────────── */
.logo { display: inline-flex; align-items: center; }
.logo__img { height: 36px; width: auto; }
.footer .logo__img { height: 42px; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed; z-index: 100;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: min(var(--container), 94vw);
  display: flex; align-items: center; gap: 1.6rem;
  padding: .6rem .7rem .6rem 1.2rem;
  border-radius: 999px;
  transition: box-shadow .4s var(--ease-out);
}
.nav.is-scrolled {
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 2px 8px rgba(27,22,80,.06),
    0 22px 50px rgba(77,73,221,.18);
}

.nav__links { display: flex; align-items: center; gap: .3rem; margin-left: auto; }

.nav__link {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  color: var(--ink-dim);
  font-family: var(--font-display);
  font-weight: var(--fw-medium); font-size: 1.02rem;
  transition: color .3s, background-color .3s;
}
.nav__link:hover { color: var(--ink); background: rgba(77, 73, 221, .08); }
.nav__link svg { width: .65rem; height: .55rem; transition: transform .3s var(--ease-out); }
.nav__dropbtn[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__dropdown { position: relative; }
.nav__menu[hidden] { display: none; }
.nav__menu {
  position: absolute; top: calc(100% + 14px); left: 0; z-index: 110;
  min-width: 300px;
  display: grid; gap: .15rem;
  padding: .7rem;
  border-radius: 22px;
  opacity: 0;
  transform: translateY(-6px);
  animation: drop-in .3s var(--ease-out) forwards;
  /* Override the default glass to be much more opaque — content behind must not bleed through */
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.98);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 4px 12px rgba(27,22,80,.08),
    0 28px 60px rgba(27,22,80,.18);
  -webkit-backdrop-filter: blur(32px) saturate(140%);
  backdrop-filter: blur(32px) saturate(140%);
}
@supports not (backdrop-filter: blur(1px)) {
  .nav__menu { background: rgba(255,255,255,.98); }
}
@keyframes drop-in {
  to { opacity: 1; transform: translateY(0); }
}
.nav__menu a {
  padding: .65rem .9rem; border-radius: 13px;
  font-size: .95rem; color: var(--ink-dim);
  transition: color .25s, background-color .25s, padding-left .25s var(--ease-out);
  white-space: nowrap;
}
.nav__menu a:hover { color: var(--purple-deep); background: rgba(77,73,221,.08); padding-left: 1.1rem; }
.nav__menu::before { display: none !important; }  /* suppress .glass specular highlight on dropdown */

.nav__cta { margin-left: .4rem; }

.nav__burger { display: none; }

/* Mobile sheet */
.sheet {
  position: fixed; inset: 0; z-index: 95;
  padding: 92px 4vw 4vw;
  background: rgba(27, 22, 80, .18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.sheet__inner {
  display: grid; gap: .4rem;
  padding: 1.4rem;
  max-height: 100%; overflow-y: auto;
}
.sheet__inner > a {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: var(--fw-semibold);
  padding: .55rem .4rem;
}
.sheet__group { display: grid; gap: .25rem; margin-block: .8rem; padding-top: .9rem; border-top: 1px solid rgba(77,73,221,.15); }
.sheet__label { font-size: .74rem; font-weight: var(--fw-semibold); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .35rem; }
.sheet__group a { padding: .42rem .4rem; color: var(--ink-dim); }
.sheet__group a:hover { color: var(--purple-deep); }
.sheet .btn { justify-content: center; margin-top: .6rem; }

/* ── Background media (hero / ribbon / cta) ────────────────── */
.media-bg { position: absolute; inset: 0; overflow: hidden; }
.media-bg__video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;                        /* poster visible immediately */
  transition: opacity 1.6s var(--ease-out);
}
/* Hero: softer so text stays crisp */
.hero .media-bg__video { opacity: .5; }
/* Ribbon + CTA: subtle presence */
.ribbon .media-bg__video,
.cta .media-bg__video { opacity: .85; }

/* Mobile / poster fallback: background image behind video */
.hero .media-bg {
  background: url('/assets/video/posters/hero-lilac-silk.jpg') center/cover no-repeat;
}
.ribbon .media-bg {
  background: url('/assets/video/posters/ribbon-pastel-ink.jpg') center/cover no-repeat;
}
.cta .media-bg {
  background: url('/assets/video/posters/cta-morning-glass.jpg') center/cover no-repeat;
}
.media-bg__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 8%, transparent 32%, rgba(253,252,255,.72) 80%),
    linear-gradient(180deg, rgba(253,252,255,.7), rgba(253,252,255,.15) 32%, rgba(253,252,255,.35) 70%, var(--paper) 99%);
}
.media-bg__scrim--ribbon {
  background: linear-gradient(180deg, var(--paper), rgba(253,252,255,.2) 28%, rgba(253,252,255,.2) 72%, var(--paper));
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: clamp(8rem, 16vh, 11rem) 0 5rem;
}
.hero__inner { position: relative; text-align: center; }

.hero__title {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: clamp(3rem, 7.4vw, 5.9rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  font-weight: var(--fw-regular);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}

.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-dim);
  max-width: 48ch;
  margin: 0 auto 2.4rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-bottom: 3.6rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  max-width: 980px;
  margin: 0 auto 1.6rem;
}
.stats__chip {
  padding: 1.3rem 1rem 1.15rem;
  border-radius: 22px;
  display: grid; gap: .2rem;
  text-align: center;
}
.stats__num {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -.01em;
}
.stats__num sup { font-size: .55em; vertical-align: super; color: var(--purple); }
.stats__chip--partner .stats__num {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  padding-top: .25em;
}
.stats__label { font-size: .82rem; color: var(--ink-dim); line-height: 1.4; }

.hero__partnerline {
  font-size: .88rem;
  color: var(--ink-faint);
  max-width: 62ch;
  margin: 0 auto;
}

.hero__motion {
  position: absolute; right: 22px; bottom: 22px; z-index: 5;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-dim);
}
.hero__motion:hover { color: var(--ink); }
.hero__motion svg { width: 14px; height: 14px; grid-area: 1/1; }
.hero__motion .icon-play { display: none; }
.hero__motion[aria-pressed="false"] .icon-pause { display: none; }
.hero__motion[aria-pressed="false"] .icon-play { display: block; }

/* ── Client river ──────────────────────────────────────────── */
.clients { padding-block: 3.2rem 1rem; }
.clients__caption {
  text-align: center;
  font-size: .78rem; font-weight: var(--fw-semibold);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.8rem;
}
.marquee {
  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; align-items: center;
  animation: river 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  color: var(--ink-faint);
  white-space: nowrap;
  padding-inline: 2.4rem;
  position: relative;
  transition: color .35s, opacity .35s;
  opacity: .85;
}
.marquee__track li:hover { color: var(--purple-deep); opacity: 1; }
.marquee__track li::after {
  content: "·";
  position: absolute; right: -.34rem;
  color: var(--purple-soft);
}
.marquee__track li a { display: inline-flex; align-items: center; }
.client-logo {
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: saturate(.9);
  transition: filter .35s, transform .35s;
}
.marquee__track li:hover .client-logo { filter: saturate(1.1); transform: scale(1.04); }
@keyframes river { to { transform: translateX(-50%); } }

/* ── About ─────────────────────────────────────────────────── */
.about__grid { display: grid; gap: 2.6rem; }
.about__lead {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.65;
  color: var(--ink);
  max-width: 64ch;
}
.about__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.card { padding: 1.8rem 1.6rem; }
.card__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold); font-size: 1.25rem;
  margin-bottom: .55rem;
}
.card p { color: var(--ink-dim); font-size: .98rem; }
.card__badge { width: 64px; height: 64px; object-fit: contain; margin-bottom: 1rem; }
.card--partner { border-color: rgba(77, 73, 221, .3); }

/* ── Expertise tiles ───────────────────────────────────────── */
.expertise__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.tile {
  display: grid; align-content: start; gap: .7rem;
  padding: 1.9rem 1.7rem 1.6rem;
  transition: transform .45s var(--ease-spring), box-shadow .45s var(--ease-out), border-color .45s var(--ease-out);
}
.tile:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 73, 221, .35);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 2px 8px rgba(27,22,80,.05),
    0 30px 70px rgba(77,73,221,.2);
}
.tile__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 15px;
  color: var(--purple);
  background: rgba(77, 73, 221, .09);
  border: 1px solid rgba(77, 73, 221, .18);
  margin-bottom: .4rem;
  transition: transform .45s var(--ease-spring);
}
.tile:hover .tile__icon { transform: rotate(-6deg) scale(1.06); }
.tile__icon svg { width: 23px; height: 23px; }
.tile__title { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 1.22rem; line-height: 1.25; }
.tile__body { color: var(--ink-dim); font-size: .96rem; }
.tile__arrow {
  margin-top: .4rem;
  color: var(--purple);
  transition: transform .4s var(--ease-spring);
}
.tile:hover .tile__arrow { transform: translateX(6px); }

/* ── Ribbon ────────────────────────────────────────────────── */
.ribbon {
  position: relative;
  padding-block: clamp(8rem, 16vw, 13rem);
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--paper), var(--paper-2) 50%, var(--paper));
}
.ribbon__inner {
  position: relative;
  text-align: center;
  display: grid;
  place-items: center;
  gap: .9rem;
}
.ribbon__line {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  max-width: 26ch;
  text-wrap: balance;
  line-height: 1.12;
}
.ribbon__sub {
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 42ch;
  line-height: 1.55;
}
.ribbon__inner .eyebrow { margin-bottom: .2rem; }

/* ── Case studies ──────────────────────────────────────────── */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
/* centered 2-up when a page has two video case studies */
.cases__grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin-inline: auto;
}
.case {
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform .45s var(--ease-spring), box-shadow .45s var(--ease-out), border-color .45s;
}
.case:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 73, 221, .35);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 2px 8px rgba(27,22,80,.05),
    0 30px 70px rgba(77,73,221,.22);
}

/* ── Resources (Blog / Case Studies / Whitepapers) ─────────── */
.resources__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2.4rem;
}
.resource {
  display: grid; gap: .9rem;
  padding: 1.8rem 1.7rem 1.9rem;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.resource:hover { transform: translateY(-4px); box-shadow: 0 24px 56px rgba(77,73,221,.22); }
.resource__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(77,73,221,.14), rgba(77,73,221,.04));
  color: var(--purple-deep);
  margin-bottom: .3rem;
}
.resource__icon svg { width: 22px; height: 22px; }
.resource__kicker {
  font-size: .74rem; font-weight: var(--fw-semibold);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--purple);
  margin: 0;
}
.resource__title {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: var(--fw-semibold);
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.resource__desc {
  font-size: .94rem; color: var(--ink-dim);
  line-height: 1.55;
  margin: 0;
}
.resource__cta {
  font-family: var(--font-display);
  font-size: .94rem; font-weight: var(--fw-semibold);
  color: var(--purple-deep);
  margin-top: auto;
  padding-top: .4rem;
}
@media (max-width: 880px) {
  .resources__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

.facade {
  position: relative;
  aspect-ratio: 16 / 9;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}
/* soft bottom scrim so the play button reads against any thumbnail */
.facade::after {
  content: "";
  position: absolute; right: 0; bottom: 0; z-index: 1;
  width: 230px; height: 165px; max-width: 75%;
  background: radial-gradient(140px 110px at 176px 108px, rgba(14,10,56,.52), rgba(14,10,56,.18) 52%, transparent 72%);
  opacity: .9;
  transition: opacity .45s var(--ease-out);
  pointer-events: none;
}
.facade:hover::after { opacity: 1; }
.facade:has(iframe)::after { display: none; }   /* hide scrim once the video is playing */
.facade__thumb { position: absolute; inset: 0; transition: transform .8s var(--ease-out), filter .8s var(--ease-out); }
.facade:hover .facade__thumb { transform: scale(1.05); filter: saturate(1.15); }
.facade__thumb--a { background: radial-gradient(130% 110% at 18% 0%, var(--lilac), #efeaff 60%), radial-gradient(60% 60% at 85% 90%, rgba(77,73,221,.35), transparent); background-blend-mode: multiply; }
.facade__thumb--b { background: radial-gradient(130% 110% at 80% 0%, var(--periwinkle), #eaefff 60%), radial-gradient(60% 60% at 12% 88%, rgba(138,135,240,.4), transparent); background-blend-mode: multiply; }
.facade__thumb--c { background: radial-gradient(130% 110% at 50% -10%, var(--mint), #e9f8f3 62%), radial-gradient(60% 60% at 90% 80%, rgba(77,73,221,.25), transparent); background-blend-mode: multiply; }
.facade__thumb img { width: 100%; height: 100%; object-fit: cover; }

.facade__play {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--purple-deep);
  transition: transform .4s var(--ease-spring), box-shadow .4s var(--ease-out);
}
.facade__play svg { width: 19px; height: 19px; margin-left: 2px; }
.facade:hover .facade__play {
  transform: scale(1.12);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 0 0 12px rgba(77,73,221,.08), 0 18px 40px rgba(77,73,221,.25);
}
.facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.case__body { padding: 1.5rem 1.5rem 1.6rem; display: grid; gap: 1rem; align-content: start; }
.case__metric {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 1.95rem;
  line-height: 1.1;
  background: linear-gradient(110deg, var(--purple-deep), var(--purple) 60%, var(--purple-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.case__metric span {
  display: block;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: .92rem;
  color: var(--ink-dim);
  -webkit-text-fill-color: var(--ink-dim);
  margin-top: .3rem;
}
.case__client {
  font-size: .76rem; font-weight: var(--fw-semibold);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--purple);
}
.case__desc { font-size: .97rem; color: var(--ink-dim); }

/* Reel — the rest of the channel as compact video chips */
.reel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  margin-top: 2.2rem;
}
.reel__item {
  flex: 1 1 300px;
  max-width: 380px;
  display: flex; align-items: flex-start; gap: 1rem;
  padding: .8rem 1.1rem .8rem .8rem;
  border-radius: 18px;
  font-size: .86rem;
  color: var(--ink-dim);
  line-height: 1.45;
  transition: transform .4s var(--ease-spring), border-color .4s, box-shadow .4s var(--ease-out);
}
/* text column: top-aligned so every header sits on the same line */
.reel__item span { display: block; align-self: stretch; padding-top: 2px; }
.reel__item:hover {
  transform: translateY(-3px);
  border-color: rgba(66, 84, 212, .4);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 18px 44px rgba(66,84,212,.18);
}
.reel__item img {
  width: 112px; aspect-ratio: 16/9; height: auto;
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 112px;
}
.reel__item strong {
  display: block;
  color: var(--ink); font-weight: var(--fw-semibold);
  font-family: var(--font-display); font-size: 1rem;
}

/* Client pull-quotes (Fix Plan items 11 & 20) */
.cases__quoteshead {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold); font-style: italic;
  font-size: 1.35rem;
  margin: 3.2rem 0 1.2rem;
  color: var(--ink);
}
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.quote { padding: 1.5rem 1.4rem; border-radius: 22px; }
.quote blockquote { font-size: .97rem; color: var(--ink); }
.quote figcaption {
  display: flex; align-items: center; gap: .6rem;
  margin-top: .9rem;
  font-size: .85rem; color: var(--ink-dim);
}
.quote strong { color: var(--ink); font-weight: var(--fw-semibold); }

.case__avatar, .founder__fallback {
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-body); font-weight: var(--fw-bold); font-size: .72rem;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-soft), var(--purple));
}
.case__avatar::after, .founder__fallback::after { content: attr(data-initials); }

.case__link { color: var(--purple-deep); font-weight: var(--fw-semibold); font-size: .92rem; transition: opacity .3s; }
.case__link:hover { opacity: .7; }

.cases__more { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2.8rem; }

/* ── How we work (AI-driven ops) ───────────────────────────── */
.ainative { position: relative; background: linear-gradient(180deg, var(--paper), var(--paper-2) 60%, var(--paper)); }
.ainative__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.ainative__list { display: grid; gap: .9rem; }
.ainative__list li {
  padding-left: 1.7rem;
  position: relative;
  color: var(--ink-dim);
}
.ainative__list li strong { color: var(--ink); font-weight: var(--fw-semibold); }
.ainative__list li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 13px; height: 8px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 18'%3E%3Cpath d='M4 4c8 8.5 18 12.8 28 12.8S52 12.5 60 4' fill='none' stroke='%234D49DD' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E");
}

.terminal {
  overflow: hidden;
  font-family: var(--font-mono); font-size: .86rem;
  border-radius: 22px;
}
.terminal__bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .8rem 1.1rem;
  border-bottom: 1px solid rgba(77,73,221,.12);
  color: var(--ink-faint); font-size: .74rem; letter-spacing: .08em;
}
.terminal__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(27,22,80,.12); }
.terminal__bar i:first-child { background: #ffb3ad; }
.terminal__bar i:nth-child(2) { background: #ffe08a; }
.terminal__bar i:nth-child(3) { background: #a8e8cf; }
.terminal__bar span { margin-left: auto; }
.terminal__screen { padding: 1.3rem 1.2rem 1.5rem; display: grid; gap: .55rem; line-height: 1.5; }
.terminal__screen p { color: var(--ink-dim); overflow-wrap: anywhere; }
.t-prompt { color: var(--purple); }
.t-ok { color: #119a72; }
.t-dim { color: var(--ink-faint); }
.t-caret {
  display: inline-block; width: .55em; height: 1.05em;
  background: var(--purple); vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Leadership ────────────────────────────────────────────── */
.leadership__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.founder {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 1.5rem;
  padding: 1.6rem;
  align-items: start;
  transition: transform .45s var(--ease-spring), border-color .45s, box-shadow .45s var(--ease-out);
}
.founder:hover {
  transform: translateY(-5px);
  border-color: rgba(77,73,221,.35);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 2px 8px rgba(27,22,80,.05),
    0 30px 70px rgba(77,73,221,.22);
}
.founder__photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(77,73,221,.15);
  background: linear-gradient(160deg, #eceafd, #dcd8fb);
}
.founder__photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.founder:hover .founder__photo img { transform: scale(1.05); }
.founder__fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 0; font-size: 2.4rem;
  display: none;
}
.founder__photo.is-fallback img { display: none; }
.founder__photo.is-fallback .founder__fallback { display: grid; }
.founder__name { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 1.55rem; }
.founder__role {
  font-size: .76rem; font-weight: var(--fw-semibold);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--purple);
  margin: .25rem 0 .7rem;
}
.founder__bio { color: var(--ink-dim); font-size: .96rem; margin-bottom: .9rem; }
.founder__link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: var(--fw-semibold); font-size: .9rem; color: var(--ink);
  padding: .4rem .85rem;
  border: 1px solid rgba(77,73,221,.22);
  border-radius: 999px;
  transition: background-color .3s, border-color .3s, color .3s;
}
.founder__link:hover { background: rgba(77,73,221,.08); border-color: rgba(77,73,221,.45); color: var(--purple-deep); }
.founder__link svg { width: .9em; height: .9em; }

/* ── CTA band ──────────────────────────────────────────────── */
.cta {
  position: relative;
  padding-block: clamp(4rem, 8vw, 7rem);
  display: grid; place-items: center;
}
.cta__panel {
  text-align: center;
  padding: clamp(2.2rem, 5vw, 3.5rem) clamp(1.6rem, 5vw, 4rem);
  max-width: 820px;
  width: min(820px, 92vw);
}
.cta__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  margin-bottom: .8rem;
}
.cta__sub { color: var(--ink-dim); margin-bottom: 2rem; font-size: 1.08rem; }

/* ── Contact ────────────────────────────────────────────────── */
.contact { text-align: center; }
.contact .section__sub {
  margin-inline: auto;
  max-width: 58ch;
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  max-width: 720px;
  margin: 2.4rem auto 0;
}
.contact__card {
  display: grid;
  gap: .5rem;
  padding: 2rem 1.6rem 1.8rem;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  align-content: start;
  justify-items: center;
  transition: transform .4s var(--ease-spring), box-shadow .4s var(--ease-out), border-color .4s;
  border: 1px solid rgba(77,73,221,.1);
}
.contact__card:hover {
  transform: translateY(-6px);
  border-color: rgba(77,73,221,.25);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 4px 16px rgba(27,22,80,.06),
    0 28px 60px rgba(77,73,221,.16);
}
.contact__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(77,73,221,.12), rgba(77,73,221,.04));
  color: var(--purple);
  margin-bottom: .6rem;
  transition: transform .4s var(--ease-spring), background .4s;
}
.contact__card:hover .contact__icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, rgba(77,73,221,.18), rgba(77,73,221,.06));
}
.contact__icon svg { width: 24px; height: 24px; }
.contact__label {
  font-size: .72rem; font-weight: var(--fw-semibold);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--purple);
  margin: 0;
}
.contact__value {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: var(--fw-semibold);
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.contact__hint {
  font-size: .88rem;
  color: var(--ink-faint);
  margin-top: .2rem;
  transition: color .3s;
}
.contact__card:hover .contact__hint { color: var(--purple-soft); }
@media (max-width: 560px) {
  .contact__grid { grid-template-columns: 1fr; max-width: 340px; }
  .contact__value { font-size: 1.2rem; }
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(77,73,221,.12);
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  padding-top: 4.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}
.footer__tag {
  font-family: var(--font-display);
  font-style: italic; font-weight: var(--fw-semibold);
  color: var(--ink-dim);
  margin: .9rem 0 1rem;
}
.footer__partner { font-size: .84rem; color: var(--ink-faint); max-width: 38ch; margin-bottom: 1.2rem; }

.footer__credentials {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
  margin-bottom: 1.4rem;
}
.footer__badge-wrap {
  width: 112px; height: 112px; flex: 0 0 112px;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
  padding: 0px;
  overflow: hidden;
  display: grid; place-items: center;
}
.footer__badge {
  width: 100%; height: 100%;
  object-fit: contain;
}

.footer__social { display: flex; flex-wrap: wrap; gap: .55rem; }
.footer__soc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  font-size: 1rem; font-weight: var(--fw-semibold);
  border: 1px solid rgba(77,73,221,.18);
  border-radius: 50%;
  color: var(--ink-dim);
  background: rgba(255,255,255,.5);
  transition: color .3s, border-color .3s, background-color .3s, transform .3s;
}
.footer__soc svg { width: 17px; height: 17px; }
.footer__soc:hover { color: var(--purple-deep); background: rgba(77,73,221,.12); border-color: rgba(77,73,221,.4); transform: translateY(-2px); }
.footer__soc--yt { color: var(--purple-deep); border-color: rgba(77,73,221,.4); }

.footer__col { display: grid; gap: .55rem; align-content: start; }
.footer__col h3 {
  font-size: .74rem; font-weight: var(--fw-semibold);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .5rem;
}
.footer__col a { color: var(--ink-dim); font-size: .94rem; transition: color .25s; }
.footer__col a:hover { color: var(--purple-deep); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(77,73,221,.1);
  font-size: .85rem; color: var(--ink-faint);
}
.footer__top { color: var(--ink-dim); transition: color .25s; }
.footer__top:hover { color: var(--purple-deep); }

/* ── Scroll reveal (Fix Plan item 18: graceful fallback) ────
   Content is fully visible by default. Only when JS is running
   (html.js) do elements start hidden, and the IntersectionObserver
   reveals them. No JS → no hiding → nothing can disappear. */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .media-bg__video { display: none; }
  .marquee__track { flex-wrap: wrap; justify-content: center; animation: none; width: auto; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expertise__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases__grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .quotes { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .ainative__grid { grid-template-columns: 1fr; }
  .about__cards { grid-template-columns: 1fr 1fr; }
  .card--partner { grid-column: 1 / -1; }
  .leadership__grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger {
    display: grid; gap: 5px;
    margin-left: auto;
    padding: .8rem .6rem;
  }
  .nav__burger span {
    display: block; width: 20px; height: 2px;
    background: var(--ink); border-radius: 2px;
    transition: transform .35s var(--ease-spring), opacity .3s;
  }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .expertise__grid { grid-template-columns: 1fr; }
  .about__cards { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder__photo { max-width: 240px; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero__motion { right: 14px; bottom: 14px; }
}

/* ════════════════════════════════════════════════════════════════
   MICROINTERACTIONS — subtle, smart, never annoying
   ════════════════════════════════════════════════════════════════ */

/* ── 1. Reveal with clean fade-up (NO blur) ─────────────────── */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-spring);
}
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Stagger children in grids */
.expertise__grid .reveal.is-in:nth-child(1) { transition-delay: 0ms; }
.expertise__grid .reveal.is-in:nth-child(2) { transition-delay: 80ms; }
.expertise__grid .reveal.is-in:nth-child(3) { transition-delay: 160ms; }
.expertise__grid .reveal.is-in:nth-child(4) { transition-delay: 240ms; }
.expertise__grid .reveal.is-in:nth-child(5) { transition-delay: 320ms; }

.about__cards .reveal.is-in:nth-child(1) { transition-delay: 0ms; }
.about__cards .reveal.is-in:nth-child(2) { transition-delay: 100ms; }
.about__cards .reveal.is-in:nth-child(3) { transition-delay: 200ms; }

.cases__grid .reveal.is-in:nth-child(1) { transition-delay: 0ms; }
.cases__grid .reveal.is-in:nth-child(2) { transition-delay: 120ms; }
.cases__grid .reveal.is-in:nth-child(3) { transition-delay: 240ms; }

.leadership__grid .reveal.is-in:nth-child(1) { transition-delay: 0ms; }
.leadership__grid .reveal.is-in:nth-child(2) { transition-delay: 150ms; }

.resources__grid .reveal.is-in:nth-child(1) { transition-delay: 0ms; }
.resources__grid .reveal.is-in:nth-child(2) { transition-delay: 100ms; }
.resources__grid .reveal.is-in:nth-child(3) { transition-delay: 200ms; }

.quotes .reveal.is-in:nth-child(1) { transition-delay: 0ms; }
.quotes .reveal.is-in:nth-child(2) { transition-delay: 120ms; }
.quotes .reveal.is-in:nth-child(3) { transition-delay: 240ms; }

/* ── 2. Link underline slide-in ───────────────────────────── */
.footer__col a, .sheet__group a {
  position: relative;
}
.footer__col a::after, .sheet__group a::after {
  content: "";
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--purple);
  transition: width .35s var(--ease-out);
}
.footer__col a:hover::after, .sheet__group a:hover::after {
  width: 100%;
}

/* ── 3. Stats number pop on hover ──────────────────────────── */
.stats__num {
  font-variant-numeric: tabular-nums;
  transition: transform .3s var(--ease-spring);
}
.stats__chip:hover .stats__num {
  transform: scale(1.06);
}

/* ── 4. Marquee item hover lift ────────────────────────────── */
.marquee__track li {
  transition: opacity .35s, transform .4s var(--ease-spring);
}
.marquee__track li:hover {
  transform: translateY(-2px);
}

/* ── 5. Nav link dot indicator on hover ───────────────────── */
.nav__link {
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute; bottom: 4px; left: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--purple);
  transform: translateX(-50%) scale(0);
  transition: transform .3s var(--ease-spring);
}
.nav__link:hover::after {
  transform: translateX(-50%) scale(1);
}

/* ── 6. Back-to-top arrow lift on hover ──────────────────── */
.footer__top {
  transition: transform .3s var(--ease-out), color .25s;
}
.footer__top:hover {
  transform: translateY(-2px);
}

/* ── 7. Mobile sheet link stagger entrance ─────────────────── */
.sheet[hidden] .sheet__inner > a,
.sheet[hidden] .sheet__group a {
  opacity: 0;
  transform: translateX(-8px);
}
.sheet:not([hidden]) .sheet__inner > a,
.sheet:not([hidden]) .sheet__group a {
  animation: sheet-in .4s var(--ease-out) forwards;
}
.sheet:not([hidden]) .sheet__inner > a:nth-child(1),
.sheet:not([hidden]) .sheet__group a:nth-child(1) { animation-delay: .05s; }
.sheet:not([hidden]) .sheet__inner > a:nth-child(2),
.sheet:not([hidden]) .sheet__group a:nth-child(2) { animation-delay: .1s; }
.sheet:not([hidden]) .sheet__inner > a:nth-child(3),
.sheet:not([hidden]) .sheet__group a:nth-child(3) { animation-delay: .15s; }
.sheet:not([hidden]) .sheet__inner > a:nth-child(4),
.sheet:not([hidden]) .sheet__group a:nth-child(4) { animation-delay: .2s; }
.sheet:not([hidden]) .sheet__inner > a:nth-child(5),
.sheet:not([hidden]) .sheet__group a:nth-child(5) { animation-delay: .25s; }
@keyframes sheet-in {
  to { opacity: 1; transform: translateX(0); }
}

/* ════════════════════════════════════════════════════════════════
   SERVICE PAGES — extends the home system, adds only what's missing:
   shorter hero, breadcrumb, numbered process, FAQ accordion,
   active-nav state. Everything else reuses home components.
   ════════════════════════════════════════════════════════════════ */

/* Active service in nav + dropdown + footer */
.nav__link[aria-current="page"],
.nav__menu a[aria-current="page"] {
  color: var(--purple-deep);
  font-weight: var(--fw-semibold);
  background: rgba(77, 73, 221, .08);
}
.footer__col a[aria-current="page"] { color: var(--purple-deep); font-weight: var(--fw-semibold); }

/* Shorter hero for interior pages (home hero is full-height) */
.hero--service {
  min-height: auto;
  padding: clamp(8.5rem, 15vh, 11rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero--service .hero__title {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  margin-bottom: 1.2rem;
}
.hero--service .hero__sub { margin-bottom: 2rem; }

/* Breadcrumb */
.crumb {
  display: flex; gap: .5rem; align-items: center; justify-content: center;
  flex-wrap: wrap;
  font-size: .8rem; color: var(--ink-faint);
  margin-bottom: 1.2rem;
}
.crumb a { color: var(--ink-dim); transition: color .25s; }
.crumb a:hover { color: var(--purple-deep); }
.crumb span { color: var(--purple-soft); }
.crumb b { color: var(--ink-dim); font-weight: var(--fw-medium); }

/* 3-up stat row (service hero / outcomes) */
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; }

/* Centered section variant (process / faq / outcomes heads) */
.section.center { text-align: center; }
.section.center .section__sub,
.section.center .smile-divider,
.section.center .stats,
.section.center .process__grid,
.section.center .faq { margin-inline: auto; }

/* ── How it works — numbered glass steps ───────────────────── */
.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 1.1rem;
  counter-reset: step;
  margin-top: 2.4rem;
  text-align: left;
}
.process__step {
  padding: 1.8rem 1.6rem 1.7rem;
  display: grid; gap: .55rem; align-content: start;
  transition: transform .45s var(--ease-spring), box-shadow .45s var(--ease-out), border-color .45s;
}
.process__step:hover {
  transform: translateY(-5px);
  border-color: rgba(77, 73, 221, .35);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 2px 8px rgba(27,22,80,.05), 0 28px 64px rgba(77,73,221,.2);
}
.process__step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  /* override .glass::before (absolute, inset:0, opacity:0) so the number
     sits in normal flow and is actually visible */
  position: static;
  inset: auto;
  opacity: 1;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 1.7rem; line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: .2rem;
}
/* process cards forgo the cursor specular (their ::before is the number) */
.process__step:hover::before { opacity: 1; }
.process__step h3 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 1.16rem; line-height: 1.25; }
.process__step p { color: var(--ink-dim); font-size: .95rem; }

/* ── FAQ — native <details> accordion, zero JS ─────────────── */
.faq { display: grid; gap: .8rem; max-width: 820px; }
.faq__item { padding: 0; overflow: hidden; }
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 1.15rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold); font-size: 1.06rem;
  color: var(--ink); text-align: left;
  transition: color .25s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--purple-deep); }
.faq__item summary::after {
  content: ""; flex: 0 0 13px; width: 13px; height: 9px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%234254d4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform .35s var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__item p { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--ink-dim); font-size: .97rem; line-height: 1.6; }

/* Service "use cases" mini-tiles (AI Video) reuse .tile; chips row */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.chip {
  font-family: var(--font-display);
  font-size: .92rem; font-weight: var(--fw-medium);
  color: var(--ink-dim);
  padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid rgba(77,73,221,.18);
  background: rgba(255,255,255,.55);
  transition: color .3s, border-color .3s, transform .3s var(--ease-spring);
}
.chip:hover { color: var(--purple-deep); border-color: rgba(77,73,221,.4); transform: translateY(-2px); }
