/* =========================================================
   ELYVORA LABS — Design System
   Premium · Modern · Minimal · Sophisticated
   ========================================================= */

/* ---------- Font loading (Fontshare) ---------- */
/* Cabinet Grotesk (display) + Satoshi (body) */

:root,
[data-theme='dark'] {
  /* Surfaces — graphite / charcoal / near-black luxury */
  --color-bg: #0a0b0d;
  --color-surface: #121317;
  --color-surface-2: #191b20;
  --color-surface-offset: #1f2127;
  --color-surface-invert: #060708;
  --color-divider: #23262d;
  --color-border: #2a2e36;
  --color-border-strong: #3a3f49;

  /* Text — soft platinum */
  --color-text: #e9eaec;
  --color-text-muted: #9a9da6;
  --color-text-faint: #60646d;
  --color-text-inverse: #f5f5f3;

  /* Primary — Warm brushed gold (luxury accent) */
  --color-primary: #c9a14a;
  --color-primary-hover: #d8b25c;
  --color-primary-active: #b8913a;
  --color-primary-soft: #1f1a10;
  --color-primary-on: #1a1407;

  /* Accent — muted blue (used sparingly) */
  --color-accent: #6b8aad;
  --color-accent-soft: #18202b;

  --color-success: #6f9a52;
  --color-warning: #c08a3a;

  /* Shadows — deep, cinematic */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.45);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 22px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.35);
  --shadow-lg: 0 30px 70px rgba(0,0,0,0.62), 0 10px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 0 1px rgba(201,161,74,0.22), 0 24px 60px rgba(201,161,74,0.14);
}

[data-theme='light'] {
  /* Refined platinum light — gold-accented luxury */
  --color-bg: #f3f3f1;
  --color-surface: #fafaf9;
  --color-surface-2: #ededf0;
  --color-surface-offset: #e7e7ea;
  --color-surface-invert: #0a0b0d;
  --color-divider: #e0e0e3;
  --color-border: #d7d7db;
  --color-border-strong: #c3c3c8;

  --color-text: #191a1d;
  --color-text-muted: #5e616a;
  --color-text-faint: #9a9da6;
  --color-text-inverse: #0a0b0d;

  --color-primary: #a8842f;
  --color-primary-hover: #947329;
  --color-primary-active: #7e6222;
  --color-primary-soft: #f3ead2;
  --color-primary-on: #1a1407;

  --color-accent: #3f5e80;
  --color-accent-soft: #e6ecf2;

  --color-success: #4f7a36;
  --color-warning: #9a5a16;

  --shadow-xs: 0 1px 2px rgba(20,20,25,0.06);
  --shadow-sm: 0 1px 3px rgba(20,20,25,0.08), 0 1px 2px rgba(20,20,25,0.05);
  --shadow-md: 0 8px 22px rgba(20,20,25,0.09), 0 2px 6px rgba(20,20,25,0.06);
  --shadow-lg: 0 30px 70px rgba(20,20,25,0.14), 0 10px 24px rgba(20,20,25,0.08);
  --shadow-glow: 0 0 0 1px rgba(168,132,47,0.25), 0 24px 60px rgba(168,132,47,0.12);
}

/* ---------- Type scale ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  --text-lg: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.6vw, 3.25rem);
  --text-3xl: clamp(2.625rem, 1.6rem + 5vw, 4.75rem);
  --text-hero: clamp(3rem, 1.4rem + 7.2vw, 6.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 420ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 680px;
  --content-default: 1080px;
  --content-wide: 1240px;
  --content-full: 1320px;

  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  scroll-padding-top: 6rem;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  opacity: 0;
  animation: pageReveal 560ms cubic-bezier(0.22, 1, 0.36, 1) 60ms forwards;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
}
p, li, figcaption { text-wrap: pretty; max-width: 70ch; }

::selection { background: oklch(from var(--color-primary) l c h / 0.28); color: var(--color-text); }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body { opacity: 1 !important; animation: none !important; }
}

/* ---------- Page load experience ----------
   A single, elegant fade-in on first paint. CSS-only so it is bulletproof
   even if scripting is disabled or slow — content is never hidden by JS. */
@keyframes pageReveal { from { opacity: 0; } to { opacity: 1; } }
@media (scripting: none) { body { opacity: 1 !important; animation: none !important; } }

button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }

[hidden] { display: none !important; }

a, button, [role='button'], [role='link'], input, textarea, select {
  transition: color var(--transition), background var(--transition),
    border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--content-full); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.container--default { max-width: var(--content-default); }
.container--narrow { max-width: var(--content-narrow); }

.section { padding-block: clamp(var(--space-16), 7vw, var(--space-32)); }
.section--tight { padding-block: clamp(var(--space-12), 5vw, var(--space-20)); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 1.5rem; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.lead { font-size: var(--text-lg); line-height: 1.5; color: var(--color-text-muted); max-width: 62ch; }

.h-display { font-size: var(--text-hero); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.h-section { font-size: var(--text-3xl); font-weight: 600; letter-spacing: -0.03em; }
.h-page { font-size: var(--text-2xl); font-weight: 600; }
.text-muted { color: var(--color-text-muted); }
.text-faint { color: var(--color-text-faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 500; font-size: var(--text-sm);
  letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  position: relative;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
    background var(--transition), border-color var(--transition), color var(--transition);
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform var(--transition); }
.btn--primary { background: var(--color-primary); color: var(--color-primary-on); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-border-strong); }
.btn--ghost:hover { border-color: var(--color-text); transform: translateY(-2px); }
.btn--soft { background: var(--color-primary-soft); color: var(--color-primary); }
.btn--soft:hover { background: color-mix(in oklab, var(--color-primary-soft), var(--color-primary) 8%); transform: translateY(-1px); }
.btn--invert { background: var(--color-text-inverse); color: var(--color-bg); }
.btn--invert:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0) scale(0.985); transition-duration: 90ms; }
.btn--lg { padding: 1.05rem 1.85rem; font-size: var(--text-base); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 500; font-size: var(--text-sm);
  color: var(--color-primary); text-decoration: none;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform var(--transition); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--color-bg), transparent 18%);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled { border-bottom-color: var(--color-border); box-shadow: var(--shadow-xs); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.5rem; max-width: var(--content-full); margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--color-text); white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; flex: none; color: var(--color-primary); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand-name span { color: var(--color-primary); }

.nav { display: flex; align-items: center; gap: var(--space-1); }
.nav a {
  font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted);
  text-decoration: none; padding: 0.5rem 0.85rem; border-radius: var(--radius-full);
}
.nav a:hover { color: var(--color-text); background: var(--color-surface-2); }
.nav a[aria-current="page"] { color: var(--color-text); }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }

.theme-toggle {
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-full);
  display: inline-grid; place-items: center; color: var(--color-text-muted);
  border: 1px solid var(--color-border); background: var(--color-surface);
}
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }

.menu-btn { display: none; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-full); place-items: center; color: var(--color-text); border: 1px solid var(--color-border); background: var(--color-surface); }

@media (max-width: 940px) {
  .nav, .header-actions .btn--ghost { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 480px) {
  .header-actions .btn--primary { padding-inline: 0.6rem; font-size: var(--text-xs); }
  .header-actions { gap: var(--space-1); }
  .brand-name { font-size: 1.05rem; }
  .brand-name span { display: none; }
}

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 70;
  background: var(--color-bg);
  transform: translateY(-100%); visibility: hidden; opacity: 0;
  transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 460ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 460ms cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}
.mobile-nav.is-open { transform: translateY(0); visibility: visible; opacity: 1; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; margin-bottom: var(--space-8); }
.mobile-nav-links { display: flex; flex-direction: column; gap: var(--space-1); }
.mobile-nav-links a {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  color: var(--color-text); text-decoration: none; padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider); letter-spacing: -0.02em;
  opacity: 0; transform: translateY(10px);
  transition: opacity 380ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1), color var(--transition);
}
.mobile-nav.is-open .mobile-nav-links a { opacity: 1; transform: none; }
.mobile-nav.is-open .mobile-nav-links a:nth-child(1) { transition-delay: 90ms; }
.mobile-nav.is-open .mobile-nav-links a:nth-child(2) { transition-delay: 150ms; }
.mobile-nav.is-open .mobile-nav-links a:nth-child(3) { transition-delay: 210ms; }
.mobile-nav.is-open .mobile-nav-links a:nth-child(4) { transition-delay: 270ms; }
.mobile-nav.is-open .mobile-nav-links a:nth-child(5) { transition-delay: 330ms; }
.mobile-nav.is-open .mobile-nav-links a:nth-child(6) { transition-delay: 390ms; }
.mobile-nav-cta { margin-top: auto; padding-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); opacity: 0; transform: translateY(10px); transition: opacity 380ms cubic-bezier(0.22, 1, 0.36, 1) 440ms, transform 380ms cubic-bezier(0.22, 1, 0.36, 1) 440ms; }
.mobile-nav.is-open .mobile-nav-cta { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-surface-invert); color: #c9c6bf; margin-top: 0; }
[data-theme="dark"] .site-footer { background: #080a09; border-top: 1px solid var(--color-border); }
.footer-inner { max-width: var(--content-full); margin-inline: auto; padding: clamp(var(--space-16), 6vw, var(--space-24)) clamp(1.25rem, 4vw, 2.5rem) var(--space-8); }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: var(--space-16); }
.footer-brand .brand { color: #f7f5f0; }
.footer-logo { display: block; width: auto; height: auto; max-width: 180px; max-height: 116px; border-radius: var(--radius-md); }
.footer-brand .brand-mark { color: var(--color-primary); }
[data-theme="dark"] .footer-brand .brand-mark { color: var(--color-primary); }
.footer-brand p { color: #9a978f; margin-top: var(--space-4); max-width: 38ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.footer-col h4 { color: #f7f5f0; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: var(--space-4); font-family: var(--font-body); font-weight: 600; }
.footer-col a { display: block; color: #a7a49c; text-decoration: none; font-size: var(--text-sm); padding: 0.3rem 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); padding-top: var(--space-8); border-top: 1px solid rgba(255,255,255,0.08); margin-top: var(--space-12); }
.footer-bottom p { color: #827f78; font-size: var(--text-xs); }
.footer-bottom .legal-links { display: flex; gap: var(--space-6); }
.footer-bottom .legal-links a { color: #a7a49c; font-size: var(--text-xs); }
.footer-bottom .legal-links a:hover { color: #fff; }

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; gap: var(--space-12); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-border-strong); }

/* Service / feature cards grid */
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.service-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.service-card .icon-wrap {
  width: 3rem; height: 3rem; border-radius: var(--radius-md);
  display: grid; place-items: center; color: var(--color-primary);
  background: var(--color-primary-soft); margin-bottom: var(--space-5);
}
.service-card .icon-wrap svg { width: 1.5rem; height: 1.5rem; }
.service-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.service-card p { color: var(--color-text-muted); font-size: var(--text-sm); }
.service-card .more { margin-top: var(--space-4); }
.service-card:hover .icon-wrap { transform: scale(1.05); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(var(--space-16), 8vw, var(--space-24)); padding-bottom: clamp(var(--space-20), 10vw, var(--space-32)); }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(in oklab, var(--color-bg) 0%, color-mix(in oklab, var(--color-bg), transparent 60%) 35%, color-mix(in oklab, var(--color-bg), transparent 80%) 100%); }
[data-theme="dark"] .hero-bg::after { background: linear-gradient(in oklab, var(--color-bg) 0%, color-mix(in oklab, var(--color-bg), transparent 55%) 40%, transparent 100%); }

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-16); align-items: center; }
.hero h1 { font-size: var(--text-hero); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; margin: var(--space-5) 0 var(--space-6); }
.hero h1 .accent { color: var(--color-primary); }
.hero .lead { margin-bottom: var(--space-8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-meta { display: flex; gap: var(--space-8); margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.hero-meta .stat .num { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.02em; color: var(--color-text); }
.hero-meta .stat .label { font-size: var(--text-xs); color: var(--color-text-muted); }

.hero-visual { position: relative; }
.hero-mock {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-mock-bar { display: flex; gap: 6px; padding: 0.85rem 1rem; border-bottom: 1px solid var(--color-divider); background: var(--color-surface-2); }
.hero-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border-strong); }
.hero-mock-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.hero-mock-line { height: 10px; border-radius: var(--radius-full); background: var(--color-surface-2); }
.hero-mock-line.w1 { width: 60%; height: 16px; background: var(--color-primary-soft); }
.hero-mock-line.w2 { width: 90%; }
.hero-mock-line.w3 { width: 75%; }
.hero-mock-line.w4 { width: 40%; }
.hero-mock-card { margin-top: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-4); display: flex; align-items: center; gap: var(--space-3); }
.hero-mock-card .dot { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--color-primary); flex: none; }
.hero-mock-card .lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .hero-visual { order: -1; max-width: 460px; }
  .hero-meta { flex-wrap: wrap; gap: var(--space-6); }
}
@media (max-width: 640px) {
  .hero { padding-top: clamp(var(--space-8), 6vw, var(--space-10)); padding-bottom: clamp(var(--space-12), 8vw, var(--space-16)); }
  .hero h1 { margin: var(--space-4) 0 var(--space-5); }
  .hero .lead { margin-bottom: var(--space-6); }
  .hero-meta { margin-top: var(--space-8); }
}

/* ---------- Logos / trust strip ---------- */
.trust-strip { border-block: 1px solid var(--color-border); padding-block: var(--space-10); }
.trust-strip p { text-align: center; font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: var(--space-6); }
.trade-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4) var(--space-8); }
.trade-grid span { font-family: var(--font-display); font-weight: 500; font-size: var(--text-base); color: var(--color-text-muted); }

/* ---------- Section heading block ---------- */
.section-head { max-width: 720px; margin-bottom: var(--space-12); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: var(--text-3xl); margin-top: var(--space-4); letter-spacing: -0.03em; }
.section-head p { margin-top: var(--space-4); color: var(--color-text-muted); font-size: var(--text-lg); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--space-10); } }
.split-media img { width: 100%; border-radius: var(--radius-2xl); border: 1px solid var(--color-border); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); counter-reset: step; }
.steps--6 { grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: var(--space-2); }
.step .step-num { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; color: var(--color-primary); text-transform: uppercase; }
.step h3 { font-size: var(--text-lg); margin: var(--space-3) 0 var(--space-2); }
.step p { font-size: var(--text-sm); color: var(--color-text-muted); }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--color-border); }
.step::after { content: ""; position: absolute; top: 0; left: 0; width: 2.5rem; height: 2px; background: var(--color-primary); }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps--6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps, .steps--6 { grid-template-columns: 1fr; } }

/* ---------- Testimonial ---------- */
.quote { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; color: var(--color-text); }
.quote-concept { display: inline-block; margin-top: var(--space-5); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-faint); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); text-align: left; padding: var(--space-5) 0; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; color: var(--color-text); }
.faq-q .chev { flex: none; width: 1.2rem; height: 1.2rem; color: var(--color-text-muted); transition: transform var(--transition); }
.faq-item.is-open .chev { transform: rotate(45deg); color: var(--color-primary); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--transition-slow); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--color-text-muted); padding-bottom: var(--space-5); max-width: 68ch; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.06em; color: var(--color-text-muted); text-transform: uppercase; }
.field input, .field select, .field textarea {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 0.85rem 1rem; font-size: var(--text-base);
  color: var(--color-text); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary), transparent 80%); }
.field textarea { resize: vertical; min-height: 7rem; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-2xl); padding: clamp(var(--space-12), 6vw, var(--space-24)); background: var(--color-surface-invert); color: var(--color-text-inverse); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 50% 0%, color-mix(in oklab, var(--color-primary), transparent 60%) 0%, transparent 60%); opacity: 0.5; }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: var(--text-3xl); color: #f7f5f0; letter-spacing: -0.03em; }
.cta-band p { color: #b7b4ac; margin: var(--space-4) auto var(--space-8); max-width: 56ch; }
.cta-band .btn--invert { background: #f7f5f0; color: #141814; }
[data-theme="dark"] .cta-band { background: #080a09; border: 1px solid var(--color-border); }

/* ---------- Outcomes trio ---------- */
.outcome-num { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.02em; color: var(--color-primary); }
.outcome h3 { font-size: var(--text-lg); margin-top: var(--space-3); }
.outcome p { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: var(--space-2); max-width: 32ch; margin-inline: auto; }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; height: 100%; }
.price-card.featured { border-color: var(--color-primary); box-shadow: var(--shadow-glow); }
.price-card .tag { align-self: flex-start; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); background: var(--color-primary-soft); padding: 0.3rem 0.75rem; border-radius: var(--radius-full); margin-bottom: var(--space-4); }
.price { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.02em; }
.price small { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; color: var(--color-text-muted); }
.price-note { font-size: var(--text-sm); color: var(--color-text-muted); margin: var(--space-2) 0 var(--space-6); }
.price-card ul { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-6) 0; }
.price-card li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--color-text); }
.price-card li svg { flex: none; width: 1.1rem; height: 1.1rem; color: var(--color-primary); margin-top: 0.15rem; }

/* ---------- Portfolio ---------- */
.project-card { display: block; text-decoration: none; color: inherit; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); transition: transform var(--transition), box-shadow var(--transition); }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.project-thumb .mock { position: absolute; inset: 0; padding: 14% 12% 0; display: flex; flex-direction: column; gap: 8px; }
.project-thumb .mock .bar { height: 12px; border-radius: 4px; background: rgba(255,255,255,0.85); }
.project-thumb .mock .bar.h { height: 28px; width: 55%; margin-bottom: 6px; }
.project-thumb .mock .btn-mock { height: 16px; width: 32%; border-radius: 999px; margin-top: 6px; }
.project-meta { padding: var(--space-6); display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.project-meta h3 { font-size: var(--text-lg); }
.project-meta .tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.tag-chip { font-size: var(--text-xs); color: var(--color-text-muted); background: var(--color-surface-2); padding: 0.25rem 0.6rem; border-radius: var(--radius-full); }
.concept-badge { position: absolute; top: var(--space-3); right: var(--space-3); z-index: 2; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); padding: 0.3rem 0.65rem; border-radius: var(--radius-full); }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--color-bg), transparent 10%); backdrop-filter: blur(14px); border-top: 1px solid var(--color-border); display: none; gap: var(--space-3); }
.mobile-cta .btn { flex: 1; }
@media (max-width: 760px) { .mobile-cta { display: flex; } body { padding-bottom: 5rem; } }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-top: clamp(var(--space-16), 7vw, var(--space-24)); padding-bottom: clamp(var(--space-10), 5vw, var(--space-16)); border-bottom: 1px solid var(--color-border); }
.page-hero h1 { font-size: var(--text-3xl); letter-spacing: -0.035em; margin-top: var(--space-4); max-width: 16ch; }
.page-hero .lead { margin-top: var(--space-5); }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--space-5); }
.prose h2 { font-size: var(--text-xl); margin-top: var(--space-10); }
.prose h3 { font-size: var(--text-lg); margin-top: var(--space-8); }
.prose p, .prose li { color: var(--color-text-muted); line-height: 1.7; }
.prose ul { display: flex; flex-direction: column; gap: var(--space-3); }
.prose li { display: flex; gap: var(--space-3); align-items: flex-start; }
.prose li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); margin-top: 0.6rem; }

/* ---------- Animations on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }
.reveal[data-delay="4"] { transition-delay: 0.36s; }

/* Gentle image entrance — soft scale-in for split & showcase media */
.split-media img, .showcase img, .media-frame img { transition: transform 1.4s cubic-bezier(0.22,1,0.36,1); }
.split-media.reveal img, .showcase.reveal img, .media-frame.reveal img { transform: scale(1.03); }
.split-media.reveal.in img, .showcase.reveal.in img, .media-frame.reveal.in img { transform: scale(1); }

/* Step hover — subtle, refined */
.step { transition: transform var(--transition-slow); }
.step .step-num, .step h3, .step p { transition: transform var(--transition-slow), color var(--transition); }
.step:hover { transform: translateY(-3px); }
.step:hover::after { width: 4rem; transition: width var(--transition-slow); }
.step::after { transition: width var(--transition-slow); }

/* Service & project card hover — soft elevation, minimal scale, refined shadow */
.card--hover, .project-card { transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), box-shadow 0.45s cubic-bezier(0.22,1,0.36,1), border-color var(--transition); }
.card--hover:hover { transform: translateY(-5px) scale(1.008); }
.project-card:hover { transform: translateY(-5px) scale(1.008); }
.service-card .icon-wrap { transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), background var(--transition); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); } .mt-12 { margin-top: var(--space-12); }
.text-center { text-align: center; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: var(--space-2); } .gap-4 { gap: var(--space-4); }
.badge { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); font-weight: 500; color: var(--color-text-muted); background: var(--color-surface-2); border: 1px solid var(--color-border); padding: 0.35rem 0.75rem; border-radius: var(--radius-full); }
.divider { height: 1px; background: var(--color-border); border: 0; margin-block: var(--space-12); }

/* =========================================================
   Cinematic video backgrounds & showcase media
   ========================================================= */
.hero-bg img, .hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg img { opacity: 0.5; }
.hero-bg video { opacity: 0.62; }
[data-theme="dark"] .hero-bg::after {
  background:
    linear-gradient(90deg, var(--color-bg) 0%, color-mix(in oklab, var(--color-bg), transparent 50%) 58%, transparent 100%),
    linear-gradient(0deg, var(--color-bg) 0%, transparent 42%);
}
[data-theme="light"] .hero-bg::after {
  background:
    linear-gradient(90deg, var(--color-bg) 0%, color-mix(in oklab, var(--color-bg), transparent 45%) 62%, transparent 100%),
    linear-gradient(0deg, var(--color-bg) 0%, transparent 48%);
}
@media (prefers-reduced-motion: reduce) { .hero-bg video { display: none; } }

.hero-copy { max-width: 660px; }
.hero-logo { display: block; width: auto; height: auto; max-width: 128px; max-height: 80px; border-radius: var(--radius-md); margin-bottom: var(--space-6); mix-blend-mode: screen; }
@media (max-width: 560px) { .hero-logo { max-width: 104px; max-height: 66px; margin-bottom: var(--space-5); } }

.showcase {
  position: relative; border-radius: var(--radius-2xl); overflow: hidden;
  border: 1px solid var(--color-border); box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9; background: var(--color-surface-2);
}
.showcase img, .showcase video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showcase video { z-index: 1; }
.showcase img { z-index: 0; }
.showcase::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(6,7,8,0.5) 100%);
}
@media (prefers-reduced-motion: reduce) { .showcase video { display: none; } }

/* Premium media frame (still images in split sections) */
.media-frame { border-radius: var(--radius-2xl); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; display: block; }
