/* Ali Baii Official — Cinematic editorial system */

:root {
  --ink: oklch(0.13 0.012 270);
  --ink-2: oklch(0.18 0.014 270);
  --ink-3: oklch(0.22 0.014 270);
  --paper: oklch(0.97 0.006 80);
  --paper-2: oklch(0.94 0.008 80);
  --paper-3: oklch(0.88 0.01 80);
  --amber: oklch(0.74 0.16 65);
  --amber-2: oklch(0.62 0.14 55);
  --rust: oklch(0.55 0.15 40);

  --bg: var(--ink);
  --bg-2: var(--ink-2);
  --bg-3: var(--ink-3);
  --fg: oklch(0.96 0.005 80);
  --fg-dim: oklch(0.72 0.008 80);
  --fg-faint: oklch(0.5 0.008 80);
  --line: oklch(0.28 0.012 270);
  --accent: var(--amber);

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --max: 1400px;
  --gutter: clamp(20px, 4vw, 56px);
}

[data-theme="light"] {
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --bg-3: var(--paper-3);
  --fg: oklch(0.18 0.012 270);
  --fg-dim: oklch(0.42 0.012 270);
  --fg-faint: oklch(0.6 0.01 270);
  --line: oklch(0.85 0.008 80);
  --accent: var(--amber-2);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

/* Subtle film grain overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
[data-theme="light"] body::before { opacity: 0.08; mix-blend-mode: multiply; }

/* Type scale */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-size: clamp(56px, 11vw, 180px);
}
.display em {
  font-style: italic;
  color: var(--accent);
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(40px, 6vw, 88px); }
h3 { font-size: clamp(28px, 3vw, 44px); }
h4 { font-size: clamp(20px, 2vw, 28px); }

p { color: var(--fg-dim); max-width: 60ch; text-wrap: pretty; }
p.lede { font-size: clamp(20px, 2vw, 28px); line-height: 1.4; color: var(--fg); font-family: var(--serif); }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; }

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

section {
  position: relative;
  padding: clamp(80px, 12vh, 160px) 0;
  border-top: 1px solid var(--line);
}

/* Nav */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
  background: color-mix(in oklch, var(--bg) 70%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--line) 60%, transparent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}
nav.top .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
}
nav.top .brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
nav.top ul { display: flex; gap: 28px; list-style: none; }
nav.top ul a {
  color: var(--fg-dim);
  transition: color 0.2s;
  position: relative;
}
nav.top ul a:hover { color: var(--fg); }
nav.top .right { display: flex; align-items: center; gap: 16px; }

@media (max-width: 768px){
  nav.top ul { display: none; }
}

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 22px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.3s ease;
}
[data-theme="light"] .theme-toggle::after { transform: translateX(18px); }

/* Magnetic button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  position: relative;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn.primary:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn .arrow { transition: transform 0.3s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 0;
  overflow: hidden;
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in oklch, var(--bg) 30%, transparent), color-mix(in oklch, var(--bg) 80%, transparent) 70%, var(--bg));
  z-index: 1;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: clamp(40px, 8vh, 80px);
  gap: 40px;
  flex-wrap: wrap;
}
.hero .lede { max-width: 540px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-faint);
  z-index: 3;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-indicator::after {
  content: '';
  width: 1px; height: 32px;
  background: linear-gradient(var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3vw, 40px);
  color: var(--fg-dim);
  white-space: nowrap;
}
.marquee span::after {
  content: '✦';
  margin-left: 60px;
  color: var(--accent);
  font-style: normal;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Section header */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.sec-head h2 { max-width: 14ch; }
@media (max-width: 768px) { .sec-head { grid-template-columns: 1fr; gap: 24px; } }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.service {
  padding: 48px 32px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.4s;
  cursor: pointer;
}
.service:nth-child(2n) { border-right: 0; }
.service:hover { background: var(--bg-2); }
.service .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
}
.service h3 {
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: 16px;
}
.service h3 .accent { color: var(--accent); font-style: italic; }
.service p { font-size: 15px; }
.service .tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 24px;
}
.service .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-dim);
}
@media (max-width: 768px){
  .services-grid { grid-template-columns: 1fr; }
  .service { border-right: 0 !important; }
}

/* Process */
.process-list {
  display: flex;
  flex-direction: column;
}
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  position: relative;
  transition: padding-left 0.4s;
}
.process-step:hover { padding-left: 16px; }
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-step .num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 14px;
}
.process-step h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
}
.process-step p { font-size: 15px; max-width: 50ch; }
@media (max-width: 768px){
  .process-step { grid-template-columns: 60px 1fr; }
  .process-step p { grid-column: 1 / -1; }
}

/* Manifesto */
.manifesto {
  background: var(--bg-2);
}
.manifesto-quote {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 auto;
  text-align: center;
}
.manifesto-quote em { color: var(--accent); font-style: italic; }
.manifesto-quote::before, .manifesto-quote::after {
  font-family: var(--serif);
  color: var(--accent);
  font-size: 0.6em;
  opacity: 0.4;
}
.manifesto-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 100px;
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
}
.pillar:last-child { border-right: 0; }
.pillar h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.pillar p { font-size: 15px; }
@media (max-width: 768px){
  .manifesto-pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Case studies */
.cases {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  cursor: pointer;
  transition: padding 0.4s;
}
.case:hover { padding-left: 16px; padding-right: 16px; }
.case-meta { display: flex; flex-direction: column; gap: 16px; }
.case-meta .industry {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.case-meta h3 {
  font-size: clamp(32px, 3.5vw, 56px);
}
.case-meta h3 em { color: var(--accent); }
.case-meta p { font-size: 15px; max-width: 42ch; }
.case-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.stat .num {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 88px);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat .num em { font-style: italic; }
.stat .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-top: 8px;
}
@media (max-width: 768px){
  .case { grid-template-columns: 1fr; gap: 32px; }
}

/* Playground */
.playground { background: var(--bg-2); position: relative; }
.playground-stage {
  position: relative;
  height: clamp(420px, 70vh, 720px);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}
.playground-stage canvas { width: 100%; height: 100%; display: block; }
.playground-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  pointer-events: none;
  z-index: 2;
}
.playground-overlay > * { pointer-events: auto; }
.playground-info {
  display: flex; justify-content: space-between; align-items: start;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.playground-info .title-block { display: flex; flex-direction: column; gap: 4px; }
.playground-info .title-block .title {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 48px);
  color: white;
  text-transform: none;
  letter-spacing: -0.02em;
}
.playground-controls {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.playground-thumbs { display: flex; gap: 8px; }
.thumb {
  width: 48px; height: 48px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.4);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,.6);
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.thumb:hover { border-color: var(--accent); color: white; }
.thumb.active { border-color: var(--accent); color: var(--accent); background: rgba(0,0,0,.6); }
.playground-nav {
  display: flex; gap: 8px;
}
.nav-btn {
  width: 48px; height: 48px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.4);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  transition: all 0.3s;
}
.nav-btn:hover { border-color: var(--accent); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.tier {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.3s;
}
.tier:hover { background: var(--bg-2); }
.tier.featured {
  background: var(--bg-2);
}
.tier.featured::before {
  content: 'Most picked';
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
}
.tier h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 8px;
}
.tier .tagline {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 32px;
}
.tier .price {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.tier .price em { color: var(--accent); font-style: italic; }
.tier .price-suffix {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 32px;
}
.tier ul { list-style: none; flex: 1; margin-bottom: 32px; }
.tier li {
  font-size: 14px;
  color: var(--fg-dim);
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
}
.tier li::before {
  content: '+';
  color: var(--accent);
  font-family: var(--mono);
}
@media (max-width: 768px){
  .pricing-grid { grid-template-columns: 1fr; }
}

/* Testimonials */
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.tcard {
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tcard:last-child { border-right: 0; }
.tcard blockquote {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  flex: 1;
}
.tcard blockquote em { color: var(--accent); }
.tcard cite {
  display: flex; flex-direction: column; gap: 4px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.tcard cite .name { color: var(--fg); }
.tcard cite .role { color: var(--fg-faint); }
@media (max-width: 768px){
  .testimonials-track { grid-template-columns: 1fr; }
  .tcard { border-right: 0; }
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}
.team-card .portrait {
  aspect-ratio: 3/4;
  background:
    repeating-linear-gradient(135deg, var(--bg-2) 0 12px, var(--bg-3) 12px 13px);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s;
}
.team-card:hover .portrait { transform: translateY(-6px); }
.team-card .portrait::after {
  content: 'PORTRAIT';
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-faint);
}
.team-card h4 {
  font-family: var(--serif);
  font-size: 22px;
}
.team-card .role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
@media (max-width: 1024px){ .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 32px;
}
.faq-q h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  flex: 1;
}
.faq-q .toggle {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.3s;
}
.faq-item.open .faq-q .toggle { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease;
}
.faq-item.open .faq-a {
  max-height: 300px;
  margin-top: 16px;
}
.faq-a p { font-size: 15px; max-width: 65ch; }

/* Contact */
.contact {
  background: var(--bg-2);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact h2 {
  font-size: clamp(48px, 8vw, 120px);
}
.contact h2 em { color: var(--accent); font-style: italic; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--fg);
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
}
.field textarea { min-height: 100px; }
.contact-info {
  display: flex; flex-direction: column; gap: 32px;
  padding-top: 40px;
}
.info-block .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 8px;
}
.info-block .value {
  font-family: var(--serif);
  font-size: 24px;
}
@media (max-width: 768px){
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 60px var(--gutter) 32px;
  background: var(--bg);
}
footer .top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 20px;
  font-weight: 400;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer ul a {
  color: var(--fg-dim);
  font-size: 14px;
  transition: color 0.2s;
}
footer ul a:hover { color: var(--fg); }
footer .wordmark {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 120px);
  letter-spacing: -0.03em;
  line-height: 0.95;
}
footer .wordmark em { color: var(--accent); }
footer .bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 768px){
  footer .top { grid-template-columns: 1fr 1fr; }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* Magnetic wrapper */
.magnetic { display: inline-block; will-change: transform; }

/* Mobile menu toggle button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--fg);
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 48;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.mobile-menu .menu-link {
  font-family: var(--serif);
  font-size: clamp(36px, 8vw, 56px);
  color: var(--fg-dim);
  letter-spacing: -0.02em;
  transition: color 0.2s;
  padding: 4px 0;
  line-height: 1.2;
}
.mobile-menu .menu-link:hover { color: var(--fg); }
.mobile-close {
  position: absolute;
  top: 24px;
  right: var(--gutter);
  background: none;
  border: 1px solid var(--line);
  color: var(--fg-dim);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Form status messages */
.form-status {
  padding: 12px 16px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.form-status.success {
  background: color-mix(in oklch, var(--accent) 12%, transparent);
  border: 1px solid var(--accent);
  color: var(--accent);
}
.form-status.error {
  background: color-mix(in oklch, oklch(0.55 0.2 30) 12%, transparent);
  border: 1px solid oklch(0.6 0.18 30);
  color: oklch(0.75 0.15 30);
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 16px 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(90vw, 560px);
  width: 100%;
  z-index: 90;
  box-shadow: 0 8px 40px color-mix(in oklch, #000 40%, transparent);
  backdrop-filter: blur(12px);
}
.cookie-banner p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
  max-width: none;
  flex: 1;
}
.cookie-banner p a { color: var(--accent); text-decoration: underline; }
@media (max-width: 480px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; bottom: 16px; }
}
