/* =========================================================
   Migambi Global · "Sequel" design system
   blackbox gallery, lit by cinema · 100% achromatic
   ========================================================= */

:root {
  /* Colors */
  --color-void-black: #000000;
  --color-carbon:     #202020;
  --color-graphite:   #333333;
  --color-bone:       #c0c0c0;
  --color-smoke:      #999999;
  --color-ash:        #b3b3b3;
  --color-fog:        #cccccc;
  --color-chalk:      #ffffff;
  --color-linen:      #f5f5f0;

  /* Type families: Bradford to Fraunces, VisueltPro to Inter */
  --font-bradford:   'Fraunces', Georgia, 'Times New Roman', serif;
  --font-visueltpro: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Type scale */
  --text-caption: 12px;     --tracking-caption: 0.36px;
  --text-body-sm: 14px;     --tracking-body-sm: -0.28px;
  --text-body:    18px;     --tracking-body: -0.36px;
  --text-subheading: 22px;  --tracking-subheading: -0.44px;
  --text-heading: 32px;     --tracking-heading: -1.6px;
  --text-heading-lg: 58px;  --tracking-heading-lg: -2.9px;
  --text-display: 128px;    --tracking-display: -6.4px;

  /* Weights */
  /* body/supporting copy bumped from 300 to 400 for more presence */
  --fw-light: 400; --fw-regular: 400; --fw-medium: 500;

  /* Spacing */
  --spacing-4:4px; --spacing-8:8px; --spacing-12:12px; --spacing-16:16px;
  --spacing-20:20px; --spacing-24:24px; --spacing-28:28px; --spacing-32:32px;
  --spacing-40:40px; --spacing-64:64px; --spacing-80:80px; --spacing-96:96px;

  /* Layout */
  --page-max-width: 1280px;
  --section-gap: 96px;
  --card-padding: 19px;
  --element-gap: 16px;

  /* Radius (binary) */
  --radius-lg: 10px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xl: rgba(0,0,0,0.35) 0px 10px 30px 0px, rgba(255,255,255,0.08) 0px 1px 0px 0px inset;
  --shadow-lg: rgba(0,0,0,0.15) 0px 4px 20px 0px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #2a2a2a #000; }
html:not(.has-js) { scroll-behavior: smooth; }

/* Lenis smooth-scroll hooks (active only when Lenis initializes) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-visueltpro);
  font-weight: var(--fw-light);
  font-size: var(--text-body);
  line-height: 1.5;
  letter-spacing: var(--tracking-body);
  color: var(--color-chalk);
  background: var(--color-void-black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--color-chalk); color: #000; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 10px; border: 3px solid #000; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--color-chalk); color: #000; padding: 12px 18px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--color-chalk); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--page-max-width); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 11vw, var(--spacing-96)); }
.section--tight { padding-block: clamp(40px, 7vw, 64px); }
.measure { max-width: 620px; margin-inline: auto; text-align: center; }

/* ---------- Type helpers ---------- */
.display {
  font-family: var(--font-bradford); font-weight: var(--fw-medium); font-optical-sizing: auto;
  font-size: clamp(3.4rem, 9.5vw, 8rem); line-height: 1.0; letter-spacing: -0.045em;
}
.h-lg {
  font-family: var(--font-bradford); font-weight: var(--fw-medium); font-optical-sizing: auto;
  font-size: clamp(2.5rem, 5.6vw, 3.625rem); line-height: 1.12; letter-spacing: -0.03em;
  color: var(--color-chalk);
}
.eyebrow {
  font-family: var(--font-visueltpro); font-weight: var(--fw-medium);
  font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-smoke);
}
.lead {
  font-weight: var(--fw-light); font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.5;
  color: var(--color-bone); letter-spacing: var(--tracking-body);
}

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); padding-inline: 24px; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head__sub { margin-top: 18px; font-weight: var(--fw-light); color: var(--color-smoke); font-size: 1rem; }

/* ---------- Buttons (pills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-visueltpro); font-weight: var(--fw-medium); font-size: 15px; letter-spacing: -0.02em;
  padding: 16px 24px; border-radius: var(--radius-full); border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--color-chalk); color: #000; box-shadow: var(--shadow-lg); }
.btn--primary:hover { background: var(--color-linen); }
.btn--ghost { background: transparent; color: var(--color-chalk); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: var(--color-chalk); background: rgba(255,255,255,.06); }
.btn--inverted { background: var(--color-linen); color: #000; box-shadow: var(--shadow-lg); }
.btn--dark { background: #000; color: var(--color-linen); box-shadow: var(--shadow-lg); }
.btn--dark:hover { background: var(--color-carbon); }
.btn--block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px; display: flex; align-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(0,0,0,.55); backdrop-filter: saturate(150%) blur(14px); border-bottom-color: var(--color-graphite); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding-inline: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
/* Logo inverted to white so the mark is visible on the black canvas */
.logo__mark { width: 26px; height: 26px; flex: none; filter: invert(1); }
.logo__word { font-family: var(--font-visueltpro); font-weight: var(--fw-regular); font-size: 20px; letter-spacing: -0.02em; color: var(--color-chalk); }
.nav__cta { padding: 11px 20px; }

/* ---------- Grain & vignette ---------- */
.grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .06;
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; isolation: isolate;
}
.hero__scene {
  position: absolute; inset: -8% 0; z-index: -3; will-change: transform;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.14);
  background:
    radial-gradient(58% 60% at 50% 34%, rgba(245,245,240,.16), rgba(245,245,240,.035) 32%, #000 70%),
    radial-gradient(40% 50% at 72% 16%, rgba(245,245,240,.10), transparent 60%),
    #000;
}
.hero__glow {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(34% 42% at 50% 34%, rgba(245,245,240,.10), transparent 70%);
  animation: heroBreath 13s var(--ease) infinite alternate;
}
@keyframes heroBreath { from { transform: scale(1); opacity: .7; } to { transform: scale(1.18); opacity: 1; } }
.hero__vignette { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 120% at 50% 45%, transparent 55%, rgba(0,0,0,.85) 100%); }
.hero__inner { position: relative; z-index: 1; max-width: 1000px; padding-block: 96px; }
.hero__title { margin-top: 22px; color: var(--color-chalk); }
.hero__lead { margin: 26px auto 0; max-width: 560px; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1; width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius-full); display: grid; place-items: start center; padding-top: 8px; }
.hero__scroll span { width: 3px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.8); animation: scrollDot 1.7s var(--ease) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Editorial Image Cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--element-gap); }

.card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; box-shadow: var(--shadow-xl); isolation: isolate; background: #000;
}
.card--wide { min-height: 520px; }
.card--wide + .grid-2 { margin-top: var(--element-gap); }

/* moody "scene" layer (parallax + hover focus) */
.card__scene {
  position: absolute; inset: -16% -2%; z-index: 0;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.18);
  transition: filter .5s var(--ease);
}
.card:hover .card__scene { filter: brightness(1.18); }
.card::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.card::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, transparent 38%, rgba(0,0,0,.72) 100%);
}
.card__body { position: relative; z-index: 2; }
.card__title { font-family: var(--font-visueltpro); font-weight: var(--fw-medium); font-size: var(--text-subheading); letter-spacing: var(--tracking-subheading); color: var(--color-chalk); }
.card__title--lg { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.03em; }
.card__meta { margin-top: 8px; font-weight: var(--fw-light); font-size: var(--text-body-sm); line-height: 1.5; color: var(--color-ash); max-width: 46ch; }
.card__link { position: relative; z-index: 2; margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: var(--fw-medium); font-size: 14px; color: var(--color-chalk); }
.card__link .arrow { transition: transform .3s var(--ease); }
.card__link:hover .arrow { transform: translateX(4px); }

.badge {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  display: inline-flex; align-items: center;
  font-family: var(--font-visueltpro); font-weight: var(--fw-medium); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-chalk);
  background: rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  border-radius: var(--radius-full); padding: 5px 11px;
}

/* Cinematic "scenes": single warm (linen) light source in a void.
   Swap any of these for a real photo: background: #000 url("../assets/x.jpg") center/cover; */
.card__scene[data-scene="a"] { background: radial-gradient(75% 80% at 22% 18%, rgba(245,245,240,.22), rgba(245,245,240,.05) 30%, #000 64%), #000; }
.card__scene[data-scene="b"] { background: radial-gradient(72% 95% at 90% 48%, rgba(245,245,240,.20), rgba(245,245,240,.04) 32%, #000 66%), #000; }
.card__scene[data-scene="c"] { background: radial-gradient(95% 72% at 50% 102%, rgba(245,245,240,.20), rgba(245,245,240,.04) 34%, #000 68%), #000; }
.card__scene[data-scene="d"] { background: radial-gradient(52% 56% at 78% 22%, rgba(245,245,240,.24), transparent 46%), radial-gradient(120% 120% at 50% 60%, #0b0b0b, #000), #000; }
.card__scene[data-scene="e"] { background: radial-gradient(58% 78% at 34% 30%, rgba(245,245,240,.20), rgba(245,245,240,.04) 34%, #000 70%), radial-gradient(40% 60% at 80% 80%, rgba(245,245,240,.06), transparent 60%), #000; }
.card__scene[data-scene="f"] { background: radial-gradient(60% 70% at 50% 24%, rgba(245,245,240,.18), rgba(245,245,240,.03) 36%, #000 70%), #000; }
.card__scene[data-scene="g"] { background: radial-gradient(70% 70% at 14% 86%, rgba(245,245,240,.17), transparent 48%), radial-gradient(120% 120% at 60% 40%, #0a0a0a, #000), #000; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 22px 16px; border-left: 1px solid var(--color-graphite); }
.stat:first-child { border-left: none; }
.stat__num { display: block; font-family: var(--font-bradford); font-weight: var(--fw-medium); font-optical-sizing: auto; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; color: var(--color-chalk); }
.stat__label { display: block; margin-top: 14px; font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-smoke); }

/* ---------- Process (illustrated) ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps__line { position: absolute; top: 26px; left: 1%; width: 98%; height: 60px; color: var(--color-graphite); z-index: 0; overflow: visible; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.step__art { height: 116px; display: grid; place-items: center; margin-bottom: 14px; transition: transform .35s var(--ease); }
.step:hover .step__art { transform: translateY(-5px); }
.ill { width: 100px; height: 100px; color: var(--color-chalk); overflow: visible; }
.ill__float, .ill__spin, .ill__rocket, .ill__twinkle, .ill__flame { transform-box: fill-box; transform-origin: center; }
.ill__flame { transform-origin: bottom; }
.step__idx { display: block; font-family: var(--font-bradford); font-weight: var(--fw-medium); font-size: 1.1rem; color: var(--color-smoke); letter-spacing: -0.02em; }
.step__title { margin-top: 6px; font-family: var(--font-visueltpro); font-weight: var(--fw-medium); font-size: 1.15rem; letter-spacing: -0.02em; color: var(--color-chalk); }
.step__text { margin-top: 10px; font-size: var(--text-body-sm); line-height: 1.55; color: var(--color-ash); max-width: 26ch; margin-inline: auto; }

/* SVG line-art: draw the strokes on when the containing element reveals (.is-in) */
.has-js .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease); transition-delay: calc(var(--i, 0) * 0.12s); }
.has-js .is-in .draw { stroke-dashoffset: 0; }

/* Idle "alive" loops on the drawings */
@keyframes illFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes illSpin { to { transform: rotate(360deg); } }
@keyframes illBob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-5px) rotate(-4deg); } }
@keyframes illFlame { 0%, 100% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(.55); opacity: .55; } }
@keyframes illTwinkle { 0%, 100% { transform: scale(.7); opacity: .35; } 50% { transform: scale(1.1); opacity: 1; } }
.ill__float { animation: illFloat 4s var(--ease) infinite; }
.ill__spin { animation: illSpin 11s linear infinite; }
.ill__spin--rev { animation: illSpin 8s linear infinite reverse; }
.ill__rocket { animation: illBob 3.4s var(--ease) infinite; }
.ill__flame { animation: illFlame .5s ease-in-out infinite; }
.ill__twinkle { animation: illTwinkle 2.6s var(--ease) infinite; }

/* ---------- Inverted light panel ---------- */
.inverted { background: var(--color-linen); color: #000; text-align: center; padding-block: clamp(72px, 11vw, 128px); }
.inverted .h-lg { color: #000; }
.inverted__text { margin: 22px auto 0; max-width: 480px; font-weight: var(--fw-light); font-size: 1.0625rem; line-height: 1.5; color: #333; }
.inverted .btn { margin-top: 34px; }

/* ---------- Contact form ---------- */
.form { max-width: 640px; margin-inline: auto; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--element-gap); }
.field { margin-bottom: var(--element-gap); }
.field label { display: block; font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-smoke); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font-weight: var(--fw-light);
  background: var(--color-carbon); color: var(--color-chalk);
  border: 1px solid var(--color-graphite); border-radius: var(--radius-lg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--color-smoke); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-chalk); box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn--block { margin-top: 4px; }
.form__note { margin-top: 14px; font-size: var(--text-body-sm); min-height: 20px; text-align: center; }
.form__note.is-success { color: var(--color-linen); }
.form__note.is-error { color: var(--color-fog); }
.form__alt { margin-top: 18px; text-align: center; font-size: var(--text-body-sm); font-weight: var(--fw-light); color: var(--color-smoke); }
.form__alt a { color: var(--color-bone); border-bottom: 1px solid var(--color-graphite); padding-bottom: 1px; }
.form__alt a:hover { color: var(--color-chalk); }

/* ---------- Footer (Sequel-style) ---------- */
.footer { position: relative; padding-top: clamp(56px, 8vw, 110px); padding-bottom: 36px; border-top: 1px solid var(--color-graphite); }
.footer__statement {
  font-family: var(--font-bradford); font-weight: var(--fw-medium); font-optical-sizing: auto;
  font-size: clamp(2.7rem, 9vw, 7.5rem); line-height: 0.98; letter-spacing: -0.045em; color: var(--color-chalk);
  max-width: 12ch; margin-bottom: clamp(56px, 9vw, 120px);
}
.footer__statement em { font-style: italic; font-weight: var(--fw-regular); }

.footer__grid { display: grid; grid-template-columns: 1fr 1fr 1.25fr 1.25fr 1.25fr; gap: 32px 24px; padding-bottom: clamp(48px, 6vw, 72px); }
.footer__col h4 { font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-smoke); margin-bottom: 18px; font-weight: var(--fw-medium); }
.footer__col a { display: block; padding: 6px 0; font-size: 15px; color: var(--color-bone); transition: color .2s var(--ease), transform .2s var(--ease); }
.footer__col a:hover { color: var(--color-chalk); transform: translateX(3px); }

.place { align-self: start; padding-bottom: 18px; border-bottom: 1px solid var(--color-graphite); }
.place__ico { width: 38px; height: 38px; color: var(--color-bone); margin-bottom: clamp(30px, 4vw, 52px); overflow: visible; }
.place__name { font-family: var(--font-visueltpro); font-weight: var(--fw-regular); font-size: 1.4rem; letter-spacing: -0.02em; color: var(--color-chalk); }
.place__sub { margin-top: 5px; font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-smoke); }

.footer__bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 28px; border-top: 1px solid var(--color-graphite); }
.footer__brandmini { justify-self: start; display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-visueltpro); font-size: 15px; color: var(--color-bone); transition: color .2s; }
.footer__brandmini:hover { color: var(--color-chalk); }
.footer__brandmini .logo__mark { width: 22px; height: 22px; filter: invert(1); }
.footer__copy { justify-self: center; text-align: center; font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-smoke); }
.footer__social { justify-self: end; display: flex; gap: 14px; }
.footer__social a { color: var(--color-smoke); transition: color .2s var(--ease), transform .2s var(--ease); }
.footer__social a:hover { color: var(--color-chalk); transform: translateY(-2px); }
.footer__social svg { width: 19px; height: 19px; display: block; }

/* =========================================================
   Motion system (only active with JS; .has-js gates initial states)
   ========================================================= */
.has-js [data-anim="fade"] { opacity: 0; transition: opacity 1s var(--ease); transition-delay: var(--d, 0ms); }
.has-js [data-anim="fade"].is-in { opacity: 1; }

.has-js [data-anim="rise"] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.has-js [data-anim="rise"].is-in { opacity: 1; transform: none; }

.has-js [data-anim="card"] { opacity: 0; transform: translateY(40px) scale(.965); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.has-js [data-anim="card"].is-in { opacity: 1; transform: none; }

/* Masked word reveal with a cinematic blur-to-focus pull */
.has-js [data-anim="words"] { opacity: 0; }
.has-js [data-anim="words"].is-split { opacity: 1; }
.has-js [data-anim="words"] .word { display: inline-block; }
.has-js [data-anim="words"] .word__i {
  display: inline-block; opacity: 0; transform: translateY(0.6em); filter: blur(8px);
  transition: opacity .8s var(--ease), transform .95s var(--ease), filter .95s var(--ease);
  transition-delay: var(--wd, 0ms);
}
.has-js [data-anim="words"].is-in .word__i { opacity: 1; transform: none; filter: blur(0); }


/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 44px 24px; }
  .steps__line { display: none; }
}
@media (max-width: 680px) {
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1px 0; }
  .stat { border-left: none; border-top: 1px solid var(--color-graphite); }
  .stat:nth-child(odd) { border-right: 1px solid var(--color-graphite); }
  .form__row { grid-template-columns: 1fr; }
  .card { min-height: 360px; }
  .card--wide { min-height: 380px; }
  .nav__cta { padding: 10px 16px; }
  .logo__word { font-size: 18px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; }
  .footer__brandmini, .footer__copy, .footer__social { justify-self: center; }
}
@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .nav__inner { padding-inline: 14px; }
  .footer__grid { grid-template-columns: 1fr; }
}
