:root {
  --bg: #0c0a08;
  --bg-2: #16110d;
  --bg-3: #1f1812;
  --ink: #ede8de;
  --ink-2: #d9d0bf;
  --ink-dim: #7a7468;
  --ink-faint: #4a443c;
  --accent: #e89856;
  --accent-2: #c7705a;
  --accent-cool: #6b8aa0;
  --line: rgba(237, 232, 222, 0.08);
  --line-2: rgba(237, 232, 222, 0.16);
  --grid: 24px;
}

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

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

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

body { min-height: 100vh; }

a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; font: inherit; color: inherit; background: transparent; border: 0; }

/* ====== Background canvas ====== */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ====== Overlays ====== */
.grain {
  pointer-events: none;
  position: fixed; inset: 0;
  z-index: 2;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.vignette {
  pointer-events: none;
  position: fixed; inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at center, transparent 50%, rgba(0,0,0,0.55) 100%);
}

/* ====== Custom cursor ====== */
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 22px; height: 22px;
  border: 1px solid rgba(232, 152, 86, 0.55);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.3s cubic-bezier(.2,.8,.2,1),
              height 0.3s cubic-bezier(.2,.8,.2,1),
              border-color 0.3s;
}
#cursor::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
#cursor.hover { width: 60px; height: 60px; border-color: var(--accent); }

/* ====== Loader ====== */
#loader {
  position: fixed; inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 40px;
  transition: opacity 1s ease, visibility 1s;
}
#loader.gone { opacity: 0; visibility: hidden; }
.loader-brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 96, 'wght' 700;
  font-size: clamp(56px, 10vw, 130px);
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
}
.loader-brand sup {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--accent);
  vertical-align: super;
  margin-left: 6px;
}
.loader-bar {
  width: min(280px, 60vw);
  height: 1px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
}
.loader-bar::after {
  content: "";
  position: absolute; inset: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: slide 1.6s infinite ease-in-out;
}
@keyframes slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}
.loader-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

/* ====== Header ====== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  padding: 28px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
  pointer-events: none;
}
header > * { pointer-events: auto; }

.logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 24, 'wght' 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.logo sup {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--accent);
  vertical-align: top;
  line-height: 1;
  margin-top: 2px;
}

nav {
  display: flex;
  gap: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ====== Hamburger ↔ X — unified fluid morph ====== */
.menu-toggle {
  position: relative;
  width: 56px;
  height: 56px;
  padding: 0;
  background: transparent;
  border: 0;
  z-index: 70;
  cursor: none;
  color: var(--accent); /* Always amber, in all states */
}

.menu-icon {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* All SVG children share the viewBox as their transform-box */
.menu-icon .bar,
.menu-icon .bar-dot {
  transform-box: view-box;
}

/* === BARS === */
.menu-icon .bar {
  stroke: currentColor;
  fill: none;
  transform-origin: 50px 50px;
  transition:
    transform 0.7s cubic-bezier(.65, 0, .35, 1),
    opacity 0.5s ease;
}

/* Hamburger layout: top bar up, middle stays, bottom bar down.
   Same transform shape across all states for clean interpolation
   and a perfectly reversible animation. */
.menu-icon .bar-1 { transform: translateY(-16px) rotate(0deg); }
.menu-icon .bar-2 { transform: scaleX(1); opacity: 1; }
.menu-icon .bar-3 { transform: translateY(16px) rotate(0deg); }

/* === SIGNATURE DOT === */
.menu-icon .bar-dot {
  fill: currentColor;
  transform-origin: 14px 50px;
  transition:
    opacity 0.4s ease,
    transform 0.55s cubic-bezier(.34, 1.4, .64, 1);
}

/* === OPEN STATE → clean X === */
/* No icon rotation, no extra shape changes on hover — only the bars morph.
   This guarantees that closing returns to the exact initial design. */

/* Bar-1: lands on center, rotated 45° → upper-left to lower-right diagonal */
.menu-toggle.open .bar-1 {
  transform: translateY(0px) rotate(45deg);
}

/* Bar-2: collapses inward to nothing */
.menu-toggle.open .bar-2 {
  transform: scaleX(0);
  opacity: 0;
}

/* Bar-3: lands on center, rotated -45° → lower-left to upper-right diagonal */
.menu-toggle.open .bar-3 {
  transform: translateY(0px) rotate(-45deg);
}

/* Dot fades — it's a hamburger-only decoration */
.menu-toggle.open .bar-dot {
  opacity: 0;
  transform: scale(0);
}

/* ====== Menu overlay (full-screen drawer) ====== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  /* Circular reveal originating from the hamburger position (top right) */
  clip-path: circle(0% at calc(100% - 64px) 56px);
  -webkit-clip-path: circle(0% at calc(100% - 64px) 56px);
  transition: clip-path 0.95s cubic-bezier(.76,0,.24,1), -webkit-clip-path 0.95s cubic-bezier(.76,0,.24,1);
  pointer-events: none;
  overflow: hidden;
}
.menu-overlay.open {
  clip-path: circle(160% at calc(100% - 64px) 56px);
  -webkit-clip-path: circle(160% at calc(100% - 64px) 56px);
  pointer-events: auto;
}
/* Subtle inner glow & grain inside menu */
.menu-overlay::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(232, 152, 86, 0.05), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(107, 138, 160, 0.04), transparent 60%);
  pointer-events: none;
}

.menu-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 90px 7vw 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.menu-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}
.menu-overlay.open .menu-meta-top {
  opacity: 1;
  transform: translateY(0);
}
.menu-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.menu-tag.right { color: var(--accent); }

/* Menu nav items */
.menu-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  border-top: 1px solid var(--line);
}
.menu-nav a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(20px, 2.6vw, 32px) 0;
  border-bottom: 1px solid var(--line);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 96, 'wght' 500;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
  overflow: hidden;
  transition: color 0.4s ease;
}
.menu-nav a > * {
  display: inline-block;
  opacity: 0;
  transform: translateY(80%);
  transition: opacity 0.7s cubic-bezier(.16,.8,.2,1),
              transform 0.8s cubic-bezier(.16,.8,.2,1);
}
.menu-overlay.open .menu-nav a > * {
  opacity: 1;
  transform: translateY(0);
}
/* Per-item stagger */
.menu-overlay.open .menu-nav a:nth-child(1) > * { transition-delay: 0.35s; }
.menu-overlay.open .menu-nav a:nth-child(2) > * { transition-delay: 0.42s; }
.menu-overlay.open .menu-nav a:nth-child(3) > * { transition-delay: 0.49s; }
.menu-overlay.open .menu-nav a:nth-child(4) > * { transition-delay: 0.56s; }
.menu-overlay.open .menu-nav a:nth-child(5) > * { transition-delay: 0.63s; }

.menu-nav .m-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  font-variation-settings: normal;
  transform-origin: center;
  align-self: flex-start;
  padding-top: clamp(14px, 1.6vw, 22px);
  transition: color 0.4s;
}
.menu-nav .m-label em {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'wght' 400, 'SOFT' 50;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.menu-nav .m-arrow {
  margin-left: auto;
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--accent);
  font-size: clamp(28px, 4vw, 56px);
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.5s cubic-bezier(.16,.8,.2,1);
}
/* Override the per-child stagger for arrow when hovering */
.menu-nav a:hover {
  color: var(--accent);
}
.menu-nav a:hover .m-num {
  color: var(--accent);
}
.menu-nav a:hover .m-arrow {
  opacity: 1 !important;
  transform: translateX(0) !important;
}
/* Background slide effect on hover */
.menu-nav a::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(232, 152, 86, 0.04), transparent);
  transition: width 0.6s cubic-bezier(.76,0,.24,1);
  z-index: -1;
}
.menu-nav a:hover::after { width: 100%; }

/* Menu footer */
.menu-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.16,.8,.2,1) 0.75s,
              transform 0.7s cubic-bezier(.16,.8,.2,1) 0.75s;
}
.menu-overlay.open .menu-foot {
  opacity: 1;
  transform: translateY(0);
}
.menu-foot-col { display: flex; flex-direction: column; gap: 8px; }
.menu-foot-col.right { align-items: flex-end; }
.menu-foot-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.menu-foot-val {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.3s;
}
.menu-foot-val a { color: var(--ink); transition: color 0.3s; }
.menu-foot-val a:hover, a.menu-foot-val:hover { color: var(--accent); }

.audio-toggle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}
.audio-toggle:hover { color: var(--accent); }
.audio-toggle .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-dim);
  transition: all 0.3s;
}
.audio-toggle.on .dot {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.6s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ====== Main sections layout ====== */
main {
  position: relative;
  z-index: 5;
}

section {
  position: relative;
  min-height: 100vh;
  padding: 12vh 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-meta {
  display: flex;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 48px;
  align-items: center;
}
.section-meta .num {
  color: var(--accent);
}
.section-meta::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--ink-dim);
}

/* ====== Headlines ====== */
.display {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 96, 'wght' 600;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.display em {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'wght' 400, 'SOFT' 50;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* ====== HERO ====== */
.hero {
  min-height: 100vh;
  padding-top: 22vh;
  padding-bottom: 8vh;
}
.hero-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 40px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-meta::before, .hero-meta::after {
  content: "";
  height: 1px;
  background: var(--line-2);
  flex: 1;
  min-width: 30px;
}
.hero h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero .hero-display {
  font-size: clamp(54px, 11vw, 184px);
  max-width: 14ch;
}
.hero .sub {
  margin-top: 32px;
  max-width: 480px;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--ink-2);
  font-weight: 300;
  line-height: 1.55;
}
.scroll-hint {
  position: absolute;
  bottom: 6vh;
  left: 7vw;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--ink-dim);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
}
.scroll-hint .arrow {
  display: inline-block;
  animation: bob 2s infinite ease-in-out;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 1; }
}
.hero-coord {
  position: absolute;
  bottom: 6vh; right: 7vw;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  text-align: right;
}
.hero-coord b {
  display: block;
  color: var(--ink-2);
  font-weight: 400;
  margin-top: 4px;
}

/* ====== MANIFESTO ====== */
.manifesto h2 {
  font-size: clamp(46px, 8vw, 130px);
  max-width: 16ch;
  margin-bottom: 60px;
}
.manifesto-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 7vw;
  margin-top: 60px;
  max-width: 1200px;
}
.manifesto-body .marker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 8px;
  border-top: 1px solid var(--accent);
  align-self: start;
}
.manifesto-body p {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 24, 'wght' 350;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
}
.manifesto-body p + p { margin-top: 24px; }

/* ====== SERVICES ====== */
.services h2 {
  font-size: clamp(46px, 8vw, 130px);
  max-width: 14ch;
  margin-bottom: 80px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.service {
  padding: 56px 32px 56px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.5s cubic-bezier(.2,.8,.2,1), background 0.5s;
}
.service:nth-child(even) {
  padding-left: 56px;
  border-left: 1px solid var(--line);
}
.service:hover {
  padding-left: 32px;
}
.service:nth-child(even):hover { padding-left: 80px; }
.service::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(.2,.8,.2,1);
}
.service:nth-child(even)::before { left: 56px; }
.service:hover::before { width: 80px; }
.service:nth-child(even):hover::before { width: calc(100% - 80px); }

.service .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service .num .arrow {
  font-family: serif;
  font-size: 16px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.4s;
}
.service:hover .num .arrow {
  opacity: 1;
  transform: translateX(0);
}
.service h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 48, 'wght' 500;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 16px;
}
.service h3 em {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 72, 'wght' 400;
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.service p {
  color: var(--ink-dim);
  font-size: 14px;
  max-width: 420px;
  line-height: 1.6;
}

/* ====== PROCESS ====== */
.process h2 {
  font-size: clamp(46px, 8vw, 130px);
  max-width: 12ch;
  margin-bottom: 80px;
}
.process-steps {
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line);
}
.process-steps li {
  counter-increment: step;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 6vw;
  align-items: start;
  transition: all 0.4s ease;
  position: relative;
}
.process-steps li::before {
  content: "0" counter(step);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
  padding-top: 6px;
}
.process-steps h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 48, 'wght' 500;
  font-size: clamp(24px, 2.8vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
.process-steps h3 em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.process-steps p {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 24, 'wght' 350;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 600px;
}

/* ====== STUDIO ====== */
.studio h2 {
  font-size: clamp(46px, 8vw, 130px);
  max-width: 15ch;
  margin-bottom: 60px;
}
.studio-body {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 7vw;
  margin-bottom: 100px;
  max-width: 1200px;
}
.studio-body .marker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 8px;
  border-top: 1px solid var(--accent);
  align-self: start;
}
.studio-body p {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 24, 'wght' 350;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--ink-2);
}
.studio-body p + p { margin-top: 20px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats .stat {
  padding: 36px 0;
  border-right: 1px solid var(--line);
  text-align: left;
  padding-right: 24px;
}
.stats .stat:last-child { border-right: 0; }
.stats .stat:not(:first-child) {
  padding-left: 24px;
}
.stat .val {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 96, 'wght' 600;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.stat .val em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.stat .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

/* ====== CONTACT ====== */
.contact {
  min-height: 100vh;
  padding-bottom: 24vh;
}
.contact h2 {
  font-size: clamp(54px, 10vw, 160px);
  max-width: 13ch;
  margin-bottom: 60px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin-top: 60px;
}
.contact-block .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.contact-block .val {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 48, 'wght' 400;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: color 0.3s;
}
.contact-block a.val:hover {
  color: var(--accent);
}
.contact-block .val .arrow {
  transition: transform 0.3s;
  font-family: serif;
  font-style: italic;
}
.contact-block a.val:hover .arrow {
  transform: translateX(6px);
}

.big-cta {
  margin-top: 80px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 28px 40px;
  background: var(--ink);
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.4s cubic-bezier(.2,.8,.2,1);
}
.big-cta:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(232, 152, 86, 0.3);
}
.big-cta .arrow {
  transition: transform 0.3s;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 18px;
}
.big-cta:hover .arrow { transform: translateX(8px) rotate(-3deg); }

/* ====== FOOTER ====== */
footer {
  position: relative;
  z-index: 5;
  padding: 60px 7vw 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: var(--bg);
}
footer .col a {
  display: inline-block;
  margin-right: 24px;
  color: var(--ink-2);
  transition: color 0.3s;
}
footer .col a:hover { color: var(--accent); }
footer .right { text-align: right; }

/* ====== Service page (inner pages) ====== */
.service-hero {
  padding-top: 20vh;
}
.service-hero .hero-meta { color: var(--accent); }
.service-hero .hero-display {
  font-size: clamp(56px, 10vw, 160px);
  max-width: 16ch;
}
.service-hero .sub { max-width: 540px; }

.lead {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 60, 'wght' 350;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 720px;
  margin-top: 24px;
}
.lead em {
  font-style: italic;
  color: var(--accent);
}

.includes-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.includes-list li {
  padding: 28px 24px 28px 0;
  border-bottom: 1px solid var(--line);
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 24, 'wght' 350;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.includes-list li:nth-child(even) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.includes-list li::before {
  content: "↦";
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 22px;
  line-height: 1.2;
  flex-shrink: 0;
}

.page-cta-wrap {
  display: flex;
  justify-content: flex-start;
  margin-top: 60px;
}

a.logo { text-decoration: none; }

/* ====== Back to top (per section) ====== */
.to-top {
  position: absolute;
  bottom: 6vh;
  right: 7vw;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--ink-dim);
  text-transform: uppercase;
  transition: color 0.4s ease;
  z-index: 6;
}
.to-top::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--ink-dim);
  transition: background 0.4s ease, width 0.4s cubic-bezier(.2,.8,.2,1);
}
.to-top .arrow {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.to-top:hover { color: var(--accent); }
.to-top:hover::before { background: var(--accent); width: 48px; }
.to-top:hover .arrow { transform: translateY(-6px); }

/* ====== Reveal animations ====== */
.reveal {
  display: block;
  overflow: hidden;
}
.reveal > .reveal-inner {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  will-change: transform, opacity;
}
.reveal-block { opacity: 0; transform: translateY(40px); will-change: transform, opacity; }
.reveal-fade { opacity: 0; will-change: opacity; }

/* ====== Contact modal ====== */
#contact-modal {
  position: fixed; inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vw;
}
#contact-modal.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(12, 10, 8, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-card {
  position: relative;
  max-width: 600px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 60px 56px 50px;
  animation: slideUp 0.5s cubic-bezier(.2,.8,.2,1);
}
.modal-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }
.modal-close svg { width: 14px; height: 14px; }

.modal-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.modal-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.6s infinite;
}

.modal-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 60, 'wght' 600;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.modal-title em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.modal-sub {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 460px;
}

#contact-form .field { margin-bottom: 22px; }
#contact-form label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 10px;
}
#contact-form input,
#contact-form select,
#contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 16px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 300;
  border-radius: 0;
  outline: none;
  transition: all 0.3s;
}
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(232, 152, 86, 0.04);
}
#contact-form textarea { resize: vertical; min-height: 100px; }
#contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23e89856' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
#contact-form select option { background: var(--bg-2); color: var(--ink); }

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.modal-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: all 0.3s;
}
.modal-btn.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.modal-btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.modal-btn.secondary {
  background: rgba(125, 220, 144, 0.08);
  color: #7ddc90;
  border-color: rgba(125, 220, 144, 0.4);
}
.modal-btn.secondary:hover {
  background: rgba(125, 220, 144, 0.16);
  border-color: #7ddc90;
}
.modal-btn .arrow { font-family: 'Fraunces', serif; font-style: italic; font-size: 13px; }

.modal-alt {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
}
.modal-alt a {
  color: var(--accent);
  border-bottom: 1px solid rgba(232, 152, 86, 0.3);
}
.modal-alt a:hover { border-color: var(--accent); }

/* ====== Side rail (left edge) ====== */
.side-rail {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  z-index: 10;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--ink-dim);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  display: flex;
  gap: 24px;
  align-items: center;
}
.side-rail .live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.4s infinite;
}

/* ====== Section counter (right edge) ====== */
.section-counter {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
}
.section-counter .dot {
  width: 28px;
  height: 1px;
  background: var(--ink-dim);
  transition: all 0.5s cubic-bezier(.2,.8,.2,1);
  pointer-events: auto;
  cursor: none;
}
.section-counter .dot:hover { background: var(--ink-2); }
.section-counter .dot.active {
  width: 48px;
  background: var(--accent);
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
  html, body { cursor: default; }
  #cursor { display: none; }
  header { padding: 18px 20px; }
  .menu-toggle {
    width: 46px;
    height: 46px;
  }
  .menu-overlay {
    clip-path: circle(0% at calc(100% - 36px) 38px);
    -webkit-clip-path: circle(0% at calc(100% - 36px) 38px);
  }
  .menu-overlay.open {
    clip-path: circle(160% at calc(100% - 36px) 38px);
    -webkit-clip-path: circle(160% at calc(100% - 36px) 38px);
  }
  .menu-inner { padding: 70px 6vw 36px; gap: 24px; }
  .menu-nav a {
    gap: 14px;
    padding: 16px 0;
  }
  .menu-nav .m-num { padding-top: 12px; }
  .menu-nav .m-arrow { font-size: 28px; }
  .menu-foot {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .menu-foot-col.right { align-items: flex-start; }
  section { padding: 10vh 5vw; }
  .scroll-hint, .hero-coord { left: 5vw; right: 5vw; bottom: 4vh; }
  .to-top { right: 5vw; bottom: 4vh; gap: 10px; }
  .to-top::before { width: 22px; }
  .hero-coord { display: none; }
  .manifesto-body,
  .studio-body { grid-template-columns: 1fr; gap: 30px; }
  .services-grid { grid-template-columns: 1fr; }
  .service { padding: 40px 0 !important; border-left: 0 !important; }
  .service::before { left: 0 !important; }
  .service:nth-child(even) { padding-left: 0; }
  .process-steps li { grid-template-columns: 1fr; gap: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat { border-right: 0; padding-left: 0 !important; }
  .stats .stat:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 20px; }
  .includes-list { grid-template-columns: 1fr; }
  .includes-list li { padding-left: 0 !important; border-left: 0 !important; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer .right { text-align: left; }
  .side-rail, .section-counter { display: none; }
  .modal-card { padding: 40px 24px; }
  .modal-actions { grid-template-columns: 1fr; }
}
