/* =========================================================================
   Melarex - Midnight + azure, editorial founder-led landing page.
   Dark -> paper -> dark rhythm. Typography-first: hairlines and indexes
   instead of boxes. Hand-built CSS, no framework.
   ========================================================================= */

:root {
  --ground: #05080f;
  --ink: #08101f;
  --panel: #0b1424;

  --line: rgba(120, 158, 220, 0.13);
  --line-strong: rgba(132, 172, 235, 0.30);
  --grid: rgba(86, 128, 190, 0.05);

  --white: #eef3fb;
  --body: #a9b5cb;
  --muted: #6f7c94;
  --faint: #495471;

  --azure: #4f9bff;
  --azure-bright: #84b6ff;
  --azure-deep: #2a63c6;
  --good: #54d6a0;

  --glow: rgba(79, 155, 255, 0.20);
  --glow-soft: rgba(79, 155, 255, 0.09);

  --glass: linear-gradient(160deg, rgba(124, 162, 230, 0.09), rgba(124, 162, 230, 0.02));
  --glass-bd: rgba(140, 175, 235, 0.15);

  /* Light "paper" mode - used only on the case-studies section */
  --paper: #f1f2f6;
  --paper-card: #ffffff;
  --paper-ink: #0b1424;
  --paper-body: #4a5670;
  --paper-line: rgba(11, 20, 36, 0.10);
  --paper-faint: rgba(11, 20, 36, 0.45);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 18px;

  --shadow: 0 1px 0 rgba(160, 195, 255, 0.05) inset, 0 24px 60px -34px rgba(0, 0, 0, 0.85);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--ground);
  background-image:
    radial-gradient(1200px 680px at 50% -14%, rgba(79, 155, 255, 0.06), transparent 60%);
  background-attachment: fixed;
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
}
/* Fixed grid + noise, both BEHIND content (z -1) so the opaque paper
   section masks them off. Dark sections are transparent above them. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  -webkit-mask-image: radial-gradient(150% 100% at 50% -10%, #000 40%, transparent 90%);
          mask-image: radial-gradient(150% 100% at 50% -10%, #000 40%, transparent 90%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(79, 155, 255, 0.32); color: var(--white); }
html { scrollbar-width: thin; scrollbar-color: rgba(120, 158, 220, 0.25) transparent; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: rgba(120, 158, 220, 0.18); border-radius: 999px; border: 3px solid var(--ground); }
::-webkit-scrollbar-track { background: transparent; }

a { color: inherit; text-decoration: none; }
svg { display: block; }
/* The hidden attribute must always win, even over display:flex components. */
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- Type */
h1, h2, h3 { margin: 0; color: var(--white); font-weight: 600; }
.display { font-family: var(--serif); font-optical-sizing: auto; font-weight: 550; letter-spacing: -0.03em; line-height: 1.02; color: var(--white); }
h2.display { font-size: clamp(2rem, 1.25rem + 2.7vw, 3.1rem); letter-spacing: -0.024em; line-height: 1.06; text-wrap: balance; }
h3.display { font-size: clamp(1.2rem, 1rem + 0.7vw, 1.5rem); letter-spacing: -0.015em; }
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
.text-white { color: var(--white); }
.text-azure { color: var(--azure); }
.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); line-height: 1.65; color: var(--body); }
p { margin: 0; }
.num, .statnum, .case-num, .menu-price, .meter-ba, .meter-cut, .case-ctx { font-variant-numeric: tabular-nums lining-nums; }

.eyebrow { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--azure); display: inline-flex; align-items: center; gap: 0.75rem; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--azure); opacity: 0.65; }
.eyebrow .idx { color: var(--faint); letter-spacing: 0.14em; }
.tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------------- Layout */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
/* Calendly's inline embed used to carry a hard min-width:320px inline style,
   which overflowed the .wrap padding on genuinely small phones (iPhone SE at
   320px viewport, common 360px Android widths). That inline style is gone
   now (see teardown.html/book.html); this just gives every narrow phone a
   little more room generally. */
@media (max-width: 380px) { .wrap { padding: 0 18px; } }
.section { padding-block: clamp(4.5rem, 3rem + 6vw, 8.5rem); position: relative; }
.section-tight { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); position: relative; }
.center { text-align: center; }
.sec-head { max-width: 44rem; }
.sec-head.center { margin: 0 auto; }
.sec-head .display { margin-top: 1.4rem; }
.sec-head > p { margin-top: 1.1rem; }

.rule { position: relative; height: 1px; background: var(--line-strong); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
.is-visible .rule { transform: scaleX(1); }

/* ---------------------------------------------------------------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.9rem 1.5rem; border-radius: var(--r-sm); font-weight: 600; font-size: 0.95rem; font-family: var(--sans); letter-spacing: 0.001em; cursor: pointer; border: 1px solid transparent; transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s; will-change: transform; }
.btn-primary { position: relative; overflow: hidden; color: #04101f; background: linear-gradient(180deg, var(--azure-bright), var(--azure)); box-shadow: 0 12px 34px -12px var(--glow), 0 0 0 1px rgba(132, 182, 255, 0.4) inset; }
.btn-primary:hover { box-shadow: 0 18px 46px -14px rgba(79, 155, 255, 0.55); }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent); transform: skewX(-18deg); }
.btn-primary:hover::after { animation: sheen 0.9s var(--ease); }
.btn-ghost { color: var(--white); border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--azure); background: rgba(79, 155, 255, 0.08); }
.btn-lg { padding: 1.02rem 1.8rem; font-size: 1.02rem; }
.btn-nav { padding: 0.6rem 1.05rem; font-size: 0.88rem; }
.arrow-glyph { transition: transform 0.25s var(--ease); }
.btn:hover .arrow-glyph, a:hover > .arrow-glyph { transform: translateX(3px); }

/* ---------------------------------------------------------------- Glass (used sparingly) */
.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-bd);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  overflow: hidden;
}
.glass::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(170, 200, 255, 0.45), transparent); }
.glass .pad { padding: 1.7rem; position: relative; z-index: 1; }

/* ---------------------------------------------------------------- Nav */
.nav { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; }
.nav.scrolled { background: rgba(5, 8, 15, 0.97); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); box-shadow: 0 12px 34px -22px rgba(0, 0, 0, 0.8); }
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; }
.nav .brand { justify-self: start; }
.nav .navlinks { justify-self: center; }
.nav .wrap > .btn, .nav .wrap > a:last-child { justify-self: end; }
.navlinks { display: flex; gap: 2.1rem; align-items: center; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.34rem; letter-spacing: -0.02em; color: var(--white); }
.brand .dot { color: var(--azure); }
.nav-link { position: relative; color: var(--muted); font-size: 0.9rem; padding-block: 0.3rem; transition: color 0.25s; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--azure); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200; background: linear-gradient(90deg, var(--azure-deep), var(--azure-bright)); }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; padding-top: clamp(4rem, 2.6rem + 5vw, 7.5rem); padding-bottom: clamp(3rem, 2.4rem + 3vw, 5rem); }
.hero-inner { max-width: 64rem; }
.avail { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.avail .hl { color: var(--white); }
.avail-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(84, 214, 160, 0.14); animation: pulse 2.6s ease-in-out infinite; flex: none; }
.hero-h1 { margin-top: 2rem; font-size: clamp(2.7rem, 1rem + 6.6vw, 5.9rem); line-height: 0.99; letter-spacing: -0.038em; }
.hero-h1 .text-azure { font-style: italic; font-weight: 500; letter-spacing: -0.03em; }
.hero-lead { margin-top: 1.7rem; max-width: 35rem; }
.cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-note { margin-top: 2.1rem; display: inline-flex; align-items: center; gap: 0.9rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; color: var(--faint); text-transform: uppercase; }
.hero-note .sep { color: var(--azure); opacity: 0.7; }

.word-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.09em; padding-right: 0.03em; margin-right: -0.03em; }
.word-mask > span { display: inline-block; }
.js .word-mask > span { transform: translateY(114%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--wi, 0) * 70ms); }
.hero-ready .word-mask > span { transform: translateY(0); }

/* ---------------------------------------------------------------- Stat band */
.stat-section { padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); padding-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
.statband-rule { margin-bottom: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); }
.statband { display: grid; grid-template-columns: repeat(4, 1fr); }
.statcol { padding: 0 clamp(1rem, 0.4rem + 1.4vw, 2.2rem); }
.statcol:first-child { padding-left: 0; }
.statcol + .statcol { border-left: 1px solid var(--line); }
.statnum { font-family: var(--serif); font-weight: 550; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem); color: var(--white); line-height: 1; letter-spacing: -0.035em; }
.statlbl { margin-top: 0.85rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.statband.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 34rem; }
.stat-note { margin-top: 1.6rem; max-width: 44rem; }
.stat-source { margin-top: 1rem; }
.tick-ic { display: block; width: 26px; height: 26px; color: var(--good); margin-bottom: 0.3rem; }

/* ---------------------------------------------------------------- Big stat moment */
.big-stat { margin-top: 2.4rem; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.big-stat-num { font-family: var(--serif); font-weight: 600; font-size: clamp(4.6rem, 3rem + 7vw, 8rem); line-height: 0.92; letter-spacing: -0.03em; color: var(--azure-bright); text-shadow: 0 0 70px var(--glow); }
.big-stat-lbl { max-width: 32rem; text-align: center; }
.big-stat-src { margin-top: 0.7rem; opacity: 0.5; font-size: 0.64rem; }

/* ---------------------------------------------------------------- Sticky CTA scrim (keeps trailing text legible under the floating button) */
.sticky-scrim { position: fixed; left: 0; right: 0; bottom: 0; height: 7.5rem; z-index: 55; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--ground) 78%);
  opacity: 1; transition: opacity 0.3s var(--ease); }
.sticky-scrim.is-hidden { opacity: 0; }

/* ---------------------------------------------------------------- Sample teardown: upfront result summary */
.doc-result { margin-top: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  background: rgba(120, 160, 230, 0.05); border: 1px solid var(--line-strong); border-radius: var(--r-md); }
.doc-result .lead { margin-top: 0.9rem; max-width: 46rem; }
.doc-result .statband { margin-top: clamp(1.8rem, 1.3rem + 1.5vw, 2.4rem); }
@media (prefers-color-scheme: light) {
  .doc-result { background: #f1f3f9; border-color: rgba(11,20,36,0.14); }
}

/* ---------------------------------------------------------------- Centered hero variant */
.hero-inner.center { text-align: center; margin-inline: auto; }
.hero-inner.center .hero-lead { margin-inline: auto; }
.hero-inner.center .cta-row { justify-content: center; }
.hero-inner.center .hero-note { justify-content: center; }

/* ---------------------------------------------------------------- Sticky book CTA */
.sticky-cta { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 0); z-index: 60;
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.95rem 1.7rem; border-radius: 999px; white-space: nowrap;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem; color: #04101f;
  background: linear-gradient(180deg, var(--azure-bright), var(--azure));
  box-shadow: 0 16px 40px -12px var(--glow), 0 0 0 1px rgba(132, 182, 255, 0.4) inset;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.sticky-cta:hover { transform: translate(-50%, -2px); }
.sticky-cta.is-hidden { opacity: 0; transform: translate(-50%, 16px); pointer-events: none; }
@media (max-width: 560px) { .sticky-cta { padding: 0.85rem 1.4rem; font-size: 0.9rem; bottom: 1.1rem; } }
@media (max-width: 760px) {
  .statband { grid-template-columns: 1fr 1fr; row-gap: 2.4rem; }
  .statcol { padding: 0 1.4rem; }
  .statcol:nth-child(odd) { padding-left: 0; }
  .statcol:nth-child(3) { border-left: 0; }
}
@media (max-width: 420px) {
  .statcol { padding: 0 0.9rem; }
  .statnum { font-size: 1.9rem; }
  .art-k { min-width: 6.5rem; }
}

/* ---------------------------------------------------------------- Trust strips (static wordmarks, no logos, no motion) */
.trust-section { padding-top: clamp(0.5rem, 0.2rem + 1vw, 1.4rem); padding-bottom: clamp(2.4rem, 1.8rem + 2.4vw, 4.4rem); }
.trust-strip { display: flex; align-items: baseline; gap: clamp(1.2rem, 0.8rem + 1.8vw, 2.6rem); flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.trust-strip + .trust-strip { margin-top: 1.5rem; }
.trust-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); white-space: nowrap; flex: none; }
.trust-marks { display: flex; align-items: baseline; flex-wrap: wrap; gap: clamp(0.9rem, 0.5rem + 1.6vw, 2.1rem); list-style: none; margin: 0; padding: 0; }
.trust-marks li { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; color: var(--muted); letter-spacing: -0.008em; transition: color 0.25s; white-space: nowrap; }
.trust-marks li:hover { color: var(--body); }
/* Experience-across component stays hidden until real, permissioned names exist. */
.trust-exp.is-empty { display: none; }

/* ---------------------------------------------------------------- Marquee (Built on) */
.marquee-section { padding-block: 0; }
.marquee-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 1.5rem; }
.marquee-eyebrow { margin-bottom: 1.4rem; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 58s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.marquee-list li { font-family: var(--serif); font-size: 1.18rem; font-weight: 500; color: var(--faint); letter-spacing: 0; transition: color 0.25s; white-space: nowrap; }
.marquee-list li:hover { color: var(--body); }
.marquee-list li::after { content: ""; display: inline-block; vertical-align: middle; width: 4px; height: 4px; border-radius: 50%; background: var(--azure); opacity: 0.45; margin: 0 clamp(1.6rem, 1.2rem + 1vw, 2.8rem); transform: translateY(-2px); }

/* ---------------------------------------------------------------- About */
.about-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(2.6rem, 1.5rem + 4vw, 5.5rem); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 2.8rem; } }
.about-copy .about-h2 { margin-top: 1.4rem; max-width: 30ch; }
.about-copy p { margin-top: 1.5rem; max-width: 41rem; color: var(--body); }
.pull { margin-top: 2.3rem; font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-style: italic; font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; color: var(--white); max-width: 30ch; }
.pull::before { content: ""; display: block; width: 44px; height: 1px; background: var(--azure); opacity: 0.65; margin-bottom: 1.3rem; }
.about-copy .pull + p { margin-top: 1.5rem; }
.pull-cite { display: block; margin-top: 1.2rem; font-family: var(--mono); font-style: normal; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.signature { margin-top: 2.4rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--white); }
.signature .sig-sep { color: var(--azure); font-style: normal; margin: 0 0.35rem; }
.factcard { align-self: start; position: sticky; top: 108px; border-top: 1px solid var(--line-strong); }
.fact-row { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.fact-k { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; color: var(--azure); }
.fact-v { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; color: var(--white); letter-spacing: -0.01em; }
@media (max-width: 900px) { .factcard { position: static; } }

/* ---------------------------------------------------------------- Case studies (paper) */
.paper { background: var(--paper); color: var(--paper-body); }
.paper .eyebrow { color: var(--azure-deep); }
.paper .eyebrow::before { background: var(--azure-deep); }
.paper .eyebrow .idx { color: var(--paper-faint); }
.paper-head { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 1.4rem + 2vw, 3.5rem); align-items: end; }
@media (max-width: 820px) { .paper-head { grid-template-columns: 1fr; align-items: start; } }
.paper .paper-h2 { color: var(--paper-ink); margin-top: 1.4rem; max-width: 22ch; }
.paper-aside { padding-bottom: 0.35rem; }
.paper .paper-intro { color: var(--paper-body); max-width: 34rem; font-size: 1.02rem; line-height: 1.65; }
.paper .paper-foot { margin-top: 1.1rem; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-faint); }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: clamp(2.6rem, 1.8rem + 2.4vw, 3.8rem); }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .case-grid { grid-template-columns: 1fr; } }

.case { display: flex; flex-direction: column; background: var(--paper-card); border: 1px solid var(--paper-line); border-radius: var(--r); padding: 1.7rem 1.6rem 1.75rem; box-shadow: 0 1px 2px rgba(11, 20, 36, 0.04); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s; }
.case:hover { transform: translateY(-4px); border-color: rgba(11, 20, 36, 0.18); box-shadow: 0 34px 64px -38px rgba(11, 20, 36, 0.45); }
.case-tag { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--azure-deep); }
.case-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 550; color: var(--paper-ink); margin-top: 0.9rem; letter-spacing: -0.02em; }
.case-ctx { margin-top: 0.4rem; font-family: var(--mono); font-size: 0.67rem; letter-spacing: 0.03em; color: var(--paper-faint); }
.case-num { margin-top: 1.3rem; font-family: var(--serif); font-weight: 550; font-size: 2.7rem; line-height: 1; color: var(--paper-ink); letter-spacing: -0.035em; display: flex; align-items: baseline; gap: 0.55rem; flex-wrap: wrap; }
.case-unit { font-family: var(--mono); font-size: 0.64rem; font-weight: 400; letter-spacing: 0.13em; text-transform: uppercase; color: var(--paper-faint); }
.case-outcome { margin-top: 1rem; font-weight: 600; font-size: 1rem; line-height: 1.45; color: var(--paper-ink); letter-spacing: -0.005em; }
.case-desc { margin-top: 0.6rem; font-size: 0.9rem; line-height: 1.62; color: var(--paper-body); }
.case-meter { margin-top: auto; border-top: 1px solid var(--paper-line); }
.case-meter { padding-top: 0; margin-top: 1.4rem; }
.meter-head { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; }
.meter-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-faint); }
.meter-cut { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; color: var(--azure-deep); }
.meter-track { position: relative; height: 4px; border-radius: 999px; background: rgba(11, 20, 36, 0.08); margin-top: 0.65rem; overflow: hidden; }
.meter-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); border-radius: 999px; background: linear-gradient(90deg, var(--azure-deep), var(--azure)); transition: transform 1.1s var(--ease) 0.35s; }
.paper.is-visible .meter-fill { transform: scaleX(var(--fill, 0)); }
.meter-ba { display: flex; justify-content: space-between; margin-top: 0.6rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.02em; color: var(--paper-faint); }
.meter-ba span:last-child { color: var(--paper-ink); font-weight: 500; }

/* ---------------------------------------------------------------- What I build (index table) */
.menu-intro { margin-top: 1.1rem; max-width: 40rem; }
.menu { margin-top: clamp(2.6rem, 1.8rem + 2.4vw, 3.6rem); border-top: 1px solid var(--line-strong); }
.menu-row { display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: baseline; gap: 1.2rem; padding: 1.55rem 0.2rem; border-bottom: 1px solid var(--line); transition: background 0.3s, padding 0.3s var(--ease); position: relative; }
.menu-row:hover { background: linear-gradient(90deg, rgba(79, 155, 255, 0.05), transparent 70%); padding-left: 0.9rem; padding-right: 0; }
.menu-idx { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); letter-spacing: 0.1em; transform: translateY(-0.15rem); }
.menu-row:hover .menu-idx { color: var(--azure); }
.menu-main { min-width: 0; }
.menu-name { font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); font-weight: 550; color: var(--white); letter-spacing: -0.018em; transition: color 0.25s; }
.menu-desc { margin-top: 0.45rem; font-size: 0.9rem; color: var(--muted); line-height: 1.55; max-width: 44rem; }
.menu-price { font-family: var(--serif); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); font-weight: 500; color: var(--azure); letter-spacing: -0.01em; white-space: nowrap; }
.menu-go { color: var(--faint); opacity: 0; transform: translateX(-6px); transition: opacity 0.3s, transform 0.3s var(--ease), color 0.3s; justify-self: end; align-self: center; }
.menu-row:hover .menu-go { opacity: 1; transform: translateX(0); color: var(--azure); }
.menu-note { margin-top: 1.7rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.05em; color: var(--faint); line-height: 1.8; }

/* --- Capabilities grid (what we build, name + one-liner, no prices) --- */
.caps { margin-top: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(1.8rem, 1rem + 3vw, 4.4rem); border-top: 1px solid var(--line-strong); }
.cap { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.9rem; align-items: baseline; padding: 1.5rem 0.2rem; border-bottom: 1px solid var(--line); }
.cap-idx { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); letter-spacing: 0.1em; transform: translateY(-0.1rem); }
.cap-main { min-width: 0; }
.cap-name { font-family: var(--serif); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); font-weight: 550; color: var(--white); letter-spacing: -0.018em; }
.cap-desc { margin-top: 0.4rem; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 760px) { .caps { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .menu-row { grid-template-columns: 2.2rem 1fr auto; gap: 0.8rem; }
  .menu-go { display: none; }
}

/* ---------------------------------------------------------------- Steps (process) */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 1rem + 2vw, 2.8rem); margin-top: clamp(2.6rem, 1.8rem + 2.4vw, 3.6rem); }
@media (max-width: 820px) { .steps3 { grid-template-columns: 1fr; gap: 2rem; } }
.step { border-top: 1px solid var(--line-strong); padding-top: 1.5rem; position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 1px; background: var(--azure); transition: width 0.5s var(--ease); }
.step:hover::before { width: 100%; }
.step .s-num { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--azure); }
.step h3 { margin-top: 1.1rem; font-size: 1.32rem; }
.step p { margin-top: 0.8rem; color: var(--muted); font-size: 0.93rem; line-height: 1.65; }

/* ---------------------------------------------------------------- Guarantee band */
.gband { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding-block: clamp(2.6rem, 2rem + 2.4vw, 4rem); display: flex; gap: clamp(2rem, 1.2rem + 3.5vw, 4rem); align-items: center; flex-wrap: wrap; }
.g-main { flex: 1; min-width: 300px; }
.g-h2 { margin-top: 1.2rem; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); }
.g-copy { margin-top: 1.2rem; max-width: 54rem; }
.seal { width: 116px; height: 116px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--azure); border: 1px solid var(--azure); position: relative; background: radial-gradient(circle at 50% 35%, rgba(79, 155, 255, 0.14), transparent 72%); box-shadow: 0 0 0 4px var(--glow-soft); animation: sealspin 40s linear infinite paused; }
.seal::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1px dashed rgba(79, 155, 255, 0.45); }
.seal-in { text-align: center; }
.seal .s-n { font-family: var(--serif); font-size: 1.4rem; font-weight: 550; line-height: 1; letter-spacing: -0.01em; }
.seal .s-l { font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.16em; margin-top: 0.3rem; }
.g-sign { margin-top: 1.3rem; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--white); opacity: 0.92; }

/* ---------------------------------------------------------------- Teardown offer */
.teardown-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.4rem, 1.4rem + 3.5vw, 4.5rem); align-items: center; }
@media (max-width: 880px) { .teardown-grid { grid-template-columns: 1fr; gap: 2.6rem; } }
.teardown-copy .display { margin-top: 1.4rem; }
.teardown-copy .lead { margin-top: 1.3rem; max-width: 36rem; }
.teardown-copy .cta-row { margin-top: 2rem; }
.artifact { border-radius: var(--r-lg); }
.artifact-bar { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--line); background: rgba(5, 8, 15, 0.4); }
.artifact-dots { display: inline-flex; gap: 0.4rem; }
.artifact-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(140, 175, 235, 0.25); }
.artifact-name { font-family: var(--mono); font-size: 0.72rem; color: var(--azure); letter-spacing: 0.02em; }
.artifact-ver { margin-left: auto; font-family: var(--mono); font-size: 0.64rem; color: var(--faint); letter-spacing: 0.12em; }
.artifact-body { padding: 1.5rem 1.6rem; }
.art-row { display: flex; align-items: baseline; gap: 1rem; padding: 0.66rem 0; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: 0.84rem; }
.art-row:first-child { border-top: 0; padding-top: 0; }
.art-row:last-child { padding-bottom: 0; }
.art-k { color: var(--muted); min-width: 8.5rem; letter-spacing: 0.02em; }
.art-v { color: var(--white); }

/* ---------------------------------------------------------------- FAQ */
.faqs { margin-top: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); border-top: 1px solid var(--line-strong); max-width: 56rem; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.35rem 0.2rem; display: grid; grid-template-columns: 40px 1fr 24px; align-items: baseline; gap: 0.8rem; color: var(--white); font-weight: 500; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem); transition: color 0.2s; }
.faq summary:hover { color: var(--azure-bright); }
.faq summary::-webkit-details-marker { display: none; }
.faq .q-idx { font-family: var(--mono); font-size: 0.7rem; color: var(--faint); }
.faq[open] .q-idx { color: var(--azure); }
.faq .q-text { line-height: 1.45; }
.faq .chev { color: var(--azure); transition: transform 0.3s var(--ease); justify-self: end; align-self: center; font-size: 1.25rem; line-height: 1; font-weight: 300; }
.faq[open] .chev { transform: rotate(45deg); }
.faq .answer { padding: 0 0.2rem 1.5rem 40px; color: var(--muted); font-size: 0.95rem; line-height: 1.7; max-width: 66ch; }
@media (max-width: 540px) { .faq .answer { padding-left: 0.2rem; } }

/* ---------------------------------------------------------------- Book / Calendly */
.book { padding-bottom: clamp(5rem, 4rem + 4vw, 9rem); }
.book-head { max-width: 46rem; }
.book-h2 { margin-top: 1.4rem; }
.book-sub { margin-top: 1.2rem; }
.cal-wrap { max-width: 900px; margin: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem) auto 0; min-height: 560px; display: flex; flex-direction: column; }
.cal-embed { position: relative; flex: 1; min-height: 560px; width: 100%; }
.cal-embed iframe { border-radius: var(--r-lg); }
.cal-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0.7rem; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cal-spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(140, 175, 235, 0.25); border-top-color: var(--azure); animation: spin 0.85s linear infinite; }
.cal-fallback { min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.7rem; padding: 2.5rem; text-align: center; }
.cal-fb-title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: var(--white); letter-spacing: -0.02em; }
.cal-fb-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
.cal-note { margin-top: 1.5rem; font-size: 0.7rem; letter-spacing: 0.05em; color: var(--muted); }

/* ---------------------------------------------------------------- Footer */
.footer { border-top: 1px solid var(--line); position: relative; overflow: hidden; background: rgba(4, 7, 13, 0.5); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.4rem; padding-block: clamp(2.8rem, 2rem + 2.4vw, 4rem); align-items: start; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 2.2rem; } }
.footer-line { margin-top: 1rem; color: var(--muted); font-size: 0.92rem; max-width: 26rem; line-height: 1.65; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-h { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.35rem; }
.footer-col a { color: var(--body); font-size: 0.92rem; transition: color 0.2s; width: fit-content; }
.footer-col a:hover { color: var(--white); }
.footer-cta { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--azure) !important; font-weight: 600; }
.watermark-wrap { overflow: hidden; }
.footer .watermark { font-family: var(--serif); font-weight: 600; font-size: clamp(5rem, 18vw, 13rem); color: rgba(124, 162, 230, 0.045); line-height: 0.8; letter-spacing: -0.03em; user-select: none; pointer-events: none; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.footer-bottom .tag { text-transform: none; letter-spacing: 0.04em; }

:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; border-radius: 4px; }

/* =============================================================== Motion */
.js [data-reveal] [data-stagger], .js [data-reveal][data-stagger] { opacity: 0; transform: translateY(24px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal].is-visible [data-stagger], [data-reveal][data-stagger].is-visible { opacity: 1; transform: none; }

@keyframes sheen { to { left: 130%; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sealspin { to { transform: rotate(360deg); } }

/* responsive helpers */
@media (max-width: 820px) { .navlinks { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] [data-stagger], .js [data-reveal][data-stagger] { opacity: 1 !important; transform: none !important; }
  .word-mask > span { transform: none !important; }
  .marquee-track { animation: none !important; }
  .meter-fill { transition: none !important; }
  .paper.is-visible .meter-fill { transform: scaleX(var(--fill, 0)); }
  .avail-dot { animation: none !important; }
  .cal-spinner { animation: none !important; }
}

/* =========================================================================
   Teardown landing page (teardown.html) + sample artifact (teardown-sample.html)
   Same design system as the index: tokens, glass, eyebrow, buttons, reveal
   engine. Nothing here introduces new keyframe motion, so the reduced-motion
   block above already covers both pages.
   ========================================================================= */

/* ---------------------------------------------------------------- Landing nav */
.lp-nav .wrap { justify-content: space-between; }
.lp-nav-tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 0.9rem; }
@media (max-width: 520px) { .lp-nav-tag { display: none; } }

/* ---------------------------------------------------------------- Landing hero */
.lp-hero { padding-bottom: clamp(2rem, 1.6rem + 2vw, 3.5rem); }
.lp-hero .hero-inner { max-width: 52rem; }
.lp-hero .hero-lead { max-width: 40rem; }

/* ---------------------------------------------------------------- Deliverables row */
.lp-deliv-section { padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.deliv-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 820px) { .deliv-row { grid-template-columns: 1fr; } }
.deliv-card { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.55rem; }
.deliv-idx { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; color: var(--azure); }
.deliv-h { font-family: var(--serif); font-size: 1.24rem; font-weight: 550; color: var(--white); letter-spacing: -0.018em; line-height: 1.2; }
.deliv-sub { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em; color: var(--muted); }

/* ---------------------------------------------------------------- Sample strip */
.sample-strip { display: flex; align-items: center; justify-content: space-between; gap: 1.8rem; flex-wrap: wrap; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding-block: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); }
.sample-strip-copy { display: flex; flex-direction: column; gap: 0.9rem; }
.sample-strip-h { font-family: var(--serif); font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); font-weight: 550; color: var(--white); letter-spacing: -0.02em; }

/* ---------------------------------------------------------------- Guarantee note */
.lp-guarantee { max-width: 60rem; margin: 0 auto; font-family: var(--mono); font-size: 0.82rem; line-height: 1.85; letter-spacing: 0.01em; color: var(--muted); padding-left: 1.3rem; border-left: 1px solid var(--azure); }
.lp-guarantee b, .lp-guarantee .hl { color: var(--white); font-weight: 500; }

/* ---------------------------------------------------------------- Qualifier */
.lp-book .book-head { margin-bottom: 0; }
.qualifier { max-width: 900px; margin: clamp(2rem, 1.4rem + 2vw, 3rem) auto 1.1rem; padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.qual-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--azure); }
.qual-groups { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 1.5rem; }
.qual-q { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.seg { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.seg-btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--sans); font-size: 0.9rem; font-weight: 500; color: var(--body); background: rgba(120, 160, 230, 0.05); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.6rem 1.05rem; cursor: pointer; transition: color 0.22s, background 0.22s, border-color 0.22s; }
.seg-btn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); transition: background 0.22s, box-shadow 0.22s; flex: none; }
.seg-btn:hover { color: var(--white); border-color: var(--azure); }
.seg-btn[aria-pressed="true"] { color: var(--white); background: rgba(79, 155, 255, 0.14); border-color: var(--azure); }
.seg-btn[aria-pressed="true"]::before { background: var(--azure); box-shadow: 0 0 0 3px var(--glow-soft); }
.qual-input { width: 100%; background: rgba(5, 8, 15, 0.45); border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--white); font-family: var(--sans); font-size: 1rem; line-height: 1.5; padding: 0.85rem 1rem; transition: border-color 0.22s, box-shadow 0.22s; }
.qual-input::placeholder { color: var(--faint); }
.qual-input:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px var(--glow-soft); }
.qual-note { margin-top: 1.1rem; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; color: var(--faint); }

/* ---------------------------------------------------------------- Micro footer */
.lp-footer { border-top: 1px solid var(--line); background: rgba(4, 7, 13, 0.5); }
.lp-footer-in { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap; padding-block: 2rem; }
.lp-footer .brand { font-size: 1.2rem; }
.lp-footer-meta { display: flex; align-items: center; gap: 1.1rem 1.6rem; flex-wrap: wrap; }
.lp-footer-meta a { color: var(--body); font-size: 0.9rem; transition: color 0.2s; }
.lp-footer-meta a:hover { color: var(--white); }
.lp-foot-note { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

/* ---------------------------------------------------------------- Artifact link (index teardown card) */
.artifact-link { display: block; color: inherit; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.artifact-link:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.artifact-view { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--azure); text-transform: uppercase; }
.artifact-link:hover .artifact-view .arrow-glyph { transform: translateX(3px); }

/* =========================================================================
   Sample teardown document (teardown-sample.html)
   A typeset deliverable: centered column, hairline tables, mono labels.
   ========================================================================= */
.doc-main { padding-block: clamp(2.6rem, 2rem + 3vw, 4.5rem); }
.doc { max-width: 60rem; margin: 0 auto; }
.doc-back { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; }
.doc-back:hover { color: var(--white); }
.doc-back .arrow-glyph { transform: rotate(180deg); }
.doc-kicker { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--azure); margin-top: 1.8rem; }
.doc-title { font-family: var(--serif); font-weight: 550; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.08; letter-spacing: -0.028em; color: var(--white); margin-top: 1rem; text-wrap: balance; }
.doc-meta { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--muted); }
.doc-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.doc-meta .dv { color: var(--white); }

.doc-sample-note { margin-top: 1.8rem; font-family: var(--mono); font-size: 0.74rem; line-height: 1.75; letter-spacing: 0.01em; color: var(--muted); background: rgba(120, 160, 230, 0.05); border: 1px solid var(--line); border-left: 2px solid var(--azure); border-radius: var(--r-sm); padding: 1rem 1.2rem; }
.doc-sample-note b { color: var(--white); font-weight: 500; }

.doc-section { margin-top: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); }
.doc-section > .doc-h { display: flex; align-items: baseline; gap: 0.85rem; border-top: 1px solid var(--line-strong); padding-top: 1.2rem; }
.doc-h .doc-h-idx { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--azure); transform: translateY(-0.05rem); }
.doc-h .doc-h-t { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); font-weight: 550; color: var(--white); letter-spacing: -0.02em; line-height: 1.2; }
.doc-section p { margin-top: 1.1rem; color: var(--body); font-size: 0.98rem; line-height: 1.7; max-width: 52rem; }
.doc-section p + p { margin-top: 0.9rem; }
.doc-section .text-white { color: var(--white); }
.doc-list { margin: 1.1rem 0 0; padding: 0; list-style: none; max-width: 52rem; }
.doc-list li { position: relative; padding: 0.55rem 0 0.55rem 1.5rem; border-bottom: 1px dashed var(--line); font-size: 0.95rem; line-height: 1.6; color: var(--body); }
.doc-list li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 6px; height: 6px; border-radius: 50%; background: var(--azure); opacity: 0.7; }
.doc-list li b { color: var(--white); font-weight: 500; }
.doc-list li .tnum { font-family: var(--mono); color: var(--white); }

/* Tables */
.doc-table-wrap { margin-top: 1.3rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 34rem; }
.doc-table caption { text-align: left; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 0.9rem 1.1rem 0; }
.doc-table th, .doc-table td { padding: 0.72rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table thead th { font-family: var(--mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); background: rgba(120, 160, 230, 0.04); }
.doc-table tbody td { color: var(--body); }
.doc-table tbody td.strong, .doc-table .d-ink { color: var(--white); font-weight: 500; }
.doc-table .n { text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table tfoot td { padding: 0.8rem 1.1rem; border-top: 1px solid var(--line-strong); font-weight: 600; color: var(--white); background: rgba(79, 155, 255, 0.06); }
.doc-table .yes { color: var(--good); }
.doc-table .partial { color: var(--azure-bright); }
.doc-table .no { color: var(--muted); }
.col-cons { color: var(--white) !important; font-weight: 600; }

/* Ranked automations */
.auto-list { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.auto { border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.5rem; background: linear-gradient(160deg, rgba(124, 162, 230, 0.05), rgba(124, 162, 230, 0.01)); }
.auto-top { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; }
.auto-rank { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--azure); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.28rem 0.7rem; }
.auto-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 550; color: var(--white); letter-spacing: -0.018em; }
.auto-stats { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 0.7rem; }
.auto-stat { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.03em; color: var(--body); background: rgba(5, 8, 15, 0.4); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.75rem; }
.auto-stat b { color: var(--white); font-weight: 500; }
.auto p { margin-top: 0.95rem; font-size: 0.92rem; line-height: 1.65; color: var(--body); max-width: none; }
.auto p .lbl { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: 0.5rem; }

/* Document CTA */
.doc-cta { margin-top: clamp(2.6rem, 2rem + 2vw, 3.6rem); border-top: 1px solid var(--line-strong); padding-top: clamp(2rem, 1.5rem + 1.5vw, 2.8rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.doc-cta-h { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); font-weight: 550; color: var(--white); letter-spacing: -0.02em; max-width: 26ch; }
.doc-cta-sub { margin-top: 0.6rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em; color: var(--muted); }

/* Print: flip the deliverable to paper so it prints like a real document. */
@media print {
  body { background: #fff !important; color: #14203a; }
  body::before, body::after { display: none !important; }
  .lp-nav, .progress, .doc-back, .doc-cta .btn { display: none !important; }
  .doc-kicker { color: #2a63c6; }
  .doc-title, .doc-h .doc-h-t, .doc-cta-h, .doc-table tbody td.strong, .doc-table .d-ink, .col-cons { color: #0b1424 !important; }
  .doc-section p, .doc-list li, .doc-table tbody td { color: #33405c; }
  .auto { background: #f6f7fb; border-color: rgba(11,20,36,0.12); }
  .doc-table-wrap, .doc-table th, .doc-table td { border-color: rgba(11,20,36,0.14); }
  .doc-table thead th { background: #eef0f6; color: #4a5670; }
  .doc-sample-note { background: #f1f3f9; color: #4a5670; border-color: rgba(11,20,36,0.14); }
}

/* =========================================================================
   Multi-page rebuild: shared nav active state, honest build gallery, fact
   band, editorial CTA bands, about monogram. Same tokens, no new keyframes,
   so the reduced-motion block near the top already covers these.
   ========================================================================= */

/* ---------------------------------------------------------------- Nav active state */
.nav-link[aria-current="page"] { color: var(--white); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* ---------------------------------------------------------------- Interior page header + rhythm */
.page-head { max-width: 47rem; }
.page-head .display { margin-top: 1.4rem; }
.page-head > p { margin-top: 1.2rem; }
.section--first { padding-top: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section--tight-top { padding-top: clamp(1.8rem, 1.2rem + 2vw, 3rem); }
.section--tight-bottom { padding-bottom: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); }

/* ---------------------------------------------------------------- True stat band (facts, not counted metrics) */
.statband-true .statnum { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); letter-spacing: -0.022em; line-height: 1.04; text-wrap: balance; }
.statband-true .statlbl { margin-top: 0.75rem; }

/* ---------------------------------------------------------------- Build gallery (dark cards: home featured + work) */
.build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); }
@media (max-width: 940px) { .build-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .build-grid { grid-template-columns: 1fr; } }
/* One asymmetric editorial moment on the home page: unequal featured pair. */
.build-grid.featured { grid-template-columns: 1.08fr 0.92fr; margin-top: clamp(2rem, 1.4rem + 2vw, 3rem); }
@media (max-width: 760px) { .build-grid.featured { grid-template-columns: 1fr; } }
.deliv-row.after-head { margin-top: clamp(2rem, 1.4rem + 2vw, 3rem); }

.build-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); padding: 1.7rem 1.6rem 1.75rem; background: linear-gradient(162deg, rgba(124, 162, 230, 0.05), rgba(124, 162, 230, 0.012)); transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
a.build-card { color: inherit; }
.build-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 30px 62px -42px rgba(0, 0, 0, 0.8); }
.build-badge { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; }
.build-cat { color: var(--muted); }
.build-badge .bsep { width: 3px; height: 3px; border-radius: 50%; background: var(--azure); opacity: 0.6; flex: none; }
.build-state { color: var(--azure-bright); }
.build-state.is-live { color: var(--good); }
.build-name { font-family: var(--serif); font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.6rem); font-weight: 550; color: var(--white); letter-spacing: -0.02em; margin-top: 1rem; line-height: 1.14; }
.build-desc { margin-top: 0.85rem; font-size: 0.93rem; line-height: 1.62; color: var(--body); }
.build-desc + .build-desc { margin-top: 0.7rem; }
.build-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 1.35rem; }
.build-stack-line { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.chip { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.03em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.32rem 0.62rem; white-space: nowrap; }
.build-card:hover .chip { border-color: var(--line-strong); color: var(--body); }

/* ---------------------------------------------------------------- Editorial CTA band (home + work) */
.cta-band { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding-block: clamp(2.6rem, 2rem + 2.4vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: clamp(1.6rem, 1rem + 2.5vw, 3rem); flex-wrap: wrap; }
.cta-band-copy { max-width: 32ch; }
.cta-band-h { font-family: var(--serif); font-weight: 550; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem); color: var(--white); letter-spacing: -0.024em; line-height: 1.08; }
.cta-band-sub { margin-top: 0.9rem; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ---------------------------------------------------------------- Compact menu preview (home) "see all" row */
.menu-all { display: flex; align-items: center; gap: 0.6rem; padding: 1.55rem 0.2rem; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--azure); font-weight: 500; letter-spacing: -0.01em; transition: padding 0.3s var(--ease); }
.menu-all:hover { padding-left: 0.9rem; }
.menu-all .arrow-glyph { transition: transform 0.25s var(--ease); }
.menu-all:hover .arrow-glyph { transform: translateX(3px); }

/* ---------------------------------------------------------------- Process strip (home) link out */
.strip-link { margin-top: 1.9rem; display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--azure); transition: gap 0.25s var(--ease); }
.strip-link:hover { gap: 0.85rem; }

/* ---------------------------------------------------------------- About: monogram photo slot + aside */
.about-aside { align-self: start; position: sticky; top: 108px; display: flex; flex-direction: column; gap: 1.9rem; }
@media (max-width: 900px) { .about-aside { position: static; } }
.about-aside .factcard { position: static; top: auto; }
.monogram { position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--line-strong); border-radius: var(--r); background: linear-gradient(165deg, rgba(124, 162, 230, 0.10), rgba(124, 162, 230, 0.02)); display: grid; place-items: center; overflow: hidden; }
.monogram::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 26px 26px, 26px 26px; opacity: 0.7; }
.monogram-mark { position: relative; font-family: var(--serif); font-weight: 550; font-size: clamp(3.4rem, 2rem + 7vw, 5.6rem); color: var(--white); letter-spacing: -0.045em; line-height: 1; }
.monogram-cap { position: absolute; left: 1.1rem; bottom: 0.95rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------------- About: stack row (prose section) */
.about-stack { margin-top: 2.4rem; }
.about-lead-in { margin-top: 2.6rem; }
.about-copy h3.about-sub { font-family: var(--serif); font-weight: 550; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); color: var(--white); letter-spacing: -0.02em; margin-top: 2.8rem; }
.about-copy h3.about-sub + p { margin-top: 1.1rem; }

/* ---------------------------------------------------------------- Work: note under gallery */
.gallery-note { margin-top: 1.8rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--faint); line-height: 1.8; max-width: 52rem; }

/* ------------------------------------------------ rotating tools strip */
.tools-marquee { display: flex; overflow: hidden; gap: 3.2rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tools-marquee .tm-track { display: flex; flex: none; align-items: center; gap: 3.2rem; list-style: none; margin: 0; padding: 0; animation: tm-scroll 36s linear infinite; }
.tools-marquee .tm-track li { font-family: var(--serif); font-size: 1.28rem; color: var(--muted); white-space: nowrap; transition: color 0.3s; }
.tools-marquee:hover .tm-track { animation-play-state: paused; }
.tools-marquee:hover .tm-track li { color: var(--body); }
@keyframes tm-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 3.2rem)); } }
@media (prefers-reduced-motion: reduce) { .tools-marquee .tm-track { animation: none !important; } }

/* ------------------------------------------------ booking two-step flow */
.step-chip { display: inline-flex; align-items: center; padding: 0.28rem 0.7rem; margin-right: 0.9rem; border: 1px solid rgba(79, 155, 255, 0.4); border-radius: 999px; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--azure); background: rgba(79, 155, 255, 0.08); }
.qual-continue { margin-top: 1.4rem; }
.cal-step-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem; padding: 1.2rem 1.4rem 0.4rem; color: var(--white); font-weight: 500; }
.qual-summary { font-size: 0.68rem; letter-spacing: 0.08em; color: var(--muted); margin-left: 0.2rem; }
.qual-back { margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--body); font-family: var(--sans); font-size: 0.8rem; padding: 0.4rem 0.9rem; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.qual-back:hover { border-color: var(--azure); color: var(--white); }
.step-in { animation: stepIn 0.45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .step-in { animation: none; } }

.grid-more { display: flex; justify-content: center; margin-top: 2.2rem; }
.grid-more .menu-all { font-size: 0.98rem; }

/* ============================================= LEGAL PAGES + FOOTER LEGAL LINKS */
.legal { max-width: 46rem; margin-top: 3rem; }
.legal h3 { font-family: Fraunces, serif; font-weight: 550; font-size: 1.35rem; color: #eef3fb; margin: 2.2rem 0 0.6rem; letter-spacing: -0.01em; }
.legal p { color: #aab6cc; line-height: 1.7; margin: 0 0 0.9rem; }
.legal p strong { color: #dbe4f2; }
.legal a { color: #84b6ff; text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover { color: #84b6ff; }

/* --- compact ad lander (2026-07): calendar above the fold on phones --------
   The lp-compact hero shrinks type and padding so the booking calendar is
   visible on the first screen of a 375px-wide phone without scrolling. */
.lp-compact { padding-top: clamp(1.4rem, 1rem + 2vw, 3rem); padding-bottom: clamp(0.9rem, 0.7rem + 1vw, 1.6rem); }
.lp-compact .hero-h1 { margin-top: 1rem; font-size: clamp(1.9rem, 1rem + 4.2vw, 3.8rem); }
.lp-compact .hero-lead { margin-top: 0.85rem; font-size: clamp(0.98rem, 0.92rem + 0.4vw, 1.12rem); max-width: 32rem; }
.section-cal-first { padding-block: clamp(0.6rem, 0.5rem + 0.8vw, 1.4rem); position: relative; }
.section-cal-first .cal-wrap { margin-top: 0; }
