/* ============================================================
   EVERBUILT STUDIO — design system v2 "NIGHT BUILD"
   Near-black warm canvas, electric orange accent, oversized
   editorial type, persistent 3D scene behind the content.
   ============================================================ */

:root {
  --paper: #0B0908;            /* page background */
  --surface: rgba(24, 21, 17, 0.92);
  --card: #16130F;
  --ink: #F2EDE4;              /* primary text */
  --ink-soft: #C9C1B2;
  --muted: #8F8778;
  --line: rgba(242, 237, 228, 0.13);
  --line-strong: rgba(242, 237, 228, 0.28);
  --accent: #FF5A28;
  --accent-dark: #E6491C;
  --accent-soft: rgba(255, 90, 40, 0.12);
  --ok: #93E3B8;
  --radius: 12px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

/* NOTE: no `scroll-behavior: smooth` — it fights Lenis (page freezes). */

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 110% 70% at 75% -10%, #191410 0%, transparent 60%),
    var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain over everything */
body::before {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); }
  40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-2%); }
  80% { transform: translate(3%,3%); }
}

/* the persistent 3D scene */
#scene-canvas {
  position: fixed; inset: 0; z-index: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
}

/* all content floats above the scene */
.nav, section, header.hero, header.page-hero, footer, .marquee { position: relative; z-index: 2; }

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 28px; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.35rem; line-height: 1.3; }

.kicker {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.kicker::before {
  content: "";
  width: 40px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 48ch; }
.muted { color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 9, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.35s ease, background 0.35s ease;
}
.nav-hidden { transform: translateY(-100%); }
.nav-solid { background: rgba(11, 9, 8, 0.9); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.3rem;
  text-decoration: none; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.brand svg { flex-shrink: 0; }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: var(--paper) !important;
  padding: 11px 22px; border-radius: 999px; font-weight: 600 !important;
  transition: background 0.15s, color 0.15s;
}
.nav-cta:hover { background: var(--accent); color: #fff !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { display: block; }
.nav-toggle svg path { stroke: var(--ink); }

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(11, 9, 8, 0.97); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
    padding: 20px 28px 26px; gap: 20px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: 16px 32px; border-radius: 999px;
  border: 0; cursor: pointer; font-family: var(--font-body);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s, color 0.15s;
  will-change: transform;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 34px rgba(255, 90, 40, 0.35);
}
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 0 50px rgba(255, 90, 40, 0.5); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-head { max-width: 680px; margin-bottom: 64px; }
.section-head p { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  padding: 60px 0;
  min-height: 94vh;
  display: flex; align-items: center;
  overflow: visible;
}
.hero-grid { display: none; } /* the 3D scene replaced the flat grid */
.hero-inner { position: relative; width: 100%; }
.hero h1 { max-width: 14ch; color: var(--ink); text-shadow: 0 2px 40px rgba(11, 9, 8, 0.8); }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { margin: 30px 0 40px; text-shadow: 0 1px 20px rgba(11, 9, 8, 0.9); }
.hero .lede strong { color: var(--ink); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* legacy class kept for compat — everything is dark now */
.hero-dark { background: transparent; }

.hw-wrap { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hw { display: inline-block; will-change: transform; }

.proof-strip {
  margin-top: 84px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.proof-strip > div { padding: 28px 26px 4px; border-left: 1px solid var(--line); }
.proof-strip > div:first-child { border-left: 0; padding-left: 0; }
.proof-num {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  color: var(--ink); line-height: 1;
}
.proof-num small { font-size: 1.1rem; color: var(--accent); }
.proof-label { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) {
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip > div { border-left: 0; padding-left: 0; }
}

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); pointer-events: none;
}
.scroll-hint i {
  width: 1px; height: 38px; background: linear-gradient(var(--accent), transparent);
  display: block; animation: hint-drop 1.6s ease-in-out infinite;
}
@keyframes hint-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--accent); color: #16100C;
  overflow: hidden; padding: 16px 0;
  transform: rotate(-1.4deg) scale(1.03);
  margin: 20px 0;
  z-index: 3;
}
.marquee-track {
  display: flex; gap: 52px; width: max-content;
  animation: marquee-scroll 26s linear infinite;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  white-space: nowrap;
}
.marquee-track span { display: flex; align-items: center; gap: 52px; }
.marquee-track em { color: #16100C; font-style: normal; opacity: 0.55; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Remake band ---------- */
.remake {
  background: linear-gradient(140deg, rgba(30, 24, 18, 0.96), rgba(18, 14, 11, 0.96));
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 24px; padding: 72px 64px;
  position: relative; overflow: hidden;
  backdrop-filter: blur(4px);
}
.remake::after {
  content: ""; position: absolute; right: -90px; top: -90px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 40, 0.28), transparent 70%);
}
.remake h2 { color: var(--ink); max-width: 20ch; position: relative; }
.remake p { color: var(--ink-soft); max-width: 54ch; margin: 20px 0 32px; position: relative; }
.remake .kicker { position: relative; }
@media (max-width: 680px) { .remake { padding: 44px 28px; } }

.remake-form {
  display: flex; gap: 12px; flex-wrap: wrap; position: relative;
  max-width: 680px;
}
.remake-form input[type="text"], .remake-form input[type="email"] {
  flex: 1 1 190px; padding: 15px 20px;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: rgba(242, 237, 228, 0.06); color: var(--ink);
  font-family: var(--font-body); font-size: 0.95rem;
}
.remake-form input::placeholder { color: var(--muted); }
.remake-form input:focus { outline: none; border-color: var(--accent); }
.remake-note {
  font-size: 0.82rem !important; color: var(--muted) !important;
  margin: 14px 0 0 !important; position: relative;
}

/* ---------- Case study card ---------- */
.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr;
  backdrop-filter: blur(4px);
  will-change: transform;
}
.case-media {
  background: linear-gradient(135deg, #17273d 0%, #0d1524 100%);
  min-height: 440px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.case-media .browser-mock {
  width: 86%; background: #fff; border-radius: 10px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.browser-bar {
  background: #EFEBE2; padding: 9px 14px;
  display: flex; align-items: center; gap: 6px;
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D6CFC0; display: block; }
.browser-url {
  flex: 1; background: #fff; border-radius: 5px;
  font-size: 0.7rem; color: #8a8271; padding: 3px 10px;
  font-family: var(--font-body);
}
.case-body { padding: 56px 52px; }
.case-body h3 { font-size: 1.8rem; margin-bottom: 16px; color: var(--ink); }
.case-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px;
  margin: 32px 0 36px;
}
.case-stats b {
  font-family: var(--font-display); font-size: 1.5rem; display: block; line-height: 1.1;
  color: var(--ink);
}
.case-stats span { font-size: 0.84rem; color: var(--muted); }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; }
  .case-media { min-height: 300px; }
  .case-body { padding: 38px 28px; }
}

/* ---------- Audience cards ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.aud-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 40px 34px;
  text-decoration: none; display: block;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  will-change: transform;
}
.aud-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 60px rgba(255, 90, 40, 0.12);
  border-color: rgba(255, 90, 40, 0.55);
}
.aud-card .aud-icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.aud-card h3 { margin-bottom: 10px; color: var(--ink); }
.aud-card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 18px; }
.aud-card .go { font-weight: 600; font-size: 0.92rem; color: var(--accent); }
@media (max-width: 720px) { .aud-grid { grid-template-columns: 1fr; } }

/* ---------- Compare table ---------- */
.compare {
  width: 100%; border-collapse: collapse;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  font-size: 0.95rem;
}
.compare-scroll { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); }
.compare th, .compare td { padding: 17px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th {
  background: rgba(242, 237, 228, 0.05); color: var(--muted);
  font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.compare thead th.hl { background: var(--accent); color: #16100C; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.hl { background: var(--accent-soft); font-weight: 600; color: var(--ink); }
.compare td:first-child { font-weight: 600; white-space: nowrap; color: var(--ink); }
.compare .no { color: var(--muted); }
.compare .yes { color: var(--ok); font-weight: 600; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 42px 34px;
  display: flex; flex-direction: column;
  will-change: transform;
}
.price-card.featured {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 70px rgba(255, 90, 40, 0.16);
  position: relative;
}
.price-card.featured::before {
  content: "Most popular";
  position: absolute; top: -13px; left: 34px;
  background: var(--accent); color: #16100C;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 999px;
}
.price-card h3 { font-size: 1.2rem; color: var(--ink); }
.price-num {
  font-family: var(--font-display); font-size: 2.7rem; font-weight: 700;
  margin: 16px 0 4px; line-height: 1; color: var(--ink);
}
.price-num small { font-size: 1rem; font-weight: 500; color: var(--muted); font-family: var(--font-body); }
.price-desc { font-size: 0.92rem; color: var(--muted); margin-bottom: 26px; }
.price-card ul { list-style: none; margin-bottom: 32px; flex: 1; }
.price-card li {
  font-size: 0.94rem; padding: 9px 0 9px 28px; position: relative;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
}
.price-card li:last-child { border-bottom: 0; }
.price-card li::before {
  content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700;
}
.price-card .btn { justify-content: center; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }

.care-note {
  margin-top: 30px; padding: 28px 32px;
  background: rgba(147, 227, 184, 0.06); border: 1px solid rgba(147, 227, 184, 0.22);
  border-radius: 16px; font-size: 0.96rem; color: var(--ok);
}
.care-note b { font-weight: 700; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: step; }
.step { padding: 30px 24px 0; border-top: 1px solid var(--line-strong); position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--accent);
  position: absolute; top: -14px; left: 0;
  background: var(--paper); padding-right: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--ink); }
.step p { font-size: 0.9rem; color: var(--muted); }
.step-day {
  display: block; font-family: var(--font-body); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 7px;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 24px 44px 24px 0;
  font-weight: 600; font-size: 1.08rem; position: relative; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 1.6rem; color: var(--accent);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-a { padding: 0 0 26px; color: var(--ink-soft); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info p { color: var(--ink-soft); max-width: 42ch; margin-bottom: 28px; }
.contact-points { list-style: none; }
.contact-points li {
  padding: 13px 0 13px 34px; position: relative; font-size: 0.97rem;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
}
.contact-points li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
.form-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 44px;
  box-shadow: 0 0 80px rgba(255, 90, 40, 0.06);
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 8px;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 17px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.97rem;
  background: rgba(242, 237, 228, 0.04); color: var(--ink);
  transition: border-color 0.15s;
}
.field select option { background: var(--card); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-card .btn { width: 100%; justify-content: center; }
.form-note { font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 14px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 30px; font-size: 0.9rem; color: var(--muted);
  overflow: hidden;
}
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 26px; list-style: none; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
/* giant outlined watermark */
footer::after {
  content: "EVERBUILT";
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 15vw, 13rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-align: center;
  margin-top: 40px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 237, 228, 0.1);
  user-select: none;
  pointer-events: none;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Viewfinder cursor ---------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.cur-dot, .cur-b, .cur-label {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none;
}
.cur-dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 90, 40, 0.8);
  transition: background 0.2s;
}
.cur-dot.locked { background: var(--ink); }
.cur-dot.pulse { animation: cur-pulse 0.26s ease-out; }
@keyframes cur-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 40, 0.7); }
  100% { box-shadow: 0 0 0 26px rgba(255, 90, 40, 0); }
}
/* corner bracket: an L shape; rotation set from JS orients each corner */
.cur-b {
  width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  border-left: 2px solid var(--accent);
  border-top: 2px solid var(--accent);
  filter: drop-shadow(0 0 6px rgba(255, 90, 40, 0.55));
  will-change: transform;
}
.cur-label {
  font-family: var(--font-body);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper);
  background: var(--accent);
  padding: 3px 9px; border-radius: 3px;
  opacity: 0; transition: opacity 0.18s;
  will-change: transform;
}
.cur-label.on { opacity: 1; }
@media (pointer: coarse) { .cur-dot, .cur-b, .cur-label { display: none; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), #ffb38a);
  box-shadow: 0 0 10px rgba(255, 90, 40, 0.6);
}

/* ---------- Chapter rail ---------- */
.rail {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 150;
  display: flex; flex-direction: column; gap: 6px;
}
.rail-dot {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(11, 9, 8, 0.55);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.rail-dot:hover { border-color: var(--line-strong); color: var(--ink); transform: scale(1.08); }
.rail-dot.on {
  border-color: var(--accent); color: var(--accent);
  background: rgba(255, 90, 40, 0.1);
  box-shadow: 0 0 18px rgba(255, 90, 40, 0.25);
}
@media (max-width: 1240px) { .rail { display: none; } }

/* ---------- Ghost numerals ---------- */
.section-head { position: relative; }
.section-head[data-num]::before {
  content: attr(data-num);
  position: absolute;
  top: -0.55em; left: -0.12em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 14vw, 11rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 237, 228, 0.07);
  z-index: -1;
  user-select: none;
  pointer-events: none;
}

/* ---------- Glass refinement ---------- */
.aud-card, .price-card, .form-card {
  background: rgba(24, 20, 16, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(242, 237, 228, 0.06);
}
.price-card.featured {
  box-shadow: inset 0 1px 0 rgba(242, 237, 228, 0.08), 0 0 70px rgba(255, 90, 40, 0.16);
}
.form-card { box-shadow: inset 0 1px 0 rgba(242, 237, 228, 0.06), 0 0 80px rgba(255, 90, 40, 0.06); }

/* ---------- Interior pages ---------- */
.page-hero { padding: 110px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); max-width: 18ch; }
.page-hero .lede { margin-top: 22px; }

.prose { max-width: 740px; }
.prose h2 { font-size: 1.8rem; margin: 52px 0 18px; }
.prose p { margin-bottom: 18px; color: var(--ink-soft); }
.prose ul { margin: 0 0 18px 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 9px; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 8px 0 8px 26px;
  font-family: var(--font-display); font-size: 1.3rem; font-style: italic;
  color: var(--ink); margin: 32px 0;
}

.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 46px 42px;
  color: var(--ink); margin: 52px 0;
}
.stat-band b { font-family: var(--font-display); font-size: 2.2rem; display: block; line-height: 1.1; }
.stat-band span { font-size: 0.84rem; color: var(--muted); }
@media (max-width: 860px) { .stat-band { grid-template-columns: 1fr 1fr; padding: 34px 28px; } }

.cta-band { text-align: center; padding: 90px 0; }
.cta-band h2 { max-width: 22ch; margin: 0 auto 20px; }
.cta-band p { color: var(--muted); margin-bottom: 34px; }

/* ---------- Mobile optimization ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 68px 0; }
  .section-head { margin-bottom: 40px; }
  .wrap, .wrap-narrow { padding: 0 20px; }

  h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  h2 { font-size: clamp(1.8rem, 7.5vw, 2.4rem); }

  .hero { min-height: 88svh; padding: 36px 0 70px; }
  .hero .lede { margin: 22px 0 30px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .proof-strip { margin-top: 52px; gap: 0 16px; }
  .proof-strip > div { padding: 20px 0 4px; }
  .proof-num { font-size: 1.65rem; }
  .proof-label { font-size: 0.78rem; }

  /* ghost numerals: smaller so they never collide with headings */
  .section-head[data-num]::before { font-size: 4.5rem; top: -0.7em; }

  .marquee-track { font-size: 1rem; gap: 36px; }
  .marquee-track span { gap: 36px; }

  .remake { padding: 38px 22px; }
  .remake-form input[type="text"], .remake-form input[type="email"] { flex-basis: 100%; }
  .remake-form .btn { width: 100%; justify-content: center; }

  .case-body { padding: 32px 22px; }
  .case-stats { gap: 18px 20px; }
  .aud-card { padding: 30px 24px; }
  .price-card { padding: 34px 24px; }
  .form-card { padding: 28px 20px; }
  .care-note { padding: 22px 20px; }
  .cta-band { padding: 64px 0; }
  .stat-band { grid-template-columns: 1fr 1fr; gap: 18px; padding: 28px 22px; }
  .stat-band b { font-size: 1.7rem; }
  .page-hero { padding: 76px 0 48px; }

  /* mobile GPUs: no backdrop blur, no grain animation */
  .aud-card, .price-card, .form-card {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(24, 20, 16, 0.94);
  }
  .remake { backdrop-filter: none; }
  body::before { animation: none; opacity: 0.035; }
}

/* iOS zooms any focused input under 16px — keep every field at 16px on touch */
@media (pointer: coarse) {
  .field input, .field select, .field textarea,
  .remake-form input[type="text"], .remake-form input[type="email"] {
    font-size: 16px;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .scroll-hint i { animation: none; }
  body::before { animation: none; }
}
