/* =============================================================
   MAGE ID — marketing landing page
   Design: industrial concrete × tech premium. Fraunces + Inter.
   Motion: scroll-driven reveals + pinned pillars via GSAP.
   ============================================================= */

:root {
  /* Palette */
  --ink: #0B0D10;
  --steel: #14181D;
  --concrete: #2A2F36;
  --edge: #3A4049;
  --fog: #9AA3AD;
  --cream: #F4EFE6;
  --bone: #E8E1D4;
  --off: #FBF8F2;
  --text-dark: #12171C;
  --text-muted: #5C6673;
  --amber: #FF6A1A;
  --amber-hot: #FF8533;
  --amber-soft: rgba(255, 106, 26, 0.16);
  --amber-glow: rgba(255, 106, 26, 0.35);

  /* Type */
  --ff-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ff-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  /* Scale */
  --fs-hero: clamp(2.6rem, 7.2vw, 6.25rem);
  --fs-h2: clamp(1.9rem, 4.6vw, 3.5rem);
  --fs-h3: clamp(1.45rem, 3vw, 2.1rem);
  --fs-lede: clamp(1rem, 1.2vw, 1.15rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.72rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.55;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* Selection */
::selection { background: var(--amber); color: var(--ink); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* =============================================================
   GLOBAL GRAIN + CURSOR
   ============================================================= */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 300px 300px;
}

.cursor-blob {
  position: fixed; left: -100px; top: -100px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--amber);
  filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  z-index: 998;
  transition: opacity 0.3s, transform 0.18s var(--ease-out);
  mix-blend-mode: screen;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  body:hover .cursor-blob { opacity: 0.5; }
}

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(11, 13, 16, 0.6);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.is-scrolled {
  background: rgba(11, 13, 16, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px;
  letter-spacing: 0.02em;
  color: #fff;
}
.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}
img.brand-mark { max-width: 32px; max-height: 32px; }
.foot-brand .brand-mark { width: 28px; height: 28px; max-width: 28px; max-height: 28px; }
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(12px, 2vw, 22px);
  font-size: 13.5px;
}
.nav-links a {
  color: var(--fog);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  /* Mirror styles.css — keep multi-word labels on one line so the nav reads
     as a single horizontal row instead of a wrapped grid. */
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px; font-weight: 600;
  color: #fff;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); transform: translateY(-1px); }
/* Mobile hamburger toggle injected by nav-mobile.js. Hidden by default;
   only shown when nav-mobile.js has injected the .nav-toggle button and
   the viewport is narrower than 720px (where the inline links hide). */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  width: 40px;
  height: 36px;
}
.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  /* When the hamburger is toggled open, the link list re-appears as a
     vertical dropdown anchored to the header — covers the full width so
     thumb taps are easy. */
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--ink, #0B0D10);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
    z-index: 100;
  }
  .nav-links.is-open a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 15px;
  }
  .nav-links.is-open a:last-child { border-bottom: none; }
}

/* =============================================================
   UTILITY
   ============================================================= */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--amber);
  margin: 0 0 20px;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow span { font-size: 0.55em; line-height: 1; }
.eyebrow .num {
  font-weight: 500; color: var(--amber); opacity: 0.7;
  margin-right: 4px;
}

/* Reveal (base state) */
.reveal, .reveal-word {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: transform, opacity;
}
.reveal.is-in, .reveal-word.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s var(--ease), box-shadow 0.3s;
  white-space: nowrap;
  will-change: transform;
}
.btn-primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 10px 30px -10px var(--amber-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  background: var(--amber-hot);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px var(--amber-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(120px, 18vh, 180px) 0 clamp(60px, 12vh, 120px);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

/* Blueprint grid */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  z-index: -2;
}

.hero-spotlight {
  position: absolute;
  width: 900px; height: 900px;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--amber-soft) 0%, transparent 55%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  text-align: left;
  position: relative;
}

.hero .eyebrow {
  margin-bottom: 28px;
}
.hero .eyebrow span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--amber-soft); }
  50% { box-shadow: 0 0 0 8px rgba(255, 106, 26, 0.04); }
}

.hero-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 clamp(24px, 3vw, 40px);
  color: #fff;
  font-variation-settings: "opsz" 144;
}
.hero-title .reveal-word {
  display: block;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.hero-title .reveal-word:nth-child(1) { --i: 0; }
.hero-title .reveal-word:nth-child(2) { --i: 1; }
.hero-title .reveal-word:nth-child(3) { --i: 2; }
.hero-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--amber);
  font-variation-settings: "opsz" 144;
}

.lede {
  font-size: var(--fs-lede);
  max-width: 620px;
  color: var(--fog);
  line-height: 1.55;
  margin: 0 0 36px;
}

.cta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: clamp(48px, 7vh, 80px);
}

.hero-meta {
  max-width: 1100px;
  margin: auto auto 0;
  padding: 0 clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
}
.meta-tick {
  display: flex; align-items: baseline; gap: 12px;
}
.meta-tick span {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.15em;
}
.meta-tick p {
  margin: 0;
  font-size: 14px;
  color: var(--fog);
}

.scroll-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  display: inline-flex; justify-content: center;
  padding-top: 8px;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.scroll-hint:hover { opacity: 1; }
.scroll-hint span {
  width: 2px; height: 6px; border-radius: 2px;
  background: #fff;
  animation: scrollTick 1.8s ease-in-out infinite;
}
@keyframes scrollTick {
  0%, 20% { transform: translateY(0); opacity: 0; }
  50% { transform: translateY(4px); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* =============================================================
   PROBLEM INTERLUDE
   ============================================================= */
.problem {
  padding: clamp(100px, 18vh, 180px) 0;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.problem-grid {
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  position: relative;
}
.problem-headline {
  font-family: var(--ff-serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin: 0;
  color: #fff;
}
.problem-headline em {
  font-style: italic;
  color: var(--amber);
  font-weight: 600;
}
.scrub-out {
  position: relative;
  display: inline-block;
}
.scrub-out::after {
  content: "";
  position: absolute;
  left: -4%; right: -4%;
  top: 50%;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s var(--ease-out) 0.4s;
}
.problem.is-in .scrub-out::after { transform: scaleX(1); }

.problem-chips {
  position: relative;
  height: 360px;
}
.chip {
  position: absolute;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--ff-mono);
  font-size: 12px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--fog);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s var(--ease-out), transform 0.9s var(--ease-out);
}
.problem.is-in .chip {
  opacity: 1;
  transform: scale(1);
}
/* Spread chips organically */
.chip:nth-child(1)  { top: 6%;   left: 4%;   transition-delay: 0.05s; }
.chip:nth-child(2)  { top: 22%;  left: 38%;  transition-delay: 0.12s; transform-origin: left center; }
.chip:nth-child(3)  { top: 12%;  left: 68%;  transition-delay: 0.19s; }
.chip:nth-child(4)  { top: 38%;  left: 18%;  transition-delay: 0.26s; }
.chip:nth-child(5)  { top: 48%;  left: 52%;  transition-delay: 0.33s; }
.chip:nth-child(6)  { top: 32%;  left: 80%;  transition-delay: 0.4s;  }
.chip:nth-child(7)  { top: 62%;  left: 8%;   transition-delay: 0.47s; }
.chip:nth-child(8)  { top: 72%;  left: 40%;  transition-delay: 0.54s; }
.chip:nth-child(9)  { top: 60%;  left: 70%;  transition-delay: 0.61s; }
.chip:nth-child(10) { top: 86%;  left: 22%;  transition-delay: 0.68s; }
.chip:nth-child(11) { top: 82%;  left: 58%;  transition-delay: 0.75s; }
.chip:nth-child(12) { top: 48%;  left: 84%;  transition-delay: 0.82s; display: none; }

.chip-blueprint { color: #9AC5FF; border-color: rgba(154, 197, 255, 0.25); }
.chip-excel     { color: #7EE787; border-color: rgba(126, 231, 135, 0.25); }
.chip-email     { color: #E8B04D; border-color: rgba(232, 176, 77, 0.25); }
.chip-photo     { color: #D8B4FE; border-color: rgba(216, 180, 254, 0.25); }
.chip-note      { color: #F8D7DA; border-color: rgba(248, 215, 218, 0.25); }

/* When pinned / late-scroll the chips collapse inward */
.problem.is-scrubbed .chip {
  opacity: 0.2;
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(0.6);
}

/* =============================================================
   PRODUCT PILLARS
   ============================================================= */
.product {
  position: relative;
}
.product-intro {
  padding: clamp(80px, 14vh, 140px) 0 clamp(40px, 6vh, 80px);
  text-align: center;
}
.product-intro-h {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 10px 0 18px;
}
.product-intro-sub {
  color: var(--fog);
  max-width: 620px;
  margin: 0 auto;
  font-size: var(--fs-lede);
}

.pillar {
  position: relative;
  padding: clamp(80px, 14vh, 160px) 0;
  overflow: hidden;
}
.pillar-dark {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.pillar-light {
  background: var(--cream);
  color: var(--text-dark);
}
.pillar-light .eyebrow {
  color: var(--amber);
}
.pillar-light .lede, .pillar-light .pillar-sub {
  color: var(--text-muted);
}

.pillar-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.pillar-reverse .pillar-inner {
  grid-template-columns: 1fr 1.05fr;
  direction: rtl;
}
.pillar-reverse .pillar-inner > * { direction: ltr; }

@media (max-width: 860px) {
  .pillar-inner, .pillar-reverse .pillar-inner {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

.pillar-text {
  max-width: 520px;
}
.pillar-h {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 8px 0 18px;
}
.pillar-sub {
  color: var(--fog);
  font-size: var(--fs-lede);
  line-height: 1.6;
  margin: 0 0 28px;
}
.pillar-light .pillar-sub { color: var(--text-muted); }

.pillar-bullets {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.pillar-bullets li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--fog);
}
.pillar-light .pillar-bullets li { color: var(--text-muted); }
.pillar-bullets li b {
  color: #fff;
  font-weight: 600;
  margin-right: 2px;
}
.pillar-light .pillar-bullets li b { color: var(--text-dark); }
.pillar-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 14px; height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

/* Pillar reveal state */
.pillar .pillar-text,
.pillar .pillar-mockup {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.pillar.is-in .pillar-text { opacity: 1; transform: translateY(0); }
.pillar.is-in .pillar-mockup { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }

/* =============================================================
   PHONE MOCKUP
   ============================================================= */
.pillar-mockup {
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 340 / 690;
  border-radius: 44px;
  background: linear-gradient(135deg, #222 0%, #0a0a0a 100%);
  padding: 8px;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 20px 40px -10px var(--amber-soft);
}
.phone-notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 28px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--ink);
  padding: 52px 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.phone-screen-light { background: var(--off); color: var(--text-dark); }
.phone-screen-dark  { background: #0F1318; }

.phone-chrome {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 18px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
}

/* Plan sheet mock */
.plan-sheet {
  position: relative;
  flex: 1;
  border-radius: 14px;
  background: #F4F0E7;
  overflow: hidden;
}
.plan-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(20, 35, 70, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 35, 70, 0.08) 1px, transparent 1px);
  background-size: 14px 14px;
}
.plan-sheet::before, .plan-sheet::after {
  content: "";
  position: absolute;
  background: rgba(20, 35, 70, 0.2);
}
.plan-sheet::before {
  top: 15%; left: 10%; right: 12%; height: 2px;
}
.plan-sheet::after {
  top: 15%; left: 10%; bottom: 12%; width: 2px;
}
.plan-pin {
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: #fff;
  transform: translate(-50%, -100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: pinDrop 0.6s var(--ease-out) both;
}
.plan-pin[data-kind="rfi"]   { background: var(--amber); }
.plan-pin[data-kind="photo"] { background: #805AD5; }
.plan-pin[data-kind="punch"] { background: #38A169; }
.plan-pin::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: inherit;
}
@keyframes pinDrop {
  0% { opacity: 0; transform: translate(-50%, -180%); }
  100% { opacity: 1; transform: translate(-50%, -100%); }
}
.plan-pin:nth-child(2) { animation-delay: 0.1s; }
.plan-pin:nth-child(3) { animation-delay: 0.22s; }
.plan-pin:nth-child(4) { animation-delay: 0.34s; }
.plan-scale {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(20, 35, 70, 0.9);
  color: #F4F0E7;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* Doc header mock */
.doc-header {
  padding: 4px 4px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.doc-eyebrow {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--amber);
}
.doc-header h4 {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 19px;
  margin: 6px 0 0;
  color: var(--text-dark);
  letter-spacing: -0.015em;
}

/* Estimate rows */
.line-rows { display: flex; flex-direction: column; gap: 4px; padding: 4px 0; }
.line-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 10px 6px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-dark);
  align-items: baseline;
}
.line-row .unit {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}
.line-row .amt {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.line-row.highlight {
  background: var(--amber-soft);
  color: var(--ink);
}
.line-row.highlight .amt { color: var(--amber); }

.doc-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px;
  color: var(--text-muted);
}
.doc-footer .total {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--amber);
  letter-spacing: -0.01em;
}

/* Field log cards */
.log-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
}
.log-head {
  display: flex; justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--fog);
  margin-bottom: 8px;
}
.log-date { color: var(--amber); }
.log-body {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 10px;
  line-height: 1.45;
}
.log-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.log-chip {
  font-size: 10px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: var(--fog);
  letter-spacing: 0.04em;
}
.punch-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 0;
}
.punch-row .dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--amber);
  flex-shrink: 0;
}
.log-card-punch { background: rgba(255, 106, 26, 0.04); border-color: var(--amber-soft); }

/* Financial pillar */
.finance-bar { padding: 8px 4px 16px; }
.finance-track {
  height: 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  overflow: hidden;
}
.finance-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber) 0%, var(--amber-hot) 100%);
  border-radius: 4px;
  transition: width 1.4s var(--ease-out);
  transform-origin: left;
}
.finance-legend {
  margin-top: 8px;
  display: flex; justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.finance-legend .amt { color: var(--text-dark); font-weight: 600; }

.finance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.fg-cell {
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.fg-label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.fg-val {
  display: block;
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.fg-val.hl { color: var(--amber); }

/* Portal */
.phone-screen-portal {
  background: linear-gradient(180deg, #0F1318 0%, #1A2028 100%);
}
.portal-hero {
  padding: 8px 6px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.portal-tag {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--amber);
}
.portal-hero h4 {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 22px;
  margin: 4px 0 12px;
  letter-spacing: -0.015em;
  color: #fff;
}
.portal-progress {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--fog);
  margin: 0;
}
.portal-progress b { color: var(--amber); font-size: 11px; }
.portal-tile {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 10px;
  margin-top: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.portal-tile .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.portal-tile .dot-amber { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.portal-tile p { margin: 0 0 2px; font-size: 12.5px; color: #fff; }
.portal-tile span { font-family: var(--ff-mono); font-size: 10px; color: var(--fog); letter-spacing: 0.06em; }

/* =============================================================
   PROOF
   ============================================================= */
.proof {
  padding: clamp(100px, 16vh, 160px) 0;
  background: linear-gradient(180deg, var(--ink) 0%, #0E1116 100%);
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.proof-h {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 8px 0 clamp(40px, 6vh, 64px);
  max-width: 900px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
}
.stat-card {
  padding: 36px 24px;
  background: var(--ink);
  display: flex; flex-direction: column; gap: 10px;
  transition: background 0.4s;
}
.stat-card:hover { background: #10141A; }
.stat-val {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  color: var(--amber);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 13px;
  color: var(--fog);
  line-height: 1.4;
}

/* =============================================================
   PRICING
   ============================================================= */
.pricing {
  padding: clamp(100px, 16vh, 160px) 0;
  background: var(--cream);
  color: var(--text-dark);
}
.pricing .eyebrow { color: var(--amber); }
.pricing-h {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 8px 0 14px;
  max-width: 900px;
}
.pricing-sub {
  color: var(--text-muted);
  max-width: 620px;
  font-size: var(--fs-lede);
  margin: 0 0 clamp(40px, 6vh, 60px);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.tier {
  position: relative;
  padding: 32px 28px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
  display: flex; flex-direction: column;
}
.tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.18);
}
.tier-pro {
  background: var(--ink);
  color: #fff;
  border-color: var(--amber);
  box-shadow: 0 20px 60px -20px var(--amber-glow);
}
.tier-flag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 700;
}
.tier-name {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.tier-pro .tier-name { color: var(--amber); }
.tier-price {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 14px 0 6px;
  display: flex; align-items: flex-start;
}
.tier-price span {
  font-size: 26px;
  margin-top: 8px;
  margin-right: 4px;
  color: var(--text-muted);
  font-weight: 500;
}
.tier-pro .tier-price span { color: var(--fog); }
.tier-price small {
  font-size: 14px;
  font-family: var(--ff-sans);
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 6px;
  margin-top: 34px;
  letter-spacing: 0;
}
.tier-pro .tier-price small { color: var(--fog); }
.tier-cap {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.tier-pro .tier-cap { color: var(--fog); border-color: rgba(255, 255, 255, 0.08); }
.tier-list {
  list-style: none;
  margin: 0 0 28px; padding: 0;
  flex: 1;
  display: flex; flex-direction: column; gap: 10px;
}
.tier-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-dark);
}
.tier-pro .tier-list li { color: #fff; }
.tier-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 12px; height: 2px;
  background: var(--amber);
  border-radius: 2px;
}
.tier-cta { width: 100%; justify-content: center; }

/* =============================================================
   FINAL CTA
   ============================================================= */
.cta-final {
  position: relative;
  padding: clamp(100px, 18vh, 180px) 0 clamp(80px, 12vh, 140px);
  background: var(--ink);
  text-align: center;
  overflow: hidden;
}
.cta-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 106, 26, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 106, 26, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-h {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 12px 0 18px;
  color: #fff;
}
.cta-h em {
  font-style: italic;
  font-weight: 600;
  color: var(--amber);
}
.cta-sub {
  color: var(--fog);
  font-size: var(--fs-lede);
  max-width: 560px;
  margin: 0 auto 32px;
}
.cta-form {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center;
  max-width: 520px; margin: 0 auto 18px;
}
.cta-form input {
  flex: 1; min-width: 220px;
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s, background 0.2s;
}
.cta-form input::placeholder { color: var(--fog); }
.cta-form input:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(255, 255, 255, 0.08);
}
.cta-foot {
  color: var(--fog);
  font-size: 13px;
  margin: 20px 0 0;
}
.cta-foot a {
  color: var(--amber);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.cta-foot a:hover { border-color: var(--amber); }

/* =============================================================
   FOOTER
   ============================================================= */
.foot {
  background: var(--ink);
  padding: 36px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.foot-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14px;
  color: #fff;
  letter-spacing: 0.02em;
}
.foot-brand .brand-mark {
  width: 28px; height: 28px;
}
.foot-links {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 13px;
}
.foot-links a {
  color: var(--fog);
  transition: color 0.2s;
}
.foot-links a:hover { color: #fff; }
.foot-copy {
  color: var(--fog);
  font-size: 12px;
  margin: 0;
  font-family: var(--ff-mono);
  letter-spacing: 0.04em;
}

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-word { opacity: 1; transform: none; }
  .cursor-blob { display: none; }
}
