/* ============================================================
   IKENSERIES — DESIGN SYSTEM v3
   Palette: deep violet ink, mint accent, muted lavender secondary.
   Type: Inter only — heavy/tight for display, regular for body,
   tabular numerals for stats. No monospace.
   Motion: orchestrated scroll reveals + hero type-in, restrained.
   ============================================================ */

:root {
  --ink: #12003C;
  --ink-raised: #1D0B52;
  --ink-line: #33206A;
  --paper: #FAFAF8;
  --paper-dim: #C4BEDD;
  --paper-faint: #948DB3;
  --coral: #33CC99;
  --coral-dim: #22A67C;
  --coral-glow: rgba(51, 204, 153, 0.18);
  --green: #33CC99;
  --violet-accent: #8B5CF6;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1180px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 1;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

/* ---------- Type ---------- */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: '';
  width: 16px;
  height: 1.5px;
  background: var(--coral);
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--paper);
  line-height: 1.08;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 { font-size: clamp(2rem, 8vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.005em; }

p.lead {
  color: var(--paper-dim);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  font-weight: 400;
  max-width: 560px;
}

.dim { color: var(--paper-dim); }
.faint { color: var(--paper-faint); }

.tnum { font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */

.btn {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--coral);
  color: var(--ink);
  box-shadow: 0 0 0 0 var(--coral-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -4px var(--coral-glow); }

.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--ink-line);
  color: var(--paper);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--paper-faint); background: rgba(255,255,255,0.06); transform: translateY(-2px); }

.btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 0, 60, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--ink-line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-logo {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo .dot { color: var(--coral); }

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a { color: var(--paper-dim); position: relative; transition: color 0.2s ease; padding: 4px 0; }
.nav-links a:hover { color: var(--paper); }
.nav-links a.active { color: var(--paper); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}

.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; color: var(--paper); font-size: 22px; cursor: pointer; padding: 4px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  #nav-cta-btn { display: none !important; }
}

#nav-mobile a { transition: color 0.2s ease; }
#nav-mobile a:active { color: var(--coral) !important; }

/* ---------- Sections ---------- */

section { padding: clamp(64px, 9vw, 120px) 0; }
section.tight { padding: clamp(48px, 6vw, 80px) 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 56px);
  flex-wrap: wrap;
}

hr.rule { border: none; border-top: 1px solid var(--ink-line); margin: 0; }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(56px, 10vw, 100px) 0 clamp(48px, 8vw, 80px);
  border-bottom: 1px solid var(--ink-line);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg::before {
  /* faint moving grid, gives the background a sense of depth/scale */
  content: '';
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: gridDrift 60s linear infinite;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 80%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.65;
  will-change: transform;
}

.hero-blob-1 {
  width: 620px; height: 620px;
  top: -260px; right: -180px;
  background: radial-gradient(circle, var(--coral) 0%, transparent 72%);
  animation: blobFloat1 22s ease-in-out infinite;
}

.hero-blob-2 {
  width: 480px; height: 480px;
  top: 40%; left: -200px;
  background: radial-gradient(circle, var(--violet-accent) 0%, transparent 72%);
  opacity: 0.32;
  animation: blobFloat2 26s ease-in-out infinite;
}

.hero-blob-3 {
  width: 380px; height: 380px;
  bottom: -180px; right: 10%;
  background: radial-gradient(circle, var(--coral) 0%, transparent 75%);
  opacity: 0.26;
  animation: blobFloat3 30s ease-in-out infinite;
}

@keyframes gridDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(56px, 56px); }
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, 50px) scale(1.08); }
  66% { transform: translate(30px, 90px) scale(0.95); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(90px, -60px) scale(1.15); }
}

@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, -40px) scale(1.1); }
}

@media (max-width: 700px) {
  .hero-blob-1 { width: 380px; height: 380px; top: -160px; right: -140px; }
  .hero-blob-2 { width: 320px; height: 320px; }
  .hero-blob-3 { width: 260px; height: 260px; }
}

/* Ambient "motion backdrop" — a drifting gradient mesh plus a live
   particle network (see runHeroParticles in shared.js), reading like a
   muted looping video without ever pulling focus from the hero copy. */
.hero-mesh {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(circle at 18% 24%, rgba(51,204,153,0.34) 0%, transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(139,92,246,0.28) 0%, transparent 46%),
    radial-gradient(circle at 55% 85%, rgba(51,204,153,0.20) 0%, transparent 50%);
  filter: blur(70px);
  transform-origin: 50% 50%;
  animation: meshDrift 22s ease-in-out infinite alternate;
  opacity: 0.9;
}

@keyframes meshDrift {
  0%   { transform: translate(0%, 0%) rotate(0deg) scale(1); }
  50%  { transform: translate(-4%, 3%) rotate(7deg) scale(1.08); }
  100% { transform: translate(3%, -4%) rotate(-6deg) scale(1.03); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-grain {
  position: absolute;
  inset: -10%;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grainShift 1.2s steps(4) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-1%, 1%); }
  50%  { transform: translate(1%, -1%); }
  75%  { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(18,0,60,0.58) 0%, rgba(18,0,60,0.32) 38%, rgba(18,0,60,0.12) 65%, rgba(18,0,60,0.08) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg::before, .hero-blob, .hero-mesh, .hero-grain { animation: none; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-grid > div { min-width: 0; }

.hero h1 {
  margin: 20px 0 22px;
  min-height: 4.4em; /* reserves room across the longest rotating phrase so layout doesn't shift */
}

.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-trust {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-trust-item { display: flex; flex-direction: column; gap: 2px; }
.hero-trust-num { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-trust-label { font-size: 12.5px; color: var(--paper-faint); }

/* ---------- Code editor panel (signature element) ---------- */

.editor {
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}

.editor-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--ink-line);
  background: rgba(255,255,255,0.015);
}
.editor-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-line); }
.editor-filename {
  margin-left: 8px;
  font-size: 12.5px;
  color: var(--paper-faint);
  font-family: 'SF Mono', 'Menlo', monospace;
}

.editor-body {
  padding: 22px 0;
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.85;
  overflow-x: auto;
}

.editor-line { display: flex; padding: 0 20px; white-space: pre; }
.editor-line:hover { background: rgba(255,255,255,0.02); }
.editor-ln { color: var(--ink-line); width: 28px; flex-shrink: 0; user-select: none; text-align: right; margin-right: 18px; }
.editor-kw { color: #FF8A65; }
.editor-fn { color: #7DD3FC; }
.editor-str { color: #A6E3A1; }
.editor-com { color: var(--paper-faint); }
.editor-var { color: var(--paper); }
.editor-prop { color: #C4B5FD; }

.editor-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid var(--ink-line);
  background: rgba(255,255,255,0.015);
  font-size: 12px;
  font-weight: 600;
  color: var(--paper-faint);
  min-height: 20px;
}
.editor-status-msg { display: flex; align-items: center; gap: 8px; opacity: 0; transition: opacity 0.3s ease; }
.editor-status-msg.show { opacity: 1; }
.editor-status-msg .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.editor-status-msg.building .dot { background: var(--coral); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.rotator {
  display: inline-block;
  position: relative;
  color: var(--coral);
}
.rotator-word {
  display: inline-block;
  animation: rotatorIn 0.5s var(--ease);
}
@keyframes rotatorIn {
  from { opacity: 0; transform: translateY(0.3em); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .rotator-word { animation: none; }
  .editor-status-msg.building .dot { animation: none; }
}

/* ---------- Stats ---------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(48px, 6vw, 72px);
}

.stat-cell { background: var(--ink); padding: 28px 22px; }
.stat-num { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; }
.stat-label { color: var(--paper-faint); font-size: 13px; margin-top: 6px; font-weight: 500; }

@media (max-width: 700px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Services / Modules ---------- */

.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; }

.module-card {
  background: var(--ink);
  padding: 32px 28px;
  transition: background 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.module-card:hover { background: var(--ink-raised); }

.module-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--coral-glow);
  color: var(--coral);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700;
}

.module-name { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.module-desc { color: var(--paper-dim); font-size: 14.5px; line-height: 1.55; }

@media (max-width: 900px) {
  .modules { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .modules { grid-template-columns: 1fr; }
}

/* ---------- Process steps ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

.process-step { position: relative; }
.process-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 14px;
  display: block;
}
.process-step h4 { margin-bottom: 8px; }
.process-step p { color: var(--paper-dim); font-size: 14.5px; line-height: 1.6; }

/* ---------- Cards (projects/blog) ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  border-color: rgba(255, 92, 53, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.4);
}

.card-media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--ink-line) 0%, var(--ink-raised) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper-faint);
  font-size: 13px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, var(--coral-glow), transparent 60%);
}

.card-body { padding: 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }

.card-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-desc { color: var(--paper-dim); font-size: 14.5px; line-height: 1.55; flex: 1; }

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--paper-faint);
  font-weight: 500;
  padding-top: 12px;
  border-top: 1px solid var(--ink-line);
}

.status-dot { display: inline-flex; align-items: center; gap: 7px; }
.status-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(51,204,153,0.18); }

/* ---------- Testimonials ---------- */

.t-card {
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.t-card:hover { transform: translateY(-4px); border-color: rgba(255,92,53,0.3); }
.t-stars { color: var(--coral); font-size: 14px; margin-bottom: 16px; letter-spacing: 2px; }
.t-quote { color: var(--paper); font-size: 15.5px; line-height: 1.65; margin-bottom: 22px; font-weight: 450; }
.t-name { font-weight: 700; font-size: 14.5px; }
.t-company { color: var(--paper-faint); font-size: 13px; margin-top: 2px; }

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--ink-line);
  padding: 26px 0;
}
.faq-item:first-child { border-top: 1px solid var(--ink-line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
}
.faq-icon { flex-shrink: 0; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; color: var(--coral); transition: transform 0.3s var(--ease); font-size: 18px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  color: var(--paper-dim);
  font-size: 14.5px;
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), opacity 0.3s ease, margin-top 0.35s var(--ease);
  opacity: 0;
  margin-top: 0;
}
.faq-item.open .faq-a { margin-top: 14px; opacity: 1; }

/* ---------- Forms ---------- */

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--paper-dim);
  margin-bottom: 9px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--paper);
  font-family: var(--font);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-glow);
}
.field textarea { resize: vertical; min-height: 120px; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row-2 { grid-template-columns: 1fr; } }

.form-note {
  font-size: 13px;
  font-weight: 500;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
}
.form-note.ok { background: rgba(51, 204, 153, 0.12); color: var(--green); border: 1px solid rgba(51, 204, 153, 0.3); }
.form-note.err { background: rgba(255, 92, 53, 0.1); color: var(--coral); border: 1px solid rgba(255, 92, 53, 0.3); }

/* ---------- Footer ---------- */

footer { border-top: 1px solid var(--ink-line); padding: clamp(48px, 7vw, 72px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-size: 13px; color: var(--paper-dim); letter-spacing: 0.04em; margin-bottom: 18px; text-transform: uppercase; font-weight: 700; }
.footer-col a, .footer-col p { display: block; color: var(--paper-faint); font-size: 14px; margin-bottom: 11px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--coral); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--ink-line);
  font-size: 13px;
  color: var(--paper-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Misc ---------- */

.badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border: 1px solid var(--ink-line);
  border-radius: 20px;
  color: var(--paper-dim);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--paper-faint);
  font-size: 14px;
}

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

/* ---------- Motion ---------- */

[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  animation: revealFallback 0s 1s forwards;
}
[data-animate].in-view { opacity: 1; transform: translateY(0); }
@keyframes revealFallback { to { opacity: 1; transform: translateY(0); } }

[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  animation: revealFallback 0s 1.2s forwards;
}
[data-animate-stagger].in-view > *:nth-child(1) { transition-delay: 0s; }
[data-animate-stagger].in-view > *:nth-child(2) { transition-delay: 0.08s; }
[data-animate-stagger].in-view > *:nth-child(3) { transition-delay: 0.16s; }
[data-animate-stagger].in-view > *:nth-child(4) { transition-delay: 0.24s; }
[data-animate-stagger].in-view > *:nth-child(5) { transition-delay: 0.32s; }
[data-animate-stagger].in-view > *:nth-child(6) { transition-delay: 0.4s; }
[data-animate-stagger].in-view > * { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-animate], [data-animate-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
