/* ─────────────────────────────────────────
   DecaRoy — design tokens + base type
   ───────────────────────────────────────── */

:root {
  /* Light-first palette — white default, dark sections as editorial beats */
  --bg:           #FAF9F6;           /* warm off-white default */
  --bg-elev:      #FFFFFF;
  --bg-inverse:   #0A0F14;           /* near-black for dark sections */
  --ink:          #1B232C;           /* primary text on light bg */
  --ink-inverse:  #F4F8FB;           /* primary text on dark bg */
  --ink-muted:    #5B6A78;           /* muted text on light */
  --ink-muted-inverse: #A9B7C4;      /* muted text on dark */
  --line:         #E4E0D6;           /* hairline on light */
  --line-inverse: #233242;           /* hairline on dark */
  --accent:       #1C7DF5;           /* richer cyan‑blue, readable on white */
  --accent-2:     #E5336C;           /* magenta‑rose, readable on white */
  --accent-3:     #C98A1C;           /* deep amber, readable on white */
  --accent-soft:  #E6F0FF;

  --font-display: 'Fraunces', 'Instrument Serif', Georgia, serif;
  --font-ui:      'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1400px;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;   /* no word ever pushes past the screen */
}
/* Char-reveal headings wrap each word in an inline-block — let an
   over-long word break inside it instead of overflowing the viewport. */
[data-chars] .word { max-width: 100%; }
.t-display-xl, .t-display-l, .t-display-m,
.cta-cinema__title, .cta-final__title, .svc__title, .page-hero h1 {
  -webkit-hyphens: auto; hyphens: auto;
}
/* Kill the ~300ms touch tap delay so menu/links feel instant on mobile */
a, button, .btn, label, select, summary, [role="button"], [data-menu-btn] {
  touch-action: manipulation;
}

/* Invert roles in dark sections */
.section-dark { background: var(--bg-inverse); color: var(--ink-inverse); position: relative; z-index: 2; isolation: isolate; }
.section-dark .muted { color: var(--ink-muted-inverse); }
.section-dark .hairline { border-color: var(--line-inverse); }
.section-dark .t-eyebrow, .section-dark .section-gutter__label { color: var(--ink-muted-inverse); }

/* Light section now blends into the continuous gradient — no block, no seam */
.section-light { background: transparent; color: var(--ink); position: relative; }
.section-light .muted { color: var(--ink-muted); }
.section-light .hairline { border-color: var(--line); }

/* Faint accent-tinted section — a third rhythm tone, same palette */
.section--tint {
  background: var(--accent-soft); color: var(--ink);
  position: relative; z-index: 2; isolation: isolate;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section--tint .muted { color: var(--ink-muted); }
.section--tint .hairline { border-color: rgba(28,125,245,0.18); }

/* Default .muted is now light‑bg muted */
.muted { color: var(--ink-muted); }

/* ─────────────────────────────────────────
   Cinematic background — aurora + grain
   ───────────────────────────────────────── */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora::before,
.aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora::before {
  width: 900px; height: 900px;
  left: -200px; top: -300px;
  background: radial-gradient(circle at center, rgba(28,125,245,0.22), rgba(28,125,245,0) 60%);
  animation: auroraA 22s ease-in-out infinite;
  mix-blend-mode: multiply;
  opacity: 0.9;
}
.aurora::after {
  width: 800px; height: 800px;
  right: -200px; top: 40%;
  background: radial-gradient(circle at center, rgba(229,51,108,0.18), rgba(229,51,108,0) 60%);
  animation: auroraB 26s ease-in-out infinite;
  mix-blend-mode: multiply;
  opacity: 0.9;
}
.aurora__c {
  position: absolute;
  width: 700px; height: 700px;
  left: 40%; bottom: -300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.8;
  mix-blend-mode: multiply;
  background: radial-gradient(circle at center, rgba(201,138,28,0.18), rgba(201,138,28,0) 60%);
  animation: auroraC 28s ease-in-out infinite;
  will-change: transform;
}
@keyframes auroraA {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(180px, 120px) scale(1.2); }
}
@keyframes auroraB {
  0%, 100% { transform: translate(0,0) scale(1.1); }
  50% { transform: translate(-160px, -120px) scale(0.95); }
}
@keyframes auroraC {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-220px, -180px) scale(1.15); }
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  animation: grainShift 1.2s steps(8) infinite;
}

/* ── Mobile performance ──────────────────────────────────────────────
   Continuous blur + blend-mode animations saturate phone GPUs and make
   every tap (menu included) feel laggy. Keep the visuals static — the
   gradients still show, they just stop repainting every frame. */
@media (max-width: 768px) {
  .grain { display: none; }
  .aurora::before, .aurora::after, .aurora__c { animation: none !important; }
  .cta-cinema::before { animation: none !important; }
  .footer::before { animation: none !important; }
  .nav.is-scrolled {
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
  }
}
@keyframes grainShift {
  0%,100% { transform: translate(0,0); }
  10% { transform: translate(-3%,-5%); }
  20% { transform: translate(-8%,4%); }
  30% { transform: translate(4%,-6%); }
  40% { transform: translate(-3%,8%); }
  50% { transform: translate(-9%,3%); }
  60% { transform: translate(6%,-4%); }
  70% { transform: translate(-5%,9%); }
  80% { transform: translate(7%,-2%); }
  90% { transform: translate(-3%,-6%); }
}

main, .nav, footer { position: relative; z-index: 2; }

/* Section-light hides global aurora for contrast */
.section-light { position: relative; z-index: 2; isolation: isolate; }

body { margin: 0; }

::selection { background: var(--accent); color: var(--ink-inverse); }

a { color: inherit; text-decoration: none; }

/* Focus rings — visible, not ugly */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─────────────────────────────────────────
   Typography scale
   ───────────────────────────────────────── */

.t-display-xl {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}

.t-display-l {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.5vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}

.t-display-m {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}

.t-body-l {
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 400;
}

.t-body {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
}

.t-small {
  font-size: 0.875rem;
  line-height: 1.5;
}

.t-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.t-mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}

.t-italic { font-style: italic; }
.t-tnum { font-variant-numeric: tabular-nums; }

/* ─────────────────────────────────────────
   Layout primitives
   ───────────────────────────────────────── */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 768px) { .container { padding-left: 2.5rem; padding-right: 2.5rem; } }
@media (min-width: 1024px) { .container { padding-left: 4rem; padding-right: 4rem; } }

.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
@media (min-width: 768px) { .section { padding-top: 8rem; padding-bottom: 8rem; } }
@media (min-width: 1024px) { .section { padding-top: 10rem; padding-bottom: 10rem; } }

.hairline    { border-top: 1px solid var(--line); }
/* but never as a divider line between whole sections */
.section.hairline { border-top: 0; }
.hairline-lt { border-top: 1px solid var(--line-inverse); }
.section-dark .hairline { border-top-color: var(--line-inverse); }

.muted         { color: var(--ink-muted); }
.muted-inverse { color: var(--ink-muted-inverse); }

/* Gutter-floated section number (signature motif) */
.section-gutter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .section-gutter {
    grid-template-columns: 160px 1fr;
    gap: 3rem;
  }
  /* Disposition variants — same style, different arrangement */
  .section-gutter--stack {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .section-gutter--center {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    justify-items: center;
    text-align: center;
  }
}
.section-gutter--center .section-gutter__label::before {
  margin-left: auto;
  margin-right: auto;
}
.section-gutter--center > * { width: 100%; }
.section-gutter__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 0.4rem;
}
.section-gutter__label::before {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  margin-bottom: 1.1rem;
  background: var(--accent);
}
.section-dark .section-gutter__label::before { opacity: 0.85; }

/* ─────────────────────────────────────────
   Nav
   ───────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(250, 249, 246, 0.38); /* mostly transparent, glass */
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid rgba(228, 224, 214, 0.6);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}
@media (max-width: 1199px) {
  .nav .container { padding-left: 2rem; padding-right: 2rem; }
  .nav__inner { gap: 1rem; }
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
  min-width: 0;
}
.nav__logo .dot { color: var(--accent); }
.nav__logo img {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
  max-width: none;
  object-fit: contain;
}
@media (min-width: 768px) { .nav__logo img { height: 56px; } }
.nav__links {
  display: none;
  gap: 1.5rem;
  font-size: 0.9rem;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
@media (min-width: 1024px) { .nav__links { display: flex; gap: 1.1rem; } }
@media (min-width: 1200px) { .nav__links { gap: 1.4rem; } }
@media (min-width: 1400px) { .nav__links { gap: 1.9rem; } }
.nav__link {
  position: relative;
  padding: 0.25rem 0;
  font-size: 0.94rem;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity .2s ease;
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__right { display: flex; align-items: center; gap: 0.75rem; flex: 0 0 auto; flex-shrink: 0; }
.nav__right .btn { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 1199px) {
  .nav__right .btn--primary { padding: 0.7rem 1rem; font-size: 0.85rem; }
}
/* Below the desktop breakpoint the top-bar CTA would overflow and push the
   hamburger off-screen — hide it; it lives inside the mobile menu instead. */
@media (max-width: 1023px) {
  .nav__right .btn--primary { display: none; }
}

.lang {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lang__btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 999px;
}
@media (max-width: 1199px) {
  .lang__btn { padding: 0.45rem 0.6rem; gap: 0.35rem; }
}
.lang__btn:hover { border-color: var(--ink-muted); }
.lang__menu {
  position: absolute;
  top: calc(100% + 6px); right: 0;
  min-width: 180px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 0.35rem;
  display: none;
  border-radius: 16px;
}
.lang.is-open .lang__menu { display: block; }
.lang__item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  cursor: pointer;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease;
}
.lang__item:hover,
.lang__item[aria-selected="true"] { background: var(--ink); color: var(--bg-elev); }
.lang__item:hover .tag,
.lang__item[aria-selected="true"] .tag {
  color: var(--bg-elev);
  border-color: rgba(255,255,255,0.45);
}
.lang__item .tag {
  font-size: 0.55rem;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  padding: 2px 5px;
}

/* ─────────────────────────────────────────
   Buttons
   ───────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem; font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
  will-change: transform;
}
.btn--primary {
  background: var(--accent);
  color: var(--ink-inverse);
  border-radius: 999px;
}
.btn--primary:hover { background: #7adcf6; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  border-radius: 999px;
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-inv {
  background: transparent;
  color: var(--ink-inverse);
  border-color: var(--line-inverse);
  border-radius: 999px;
}
.btn--ghost-inv:hover { border-color: var(--ink-inverse); }
.btn--link {
  padding: 0; border: 0; background: transparent;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding-bottom: 2px;
}

/* ─────────────────────────────────────────
   Components
   ───────────────────────────────────────── */

.stat {
  display: flex; flex-direction: column; gap: 0.25rem;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) {
  .service-row {
    grid-template-columns: 100px 1fr 1fr 120px;
    gap: 3rem;
    align-items: start;
  }
}
.service-row__num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
}
.service-row__title {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.05;
}
.service-row__body { font-size: 1rem; line-height: 1.6; }

/* Services — clear, comparable service blocks */
.svc { display: grid; grid-template-columns: 1fr; gap: 2.25rem; }
@media (min-width: 980px) {
  .svc { grid-template-columns: 19rem 1fr; gap: 4.5rem; align-items: start; }
}
.svc__aside { display: flex; flex-direction: column; }
.svc__price {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.6rem, 5.5vw, 3.8rem); line-height: 1;
  letter-spacing: -0.03em; color: var(--ink);
}
.svc__price em { color: var(--accent); font-style: normal; }
.svc__price-sub {
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); margin-top: 0.7rem;
}
.svc__meta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.25rem; padding: 0.45rem 0.85rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted); width: max-content;
}
.svc__meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.svc__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.55rem, 3.4vw, 2.7rem); line-height: 1.06;
  letter-spacing: -0.02em; color: var(--ink);
}
.svc__title em { color: var(--accent); font-style: italic; }
.svc__lede {
  font-size: 1.05rem; line-height: 1.6;
  color: var(--ink-muted); margin-top: 1.1rem; max-width: 52ch;
}
.svc__list { margin-top: 1.75rem; display: grid; grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .svc__list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}
.svc__item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.65rem 0; border-top: 1px solid var(--line);
  font-size: 0.95rem; color: var(--ink);
}
.svc__item::before {
  content: ''; flex: none; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}
.svc__cta { margin-top: 1.85rem; display: inline-flex; }

/* Hero marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}
.marquee__track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 60s linear infinite;
  white-space: nowrap;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}
.marquee__tile {
  height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 1.25rem;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--bg-elev);
}

/* Placeholder image blocks */
.ph {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}
.ph--light {
  background: #ECE8DD;
  border-color: var(--line-inverse);
  color: var(--ink-muted-inverse);
}
.ph--portrait { aspect-ratio: 3 / 4; }
.ph--wide     { aspect-ratio: 16 / 9; }
/* Team portraits: vertical 3:4, rounded */
.team .ph { aspect-ratio: 3 / 4; border-radius: 18px; }
.team .ph__img { object-position: center 20%; }
.ph--square   { aspect-ratio: 1 / 1; }
.ph__label { max-width: 80%; line-height: 1.6; }
.ph::before,
.ph::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ph::before {
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(255,255,255,0.025) 11px 12px);
}
.ph--light::before {
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(0,0,0,0.03) 11px 12px);
}
/* Real imagery filling a placeholder block */
.ph--img { background: var(--bg-elev); }
.ph--img::before { display: none; }
.ph__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph::after {
  background: linear-gradient(180deg, transparent 55%, rgba(15,21,28,0.16));
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 2;
}
.spot:hover .ph::after,
.blog-card:hover .ph::after { opacity: 1; }

/* Blog card */
.blog-card {
  display: flex; flex-direction: column; gap: 1rem;
}
.blog-card__meta {
  display: flex; gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted);
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.blog-card__lede { color: var(--ink-muted); }
.blog-card:hover .blog-card__title { color: var(--accent); }
.blog-card__title { transition: color .2s ease; }

/* FAQ */
.faq details {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative;
  transition: transform .25s ease;
}
.faq summary .plus::before,
.faq summary .plus::after {
  content: '';
  position: absolute; background: currentColor;
  top: 50%; left: 0; width: 100%; height: 1px;
}
.faq summary .plus::after { transform: rotate(90deg); transition: transform .25s ease; }
.faq details[open] summary .plus::after { transform: rotate(0deg); }
.faq details[open] summary .plus { transform: rotate(90deg); }
.faq__body {
  padding-top: 1rem;
  color: var(--ink-muted);
  max-width: 64ch;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translate3d(0,0,0);
}

/* Split word hero stagger */
.split-word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1);
}
.split-word.is-in { opacity: 1; transform: translate3d(0,0,0); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted);
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s ease;
}
.section-dark .field input,
.section-dark .field select,
.section-dark .field textarea {
  color: var(--ink-inverse);
  border-bottom-color: var(--line-inverse);
  background: transparent;
}
.section-dark .field label { color: var(--ink-muted-inverse); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }

/* Footer */
/* Reviews widget embed — framed as a soft glass panel to match the theme */
.reviews-embed {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
  backdrop-filter: blur(8px) saturate(115%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 24px 60px -28px rgba(16, 52, 110, 0.28);
}
.reviews-embed iframe {
  width: 100%; min-width: 100%; border: 0; display: block;
  min-height: 520px; border-radius: 14px;
}

/* Use on the last section of a page that has no CTA. Organic colour patches
   centred on the bottom edge — same chiazze system as the CTAs, the footer
   draws the matching lower halves so the seam stays invisible. */
.fade-to-footer {
  background:
    radial-gradient(40% 30% at 27% 100%, rgba(28,125,245,0.04), transparent 72%),
    radial-gradient(36% 26% at 71% 100%, rgba(28,125,245,0.04), transparent 72%),
    radial-gradient(30% 22% at 50% 100%, rgba(229,51,108,0.03), transparent 74%);
}

.footer {
  /* Default: footer top is transparent so it matches a cream section above
     (no visible line on pages without a closing CTA). */
  background:
    radial-gradient(140% 110% at 50% 150%, rgba(16,52,110,0.12), transparent 60%),
    radial-gradient(85% 80% at 82% 158%, rgba(28,125,245,0.06), transparent 68%);
  color: var(--ink);
  padding: 6rem 0 3rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
/* Subtle drifting colour so the footer feels dynamic — masked at the very
   top so the seamless join with the CTA stays clean */
.footer::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 55% at 18% 30%, rgba(28,125,245,0.20), transparent 70%),
    radial-gradient(42% 52% at 82% 38%, rgba(122,220,246,0.20), transparent 70%),
    radial-gradient(50% 50% at 60% 92%, rgba(229,51,108,0.13), transparent 72%),
    radial-gradient(40% 45% at 35% 100%, rgba(28,125,245,0.16), transparent 72%);
  filter: blur(38px) saturate(115%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 32%, #000 60%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 32%, #000 60%, #000 100%);
  animation: footerDrift 26s ease-in-out infinite alternate;
}
/* The footer draws the lower halves of the SAME patches the cta-cinema centres
   on its bottom edge (same x, same colour) — the seam runs through each blob's
   peak, so it disappears into a soft patch instead of a stripe. */
body:has(.cta-cinema) .footer {
  background:
    radial-gradient(40% 24% at 27% 0%, rgba(28,125,245,0.04), transparent 72%),
    radial-gradient(36% 21% at 71% 0%, rgba(28,125,245,0.04), transparent 72%),
    radial-gradient(30% 18% at 50% 0%, rgba(229,51,108,0.03), transparent 74%),
    radial-gradient(140% 110% at 50% 150%, rgba(16,52,110,0.12), transparent 60%),
    radial-gradient(85% 80% at 82% 158%, rgba(28,125,245,0.06), transparent 68%);
}
/* cta-final and .fade-to-footer use the same chiazze system as cta-cinema:
   the footer draws the lower halves of the patches their section centres on
   its bottom edge — continuous colour across the seam, no stripe. */
body:has(.cta-final) .footer,
body:has(.fade-to-footer) .footer {
  background:
    radial-gradient(40% 24% at 27% 0%, rgba(28,125,245,0.04), transparent 72%),
    radial-gradient(36% 21% at 71% 0%, rgba(28,125,245,0.04), transparent 72%),
    radial-gradient(30% 18% at 50% 0%, rgba(229,51,108,0.03), transparent 74%),
    radial-gradient(140% 110% at 50% 150%, rgba(16,52,110,0.12), transparent 60%),
    radial-gradient(85% 80% at 82% 158%, rgba(28,125,245,0.06), transparent 68%);
}
.footer > * { position: relative; z-index: 1; }
@keyframes footerDrift {
  0%   { transform: translate3d(-2%, 0, 0) scale(1.04); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.10); }
  100% { transform: translate3d(0, 1%, 0) scale(1.05); }
}
.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 16rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 5rem;
  color: var(--ink);
}
.footer__wordmark .dot { color: var(--accent); }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.92rem; }
.footer__col a { opacity: 0.85; }
.footer__col a:hover { opacity: 1; color: var(--accent); }
.footer__legal {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.08em; color: var(--ink-muted);
  text-transform: uppercase;
}

/* Process timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-inverse);
  border-bottom: 1px solid var(--line-inverse);
}
.timeline__cell {
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--line-inverse);
  min-height: 200px;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.timeline__cell:last-child { border-right: 0; }
.timeline__day {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted-inverse);
}
.timeline__step {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
}
.timeline__bar {
  margin-top: auto;
  height: 3px;
  background: var(--ink-inverse);
}
.timeline__bar--accent { background: var(--accent); }
@media (max-width: 767px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline__cell { border-right: 0; border-bottom: 1px solid var(--line-inverse); }
  .timeline__cell:last-child { border-bottom: 0; }
}

/* Role row */
.role {
  border-top: 1px solid var(--line);
}
.role:last-of-type { border-bottom: 1px solid var(--line); }
.role__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 2rem 0;
  cursor: pointer;
  align-items: center;
}
@media (min-width: 768px) {
  .role__head { grid-template-columns: 60px 2fr 1.5fr 1fr auto; }
}
.role__idx { font-family: var(--font-mono); color: var(--ink-muted); font-size: 0.8rem; }
.role__title { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; }
.role__meta { color: var(--ink-muted); font-size: 0.9rem; }
.role__salary { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink); }
.role__toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease;
  position: relative;
}
.role__toggle::before,
.role__toggle::after {
  content: ''; position: absolute; background: currentColor;
  width: 12px; height: 1px;
}
.role__toggle::after { transform: rotate(90deg); transition: transform .25s ease; }
.role.is-open .role__toggle::after { transform: rotate(0); }
.role__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.role.is-open .role__body { max-height: 2000px; }
.role__bodyinner {
  padding: 0 0 2.5rem;
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .role__bodyinner { grid-template-columns: repeat(3, 1fr) auto; align-items: start; } }
.role__bodyinner h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); margin: 0 0 0.75rem; font-weight: 500;
}
.role__bodyinner ul { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.95rem; }
.role__bodyinner li { padding-left: 1rem; position: relative; }
.role__bodyinner li::before { content: '—'; position: absolute; left: 0; color: var(--ink-muted); }

/* Pull quote */
.pullquote {
  max-width: 900px;
  margin: 3rem auto;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  line-height: 1.2;
  font-style: italic;
  position: relative;
}
.pullquote::before, .pullquote::after {
  color: var(--accent);
  font-style: normal;
}
.pullquote::before { content: '“'; margin-right: 0.1em; }
.pullquote::after  { content: '”'; margin-left: 0.05em; }

/* Article body */
.article-body {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.7;
}
.article-body p { margin: 0 0 1.5rem; color: #D4D2CC; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 3rem 0 1rem;
  color: var(--ink);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}
.article-body ul, .article-body ol { padding-left: 1.25rem; margin: 0 0 1.5rem; color: #D4D2CC; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--ink); font-weight: 500; }
.article-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 2px 6px;
}

/* Mobile menu */
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: transparent; color: var(--ink);
  cursor: pointer;
}
@media (min-width: 1024px) { .menu-btn { display: none; } }
.mobile-menu {
  position: fixed; inset: 72px 0 0 0;
  background: var(--bg);
  z-index: 49;
  display: none;
  padding: 2rem 1.5rem;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__cta {
  margin-top: 1.75rem;
  border-bottom: 0 !important;
  background: var(--accent);
  color: var(--bg-elev) !important;
  text-align: center;
  border-radius: 999px;
  font-size: 1.2rem !important;
  padding: 1rem 1.5rem !important;
}

/* Team grid */
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}
@media (min-width: 768px) { .team { grid-template-columns: repeat(4, 1fr); } }
.team__name { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; margin-top: 1rem; }
.team__role {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.35rem;
}
.team__bio {
  font-size: 0.9rem; color: var(--ink-muted);
  margin-top: 0.75rem;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.team figure:hover .team__bio { max-height: 120px; }

/* Utility */
.fullbleed { width: 100%; }
.center { text-align: center; }
.kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  border: 1px solid var(--line);
  padding: 2px 6px;
  color: var(--ink-muted);
}

/* ─────────────────────────────────────────
   Advanced motion
   ───────────────────────────────────────── */

/* Cursor blob that follows pointer on dark sections */
.cursor-blob {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at center, rgba(89,211,243,0.22), rgba(89,211,243,0) 65%);
  transform: translate3d(-9999px,-9999px,0);
  transition: opacity .4s ease;
  mix-blend-mode: screen;
  filter: blur(20px);
  opacity: 0;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--accent);
  z-index: 60;
  transition: width .08s linear;
  box-shadow: 0 0 12px rgba(89,211,243,0.6);
}

/* Char-by-char hero reveal */
.char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.6em, 0) rotateX(-40deg);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}
.char.is-in { opacity: 1 !important; transform: translate3d(0,0,0) rotateX(0) !important; }

/* Clip-reveal wrapper — masks content until in view */
.clip-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s cubic-bezier(.77,0,.18,1);
  will-change: clip-path;
}
.clip-reveal.is-in { clip-path: inset(0 0 0% 0); }

/* Text line-mask reveal */
.line-mask { overflow: hidden; display: block; }
.line-mask > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.line-mask.is-in > span { transform: translate3d(0,0,0); }

/* Parallax tile */
[data-parallax] { transition: transform .1s linear; will-change: transform; }

/* Hover image zoom */
.hover-zoom { overflow: hidden; }
.hover-zoom > * { transition: transform .7s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.hover-zoom:hover > * { transform: scale(1.04); }

/* Arrow link — sliding arrow */
.arrow-link {
  display: inline-flex; align-items: center; gap: .5rem;
  position: relative;
}
.arrow-link .arrow {
  display: inline-block;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.arrow-link:hover .arrow { transform: translateX(6px); }

/* Link underline wipe */
.link-wipe {
  position: relative; display: inline-block;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size .45s cubic-bezier(.2,.7,.2,1);
}
.link-wipe:hover { background-size: 100% 1px; }

/* Button shimmer */
.btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn--primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
  z-index: -1;
}
.btn--primary:hover::before { transform: translateX(120%); }

/* Card tilt for work tiles */
.tilt { transform-style: preserve-3d; transition: transform .3s ease; }

/* Gradient pulse accent behind headline */
.glow-accent {
  position: relative;
  isolation: isolate;
}
.glow-accent::before {
  content: '';
  position: absolute;
  left: -10%; top: -30%;
  width: 45%; aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(89,211,243,0.35), rgba(89,211,243,0) 70%);
  filter: blur(40px);
  z-index: -1;
  animation: float 8s ease-in-out infinite;
}

/* ───── HERO TICKER ─────
   A continuous editorial ticker between headline and body. Mixes city
   names, numeric proofs, and italic accent statements with hairline dots.
   The track holds two identical groups; we translate -50% so it loops
   seamlessly. Soft fade masks at the edges. ─────────────────────────── */
.hero-ticker {
  position: relative;
  margin-top: clamp(1.5rem, 2.8vw, 2.2rem);
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.hero-ticker__track {
  display: flex;
  width: max-content;
  animation: heroTickerSlide 38s linear infinite;
}
.hero-ticker__group {
  display: flex; align-items: center; flex-shrink: 0;
  padding-right: 2.2rem;
  gap: 2.2rem;
}
@keyframes heroTickerSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hero-ticker__item {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  letter-spacing: -0.005em;
  color: var(--ink);
  white-space: nowrap;
}
.hero-ticker__item--num {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.hero-ticker__item--num em {
  color: var(--accent);
  font-style: normal;
}
.hero-ticker__item--mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-left: -1.4rem; /* hug the number */
}
.hero-ticker__item--accent { color: var(--accent); }
.hero-ticker__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-muted);
  flex-shrink: 0;
  opacity: 0.5;
}

/* Fluid glow traveling under the ticker — uses the section's accent */
.hero-ticker::before {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 280px; height: 180px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse,
    rgba(28,125,245,0.22) 0%,
    rgba(28,125,245,0.08) 40%,
    transparent 75%);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
  animation: heroTickerGlowSweep 9s cubic-bezier(.45,.05,.55,.95) infinite;
}
@keyframes heroTickerGlowSweep {
  0%   { left: 4%;  opacity: 0; }
  12%  {            opacity: 1; }
  50%  { left: 96%; opacity: 1; }
  88%  {            opacity: 1; }
  100% { left: 4%;  opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticker::before { animation: none; opacity: 0.5; left: 50%; }
}

/* ───── HERO STATS STRIP (legacy) ─────
   Horizontal stat row sitting between the headline and the body lede.
   Big Fraunces numbers with thin accent underline + mono labels. ──── */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2.4rem);
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  position: relative;
  isolation: isolate;
}
.hero-stats__cell {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.hero-stats__cell::after {
  content: '';
  position: absolute; left: 0; top: -1px;
  width: 38%; height: 1px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.hero-stats.is-in .hero-stats__cell::after,
.hero-stats__cell.is-in::after { transform: scaleX(1); }
.hero-stats__cell:nth-child(1)::after { transition-delay: .1s; }
.hero-stats__cell:nth-child(2)::after { transition-delay: .2s; }
.hero-stats__cell:nth-child(3)::after { transition-delay: .3s; }
.hero-stats__cell:nth-child(4)::after { transition-delay: .4s; }

.hero-stats__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero-stats__num em { color: var(--accent); font-style: normal; font-weight: 500; }
.hero-stats__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Fluid glow that travels along the stat strip */
.hero-stats::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(28,125,245,0.22) 0%,
    rgba(28,125,245,0.10) 35%,
    transparent 75%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
  animation: heroStatsGlowSweep 8s cubic-bezier(.45,.05,.55,.95) infinite;
}
@keyframes heroStatsGlowSweep {
  0%   { left: 6%;  opacity: 0; }
  12%  {            opacity: 1; }
  50%  { left: 94%; opacity: 1; }
  88%  {            opacity: 1; }
  100% { left: 6%;  opacity: 0; }
}

@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stats::before { animation: none; opacity: 0.55; left: 50%; }
  .hero-stats__cell::after { transform: scaleX(1) !important; transition: none !important; }
}

/* ───── HERO ICONS ROW (legacy) ─────
   Editorial pictogram strip below the headline. Mono stroke, accent
   dot detail, hairline separators between glyphs. ─────────────────── */
.hero-icons {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-top: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--ink);
  flex-wrap: wrap;
  position: relative;
  isolation: isolate;
}
/* Single fluid glow that travels back and forth across the entire row */
.hero-icons::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(28,125,245,0.32) 0%,
    rgba(28,125,245,0.16) 30%,
    rgba(28,125,245,0.05) 55%,
    transparent 75%);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
  animation: heroIconsGlowSweep 7s cubic-bezier(.45,.05,.55,.95) infinite;
}
@keyframes heroIconsGlowSweep {
  0%   { left: 6%;  opacity: 0.0; }
  10%  {            opacity: 1.0; }
  50%  { left: 94%; opacity: 1.0; }
  60%  {            opacity: 1.0; }
  90%  {            opacity: 1.0; }
  100% { left: 6%;  opacity: 0.0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-icons::before { animation: none; opacity: 0.5; left: 50%; }
}
.hero-icons__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elev);
  color: var(--ink);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .35s ease;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-icons__item::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 100%, rgba(28,125,245,0.10), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -1;
}
.hero-icons__item:hover {
  transform: translateY(-2px);
  border-color: rgba(28,125,245,0.55);
  box-shadow: 0 6px 16px -8px rgba(28,125,245,0.35);
}
.hero-icons__item:hover::before { opacity: 1; }
.hero-icons__sep {
  width: 18px; height: 1px;
  background: var(--line);
  flex-shrink: 0;
}
.hero-icons.reveal .hero-icons__item {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .35s ease;
}
.hero-icons.reveal.is-in .hero-icons__item { opacity: 1; transform: none; }
.hero-icons.reveal.is-in .hero-icons__item:nth-child(1) { transition-delay: .05s; }
.hero-icons.reveal.is-in .hero-icons__item:nth-child(3) { transition-delay: .12s; }
.hero-icons.reveal.is-in .hero-icons__item:nth-child(5) { transition-delay: .19s; }
.hero-icons.reveal.is-in .hero-icons__item:nth-child(7) { transition-delay: .26s; }
@media (max-width: 640px) {
  .hero-icons { gap: 0.85rem; }
  .hero-icons__item { width: 48px; height: 48px; border-radius: 12px; }
  .hero-icons__sep { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-icons__item, .hero-icons__item::after {
    animation: none !important;
  }
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradShift 9s ease-in-out infinite;
}
/* When data-chars splits the line into per-char spans, the gradient on
   the parent doesn't clip to the children. Re-apply the gradient on each
   char so it renders. The shift animation still runs on the parent. */
.gradient-text .char,
.gradient-text .word {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Text flip (rotating word w/ many bold animations) */
.flip-words {
  display: inline-block;
  vertical-align: baseline;
  position: relative;
  color: var(--accent);
  white-space: nowrap;
  perspective: 900px;
  /* Ghost reserves the natural width; animated child is absolute on top */
}
.flip-words .fw-ghost {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
  display: inline-block;
}
.flip-words > span.fw-word {
  position: absolute;
  left: 0; top: 0;
  display: inline-block;
  color: var(--accent);
  will-change: transform, opacity, filter, letter-spacing, clip-path;
  transform-origin: 50% 50%;
}

/* ─── 1. EXPLODE — scale-3 + blur + spaced letters → snap ─── */
.flip-words .anim-explode-in  { animation: fwExplodeIn 1.05s cubic-bezier(.2,.85,.25,1) forwards; }
.flip-words .anim-explode-out { animation: fwExplodeOut .55s cubic-bezier(.7,0,.85,.15) forwards; }
@keyframes fwExplodeIn {
  0%   { opacity: 0; transform: scale(3.2) rotate(-18deg); filter: blur(26px); letter-spacing: .55em; }
  55%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); letter-spacing: normal; }
}
@keyframes fwExplodeOut {
  0%   { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(.15) rotate(18deg); filter: blur(18px); }
}

/* ─── 2. GLITCH — shake + skew + rgb fringes ─── */
.flip-words .anim-glitch-in  { animation: fwGlitchIn .95s steps(8, end) forwards; position: relative; }
.flip-words .anim-glitch-in::before,
.flip-words .anim-glitch-in::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.flip-words .anim-glitch-in::before { color: var(--accent-2); animation: fwGlitchA .65s steps(2, end) forwards; }
.flip-words .anim-glitch-in::after  { color: var(--accent-3); animation: fwGlitchB .65s steps(2, end) forwards; }
.flip-words .anim-glitch-out { animation: fwGlitchOut .5s ease-in forwards; }
@keyframes fwGlitchIn {
  0%   { opacity: 0; transform: translate(-30px,0) skewX(20deg); }
  10%  { opacity: 1; transform: translate(22px,3px) skewX(-15deg); }
  25%  { transform: translate(-16px,-4px) skewX(10deg); }
  40%  { transform: translate(11px,3px)  skewX(-6deg); }
  55%  { transform: translate(-6px,0)    skewX(3deg); }
  75%  { transform: translate(3px,0)     skewX(-1deg); }
  100% { opacity: 1; transform: translate(0,0) skewX(0); }
}
@keyframes fwGlitchA {
  0%, 100% { transform: translate(0,0); opacity: 0; }
  15% { transform: translate(-7px,-2px); opacity: .85; }
  35% { transform: translate(5px,3px);   opacity: .85; }
  55% { transform: translate(-3px,1px);  opacity: .85; }
  75% { transform: translate(2px,-2px);  opacity: .6; }
}
@keyframes fwGlitchB {
  0%, 100% { transform: translate(0,0); opacity: 0; }
  15% { transform: translate(6px,2px);   opacity: .85; }
  35% { transform: translate(-5px,-3px); opacity: .85; }
  55% { transform: translate(3px,1px);   opacity: .85; }
  75% { transform: translate(-2px,2px);  opacity: .6; }
}
@keyframes fwGlitchOut {
  0%   { opacity: 1; transform: translate(0,0); filter: blur(0); }
  50%  { opacity: 1; transform: translate(10px,0); filter: blur(2px); }
  100% { opacity: 0; transform: translate(-30px,0) skewX(-25deg); filter: blur(8px); }
}

/* ─── 3. STRETCH — squash & stretch wave ─── */
.flip-words .anim-stretch-in  { animation: fwStretchIn 1s cubic-bezier(.34,1.56,.64,1) forwards; transform-origin: 0% 100%; }
.flip-words .anim-stretch-out { animation: fwStretchOut .5s cubic-bezier(.7,0,.84,0) forwards; transform-origin: 100% 100%; }
@keyframes fwStretchIn {
  0%   { opacity: 0; transform: scaleX(.05) scaleY(2.2); }
  45%  { opacity: 1; transform: scaleX(1.18) scaleY(.82); }
  72%  { transform: scaleX(.93) scaleY(1.08); }
  100% { opacity: 1; transform: scaleX(1) scaleY(1); }
}
@keyframes fwStretchOut {
  0%   { opacity: 1; transform: scaleX(1) scaleY(1); }
  100% { opacity: 0; transform: scaleX(2.6) scaleY(.04); }
}

/* ─── 4. DROP — bounce in from above ─── */
.flip-words .anim-drop-in  { animation: fwDropIn 1.05s cubic-bezier(.34,1.7,.5,1) forwards; }
.flip-words .anim-drop-out { animation: fwDropOut .5s cubic-bezier(.7,0,.85,.15) forwards; }
@keyframes fwDropIn {
  0%   { opacity: 0; transform: translateY(-180%) rotate(-18deg) scale(.6); }
  55%  { opacity: 1; transform: translateY(15%) rotate(4deg) scale(1.08); }
  78%  { transform: translateY(-5%) rotate(-2deg) scale(.97); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
@keyframes fwDropOut {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(180%) rotate(15deg) scale(.5); }
}

/* ─── 5. NEON — flicker outline → fill + glow ─── */
.flip-words .anim-neon-in  { animation: fwNeonIn 1.15s linear forwards; }
.flip-words .anim-neon-out { animation: fwNeonOut .45s ease-in forwards; }
@keyframes fwNeonIn {
  0%   { opacity: 0; color: transparent; -webkit-text-stroke: 2px var(--accent); text-shadow: none; }
  10%  { opacity: 1; }
  16%  { opacity: .15; }
  24%  { opacity: 1; }
  30%  { opacity: .35; }
  38%  { opacity: 1; color: transparent; -webkit-text-stroke: 2px var(--accent); }
  60%  { opacity: 1; color: var(--accent); -webkit-text-stroke: 0; text-shadow: 0 0 28px rgba(28,125,245,.55), 0 0 6px rgba(28,125,245,.7); }
  100% { opacity: 1; color: var(--accent); -webkit-text-stroke: 0; text-shadow: 0 0 0 rgba(28,125,245,0); }
}
@keyframes fwNeonOut {
  0%   { opacity: 1; filter: brightness(1) blur(0); }
  40%  { opacity: 1; filter: brightness(2.3) blur(0); }
  100% { opacity: 0; filter: brightness(1) blur(10px); }
}

/* ─── 6. SPIN — full 3D Y rotation ─── */
.flip-words .anim-spin-in  { animation: fwSpinIn 1s cubic-bezier(.2,.85,.2,1) forwards; }
.flip-words .anim-spin-out { animation: fwSpinOut .5s ease-in forwards; }
@keyframes fwSpinIn {
  0%   { opacity: 0; transform: rotateY(-180deg) scale(.6); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: rotateY(0) scale(1); }
}
@keyframes fwSpinOut {
  0%   { opacity: 1; transform: rotateY(0); }
  100% { opacity: 0; transform: rotateY(180deg) scale(.6); }
}

/* Oversized marquee display type */
.mega-marquee {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.mega-marquee__track {
  display: flex;
  gap: 4rem;
  animation: megaMarquee 38s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.mega-marquee__item {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 50;
  display: inline-flex; align-items: center; gap: 2rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}
.mega-marquee__item.solid { color: var(--ink); -webkit-text-stroke: 0; }
.mega-marquee__item.accent { color: var(--accent); -webkit-text-stroke: 0; }
.mega-marquee__item.em::before {
  content: '◆';
  font-size: 0.4em;
  color: var(--accent-2);
  -webkit-text-stroke: 0;
}
@keyframes megaMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Spotlight on hover (for cards) */
.spot {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.spot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(89,211,243,0.22), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 0;
  pointer-events: none;
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* Glass card */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
}

/* Accent-2 helpers */
.text-accent-2 { color: var(--accent-2); }
.text-accent-3 { color: var(--accent-3); }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(40px, -20px) scale(1.15); }
}

/* Counter — odometer-ish */
.counter { display: inline-block; font-variant-numeric: tabular-nums; }

/* Number strike animation for stats */
.stat__num { position: relative; }
.stat__num::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--accent);
  transition: width 1.1s cubic-bezier(.2,.7,.2,1) .2s;
}
.stat.is-in .stat__num::after { width: 40%; }

/* Glowing stat number — animated glow that loops around the number */
.stat-glow {
  position: relative;
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--ink) 0%,
    var(--ink) 35%,
    var(--accent) 50%,
    var(--ink) 65%,
    var(--ink) 100%
  );
  background-size: 250% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: statGlowSweep 4s linear infinite;
  filter: drop-shadow(0 0 0 transparent);
}
.stat-glow::before {
  content: '';
  position: absolute;
  inset: -8% -4%;
  border-radius: 12px;
  background: radial-gradient(
    ellipse 40% 80% at var(--gx, 50%) 50%,
    rgba(28,125,245,0.35),
    rgba(28,125,245,0) 70%
  );
  filter: blur(18px);
  opacity: 0.85;
  z-index: -1;
  pointer-events: none;
  animation: statGlowOrbit 4s linear infinite;
}
@keyframes statGlowSweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}
@keyframes statGlowOrbit {
  0%   { --gx: -10%; }
  50%  { --gx: 110%; }
  100% { --gx: -10%; }
}
@property --gx {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 50%;
}
.section-dark .stat-glow {
  background: linear-gradient(
    90deg,
    var(--ink-inverse) 0%,
    var(--ink-inverse) 35%,
    var(--accent) 50%,
    var(--ink-inverse) 65%,
    var(--ink-inverse) 100%
  );
  background-size: 250% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .stat-glow { animation: none; -webkit-text-fill-color: var(--ink); color: var(--ink); background: none; }
  .stat-glow::before { animation: none; opacity: 0; }
  .section-dark .stat-glow { -webkit-text-fill-color: var(--ink-inverse); color: var(--ink-inverse); }
}

/* Reveal fade-up retuned */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}

/* Stagger children */
[data-stagger] > * { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-stagger].is-in > * { opacity: 1; transform: translate3d(0,0,0); }
[data-stagger].is-in > *:nth-child(1) { transition-delay: 0ms; }
[data-stagger].is-in > *:nth-child(2) { transition-delay: 80ms; }
[data-stagger].is-in > *:nth-child(3) { transition-delay: 160ms; }
[data-stagger].is-in > *:nth-child(4) { transition-delay: 240ms; }
[data-stagger].is-in > *:nth-child(5) { transition-delay: 320ms; }
[data-stagger].is-in > *:nth-child(6) { transition-delay: 400ms; }
[data-stagger].is-in > *:nth-child(7) { transition-delay: 480ms; }
[data-stagger].is-in > *:nth-child(8) { transition-delay: 560ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .split-word, .char, .clip-reveal, .line-mask > span { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .marquee__track { animation: none !important; }
  .cursor-blob { display: none !important; }
  * { transition: none !important; animation: none !important; }
}

/* === Reviews (Trustpilot) — modern, integrated, always visible === */
.rev-sec { position: relative; }
.rev-tp { display:flex; align-items:center; justify-content:center; gap:1.1rem;
  flex-wrap:wrap; margin:0 0 3rem; }
.rev-tp__logo { height:26px; width:auto; display:block; }
.rev-tp__stars { display:flex; gap:4px; }
.rev-tp__sq { width:30px; height:30px; border-radius:6px; background:#00B67A;
  display:flex; align-items:center; justify-content:center; }
.rev-tp__sq svg { width:18px; height:18px; fill:#fff; }
.rev-tp__meta { font-family:var(--font-mono); font-size:0.74rem; letter-spacing:0.1em;
  text-transform:uppercase; color:var(--ink-muted); }
.rev-tp__meta b { color:var(--ink); font-weight:600; }
.rev-grid{ column-count:4; column-gap:1.1rem; column-fill:balance; orphans:1; widows:1; }
@media (max-width:1100px){ .rev-grid{ column-count:3; } }
@media (max-width:760px){ .rev-grid{ column-count:2; } }
@media (max-width:460px){ .rev-grid{ column-count:1; } }

/* Two-row auto-scrolling marquee variant (services page) */
.rev-marquee{ --mq-dur:80s; display:flex; flex-direction:column; gap:1.1rem;
  margin-top:2.2rem; overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent); }
.rev-mq__row{ overflow:hidden; }
.rev-mq__track{ display:flex; gap:1.1rem; width:max-content; will-change:transform;
  animation:revMq var(--mq-dur) linear infinite; }
.rev-mq__row--rev .rev-mq__track{ animation-direction:reverse; }
.rev-marquee:hover .rev-mq__track{ animation-play-state:paused; }
.rev-mq__track .rv-c{ width:330px; flex:0 0 330px; height:236px; margin:0;
  opacity:1; transform:none; transition:border-color .18s ease, box-shadow .25s ease; }
.rev-mq__track .rv-c__t{ -webkit-line-clamp:4; }
@keyframes revMq{ from{transform:translate3d(0,0,0);} to{transform:translate3d(-50%,0,0);} }
@media (prefers-reduced-motion:reduce){ .rev-mq__track{ animation:none; } }
@media (max-width:520px){ .rev-mq__track .rv-c{ width:260px; flex:0 0 260px; } }

.rv-c{ box-sizing:border-box; text-decoration:none; color:inherit;
  break-inside:avoid; -webkit-column-break-inside:avoid; margin:0 0 1.1rem;
  border:1px solid var(--line); border-radius:14px;
  padding:1.1rem 1.15rem; background:#fff;
  box-shadow:0 6px 18px -12px rgba(16,52,110,0.18);
  display:flex; flex-direction:column; gap:0.7rem;
  opacity:0; transform:translateY(10px);
  transition:opacity .4s ease, transform .4s ease, border-color .18s ease, box-shadow .25s ease; }
.rv-c.is-vis{ opacity:1; transform:none; }
.rv-c:hover{ border-color:var(--accent);
  box-shadow:0 14px 30px -16px rgba(16,52,110,0.30); }
.rv-c__h{ display:flex; align-items:center; gap:0.5rem; }
.rv-rt{ font-family:var(--font-display); font-weight:600; font-size:1.05rem;
  color:var(--ink); line-height:1; }
.rev-stars{ color:#FFB400; letter-spacing:1px; font-size:0.92rem; }
.rev-stars .rv-st--o{ color:var(--line); }
.rv-dt{ margin-left:auto; font-family:var(--font-mono); font-size:0.6rem;
  letter-spacing:0.04em; color:var(--ink-muted); flex:none; }
.rv-c__t{ margin:0; font-size:0.84rem; line-height:1.5; color:var(--ink); flex:1 1 auto;
  display:-webkit-box; -webkit-line-clamp:6; -webkit-box-orient:vertical; overflow:hidden; }
.rv-c__b{ display:flex; align-items:center; gap:0.55rem; margin-top:auto;
  padding-top:0.7rem; border-top:1px solid var(--line); }
.rv-av{ width:26px; height:26px; border-radius:50%; flex:none; display:flex;
  align-items:center; justify-content:center; background:#e9eef3;
  color:var(--ink-muted); font-family:var(--font-mono); font-size:0.56rem; }
.rv-nm{ font-size:0.78rem; color:var(--ink); font-weight:500;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rv-src{ display:block; width:18px; height:18px; margin-left:auto; flex:none; }
.rev-more{ display:flex; justify-content:center; margin-top:2.25rem; }
.rev-more .btn{ cursor:pointer; }
@media (prefers-reduced-motion:reduce){ .rv-c{ transition:none; opacity:1; transform:none; } }
