/* ============== Tokens ============== */
:root {
  --bg: oklch(0.992 0.004 80);
  --bg-2: oklch(0.97 0.006 80);
  --bg-3: oklch(0.94 0.008 75);
  --ink: oklch(0.18 0.012 60);
  --ink-2: oklch(0.32 0.012 60);
  --muted: oklch(0.52 0.012 60);
  --line: oklch(0.88 0.008 70);
  --line-2: oklch(0.82 0.01 70);
  --particle-rgb: 60, 50, 40;

  --accent: oklch(0.74 0.17 60);          /* amber */
  --accent-ink: oklch(0.28 0.12 55);
  --accent-soft: oklch(0.95 0.05 75);

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 28px;
  --radius-xl: 40px;

  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

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

.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;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ============== Type ============== */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--ink);
}
.h1 { font-size: clamp(48px, 9vw, 128px); }
.h2 { font-size: clamp(40px, 6vw, 88px); font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.0; }
.h3 { font-size: clamp(28px, 3.4vw, 48px); font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
.h4 { font-size: clamp(22px, 2vw, 28px); font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.lead {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.45;
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.muted { color: var(--muted); }
.serif { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* ============== Layout ============== */
.shell {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}
.section {
  padding: clamp(72px, 12vw, 160px) 0;
  position: relative;
}
.section + .section { padding-top: 0; }
.section.first { padding-top: 0; }

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease-soft), color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 0 oklch(0.0 0 0 / 0.04), 0 8px 24px -12px oklch(0.2 0.01 60 / 0.4);
}
.btn-primary:hover {
  background: oklch(0.1 0.01 60);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 oklch(0.0 0 0 / 0.04), 0 16px 36px -16px oklch(0.2 0.01 60 / 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}
.btn .arrow {
  transition: transform 0.4s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============== Reveal animation ============== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.06s; }
.reveal[data-delay="2"] { transition-delay: 0.12s; }
.reveal[data-delay="3"] { transition-delay: 0.18s; }
.reveal[data-delay="4"] { transition-delay: 0.24s; }
.reveal[data-delay="5"] { transition-delay: 0.30s; }
.reveal[data-delay="6"] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============== Nav ============== */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 32px);
  max-width: 1360px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 12px 22px;
  border-radius: 999px;
  background: oklch(0.99 0.003 80 / 0.72);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border: 1px solid oklch(0.88 0.008 70 / 0.6);
  transition: background 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft), top 0.3s var(--ease-soft);
}
.nav.scrolled {
  background: oklch(0.995 0.003 80 / 0.86);
  box-shadow: 0 8px 32px -16px oklch(0.2 0.01 60 / 0.18);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.logo-mark::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(0);
  transition: transform 0.6s var(--ease);
}
.nav-logo:hover .logo-mark::before { transform: translateY(-2px) scale(1.1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}
.nav-link:hover { color: var(--ink); background: oklch(0.94 0.008 75 / 0.6); }
.nav-cta { margin-left: 8px; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; transition: transform 0.3s var(--ease), background 0.2s; }
.nav-cta:hover { background: oklch(0.1 0.01 60); transform: translateY(-1px); }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
}
.nav-burger span {
  width: 18px; height: 1.5px; background: var(--ink); display: block; position: relative;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.nav-burger span::before { transform: translateY(-6px); }
.nav-burger span::after { transform: translateY(6px); }
.nav-burger.open span { background: transparent; }
.nav-burger.open span::before { transform: rotate(45deg); }
.nav-burger.open span::after { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 92px 16px auto 16px;
  z-index: 49;
  background: oklch(0.995 0.003 80 / 0.96);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  border: 1px solid var(--line);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 24px 60px -24px oklch(0.2 0.01 60 / 0.3);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu .nav-link {
  padding: 14px 16px;
  font-size: 17px;
  font-family: var(--font-display);
  font-weight: 500;
  border-radius: 14px;
}
.mobile-menu .nav-cta {
  margin-top: 8px;
  padding: 14px 16px;
  text-align: center;
  border-radius: 14px;
  display: block;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ============== Hero ============== */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-canvas canvas { width: 100%; height: 100%; }
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(0.88 0.008 70 / 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.88 0.008 70 / 0.5) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: -1px -1px;
  mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 70%);
  z-index: 0;
}
.hero-content { position: relative; z-index: 2; }

.hero h1 {
  margin: 0;
}
.hero h1 .accent-word {
  position: relative;
  display: inline-block;
}
.hero h1 .accent-word::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.18em;
  background: var(--accent);
  opacity: 0.3;
  transform-origin: left center;
  animation: underline-in 1.4s var(--ease) 0.6s both;
}
@keyframes underline-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.7);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  backdrop-filter: blur(8px);
}
.meta-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px oklch(0.74 0.17 60 / 0.25);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px oklch(0.74 0.17 60 / 0.25); }
  50% { box-shadow: 0 0 0 6px oklch(0.74 0.17 60 / 0); }
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
  align-items: center;
}

.hero-stats {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  max-width: 22ch;
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
}

.scroll-indicator {
  position: absolute;
  left: 32px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 2;
}
.scroll-indicator .line {
  width: 40px; height: 1px; background: var(--ink-2);
  animation: scroll-line 2.4s ease-in-out infinite;
  transform-origin: left;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleX(0.3); opacity: 0.4; }
  50% { transform: scaleX(1); opacity: 1; }
}
@media (max-width: 720px) { .scroll-indicator { display: none; } }

/* ============== Marquee (logos / tech) ============== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg-2);
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg-2), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left, var(--bg-2), transparent); }
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.marquee-item::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line-2);
}
.marquee-item:last-child::after { display: none; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============== Section header ============== */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
}

/* ============== Services ============== */
.services {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.service {
  position: relative;
  padding: 36px;
  border-radius: var(--radius-l);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease-soft), border-color 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.service:hover {
  transform: translateY(-4px);
  background: oklch(1 0 0);
  border-color: var(--line-2);
}
.service .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 18px 0 12px;
}
.service p { color: var(--ink-2); font-size: 16px; margin: 0; }
.service .tags {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: oklch(0.92 0.01 70);
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.service .visual {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: oklch(1 0 0);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease);
}
.service:hover .visual { transform: rotate(-4deg) scale(1.05); }

.service.span-7 { grid-column: span 7; }
.service.span-5 { grid-column: span 5; }
.service.span-6 { grid-column: span 6; }
.service.span-4 { grid-column: span 4; }
.service.span-12 { grid-column: span 12; }

@media (max-width: 980px) {
  .services { grid-template-columns: 1fr; }
  .service.span-7, .service.span-5, .service.span-6, .service.span-4, .service.span-12 { grid-column: 1 / -1; }
  .service { min-height: 0; padding: 28px; padding-top: 88px; }
  .service .visual { top: 24px; right: auto; left: 24px; }
  .service .num { position: absolute; top: 32px; right: 28px; }
}

/* Service-specific accents */
.service.feature {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.service.feature h3, .service.feature p { color: var(--bg); }
.service.feature .num { color: oklch(0.7 0.01 60); }
.service.feature .tag { background: oklch(0.28 0.012 60); color: var(--bg); }
.service.feature .visual { background: oklch(0.28 0.012 60); border-color: oklch(0.32 0.012 60); }
.service.feature:hover { background: oklch(0.13 0.01 60); }

/* ============== Process ============== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process-step {
  padding: 40px 28px 40px 0;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.4s var(--ease-soft);
}
.process-step:last-child { border-right: 0; }
.process-step:first-child { padding-left: 0; }
.process-step:not(:first-child) { padding-left: 28px; }
.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 16px;
}
.process-step h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.process-step p {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0 0 20px;
}
.process-step .step-time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.process-step .step-marker {
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.process-step:hover .step-marker {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: scale(1.08);
}
@media (max-width: 980px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(1), .process-step:nth-child(2) { border-bottom: 1px solid var(--line); }
  .process-step:nth-child(3) { padding-left: 0; }
}
@media (max-width: 600px) {
  .process { grid-template-columns: 1fr; }
  .process-step { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .process-step:not(:first-child) { padding-left: 0; }
  .process-step:last-child { border-bottom: 0; }
}

/* ============== Cases ============== */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.case {
  padding: 32px;
  border-radius: var(--radius-l);
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.case:hover { transform: translateY(-4px); border-color: var(--line-2); }
.case-cover {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, oklch(0.92 0.01 70), oklch(0.85 0.012 70));
}
.case-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.case h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.15;
}
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.case-stat .v {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.case-stat .v .unit { color: var(--accent); }
.case-stat .l {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 880px) {
  .cases { grid-template-columns: 1fr; }
  .case { padding: 22px; }
}

/* Case covers — abstract */
.cover-bars {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; gap: 10px;
  padding: 24px;
}
.cover-bars span {
  flex: 1;
  background: oklch(1 0 0 / 0.6);
  border-radius: 6px 6px 0 0;
  transition: height 0.6s var(--ease);
}
.case:hover .cover-bars span:nth-child(1) { height: 36% !important; }
.case:hover .cover-bars span:nth-child(2) { height: 58% !important; }
.case:hover .cover-bars span:nth-child(3) { height: 44% !important; }
.case:hover .cover-bars span:nth-child(4) { height: 78% !important; }
.case:hover .cover-bars span:nth-child(5) { height: 92% !important; }
.case:hover .cover-bars span:nth-child(6) { height: 70% !important; }
.cover-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.5) 1px, transparent 1px);
  background-size: 32px 32px;
}
.cover-orb {
  position: absolute;
  width: 60%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, oklch(0.78 0.18 60), oklch(0.6 0.16 50));
  filter: blur(0px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.8s var(--ease);
}
.case:hover .cover-orb { transform: translate(-50%, -50%) scale(1.05); }
.cover-chat {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 8px; padding: 24px;
}
.cover-chat .bubble {
  background: oklch(1 0 0 / 0.85);
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--ink-2);
  align-self: flex-start;
}
.cover-chat .bubble.right { align-self: flex-end; background: var(--accent); color: white; }
.cover-rocket {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.cover-rocket .ring {
  width: 60%; aspect-ratio: 1;
  border: 1px dashed oklch(1 0 0 / 0.6);
  border-radius: 50%;
  animation: spin 22s linear infinite;
}
.cover-rocket .ring::before {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  top: -7px; left: 50%; transform: translateX(-50%);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Cover-line — abstract sparkline */
.cover-line {
  position: absolute; inset: 0;
}
.cover-line svg { width: 100%; height: 100%; }

/* ============== Pricing ============== */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tier {
  padding: 36px 32px;
  border-radius: var(--radius-l);
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.5s var(--ease), border-color 0.3s;
  position: relative;
}
.tier:hover { transform: translateY(-4px); }
.tier.featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.tier.featured .muted { color: oklch(0.72 0.01 60); }
.tier .tier-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.tier .tier-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tier .price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 56px;
  letter-spacing: -0.035em;
  line-height: 1;
}
.tier .price .from {
  display: block;
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.tier.featured .price .from { color: oklch(0.72 0.01 60); }
.tier ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.tier li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-2);
}
.tier.featured li { color: oklch(0.92 0.01 60); }
.tier li::before {
  content: "";
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3 3 7-7' stroke='%23B26A1A' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}
@media (max-width: 980px) { .pricing { grid-template-columns: 1fr; } }

/* ============== Reviews ============== */
.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.review {
  padding: 32px;
  border-radius: var(--radius-l);
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.5s var(--ease);
}
.review:hover { transform: translateY(-3px); }
.review .quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
}
.review .quote::before {
  content: "“";
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 64px;
  line-height: 0.5;
  color: var(--accent);
  margin-right: 6px;
  vertical-align: -0.2em;
}
.review .author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.review .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.78 0.06 60), oklch(0.62 0.08 50));
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: white;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.review .name { font-weight: 600; font-size: 15px; }
.review .role { font-size: 13px; color: var(--muted); }
@media (max-width: 880px) { .reviews { grid-template-columns: 1fr; } }

/* ============== FAQ ============== */
.faq {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent-ink); }
.faq-q .icon {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
  position: relative;
}
.faq-q .icon::before, .faq-q .icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.4s var(--ease), background 0.3s;
}
.faq-q .icon::before { width: 12px; height: 1.5px; }
.faq-q .icon::after { width: 1.5px; height: 12px; }
.faq-item.open .faq-q .icon { background: var(--accent); border-color: var(--accent); }
.faq-item.open .faq-q .icon::before { background: white; }
.faq-item.open .faq-q .icon::after { transform: scaleY(0); background: white; }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p {
  margin: 0 0 26px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  max-width: 70ch;
}

/* ============== Contact ============== */
.contact {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  padding: clamp(40px, 5vw, 80px);
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.74 0.17 60 / 0.3), transparent 70%);
  pointer-events: none;
}
.contact h2 { color: var(--bg); }
.contact .lead { color: oklch(0.85 0.01 60); }
.contact ul { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 14px; }
.contact .ci {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 16px;
  color: oklch(0.92 0.01 60);
  transition: color 0.2s;
}
.contact .ci:hover { color: var(--accent); }
.contact .ci .ic {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: oklch(0.28 0.012 60);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.field {
  position: relative;
}
.field input, .field textarea {
  width: 100%;
  padding: 18px 20px;
  border-radius: 14px;
  background: oklch(0.22 0.012 60);
  border: 1px solid oklch(0.32 0.012 60);
  color: var(--bg);
  font-size: 16px;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: oklch(0.25 0.012 60);
}
.field input::placeholder, .field textarea::placeholder { color: oklch(0.6 0.01 60); }
.field textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.form .btn-accent { padding: 18px 24px; font-size: 15px; }
.consent { font-size: 12px; color: oklch(0.65 0.01 60); margin-top: 4px; }
.consent a { color: oklch(0.85 0.01 60); text-decoration: underline; text-decoration-color: oklch(0.4 0.012 60); }

.cookie-banner {
  position: fixed;
  z-index: 80;
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid oklch(0.31 0.012 60);
  border-radius: 18px;
  background: oklch(0.16 0.012 60 / 0.96);
  box-shadow: 0 24px 80px oklch(0 0 0 / 0.3);
  color: oklch(0.9 0.01 60);
  backdrop-filter: blur(18px);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { display: block; font-size: 14px; color: var(--bg); margin-bottom: 4px; }
.cookie-banner p { margin: 0; max-width: 64ch; font-size: 13px; line-height: 1.55; color: oklch(0.7 0.01 60); }
.cookie-actions { display: flex; gap: 10px; align-items: center; }
.cookie-actions button {
  border: 0;
  border-radius: 999px;
  padding: 11px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.cookie-primary { background: var(--accent); color: var(--bg); }
.cookie-secondary {
  background: transparent;
  color: oklch(0.78 0.01 60);
  box-shadow: inset 0 0 0 1px oklch(0.35 0.012 60);
}

.form-success {
  position: absolute;
  inset: 0;
  background: oklch(0.18 0.012 60);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.form-success.show { opacity: 1; pointer-events: auto; transform: none; }
.form-success .check {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--accent);
  display: grid;
  place-items: center;
}

@media (max-width: 880px) {
  .contact { grid-template-columns: 1fr; gap: 40px; padding: 32px; border-radius: 28px; }
  .cookie-banner { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions button { flex: 1; }
}

/* ============== CTA banner ============== */
.cta-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 48px 56px;
  border-radius: var(--radius-xl);
  background: var(--accent);
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-banner h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: white;
  max-width: 22ch;
}
.cta-banner .btn {
  background: var(--ink);
  color: white;
}
.cta-banner .btn:hover { background: oklch(0.05 0 0); }
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, oklch(1 0 0 / 0.3), transparent 50%),
    radial-gradient(circle at 0% 100%, oklch(0.5 0.18 50 / 0.4), transparent 60%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .cta-banner { grid-template-columns: 1fr; padding: 32px; }
}

/* ============== Footer ============== */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 36px;
  margin-top: 120px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}
.footer h5 {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 15px; color: var(--ink-2); transition: color 0.2s; }
.footer ul a:hover { color: var(--accent-ink); }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 36ch; margin: 16px 0 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.footer-mega {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(80px, 18vw, 280px);
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
}
@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ============== Theme switcher ============== */
.theme-switch {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px -16px oklch(0.2 0.01 60 / 0.3);
}
.theme-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
  font-weight: 500;
  cursor: pointer;
}
.theme-switch button.active {
  background: var(--ink);
  color: var(--bg);
}
.theme-switch button:not(.active):hover { color: var(--ink); }
.theme-switch button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .theme-switch {
    bottom: 14px; left: 14px;
  }
}

/* Selection colors per accent */
::selection { background: var(--accent); color: white; }
