/* ============================================
   SKAPER — Design tokens & global styles
   ============================================ */

:root {
  /* Palette — Skaper brand */
  --bg: oklch(0.975 0.004 250);
  --bg-2: oklch(0.955 0.006 250);
  --bg-card: oklch(0.99 0.003 250);
  --ink: oklch(0.20 0.015 255);
  --ink-2: oklch(0.34 0.015 255);
  --ink-3: oklch(0.52 0.012 255);
  --line: oklch(0.88 0.010 250);
  --line-soft: oklch(0.93 0.008 250);

  --accent: oklch(0.46 0.06 255);          /* Skaper slate-navy */
  --accent-deep: oklch(0.36 0.07 255);
  --accent-ink: oklch(0.28 0.05 255);
  --accent-soft: oklch(0.93 0.03 255);
  --deep: oklch(0.22 0.04 255);
  --deep-soft: oklch(0.92 0.02 255);

  /* Type */
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Helvetica, sans-serif;
  --font-body: "Geist", "Helvetica Neue", Helvetica, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1320px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 0 0 oklch(0.18 0.012 250/ 0.06);
  --shadow: 0 1px 1px oklch(0.18 0.012 250/ 0.04), 0 8px 24px -12px oklch(0.18 0.012 250/ 0.18);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(48px, 7.4vw, 116px); letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: clamp(36px, 4.4vw, 68px); letter-spacing: -0.028em; }
h3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.018em; }
h4 { font-size: 18px; letter-spacing: -0.005em; font-family: var(--font-body); font-weight: 600; }

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-ink); }
.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 14px 4px;
}
.btn-ghost:hover { color: var(--accent); }
.btn .arr {
  display: inline-block;
  transition: transform .25s ease;
}
.btn:hover .arr { transform: translateX(4px); }

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--line-soft); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}
.logo {
  display: inline-flex; align-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.logo--light img {
  filter: brightness(0) invert(1);
}
.nav {
  display: flex; align-items: center; gap: 28px;
}
.nav a {
  font-size: 14.5px;
  color: var(--ink-2);
  transition: color .15s ease;
}
.nav a:hover, .nav a.active { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 12px;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 18px; }

@media (max-width: 1024px) {
  .nav, .header-cta .btn-secondary { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 49;
  padding: 92px var(--gutter) 40px;
  display: none;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding-block: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }

/* ============================================
   Hero
   ============================================ */
.hero {
  padding-top: clamp(48px, 8vh, 96px);
  padding-bottom: clamp(64px, 10vh, 128px);
  position: relative;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero h1 .serif {
  display: inline-block;
  font-size: 0.92em;
  color: var(--accent);
  transform: translateY(0.05em);
}
.hero h1 .slash {
  color: var(--ink-3);
  font-weight: 300;
}
.hero-sub {
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--ink-2);
  max-width: 560px;
  line-height: 1.45;
  margin-top: 32px;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 32px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.hero-meta .num {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
}
.hero-meta .lbl {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.35;
  max-width: 220px;
}
@media (max-width: 880px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* marquee */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding-block: 22px;
  margin-top: 0;
}
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 56px);
  letter-spacing: -0.02em;
  color: var(--ink);
  align-items: center;
}
.marquee-track > span { display: inline-flex; align-items: center; gap: 64px; }
.marquee-track .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}
.marquee-track .serif { color: var(--ink-3); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   Sections
   ============================================ */
section { padding-block: clamp(80px, 11vh, 140px); }
.section-head {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.section-head .lead {
  font-size: clamp(18px, 1.4vw, 20px);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 520px;
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
}

/* For who */
.for-who {
  background: var(--ink);
  color: var(--bg);
}
.for-who h2 { color: var(--bg); }
.for-who .eyebrow { color: oklch(0.65 0.012 250); }
.for-who .eyebrow::before { background: var(--accent); }
.for-who .lead { color: oklch(0.78 0.012 250); }
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: oklch(0.30 0.012 250);
  border: 1px solid oklch(0.30 0.012 250);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.who-card {
  background: var(--ink);
  padding: 36px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 320px;
}
.who-card h3 { font-size: 24px; color: var(--bg); }
.who-card p { color: oklch(0.72 0.012 250); font-size: 15.5px; }
.who-card .badge {
  display: inline-flex;
  align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: oklch(0.26 0.012 250);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(0.82 0.012 250);
  align-self: flex-start;
}
.who-card .badge .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.who-card ul { padding: 0; margin: auto 0 0; list-style: none; }
.who-card ul li {
  padding: 12px 0;
  border-top: 1px solid oklch(0.28 0.012 250);
  font-size: 14px;
  color: oklch(0.82 0.012 250);
  display: flex; justify-content: space-between; align-items: center;
}
.who-card ul li::after {
  content: "✓";
  color: var(--accent);
  font-size: 12px;
}
@media (max-width: 880px) {
  .who-grid { grid-template-columns: 1fr; }
}

/* Services */
.services {
  background: var(--bg);
}
.service {
  display: grid;
  grid-template-columns: 80px 1fr 1.3fr 180px;
  align-items: start;
  gap: 32px;
  padding-block: 36px;
  border-top: 1px solid var(--line);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .5s cubic-bezier(.7,0,.2,1);
  z-index: 0;
}
.service:hover::before { transform: scaleY(1); }
.service > * { position: relative; z-index: 1; }
.service-go {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 6px;
}
.service-go .btn-ghost { color: var(--ink-2); padding: 6px 0; }
.service-go .btn-ghost:hover { color: var(--accent); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service .idx {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  padding-top: 6px;
}
.service h3 {
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 500;
}
.service .desc {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  max-width: 520px;
}
.service .chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 16px;
}
.service .chip {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--bg-card);
}
@media (max-width: 880px) {
  .service { grid-template-columns: 1fr; gap: 12px; padding-block: 28px; }
  .service-go { justify-content: flex-start; }
}

/* Méthode timeline */
.methode {
  background: var(--bg-2);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 280px;
  display: flex; flex-direction: column;
  position: relative;
}
.step .num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.step h3 {
  font-size: 22px;
  margin-top: 16px;
  font-weight: 500;
}
.step p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.step .when {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-top: 1px dashed var(--line);
}
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* Pourquoi (fondateurs) */
.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.founder {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.founder-photo {
  aspect-ratio: 4/5;
  position: relative;
  background: var(--accent);
  overflow: hidden;
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.4s cubic-bezier(.2,.8,.2,1);
}
.founder:hover .founder-photo img { transform: scale(1.04); }
.founder-photo::after {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(to top, oklch(0.20 0.015 255 / 0.5), transparent);
  pointer-events: none;
}
.founder-photo .name-overlay {
  position: absolute;
  left: 24px; bottom: 20px;
  color: oklch(0.98 0.003 250);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  z-index: 1;
}
.founder-photo .name-overlay .role {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(0.88 0.012 250);
  margin-bottom: 4px;
}
.founder-body {
  padding: 32px;
}
.founder-body .role {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.founder-body h3 { font-size: 28px; font-weight: 500; }
.founder-body .bio {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
}
.founder-body .stack {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.founder-body .stack span {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  padding: 4px 10px;
  background: var(--bg-2);
  border-radius: 999px;
}
@media (max-width: 880px) {
  .founders { grid-template-columns: 1fr; }
}

/* Cas / réalisations */
.cases {
  background: var(--ink);
  color: var(--bg);
}
.cases h2 { color: var(--bg); }
.cases .lead { color: oklch(0.78 0.012 250); }
.cases .eyebrow { color: oklch(0.65 0.012 250); }
.case-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  grid-template-rows: auto auto;
}
.case-grid .case:first-child {
  grid-row: span 2;
}
.case {
  background: oklch(0.22 0.012 250);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column;
  min-height: 260px;
  border: 1px solid oklch(0.28 0.012 250);
  transition: background .2s ease;
}
.case:hover { background: oklch(0.25 0.012 250); }
.case .case-tag {
  display: inline-flex;
  align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: oklch(0.78 0.012 250);
}
.case .case-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.case h3 {
  margin-top: 18px;
  font-size: 28px;
  font-weight: 500;
  color: var(--bg);
}
.case .case-sub {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: oklch(0.72 0.012 250);
}
.case .case-stats {
  margin-top: auto;
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid oklch(0.30 0.012 250);
}
.case .case-stats .s .v {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--bg);
}
.case .case-stats .s .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: oklch(0.68 0.012 250);
  margin-top: 4px;
}
.case .case-art {
  margin-top: 24px;
  aspect-ratio: 16/9;
  border-radius: 12px;
  background:
    repeating-linear-gradient(45deg,
      oklch(0.28 0.012 250) 0 18px,
      oklch(0.26 0.012 250) 18px 36px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: oklch(0.68 0.012 250);
  border: 1px solid oklch(0.30 0.012 250);
}
@media (max-width: 980px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-grid .case:first-child { grid-row: auto; }
}

/* Featured single-case layout */
.case-featured {
  display: grid;
  grid-template-columns: 0.95fr 1.4fr;
  gap: 32px;
  border-radius: var(--radius-lg);
  background: oklch(0.22 0.012 250);
  border: 1px solid oklch(0.28 0.012 250);
  overflow: hidden;
}
.cf-art {
  position: relative;
  background:
    radial-gradient(circle at 18% 20%, oklch(0.40 0.07 255), transparent 60%),
    linear-gradient(160deg, oklch(0.28 0.04 255), oklch(0.18 0.025 255));
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding: 36px;
}
.cf-art::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      oklch(0.30 0.04 255 / 0.18) 0 1px,
      transparent 1px 22px);
  pointer-events: none;
}
.cf-art-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.cf-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  border-radius: 999px;
  background: oklch(0.30 0.04 255 / 0.7);
  border: 1px solid oklch(0.40 0.05 255);
  color: oklch(0.92 0.012 250);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cf-display {
  font-family: var(--font-display);
  font-size: clamp(56px, 6vw, 96px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: oklch(0.97 0.005 250);
  margin-top: auto;
}
.cf-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(0.70 0.012 250);
  padding-top: 16px;
  border-top: 1px solid oklch(0.32 0.012 250);
}
.cf-body {
  padding: 44px clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.cf-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid oklch(0.30 0.012 250);
}
.cf-meta > div { display: flex; flex-direction: column; gap: 4px; }
.cf-l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.65 0.012 250);
}
.cf-v {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: oklch(0.95 0.005 250);
}
.case-featured h3 {
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 500;
  color: oklch(0.97 0.005 250);
}
.cf-paragraph p {
  color: oklch(0.82 0.012 250);
  font-size: 15.5px;
  line-height: 1.65;
}
.cf-paragraph p + p { margin-top: 12px; }
.cf-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cf-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 999px;
  background: oklch(0.30 0.012 250);
  border: 1px solid oklch(0.36 0.012 250);
  color: oklch(0.88 0.012 250);
}
.cf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-block: 20px;
  border-block: 1px solid oklch(0.30 0.012 250);
}
.cf-stats .s .v {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: oklch(0.97 0.005 250);
  line-height: 1;
}
.cf-stats .s .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: oklch(0.65 0.012 250);
  margin-top: 8px;
  line-height: 1.4;
}
.cf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.case-featured .btn-primary {
  background: var(--accent);
  color: oklch(0.97 0.005 250);
  border-color: var(--accent);
}
.case-featured .btn-primary:hover {
  background: oklch(0.97 0.005 250);
  color: var(--accent);
  border-color: oklch(0.97 0.005 250);
}
.case-featured .btn-secondary {
  border-color: oklch(0.45 0.012 250);
  color: oklch(0.92 0.012 250);
}
.case-featured .btn-secondary:hover {
  background: oklch(0.97 0.005 250);
  color: var(--ink);
  border-color: oklch(0.97 0.005 250);
}
.cases-foot {
  margin-top: 32px;
  text-align: center;
  color: oklch(0.78 0.012 250);
  font-size: 15px;
}
.cases-foot a { color: oklch(0.97 0.005 250); }

@media (max-width: 980px) {
  .case-featured { grid-template-columns: 1fr; }
  .cf-art { min-height: 300px; }
  .cf-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cf-meta { grid-template-columns: 1fr; }
  .cf-stats { grid-template-columns: 1fr; }
}

/* Testimonials */
.testimonials .t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column;
  gap: 24px;
}
.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
}
.testimonial blockquote::before {
  content: "“";
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 0.2;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.testimonial .who {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.testimonial .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: oklch(0.85 0.04 250);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.testimonial .who .name { font-weight: 600; font-size: 14.5px; }
.testimonial .who .meta { font-size: 13px; color: var(--ink-3); }
@media (max-width: 880px) {
  .testimonials .t-grid { grid-template-columns: 1fr; }
}

/* Calculator */
.calculator {
  background: var(--bg-2);
}
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.calc-left .opt-group { margin-bottom: 28px; }
.calc-left .opt-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 14px;
  color: var(--ink-2);
  transition: all .15s ease;
}
.opt:hover { border-color: var(--ink-3); }
.opt.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.calc-right {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column;
}
.calc-right .estim-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(0.72 0.012 250);
}
.calc-right .estim-amount {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 12px;
  color: var(--bg);
}
.calc-right .estim-amount .currency {
  font-size: 0.55em;
  color: var(--accent);
  margin-right: 6px;
}
.calc-right .estim-amount .ht {
  font-size: 0.32em;
  color: oklch(0.65 0.012 250);
  margin-left: 8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.calc-breakdown {
  margin-top: 24px;
  border-top: 1px solid oklch(0.30 0.012 250);
  padding-top: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.calc-breakdown .row {
  display: flex; justify-content: space-between;
  font-size: 13.5px;
  color: oklch(0.82 0.012 250);
}
.calc-breakdown .row .v { color: var(--bg); font-variant-numeric: tabular-nums; }
.calc-breakdown .row.total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed oklch(0.30 0.012 250);
  font-weight: 600;
  color: var(--bg);
}
.calc-right .delay {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: oklch(0.72 0.012 250);
}
.calc-right .delay strong { color: var(--accent); }
.calc-right .btn-primary {
  margin-top: auto;
  background: var(--accent);
  color: var(--bg);
  align-self: flex-start;
}
.calc-right .btn-primary:hover { background: var(--bg); color: var(--ink); }
.calc-right .note {
  margin-top: 16px;
  font-size: 12.5px;
  color: oklch(0.72 0.012 250);
  line-height: 1.5;
}
@media (max-width: 980px) {
  .calc-wrap { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none; border: 0;
  padding: 28px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.faq-q .ico {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s ease, color .2s ease, transform .25s ease;
  font-size: 18px;
  color: var(--ink-2);
}
.faq-item.open .faq-q .ico {
  background: var(--ink);
  color: var(--bg);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.6;
  padding-right: 80px;
  max-width: 820px;
}
.faq-item.open .faq-a {
  max-height: 360px;
  padding-bottom: 28px;
}

/* CTA final */
.cta-final {
  background:
    radial-gradient(circle at 80% 110%, oklch(0.55 0.07 255), transparent 60%),
    var(--accent);
  color: oklch(0.97 0.005 250);
  border-radius: var(--radius-lg);
  margin-block: 0;
  padding: clamp(56px, 8vh, 96px) clamp(32px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0%, oklch(0.97 0.005 250 / 0.08), transparent 35%);
  pointer-events: none;
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final h2 {
  font-size: clamp(40px, 5.4vw, 96px);
  color: oklch(0.98 0.003 250);
  font-weight: 500;
  max-width: 14ch;
}
.cta-final h2 .serif {
  color: oklch(0.88 0.04 90);
}
.cta-final .sub {
  margin-top: 24px;
  font-size: 18px;
  max-width: 520px;
  color: oklch(0.90 0.012 250);
}
.cta-final .actions {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.cta-final .btn-primary { background: oklch(0.18 0.015 255); color: oklch(0.97 0.005 250); border-color: oklch(0.18 0.015 255); }
.cta-final .btn-primary:hover { background: oklch(0.97 0.005 250); color: var(--accent); border-color: oklch(0.97 0.005 250); }
.cta-final .btn-secondary { border-color: oklch(0.97 0.005 250 / 0.6); color: oklch(0.97 0.005 250); background: transparent; }
.cta-final .btn-secondary:hover { background: oklch(0.97 0.005 250); color: var(--accent); border-color: oklch(0.97 0.005 250); }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--ink);
  color: oklch(0.82 0.012 250);
  padding-block: 64px 32px;
  padding-inline: var(--gutter);
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid oklch(0.28 0.012 250);
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: oklch(0.65 0.012 250);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer a { color: oklch(0.92 0.012 250); transition: color .15s ease; }
.footer a:hover { color: var(--accent); }
.footer .brand .logo { color: var(--bg); }
.footer .brand p {
  margin-top: 16px;
  font-size: 14px;
  color: oklch(0.72 0.012 250);
  max-width: 360px;
  line-height: 1.55;
}
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 32px;
  font-size: 12.5px;
  color: oklch(0.65 0.012 250);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-bottom a { color: oklch(0.78 0.012 250); }
@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* Page wrappers (sub pages) */
.page-hero {
  padding-block: clamp(64px, 9vh, 120px) clamp(40px, 6vh, 80px);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(48px, 6.8vw, 96px);
  max-width: 14ch;
}
.page-hero .lead {
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--ink-2);
  max-width: 640px;
  margin-top: 28px;
}

/* Forms */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.field input, .field textarea, .field select {
  font: inherit;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--ink);
  background: var(--bg);
}
.field textarea { resize: vertical; min-height: 140px; }
@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Utility */
.divider { border: 0; border-top: 1px solid var(--line); margin-block: 80px; }

/* ============================================
   Reveal animations
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .9s cubic-bezier(.2,.7,.2,1),
    transform .9s cubic-bezier(.2,.7,.2,1),
    clip-path 1.1s cubic-bezier(.7,0,.2,1);
  transition-delay: var(--rd, 0ms);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="scale"].in { transform: scale(1); }
[data-reveal="mask"] {
  clip-path: inset(0 100% 0 0);
  opacity: 1; transform: none;
}
[data-reveal="mask"].in { clip-path: inset(0 0 0 0); }

/* Text mask-line reveal — for hero */
.reveal-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
}
.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.05s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--rd, 0ms);
  will-change: transform;
}
.reveal-line.in > span { transform: translateY(0); }

/* Float underline on hover for links */
.under-line {
  position: relative;
  display: inline-block;
}
.under-line::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.7,0,.2,1);
}
.under-line:hover::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  .marquee-track { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .reveal-line > span { transform: none !important; }
}

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