/* =========================================================
   Kraft & Leitung — Design Tokens
   ========================================================= */
:root {
  --bg: #0a0d14;
  --bg-2: #0d111a;
  --surface: #11151f;
  --surface-2: #161b27;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink: #ecebe5;
  --ink-dim: #a8adb8;
  --ink-mute: #6b7180;
  --amber: oklch(0.82 0.16 75);
  --amber-soft: oklch(0.82 0.16 75 / 0.15);
  --amber-glow: oklch(0.82 0.16 75 / 0.35);
  --ice: oklch(0.92 0.035 230);
  --ice-soft: oklch(0.92 0.035 230 / 0.12);
  --off: #f5f3ec;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  line-height: 1.5;
}

/* Background atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, oklch(0.82 0.16 75 / 0.06), transparent 60%),
    radial-gradient(70% 60% at 0% 30%, oklch(0.55 0.12 240 / 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(80% 60% at 50% 30%, black, transparent 90%);
}

/* =========================================================
   Layout shell
   ========================================================= */
.shell { position: relative; z-index: 1; }
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { position: relative; padding: clamp(96px, 14vh, 160px) 0; }

/* Section ribbon (chapter marker) */
.chapter {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 32px;
}
.chapter::before {
  content: "";
  width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent);
}
.chapter span:last-child { color: var(--ink-mute); }

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.h-display {
  font-size: clamp(48px, 7.6vw, 116px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.h-display em {
  font-style: normal;
  background: linear-gradient(180deg, var(--amber) 0%, oklch(0.7 0.15 60) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h-section {
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.04;
  max-width: 22ch;
}
.h-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.lead {
  font-size: clamp(17px, 1.2vw, 19px);
  color: var(--ink-dim);
  max-width: 56ch;
  line-height: 1.6;
}
.muted { color: var(--ink-mute); }
.mono { font-family: var(--font-mono); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
  transition: all .35s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn:hover { border-color: var(--amber); color: var(--amber); }
.btn-primary {
  background: linear-gradient(180deg, oklch(0.85 0.16 75) 0%, oklch(0.74 0.16 70) 100%);
  color: #1a1305;
  border-color: transparent;
  box-shadow: 0 0 0 1px oklch(0.7 0.15 70), 0 14px 40px oklch(0.82 0.16 75 / 0.18);
}
.btn-primary:hover {
  color: #1a1305;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px oklch(0.7 0.15 70), 0 18px 50px oklch(0.82 0.16 75 / 0.3);
}
.btn-primary .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1a1305;
  box-shadow: 0 0 0 4px rgba(26,19,5,0.15);
}
.btn .arrow { transition: transform .3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* =========================================================
   Top nav
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 13, 20, 0.75);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, oklch(0.82 0.16 75), oklch(0.66 0.14 60));
  position: relative;
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 6px 22px oklch(0.82 0.16 75 / 0.25);
}
.brand-mark svg { width: 16px; height: 16px; color: #1a1305; }
.brand-name {
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
}
.brand-name span { color: var(--ink-mute); font-weight: 400; }
.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .25s ease, background .25s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.nav-cta { display: none; }
@media (min-width: 980px) { .nav-cta { display: inline-flex; } }
@media (max-width: 880px) { .nav-links { display: none; } }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-meta .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--amber-soft); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
.hero-sub {
  margin-top: 36px;
  font-size: clamp(17px, 1.25vw, 20px);
  color: var(--ink-dim);
  max-width: 52ch;
  line-height: 1.55;
}
.hero-cta {
  margin-top: 56px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
@media (max-width: 700px) {
  .hero-trust { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
}
.trust-item {
  padding-right: 16px;
}
.trust-item:not(:last-child) { border-right: 1px solid var(--line); padding-left: 0; }
.trust-item:not(:first-child) { padding-left: 22px; }
.trust-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.trust-value {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 620px;
  justify-self: end;
  width: 100%;
}
@media (max-width: 980px) { .hero-visual { justify-self: stretch; max-width: 100%; } }
.hero-visual .blueprint {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.floor-card {
  position: absolute;
  background: rgba(17, 21, 31, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  animation: floatY 4s ease-in-out infinite;
}
.floor-card.f1 { top: 12%; left: 6%; animation-delay: 0s; }
.floor-card.f2 { top: 32%; right: 4%; animation-delay: -1.2s; }
.floor-card.f3 { bottom: 30%; left: 2%; animation-delay: -2s; }
.floor-card.f4 { bottom: 8%; right: 8%; animation-delay: -3s; }
.floor-card .lbl-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}
.floor-card.cool .lbl-dot { background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.floor-card .lbl-mute { color: var(--ink-mute); }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Hero floor plan SVG nodes */
.node {
  fill: var(--bg);
  stroke: var(--amber);
  stroke-width: 1.6;
}
.node-glow {
  fill: var(--amber);
  filter: drop-shadow(0 0 8px var(--amber));
}
.node-cool {
  fill: var(--ice);
  filter: drop-shadow(0 0 6px var(--ice));
}

/* =========================================================
   Vertical energy line (full-page leitmotif)
   ========================================================= */
.energy-rail {
  position: fixed;
  left: 32px;
  top: 110px;
  bottom: 60px;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0,
    var(--line) 6%,
    var(--line-strong) 50%,
    var(--line) 94%,
    transparent 100%);
  z-index: 5;
  pointer-events: none;
}
.energy-rail .er-fill {
  position: absolute;
  left: -0.5px;
  top: 0;
  width: 2px;
  height: var(--er-fill, 0%);
  background: linear-gradient(180deg,
    oklch(0.82 0.16 75 / 0) 0%,
    oklch(0.82 0.16 75 / 0.4) 18%,
    oklch(0.82 0.16 75) 60%,
    oklch(0.82 0.16 75) 100%);
  box-shadow: 0 0 10px var(--amber-glow);
  transition: height .15s linear;
}
.energy-rail .er-pulse {
  position: absolute;
  left: 0;
  top: calc(var(--er-fill, 0%) - 6px);
  transform: translateX(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 18px var(--amber), 0 0 0 5px var(--amber-soft);
  transition: top .15s linear;
}
.energy-rail .er-pulse::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--amber);
  opacity: 0.4;
  animation: erRing 2.2s ease-out infinite;
}
@keyframes erRing {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}
.energy-rail .er-cap-top,
.energy-rail .er-cap-bottom {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
  writing-mode: vertical-rl;
  background: var(--bg);
  padding: 8px 2px;
}
.energy-rail .er-cap-top { top: 0; }
.energy-rail .er-cap-bottom { top: auto; bottom: 0; transform: translate(-50%, 50%); }

.er-chapter {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 6px 0;
  margin-left: -8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(168, 173, 184, 0.55);
  white-space: nowrap;
  transition: color .35s ease, transform .25s ease;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
}
.er-chapter .er-tick {
  width: 16px; height: 1px;
  background: var(--line-strong);
  flex: none;
  transition: background .35s ease, width .35s ease;
}
/* node is no longer rendered — keep rule as safety net */
.er-chapter .er-node { display: none; }
.er-chapter .er-node {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid rgba(168, 173, 184, 0.6);
  transition: all .35s ease;
  margin-left: -5px;
  flex: none;
}
.er-chapter .er-label {
  opacity: 1;
  transform: translateX(0);
  transition: opacity .25s ease, color .25s ease;
  pointer-events: none;
}
.er-chapter.passed { color: rgba(236, 235, 229, 0.7); }
.er-chapter.passed .er-node {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 10px var(--amber-glow);
}
.er-chapter.passed .er-tick { background: var(--amber); }
.er-chapter.active .er-node {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 0 5px var(--amber-soft), 0 0 16px var(--amber);
  transform: scale(1.25);
}
.er-chapter.active .er-tick { background: var(--amber); width: 22px; }
.er-chapter.active { color: var(--amber); font-weight: 600; }
.er-chapter:hover { color: var(--ink); transform: translateY(-50%) translateX(2px); }
.er-chapter:hover .er-tick { background: var(--ink-dim); width: 22px; }
.er-chapter:hover .er-node { border-color: var(--ink-dim); }

@media (max-width: 1100px) {
  .energy-rail { display: none; }
}

/* =========================================================
   Problem chapter
   ========================================================= */
.problem { background: linear-gradient(180deg, var(--bg) 0%, #08090e 100%); }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 980px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-list { display: flex; flex-direction: column; gap: 2px; margin-top: 40px; }
.problem-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  transition: padding .3s ease;
}
.problem-item:last-child { border-bottom: 1px solid var(--line); }
.problem-item .pi-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}
.problem-item .pi-text {
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.problem-item .pi-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
}
.problem-item:hover { padding-left: 12px; }
.problem-item:hover .pi-text { color: var(--amber); }
.problem-item:hover .pi-tag { border-color: var(--amber); color: var(--amber); }

.fusebox {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,0.04), transparent 50%),
    var(--surface);
  overflow: hidden;
  padding: 32px;
}
.fusebox .fb-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.fusebox .fb-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.fb-switch {
  aspect-ratio: 1 / 2.6;
  border-radius: 4px;
  background: linear-gradient(180deg, #2a2e3a 0%, #1a1d26 100%);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.fb-switch::before {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  top: 30%;
  width: 50%;
  height: 18%;
  background: #4a4e58;
  border-radius: 2px;
}
.fb-switch.warn::before { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.fb-switch.cold::before { background: var(--ice); }
.fb-warning {
  position: absolute;
  background: rgba(10, 13, 20, 0.88);
  border: 1px solid var(--amber);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--amber);
  white-space: nowrap;
  box-shadow: 0 0 20px var(--amber-soft);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .8s ease, transform .8s ease;
}
.fusebox.in-view .fb-warning { opacity: 1; transform: translateY(0); }
.fusebox.in-view .fb-warning.w2 { transition-delay: .3s; }
.fusebox.in-view .fb-warning.w3 { transition-delay: .6s; }
.fb-warning .arr { color: var(--ink-mute); margin-right: 6px; }
.fb-warning.w1 { top: 28%; right: 12%; }
.fb-warning.w2 { top: 50%; left: 8%; }
.fb-warning.w3 { bottom: 18%; right: 22%; }

/* =========================================================
   Analysis (sticky blueprint)
   ========================================================= */
.analysis { background: var(--bg); }
.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}
@media (max-width: 980px) { .analysis-grid { grid-template-columns: 1fr; } }
.bp-sticky {
  position: sticky;
  top: 100px;
  height: 580px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(255,255,255,0.025), transparent 70%),
    var(--surface);
  overflow: hidden;
}
.bp-sticky svg { width: 100%; height: 100%; display: block; }
.bp-header {
  position: absolute;
  top: 20px; left: 20px; right: 20px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.bp-footer {
  position: absolute;
  bottom: 18px; left: 20px; right: 20px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.steps-list { display: flex; flex-direction: column; }
.step-block {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  opacity: 0.35;
  transition: opacity .6s ease;
}
.step-block.active { opacity: 1; }
.step-block:first-child { border-top: 0; padding-top: 0; }
.step-block .s-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--amber);
}
.step-block h3 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.step-block p { color: var(--ink-dim); font-size: 15.5px; line-height: 1.6; }
.step-stats {
  display: flex; gap: 22px; margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.step-stats b { color: var(--ink); font-weight: 500; }

/* Blueprint room paths */
.bp-room { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.bp-wire { fill: none; stroke: var(--amber); stroke-width: 1.4; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 1.4s ease; }
.bp-wire.in-view { stroke-dashoffset: 0; }
.bp-node { fill: var(--bg); stroke: var(--amber); stroke-width: 1.4; opacity: 0; transition: opacity .6s ease; }
.bp-node.cool { stroke: var(--ice); }
.bp-node.in-view { opacity: 1; }
.bp-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--ink-mute);
  opacity: 0;
  transition: opacity .6s ease;
}
.bp-label.in-view { opacity: 1; }

/* =========================================================
   Services — 6 modules
   ========================================================= */
.services { background: linear-gradient(180deg, #08090e 0%, var(--bg) 100%); }
.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 72px;
}
@media (max-width: 980px) { .services-head { grid-template-columns: 1fr; gap: 24px; } }

.system-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 980px) { .system-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .system-grid { grid-template-columns: 1fr; } }

.module {
  background: var(--bg);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transition: background .35s ease;
  overflow: hidden;
}
.module.span-3 { grid-column: span 3; }
.module.span-2 { grid-column: span 2; }
.module.span-4 { grid-column: span 4; }
@media (max-width: 980px) {
  .module.span-3, .module.span-2, .module.span-4 { grid-column: span 1; }
}
.module::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 30% 30%, var(--amber-soft), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.module:hover::before { opacity: 1; }
.module:hover { background: var(--bg-2); }

.m-top { display: flex; justify-content: space-between; align-items: flex-start; }
.m-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
}
.m-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--amber);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.module:hover .m-icon {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
}
.m-icon svg { width: 18px; height: 18px; }

.m-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin-top: 48px;
  margin-bottom: 12px;
}
.m-desc {
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.55;
  max-width: 38ch;
}
.m-meta {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* =========================================================
   Transformation (before/after)
   ========================================================= */
.transform { background: var(--bg); }
.transform-head { margin-bottom: 56px; max-width: 720px; }

.ba-compare {
  position: relative;
  aspect-ratio: 21 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  user-select: none;
  cursor: ew-resize;
}
@media (max-width: 760px) { .ba-compare { aspect-ratio: 4 / 5; } }
.ba-side {
  position: absolute;
  inset: 0;
  padding: clamp(24px, 4vw, 48px);
}
.ba-side.before {
  background:
    radial-gradient(60% 40% at 22% 28%, rgba(255,255,255,0.04), transparent 70%),
    linear-gradient(135deg, #0d0f15, #0a0c12);
  /* keep content in the LEFT half so the clipped reveal doesn't fragment text */
  padding-right: 52%;
}
.ba-side.after {
  background:
    radial-gradient(60% 40% at 78% 28%, oklch(0.82 0.16 75 / 0.1), transparent 70%),
    linear-gradient(135deg, #0e1219, #11151f);
  clip-path: inset(0 0 0 var(--split, 50%));
  /* mirror: content lives in the RIGHT half */
  padding-left: 52%;
  padding-right: clamp(24px, 4vw, 48px);
}
@media (max-width: 760px) {
  .ba-side.before { padding-right: clamp(24px, 4vw, 48px); padding-bottom: 52%; }
  .ba-side.after { padding-left: clamp(24px, 4vw, 48px); padding-top: 52%; clip-path: inset(var(--split, 50%) 0 0 0); }
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--split, 50%);
  width: 3px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--amber) 12%,
    var(--amber) 88%,
    transparent 100%);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 16px var(--amber-glow);
}
.ba-handle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 60px; height: 60px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(180deg, oklch(0.86 0.16 75) 0%, oklch(0.74 0.16 70) 100%);
  border: 2px solid oklch(0.62 0.14 70);
  box-shadow:
    0 0 0 6px rgba(245, 181, 68, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.10) inset,
    0 16px 40px var(--amber-glow);
  animation: handlePulse 2.4s ease-in-out infinite;
}
.ba-handle::before {
  content: "\2039 \2009\2009 \203A";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #1a1305;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
}
@keyframes handlePulse {
  0%, 100% {
    box-shadow:
      0 0 0 6px rgba(245, 181, 68, 0.20),
      0 0 0 1px rgba(255, 255, 255, 0.10) inset,
      0 16px 40px var(--amber-glow);
  }
  50% {
    box-shadow:
      0 0 0 14px rgba(245, 181, 68, 0.04),
      0 0 0 1px rgba(255, 255, 255, 0.10) inset,
      0 16px 40px var(--amber-glow);
  }
}
.ba-compare:hover .ba-handle::after { animation-duration: 1.2s; }
.ba-compare.is-dragging .ba-handle::after { animation: none; transform: translate(-50%, -50%) scale(1.08); }

/* "Drag me" hint badge above the handle on first load */
.ba-handle-hint {
  position: absolute;
  left: var(--split, 50%);
  top: 50%;
  transform: translate(-50%, calc(-50% - 60px));
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(10, 13, 20, 0.92);
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 24px var(--amber-glow);
  animation: hintBob 2s ease-in-out infinite;
  transition: opacity .4s ease;
  z-index: 5;
}
.ba-handle-hint::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -6px;
  width: 10px; height: 10px;
  background: rgba(10, 13, 20, 0.92);
  border-right: 1px solid var(--amber);
  border-bottom: 1px solid var(--amber);
  transform: translateX(-50%) rotate(45deg);
}
.ba-compare.has-interacted .ba-handle-hint { opacity: 0; }
@keyframes hintBob {
  0%, 100% { transform: translate(-50%, calc(-50% - 60px)); }
  50% { transform: translate(-50%, calc(-50% - 68px)); }
}
.ba-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ba-tag .d { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); }
.ba-side.after .ba-tag .d { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.ba-side.after .ba-tag { color: var(--amber); }
.ba-title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 24px;
}
.ba-list { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--ink-dim); max-width: 32ch; }
.ba-list .li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.ba-list .li .mk {
  margin-top: 7px;
  width: 8px; height: 1px;
  background: var(--ink-mute);
  flex: none;
}
.ba-side.after .ba-list .li .mk { background: var(--amber); height: 2px; }

/* Schematic accent */
.ba-side .schematic {
  position: absolute;
  bottom: clamp(20px, 4vw, 44px);
  width: clamp(180px, 32%, 300px);
  opacity: 0.85;
  pointer-events: none;
}
.ba-side.before .schematic { right: auto; left: clamp(24px, 4vw, 48px); bottom: clamp(20px, 4vw, 44px); display: none; }
.ba-side.after .schematic { left: clamp(24px, 4vw, 48px); }
@media (max-width: 760px) {
  .ba-side .schematic { display: none; }
}
.ba-side .schematic svg { width: 100%; height: auto; }


/* =========================================================
   Transformation — paired diff (replaces before/after slider)
   ========================================================= */
.transform-head { margin-bottom: 64px; max-width: 720px; }

.transform-pairs {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.t-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  transition: background .25s ease;
  position: relative;
}
.t-row:last-child { border-bottom: 0; }
.t-row:hover { background: rgba(245, 181, 68, 0.025); }
.t-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: transparent;
  transition: background .25s ease;
}
.t-row:hover::before { background: var(--amber); }

.t-col {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15.5px;
  line-height: 1.5;
}
.t-mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  flex: none;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  margin-top: 0;
}
.t-before .t-mark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  color: var(--ink-mute);
}
.t-after .t-mark {
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 181, 68, 0.06);
}
.t-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.t-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.t-after .t-tag { color: var(--amber); }
.t-line {
  font-size: 15.5px;
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.t-before .t-line {
  color: var(--ink-mute);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.18);
  text-decoration-thickness: 1px;
}
.t-after .t-line {
  color: var(--ink);
}

.t-arrow {
  display: grid;
  place-items: center;
  color: var(--ink-mute);
  transition: color .3s ease;
}
.t-arrow svg {
  width: 56px; height: 16px;
  transition: transform .3s ease;
}
.t-row:hover .t-arrow { color: var(--amber); }
.t-row:hover .t-arrow svg { transform: translateX(4px); }

/* Foot: summary stripe under the pairs */
.transform-foot {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.tf-col {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tf-col:first-child { text-align: left; }
.tf-col:last-child { text-align: right; align-items: flex-end; }
.tf-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.tf-col:last-child .tf-label { color: var(--amber); }
.tf-value {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.tf-divider {
  background: var(--line);
}

@media (max-width: 760px) {
  .t-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 18px;
  }
  .t-arrow svg {
    transform: rotate(90deg);
    width: 32px; height: 12px;
  }
  .t-row:hover .t-arrow svg { transform: rotate(90deg) translateY(-4px); }
  .transform-foot { grid-template-columns: 1fr 1fr; }
  .tf-divider { display: none; }
  .tf-col:last-child { text-align: right; }
}

/* =========================================================
   Projects
   ========================================================= */
.projects { background: linear-gradient(180deg, var(--bg) 0%, #08090e 100%); }
.projects-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 72px;
}
@media (max-width: 980px) { .projects-head { grid-template-columns: 1fr; } }

.project {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 72px);
  padding: clamp(48px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.project:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 980px) { .project { grid-template-columns: 1fr; } }
.project.reverse .pj-vis { order: 2; }
@media (max-width: 980px) { .project.reverse .pj-vis { order: 0; } }

.pj-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.pj-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin-bottom: 28px;
  max-width: 18ch;
}
.pj-rows { display: flex; flex-direction: column; gap: 22px; }
.pj-row { display: grid; grid-template-columns: 120px 1fr; gap: 18px; }
.pj-row .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 3px;
}
.pj-row .v { font-size: 15px; color: var(--ink-dim); line-height: 1.55; }
.pj-stats {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.pj-stat-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.pj-stat-v { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.pj-stat-v .u { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); margin-left: 4px; }

.pj-vis {
  aspect-ratio: 5 / 4;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.pj-vis svg { width: 100%; height: 100%; }
.pj-vis .pj-tag {
  position: absolute;
  top: 18px; left: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.pj-vis .pj-tag-r {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

/* =========================================================
   Quality
   ========================================================= */
.quality { background: var(--bg); }
.quality-head { margin-bottom: 64px; max-width: 720px; }
.quality-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 880px) { .quality-strip { grid-template-columns: 1fr; } }
.q-card {
  background: var(--bg);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  position: relative;
}
.q-card .q-illustr {
  height: 110px;
  margin-bottom: 8px;
  position: relative;
}
.q-card .q-illustr svg { width: 100%; height: 100%; }
.q-card h4 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin-bottom: 4px;
}
.q-card p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.55; }
.q-card .q-num {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}

/* =========================================================
   Process / Timeline
   ========================================================= */
.process {
  background: linear-gradient(180deg, var(--bg) 0%, #08090e 100%);
}
.process-head { margin-bottom: 80px; max-width: 720px; }
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 880px) { .timeline { grid-template-columns: 1fr; gap: 32px; } }
.timeline::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
@media (max-width: 880px) { .timeline::before { display: none; } }
.timeline-fill {
  position: absolute;
  top: 30px;
  left: 0;
  height: 1px;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber-glow);
  width: 0;
  transition: width 1.4s cubic-bezier(.4,.1,.2,1);
}
.timeline.in-view .timeline-fill { width: 100%; }
@media (max-width: 880px) { .timeline-fill { display: none; } }

.tl-step {
  padding-right: 28px;
  position: relative;
}
.tl-step .dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  margin-bottom: 36px;
  margin-left: -2px;
  transition: all .5s ease;
  transition-delay: var(--delay, 0s);
}
.timeline.in-view .tl-step .dot {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 0 5px var(--amber-soft), 0 0 16px var(--amber-glow);
}
.tl-step .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.tl-step h4 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.tl-step p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.55; max-width: 28ch; }
.tl-step .dur {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials { background: var(--bg); }
.testimonial-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 64px;
}
@media (max-width: 980px) { .testimonial-grid { grid-template-columns: 1fr; } }
.t-card {
  background: var(--bg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  position: relative;
}
.t-card .quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.8;
  color: var(--amber);
  margin-bottom: 18px;
  font-weight: 500;
}
.t-card .t-quote {
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.t-card.featured .t-quote { font-size: 22px; letter-spacing: -0.015em; line-height: 1.4; }
.t-meta {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.t-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.t-role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.t-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface-2), var(--bg));
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  display: grid; place-items: center;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}

/* =========================================================
   CTA + form
   ========================================================= */
.cta-final {
  background: linear-gradient(180deg, #08090e 0%, var(--bg) 100%);
  position: relative;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 980px) { .cta-grid { grid-template-columns: 1fr; } }
.cta-info h2 { margin-bottom: 28px; }
.cta-info .lead { margin-bottom: 40px; }
.cta-channels {
  display: flex; flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
}
.ch-row {
  background: var(--bg);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 14px;
}
.ch-row .ch-k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.ch-row .ch-v { font-size: 16px; color: var(--ink); letter-spacing: -0.005em; }
.ch-row .ch-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex; align-items: center; gap: 8px;
}
.ch-row .ch-meta .d {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 8px var(--amber);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.cf-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 28px;
  display: flex; justify-content: space-between;
}
.cf-head .step { color: var(--amber); }
.field { position: relative; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 580px) { .field-row { grid-template-columns: 1fr; } }
.field label {
  position: absolute;
  top: 18px; left: 14px;
  font-size: 14px;
  color: var(--ink-mute);
  pointer-events: none;
  transition: all .25s ease;
  font-family: var(--font-display);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  padding: 24px 14px 10px;
  border-radius: 10px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field textarea { min-height: 110px; resize: vertical; padding-top: 28px; }
.field select { padding-top: 22px; padding-bottom: 8px; appearance: none; cursor: pointer; }
.field select option { background: var(--bg); color: var(--ink); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field.has-value label {
  top: 8px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  font-family: var(--font-mono);
}

.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 22px;
}
.chip {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s ease;
}
.chip:hover { border-color: var(--ink-dim); color: var(--ink); }
.chip.active {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-soft);
  box-shadow: 0 0 14px var(--amber-soft);
}

.cf-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cf-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 8px;
}
.cf-note .d {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 6px var(--amber);
}

.cf-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}
.contact-form.sent .cf-success { display: flex; }
.contact-form.sent .cf-form-body { display: none; }
.cf-success .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  color: var(--amber);
  display: grid; place-items: center;
  margin-bottom: 20px;
  box-shadow: 0 0 24px var(--amber-glow);
}
.cf-success h3 { font-size: 24px; margin-bottom: 8px; letter-spacing: -0.02em; }
.cf-success p { color: var(--ink-dim); max-width: 36ch; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 36px;
  background: #08090e;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 30ch; }
.footer-brand .footer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.footer-brand p { color: var(--ink-dim); font-size: 14px; line-height: 1.55; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
  font-weight: 400;
}
.footer-col p, .footer-col a {
  font-size: 14px;
  color: var(--ink-dim);
  display: block;
  margin-bottom: 6px;
  text-decoration: none;
  line-height: 1.5;
}
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 14px;
}

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s cubic-bezier(.2,.6,.2,1), transform .9s cubic-bezier(.2,.6,.2,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

/* hero stroke draw animation */
.draw-path {
  stroke-dasharray: var(--len, 2000);
  stroke-dashoffset: var(--len, 2000);
  animation: drawIn 2.6s cubic-bezier(.4,.1,.2,1) .3s forwards;
}
@keyframes drawIn {
  to { stroke-dashoffset: 0; }
}
.pulse-dot {
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* moving pulse along path */
.path-pulse {
  fill: var(--amber);
  filter: drop-shadow(0 0 8px var(--amber));
}

/* Count-up class */
.count { font-variant-numeric: tabular-nums; }

/* Selection */
::selection { background: var(--amber); color: #1a1305; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #2a2e3a; }
