:root {
  --ink: #f3efe7;          /* warm marble white */
  --ink-dim: rgba(243, 239, 231, 0.62);
  --bg: #0b0a08;           /* charcoal espresso */
  --bg-2: #121009;
  --brass: #c89b5a;        /* brushed brass */
  --brass-bright: #e8c186;
  --copper: #a96b45;
  --line: rgba(200, 155, 90, 0.22);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Sora", system-ui, sans-serif;
}

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

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Fixed nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 36px;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition: background 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: linear-gradient(180deg, rgba(11,10,8,0.92), rgba(11,10,8,0.75));
  backdrop-filter: blur(12px);
  padding: 14px 36px;
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-decoration: none;
}
.nav-brand em { color: var(--brass); font-style: normal; }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--brass-bright); }
.nav-cta {
  border: 1px solid var(--brass);
  color: var(--brass-bright);
  padding: 10px 22px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: var(--brass); color: var(--bg); }

/* ---------- Cinematic scrub sections ---------- */
.cinematic { position: relative; height: 520vh; }
.cinematic.short { height: 420vh; }
.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.sticky canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(5, 4, 2, 0.66) 100%),
    linear-gradient(180deg, rgba(5,4,2,0.55) 0%, transparent 24%, transparent 70%, rgba(5,4,2,0.75) 100%);
}

/* ---------- Overlay copy ---------- */
.overlay {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  width: 100%;
}
.reveal-line {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 92vw;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 7vw, 6.2rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
  opacity: 0;
  text-shadow: 0 2px 60px rgba(0, 0, 0, 0.85);
  will-change: opacity, transform;
}
.reveal-line .kicker {
  display: block;
  font-family: var(--sans);
  font-size: clamp(0.65rem, 1.1vw, 0.8rem);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 18px;
  font-weight: 600;
}
.reveal-line em { color: var(--brass-bright); font-style: italic; }

/* ---------- Corner chrome ---------- */
.telemetry {
  position: absolute;
  z-index: 12;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(200, 155, 90, 0.75);
}
.telemetry b { color: var(--ink); font-weight: 600; }
.tl { top: 96px; left: 36px; }
.tr { top: 96px; right: 36px; }
.bl { bottom: 72px; left: 36px; }
.br { bottom: 72px; right: 36px; }

.progress {
  position: absolute;
  left: 36px; right: 36px; bottom: 48px;
  height: 1px;
  background: rgba(243, 239, 231, 0.14);
  z-index: 12;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--copper), var(--brass-bright));
  box-shadow: 0 0 14px rgba(200, 155, 90, 0.7);
}
.scroll-hint {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(243, 239, 231, 0.55);
  animation: bob 1.8s ease-in-out infinite;
  transition: opacity 0.4s;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ---------- Shared section shell ---------- */
.panel {
  position: relative;
  padding: 140px 36px;
  max-width: 1240px;
  margin: 0 auto;
}
.kicker-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.kicker-row .rule { flex: 0 0 56px; height: 1px; background: var(--brass); }
.kicker-row span {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brass-bright);
  font-weight: 600;
}
h2.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.12;
  max-width: 18ch;
}
h2.display em { color: var(--brass-bright); font-style: italic; }
.lede {
  margin-top: 26px;
  max-width: 56ch;
  color: var(--ink-dim);
  font-size: 1.06rem;
  line-height: 1.8;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* ---------- 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: 64px;
  width: max-content;
  animation: scroll-x 30s linear infinite;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}
.marquee-track i { color: var(--brass); font-style: normal; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Services grid ---------- */
.services-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 34px 50px;
  position: relative;
  transition: background 0.4s;
}
.service:hover { background: rgba(200, 155, 90, 0.05); }
.service .num {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--brass);
}
.service h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  margin: 18px 0 14px;
}
.service p { color: var(--ink-dim); font-size: 0.95rem; line-height: 1.75; }

/* ---------- Stats ---------- */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 90px 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat { text-align: left; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 500;
  color: var(--brass-bright);
  line-height: 1;
}
.stat-label {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- Process ---------- */
.process-list { margin-top: 70px; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 90px 1fr 2fr;
  gap: 30px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.step .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--brass);
}
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.step p { color: var(--ink-dim); line-height: 1.75; font-size: 0.98rem; }

/* ---------- CTA ---------- */
.cta {
  min-height: 92vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 30px;
  padding: 80px 24px;
  background:
    radial-gradient(70% 55% at 50% 100%, rgba(200, 155, 90, 0.13), transparent 65%),
    var(--bg);
}
.cta .kicker {
  font-size: 11px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--brass-bright);
  font-weight: 600;
}
.cta h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.08;
}
.cta h2 em { color: var(--brass-bright); font-style: italic; }
.cta p { color: var(--ink-dim); max-width: 46ch; margin: 0 auto; line-height: 1.8; }
.btn-row { display: flex; gap: 18px; justify-content: center; margin-top: 10px; }
.btn {
  display: inline-block;
  padding: 16px 38px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}
.btn.solid { background: var(--brass); color: var(--bg); }
.btn.solid:hover { background: var(--brass-bright); }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--brass); color: var(--brass-bright); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 44px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-dim);
  flex-wrap: wrap;
  gap: 14px;
}
footer .brand { font-family: var(--serif); color: var(--ink); font-size: 14px; letter-spacing: 0.18em; }
footer .brand em { color: var(--brass); font-style: normal; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); padding: 60px 24px; }
  .step { grid-template-columns: 50px 1fr; }
  .step p { grid-column: 2; }
  .panel { padding: 90px 24px; }
  .tl, .tr { top: 76px; }
  .telemetry { font-size: 9px; letter-spacing: 0.2em; }
  .tl, .bl { left: 20px; }
  .tr, .br { right: 20px; }
  .progress { left: 20px; right: 20px; }
}
