/* Roxta Proposal — DeManual */

:root {
  --bg: #0A0908;
  --surface: #141210;
  --text: #F5F1E8; --text-rgb: 245, 241, 232; --bg-rgb: 10, 9, 8;
  --accent: #C9A96E;
  --support: #5C4A2E;
  --mute: rgba(var(--text-rgb), 0.55);
  --hairline: rgba(var(--text-rgb), 0.08);
}

body.palette-a {
  --bg: #0A0908;
  --surface: #141210;
  --text: #F5F1E8; --text-rgb: 245, 241, 232; --bg-rgb: 10, 9, 8;
  --accent: #C9A96E;
  --support: #5C4A2E;
}
body.palette-b {
  --bg: #0B1418;
  --surface: #11201F;
  --text: #E8EFEC; --text-rgb: 232, 239, 236; --bg-rgb: 11, 20, 24;
  --accent: #0DF2C9;
  --support: #264B45;
}
body.palette-c {
  --bg: #0F0B09;
  --surface: #1B1411;
  --text: #F2E8DC; --text-rgb: 242, 232, 220; --bg-rgb: 15, 11, 9;
  --accent: #E0A96D;
  --support: #7A4C3A;
}
body.palette-d {
  --bg: #FDFBF7;
  --surface: #F5F2EB;
  --text: #2A2621; --text-rgb: 42, 38, 33; --bg-rgb: 253, 251, 247;
  --accent: #D4A373;
  --support: #E6D5C3;
  --mute: rgba(42, 38, 33, 0.55);
  --hairline: rgba(42, 38, 33, 0.12);
}

/* Base resets for light theme */
body.palette-d .site-header.scrolled {
  background: rgba(253, 251, 247, 0.85);
}
body.palette-d .nav a { color: rgba(42, 38, 33, 0.6); }
body.palette-d .nav a:hover { color: var(--text); }
body.palette-d .brand-logo,
body.palette-d .loader-logo,
body.palette-d .footer-logo { filter: brightness(0); }

/* Overrides for hardcoded white boxes -> dark transparent */
body.palette-d .audit-card, body.palette-d .mo-card, body.palette-d .process-card,
body.palette-d .step, body.palette-d .invest-card, body.palette-d .phase2-card,
body.palette-d .sm-node, body.palette-d .ref-frame {
  background: rgba(42, 38, 33, 0.025); border-color: rgba(42, 38, 33, 0.1);
}
body.palette-d .audit-card:hover, body.palette-d .mo-card:hover, body.palette-d .process-card:hover,
body.palette-d .sm-node:hover, body.palette-d .ref-frame:hover {
  background: rgba(42, 38, 33, 0.05); border-color: rgba(212, 163, 115, 0.4);
}

/* Gradients and specific elements */
body.palette-d .hero-bg {
  background: radial-gradient(ellipse at 70% 30%, rgba(212, 163, 115, 0.12), transparent 60%),
              repeating-linear-gradient(135deg, rgba(42, 38, 33, 0.02) 0 2px, transparent 2px 22px),
              linear-gradient(180deg, #F5F2EB 0%, var(--bg) 100%);
}
body.palette-d .hero-vignette {
  background: linear-gradient(180deg, rgba(253, 251, 247, 0.4) 0%, rgba(253, 251, 247, 0.0) 30%, var(--bg) 95%);
}
body.palette-d .hero-grid {
  background-image: linear-gradient(to right, rgba(42, 38, 33, 0.04) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(42, 38, 33, 0.04) 1px, transparent 1px);
}
body.palette-d .invest-hero {
  background: linear-gradient(180deg, rgba(212, 163, 115, 0.045), rgba(42, 38, 33, 0.012));
}

/* Schema figure */
body.palette-d .schema-figure { background: var(--surface); }

/* Overrides for text colors hardcoded to white */
body.palette-d .body-prose, body.palette-d .hero-sub, body.palette-d .audit-card p,
body.palette-d .invest-hero-lede, body.palette-d .phase2-card-lede { color: rgba(42, 38, 33, 0.75); }
body.palette-d .invest-list li, body.palette-d .phase2-card-list li {
  color: rgba(42, 38, 33, 0.85); border-bottom-color: rgba(42, 38, 33, 0.06);
}
body.palette-d .invest-list.excluded li { color: rgba(42, 38, 33, 0.55); }
body.palette-d .invest-list.excluded li::before { color: rgba(42, 38, 33, 0.3); }

body.palette-d .cta-contact { background: rgba(42, 38, 33, 0.025); border-color: rgba(42, 38, 33, 0.1); }
body.palette-d .cta-contact:hover { background: rgba(212, 163, 115, 0.06); }
body.palette-d .loader { background: var(--bg); }
body.palette-d .site-header { background: transparent; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  transition: background 700ms ease, color 700ms ease;
}

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

.font-display { font-family: 'Fraunces', 'Canela', Georgia, serif; font-optical-sizing: auto; }
.font-body { font-family: 'Inter', -apple-system, system-ui, sans-serif; }
.font-mono { font-family: 'JetBrains Mono', 'Geist Mono', ui-monospace, monospace; }

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.label-mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute);
}

/* Hairline rules */
.hairline {
  height: 1px;
  background: var(--hairline);
  width: 100%;
}
.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

/* Page chrome */
.shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 56px;
}
@media (max-width: 720px) {
  .shell { padding: 0 22px; }
}

/* Section */
.section {
  position: relative;
  padding: 140px 0;
}
@media (max-width: 720px) {
  .section { padding: 90px 0; }
}

.section-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* Headlines */
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }
.display-xl {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(48px, 7.5vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-weight: 300;
}
.display-lg {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 300;
}
.display-md {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  font-weight: 300;
}
.italic-em {
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
}

/* Body copy */
.body-prose {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(var(--text-rgb), 0.78);
  max-width: 56ch;
}
.body-prose p + p { margin-top: 1.1em; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 22px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 280ms ease, backdrop-filter 280ms ease, border-color 280ms ease, padding 280ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(var(--bg-rgb), 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
  padding: 14px 56px;
}
@media (max-width: 720px) {
  .site-header, .site-header.scrolled { padding: 14px 22px; }
}

.brand-mark {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-mark .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.brand-logo {
  height: 22px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: opacity 200ms ease;
}
.brand-mark:hover .brand-logo { opacity: 1; }
.site-header.scrolled .brand-logo { height: 20px; }

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav a {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.55);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 200ms ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--text);
  transition: width 220ms ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

@media (max-width: 860px) {
  .nav { display: none; }
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: grid;
  place-items: center;
  transition: opacity 600ms ease;
}
.loader.hide { opacity: 0; pointer-events: none; }
.loader-logo {
  height: clamp(34px, 5vw, 56px);
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0;
  animation: loaderLogoIn 900ms 200ms ease forwards;
}
@keyframes loaderLogoIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.loader-meta {
  position: absolute;
  bottom: 32px; left: 0; right: 0;
  text-align: center;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -10% 0 0 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(201, 169, 110, 0.12), transparent 60%),
    repeating-linear-gradient(135deg, rgba(var(--text-rgb), 0.018) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, #1a1612 0%, var(--bg) 100%);
  opacity: 0.95;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.4) 0%, rgba(var(--bg-rgb), 0.0) 30%, var(--bg) 95%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(var(--text-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--text-rgb), 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent 80%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  margin-bottom: 40px;
  display: flex; align-items: center; gap: 14px;
}
.hero-headline {
  max-width: 18ch;
  margin-bottom: 36px;
}
.hero-sub {
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(var(--text-rgb), 0.75);
  max-width: 52ch;
}
.hero-foot {
  margin-top: 70px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.scroll-cue {
  display: flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute);
}
.scroll-cue .arrow {
  display: inline-block;
  width: 1px; height: 28px;
  background: var(--accent);
  position: relative;
  animation: pulseDown 2.4s ease infinite;
}
.scroll-cue .arrow::after {
  content: "";
  position: absolute;
  bottom: -1px; left: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: rotate(45deg);
}
@keyframes pulseDown {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* Word reveal */
.word-mask { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word-mask > span {
  display: inline-block;
  transform: translateY(110%);
  animation: wordUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes wordUp { to { transform: translateY(0); } }

/* Audit grid */
.audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 760px) { .audit-grid { grid-template-columns: 1fr; } }

.audit-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: rgba(var(--text-rgb), 0.018);
  transition: background 280ms ease, transform 280ms ease, border-color 280ms ease;
}
.audit-card:hover {
  background: rgba(var(--text-rgb), 0.04);
  border-color: rgba(var(--text-rgb), 0.16);
  transform: translateY(-3px);
}
.audit-card .idx {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 18px;
}
.audit-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.audit-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(var(--text-rgb), 0.65);
  margin: 0;
}
.audit-card .tag {
  position: absolute;
  top: 28px; right: 28px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute);
}
.audit-card.heavy {
  background: rgba(201, 169, 110, 0.04);
  border-color: rgba(201, 169, 110, 0.22);
}
.audit-card .red-dot {
  position: absolute;
  top: 26px; left: 26px;
  width: 6px; height: 6px;
  background: #E55B4B;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(229, 91, 75, 0.7);
}
.audit-card.heavy .idx { padding-left: 18px; }

/* Two column block */
.two-col {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.4fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

/* Philosophy plates */
.plates {
  display: flex;
  gap: 28px;
  justify-content: flex-start;
}
.plate {
  width: 130px; height: 200px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 14px;
  background: rgba(var(--text-rgb), 0.02);
}
.plate svg { width: 100%; height: 100%; }

/* Reference horizontal gallery */
.ref-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.ref-track::-webkit-scrollbar { height: 6px; }
.ref-track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; opacity: 0.4; }
.ref-track::-webkit-scrollbar-track { background: transparent; }

.ref-frame {
  flex: 0 0 540px;
  scroll-snap-align: start;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(var(--text-rgb), 0.02);
  overflow: hidden;
  filter: saturate(0.7);
  transition: filter 320ms ease, transform 320ms ease, border-color 320ms ease;
  display: flex;
  flex-direction: column;
}
.ref-frame:hover {
  filter: saturate(1);
  transform: translateY(-4px);
  border-color: rgba(201, 169, 110, 0.3);
}
.ref-frame .canvas {
  height: 320px;
  position: relative;
  background: #0d0c0a;
  overflow: hidden;
}
.ref-frame .cap {
  padding: 16px 20px 18px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--hairline);
}
@media (max-width: 720px) {
  .ref-frame { flex: 0 0 80vw; }
  .ref-frame .canvas { height: 240px; }
}

/* Brand palette cards */
.palette-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .palette-row { grid-template-columns: 1fr; } }

.palette-card {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 32px;
  cursor: pointer;
  transition: border-color 320ms ease, transform 320ms ease;
  overflow: hidden;
}
.palette-card:hover {
  border-color: rgba(201, 169, 110, 0.45);
  transform: translateY(-4px);
}
.palette-card.active {
  border-color: var(--accent);
}
.palette-card.active::after {
  content: "INHABITED";
  position: absolute;
  top: 18px; right: 22px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.swatch-row { display: flex; gap: 6px; margin: 20px 0 22px; }
.swatch {
  flex: 1;
  height: 56px;
  border-radius: 6px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.05);
}
.swatch .hex {
  position: absolute;
  bottom: -22px; left: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--mute);
}

.preview-mini {
  margin-top: 32px;
  padding: 22px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
}
.preview-mini h5 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  margin: 0 0 6px;
}
.preview-mini p {
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 16px;
  opacity: 0.7;
}
.mini-btn {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--accent);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* Typography specimens */
.spec {
  padding: 70px 0;
  border-top: 1px solid var(--hairline);
  cursor: default;
  transition: opacity 300ms ease;
}
.spec:hover .spec-line {
  letter-spacing: -0.022em;
}
.spec:hover .underline-draw::after {
  width: 100%;
}
.spec-line {
  font-size: clamp(38px, 5.6vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  font-weight: 300;
  transition: letter-spacing 300ms ease;
  display: inline-block;
}
.underline-draw {
  position: relative;
  display: inline-block;
}
.underline-draw::after {
  content: "";
  position: absolute;
  left: 0; bottom: -8px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 320ms ease;
}
.spec-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}
@media (max-width: 760px) { .spec-meta { grid-template-columns: 1fr; gap: 16px; } }
.spec-meta .col h6 {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--mute);
  margin: 0 0 8px;
  text-transform: uppercase;
}
.spec-meta .col p { font-size: 14px; line-height: 1.5; opacity: 0.8; margin: 0; }

/* Interaction Library */
.ix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .ix-grid { grid-template-columns: 1fr; } }

.ix-col {
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  transition: border-color 320ms ease, background 320ms ease;
}
.ix-col h6 {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 4px;
}
.ix-col h4 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  margin: 0 0 22px;
}

.ix-stack > * + * { margin-top: 22px; }

/* Buttons */
.btn-ghost-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid;
  background: transparent;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-fill-wipe {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 14px 28px;
  border-radius: 4px;
  background: #c9a96e;
  color: #0a0908;
  border: none;
  overflow: hidden;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-fill-wipe span { position: relative; z-index: 2; }
.btn-fill-wipe::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.18);
  transform: translateX(-100%);
  transition: transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-fill-wipe:hover::before { transform: translateX(0); }

.btn-text-arrow {
  display: inline-flex; align-items: center;
  gap: 0;
  padding: 8px 0;
  background: transparent;
  border: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  color: inherit;
  position: relative;
}
.btn-text-arrow .label { position: relative; }
.btn-text-arrow .label::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  height: 1px; width: 0; background: currentColor;
  transition: width 240ms ease;
}
.btn-text-arrow .arr {
  margin-left: 12px;
  transition: transform 240ms ease;
}
.btn-text-arrow:hover .label::after { width: 100%; }
.btn-text-arrow:hover .arr { transform: translateX(6px); }

/* Block A: glassy with strip */
.block-glass {
  position: relative;
  padding: 22px 22px 22px 28px;
  background: rgba(var(--text-rgb), 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--text-rgb), 0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 280ms ease, box-shadow 280ms ease;
}
.block-glass::before {
  content: "";
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 2px;
  background: var(--accent);
  transition: width 260ms ease;
}
.block-glass:hover::before { width: 4px; }
.block-glass:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.4); }
.block-glass h6 { font-family: 'Fraunces', serif; font-size: 17px; margin: 0 0 6px; font-weight: 400; }
.block-glass p { margin: 0; font-size: 13px; line-height: 1.55; opacity: 0.7; }

/* Block B: rect draw */
.block-flat {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(13, 242, 201, 0.2);
  border-radius: 4px;
  transition: background 280ms ease;
}
.block-flat svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.block-flat svg rect {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.2s ease;
}
.block-flat:hover svg rect { stroke-dashoffset: 0; }
.block-flat h6 { font-family: 'Fraunces', serif; font-size: 17px; margin: 0 0 6px; font-weight: 400; }
.block-flat p { margin: 0; font-size: 13px; line-height: 1.55; opacity: 0.7; position: relative; }

/* Block C: warm card */
.block-warm {
  position: relative;
  padding: 22px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--hairline);
  transition: box-shadow 320ms ease;
  overflow: hidden;
}
.block-warm::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 0 rgba(224, 169, 109, 0.15);
  transition: box-shadow 320ms ease;
  pointer-events: none;
}
.block-warm:hover::before { box-shadow: inset 0 0 40px 0 rgba(224, 169, 109, 0.2); }
.block-warm .micro {
  position: absolute; bottom: 14px; right: 18px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 280ms ease;
}
.block-warm:hover .micro { opacity: 1; }
.block-warm h6 { font-family: 'Fraunces', serif; font-size: 17px; margin: 0 0 6px; font-style: italic; font-weight: 400; }
.block-warm p { margin: 0; font-size: 13px; line-height: 1.55; opacity: 0.7; }

/* Mini tables */
.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.mini-table th, .mini-table td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid rgba(var(--text-rgb), 0.05);
}
.mini-table th {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  border-bottom-color: rgba(201, 169, 110, 0.25);
}
.mini-table tbody tr {
  transition: background 240ms ease;
  position: relative;
}
.mini-table tbody tr:hover { background: rgba(201, 169, 110, 0.05); }
.mini-table tbody td:first-child { padding-left: 8px; transition: padding 220ms ease, border-left 220ms ease; }
.mini-table tbody tr:hover td:first-child { border-left: 2px solid var(--accent); padding-left: 10px; }

.mini-table.editorial tbody tr td:first-child {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  transition: color 300ms ease;
}
.mini-table.editorial tbody tr:hover td { color: var(--accent); }

.mini-table.tide tbody tr td:last-child {
  text-align: right;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: transparent;
  transition: color 280ms ease;
}
.mini-table.tide tbody tr:hover td:last-child { color: var(--accent); }

/* Sitemap */
.sitemap {
  position: relative;
  padding: 50px 0;
}
.sitemap-tree {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .sitemap-tree { grid-template-columns: 1fr; gap: 30px; } }

.sm-spine {
  position: sticky; top: 120px;
  border-left: 1px solid var(--hairline);
  padding-left: 20px;
}
.sm-node {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(var(--text-rgb), 0.018);
  transition: border-color 280ms ease, background 280ms ease;
  position: relative;
}
.sm-node:hover { border-color: rgba(201, 169, 110, 0.35); background: rgba(201, 169, 110, 0.04); }
.sm-node .idx { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: 0.28em; color: var(--accent); margin-bottom: 6px; }
.sm-node .title { font-family: 'Fraunces', serif; font-size: 17px; margin: 0 0 4px; }
.sm-node .sub { font-size: 12.5px; line-height: 1.5; color: var(--mute); margin: 0; }

.sm-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 720px) { .sm-row { grid-template-columns: 1fr; } }
.sm-children {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 720px) { .sm-children { grid-template-columns: 1fr 1fr; } }
.sm-child {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px dashed rgba(var(--text-rgb), 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  transition: color 240ms ease, border-color 240ms ease;
}
.sm-child:hover { color: var(--text); border-color: var(--accent); }

/* Motion grid */
.mo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .mo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mo-grid { grid-template-columns: 1fr; } }

.mo-card {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 24px;
  background: rgba(var(--text-rgb), 0.018);
  transition: background 280ms ease, border-color 280ms ease;
  display: flex; flex-direction: column;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.mo-card:hover { background: rgba(var(--text-rgb), 0.04); border-color: rgba(201, 169, 110, 0.25); }
.mo-card .idx {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px;
  letter-spacing: 0.28em; color: var(--accent); margin-bottom: 12px;
}
.mo-card h5 { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 400; margin: 0 0 6px; }
.mo-card p { font-size: 13px; line-height: 1.5; color: var(--mute); margin: 0 0 18px; }
.mo-demo { flex: 1; min-height: 64px; position: relative; }

/* Omnichannel schema */
.schema {
  position: relative;
  padding: 60px 32px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at center, rgba(201, 169, 110, 0.04), transparent 60%),
    rgba(var(--text-rgb), 0.018);
  overflow: hidden;
}
.schema-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) { .schema-grid { grid-template-columns: 1fr; gap: 30px; } }
.schema-col h6 {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 22px;
}
.schema-node {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  margin-bottom: 10px;
  background: rgba(var(--bg-rgb), 0.5);
  font-size: 13px;
  transition: border-color 240ms ease;
}
.schema-node:hover { border-color: rgba(201, 169, 110, 0.4); }
.schema-node .dotmark {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.schema-pill {
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 14px;
  padding: 22px;
  background: rgba(20, 18, 16, 0.6);
  backdrop-filter: blur(8px);
  margin-bottom: 14px;
  text-align: center;
  position: relative;
}
.schema-pill.large { padding: 30px 22px; }
.schema-pill.glow {
  border-color: var(--accent);
  box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.3);
  animation: ringPulse 2.5s ease infinite;
}
@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.35); }
  50% { box-shadow: 0 0 0 12px rgba(201, 169, 110, 0); }
}
.schema-pill h5 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 19px; margin: 0 0 6px; }
.schema-pill p { font-size: 12px; line-height: 1.5; color: var(--mute); margin: 0; }

.schema-lines {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
}

/* Process timeline */
.process-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
}
@media (max-width: 900px) { .process-wrap { grid-template-columns: 1fr; gap: 30px; } }
.process-sticky {
  position: sticky; top: 130px;
  height: fit-content;
}
.process-sticky .num {
  font-family: 'Fraunces', serif;
  font-size: 88px; line-height: 0.9;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  margin-bottom: 14px;
  transition: color 400ms ease;
}
.process-sticky .num.filled { color: var(--accent); -webkit-text-stroke: 0; }
.process-sticky .label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 4px;
}
.process-sticky .name { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 400; }

.process-card {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 36px;
  margin-bottom: 18px;
  background: rgba(var(--text-rgb), 0.018);
  transition: background 320ms ease, border-color 320ms ease;
}
.process-card:hover { background: rgba(var(--text-rgb), 0.035); border-color: rgba(201, 169, 110, 0.25); }
.process-card .head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 18px;
}
.process-card h4 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 28px; }
.process-card .dur {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.28em; color: var(--accent);
}
.process-card ul { margin: 0; padding: 0; list-style: none; }
.process-card li {
  padding: 10px 0;
  font-size: 14.5px; line-height: 1.5;
  border-bottom: 1px dashed rgba(var(--text-rgb), 0.06);
  display: flex; gap: 14px;
}
.process-card li::before {
  content: "—"; color: var(--accent); flex-shrink: 0;
}
.process-card li:last-child { border-bottom: none; }
.process-card .gate {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent);
}

/* Investment cards */
.invest-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  padding: 52px;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: rgba(var(--text-rgb), 0.018);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) {
  .invest-card { grid-template-columns: 1fr; padding: 36px; }
}
.invest-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}
.invest-card.gold::before { background: var(--accent); }
.invest-card.aqua::before { background: #0DF2C9; }
.invest-card.muted { opacity: 0.85; }
.invest-card.muted::before { background: rgba(var(--text-rgb), 0.25); }

.invest-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 40px; font-weight: 300;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}
.invest-card .lede {
  font-size: 15px; line-height: 1.6; color: rgba(var(--text-rgb), 0.7);
  margin: 0 0 22px; max-width: 50ch;
}
.invest-card ul { margin: 0; padding: 0; list-style: none; }
.invest-card li {
  padding: 9px 0;
  font-size: 14px; line-height: 1.5;
  display: flex; gap: 12px;
  border-bottom: 1px dashed rgba(var(--text-rgb), 0.06);
  color: rgba(var(--text-rgb), 0.78);
}
.invest-card li::before {
  content: "/"; color: var(--accent); flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}
.invest-card li:last-child { border-bottom: none; }
.invest-card .price-side {
  display: flex; flex-direction: column; justify-content: flex-end;
  text-align: right;
}
.invest-card .price-side .qty {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.32em; color: var(--mute);
  text-transform: uppercase; margin-bottom: 14px;
}
.invest-card .price {
  font-family: 'Fraunces', serif;
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.invest-card .price-cap {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.3em; color: var(--mute);
  margin-top: 12px; text-transform: uppercase;
}

.total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 28px 36px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: rgba(201, 169, 110, 0.06);
  margin-top: 8px;
}
.total-row .label-mono { color: var(--accent); }
.total-row .total {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 44px); font-weight: 300;
}

.invest-note {
  margin-top: 30px;
  padding: 22px 28px;
  border-left: 2px solid var(--accent);
  font-size: 14.5px; line-height: 1.6;
  color: rgba(var(--text-rgb), 0.7);
  max-width: 70ch;
}

/* Stepper */
.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  margin-top: 40px;
}
@media (max-width: 760px) { .stepper { grid-template-columns: 1fr; } }
.step {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 28px;
  background: rgba(var(--text-rgb), 0.018);
  position: relative;
}
.step .num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.3em; color: var(--accent);
  margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.step .num .pip {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  display: inline-block;
}
.step h4 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 400; margin: 0 0 6px; }
.step .when { font-size: 13px; color: var(--mute); margin: 0 0 18px; }
.step .amount {
  font-family: 'Fraunces', serif; font-size: 32px; font-weight: 300;
  margin-bottom: 4px;
}
.step .pct {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.28em; color: var(--accent); margin-bottom: 18px;
}
.step .secures {
  font-size: 12.5px; line-height: 1.5; color: rgba(var(--text-rgb), 0.65);
  border-top: 1px solid var(--hairline); padding-top: 14px;
}

/* CTA */
.cta {
  text-align: center;
  padding: 180px 0;
  position: relative;
}
.cta-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.02;
  font-weight: 300;
  max-width: 16ch;
  margin: 0 auto 28px;
  letter-spacing: -0.02em;
}
.cta-sub {
  font-size: 17px; line-height: 1.6; color: rgba(var(--text-rgb), 0.7);
  max-width: 52ch; margin: 0 auto 50px;
}
.cta-primary {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 22px 44px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 100px;
  border: 1px dashed transparent;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  cursor: pointer;
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), background 280ms ease;
}
.cta-primary:hover { transform: translateY(-3px); }
/* CTA contacts */
.cta-contacts {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-contact {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 24px;
  border: 1px solid rgba(var(--text-rgb), 0.16);
  border-radius: 2px;
  background: rgba(var(--text-rgb), 0.025);
  text-decoration: none;
  color: var(--text);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
  min-width: 200px;
}
.cta-contact:hover {
  border-color: var(--accent);
  background: rgba(201, 169, 110, 0.06);
  transform: translateY(-2px);
}
.cta-contact-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}
.cta-contact-value {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--text);
}
@media (max-width: 720px) {
  .cta-contact { min-width: 0; flex: 1 1 140px; padding: 12px 16px; }
  .cta-contact-value { font-size: 14px; }
}

.cta-secondary {
  margin-top: 30px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.28em; color: var(--mute);
  text-transform: uppercase;
}

/* Placeholder style */
.placeholder {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  border: 1px dashed var(--accent);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.28em; color: var(--accent);
  text-transform: uppercase;
  background: rgba(201, 169, 110, 0.04);
}
.placeholder.block {
  display: block;
  padding: 60px 24px;
  text-align: center;
  width: 100%;
  border-radius: 12px;
}

/* Footer */
.footer {
  border-top: 1px solid transparent;
  padding: 60px 0 50px;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute; left: 56px; right: 56px; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}
.footer-brand {
  display: inline-block;
  margin-bottom: 22px;
  text-decoration: none;
}
.footer-logo {
  height: 26px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(var(--text-rgb), 0.1);
  max-width: 320px;
  transition: border-color 200ms ease;
}
.footer-contact:hover { border-color: var(--accent); }
.ft-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute);
  flex: 0 0 80px;
}
.ft-value {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: end;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } }
.footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--mute);
  text-align: right;
}
@media (max-width: 760px) { .footer-meta { text-align: left; } }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Number formatting helper */
.tabular { font-variant-numeric: tabular-nums; }

/* Tweaks panel-friendly: hide native scrollbar in ref-track on dark */
@media (max-width: 720px) {
  .display-xl { font-size: 56px; }
  .hero { min-height: 92vh; }
  .invest-card { padding: 30px; }
}

/* ========== Investment hero (single $8,000 card) ========== */
.invest-hero {
  position: relative;
  border: 1px solid rgba(var(--text-rgb), 0.12);
  background: linear-gradient(180deg, rgba(201, 169, 110, 0.045), rgba(var(--text-rgb), 0.012));
  border-radius: 18px;
  padding: 56px 56px 56px 72px;
  overflow: hidden;
  margin-bottom: 28px;
}
.invest-hero-stripe {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}
.invest-hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 56px;
  align-items: start;
}
.invest-qty { color: var(--accent); margin-bottom: 18px; }
.invest-hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  text-wrap: pretty;
  max-width: 26ch;
}
.invest-hero-lede {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(var(--text-rgb), 0.7);
  margin: 0 0 32px;
  max-width: 50ch;
}
.invest-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.invest-col-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.25);
}
.invest-col-sub { color: var(--mute); margin-left: 6px; }
.invest-list { margin: 0; padding: 0; list-style: none; }
.invest-list li {
  padding: 8px 0;
  font-size: 14px; line-height: 1.55;
  border-bottom: 1px solid rgba(var(--text-rgb), 0.06);
  color: rgba(var(--text-rgb), 0.8);
  display: flex; gap: 10px; align-items: flex-start;
}
.invest-list li::before {
  content: "/"; color: var(--accent); flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}
.invest-list li:last-child { border-bottom: none; }
.invest-list.excluded li {
  color: rgba(var(--text-rgb), 0.55);
}
.invest-list.excluded li::before {
  content: "—"; color: rgba(var(--text-rgb), 0.3);
}
.invest-price-side {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding: 28px 0 28px 28px;
  border-left: 1px solid rgba(var(--text-rgb), 0.1);
}
.invest-price-cap-top {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--mute);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.invest-price {
  font-family: 'Fraunces', serif;
  font-size: clamp(72px, 9vw, 128px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.88;
  color: var(--text);
}
.invest-price-cap {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 18px;
}
@media (max-width: 960px) {
  .invest-hero { padding: 40px 32px 40px 44px; }
  .invest-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .invest-cols { grid-template-columns: 1fr; gap: 24px; }
  .invest-price-side {
    position: static;
    align-items: flex-start;
    text-align: left;
    padding: 28px 0 0;
    border-left: none;
    border-top: 1px solid rgba(var(--text-rgb), 0.1);
    order: -1;
  }
}

/* ========== Phase II tile row (under invest hero) ========== */
.phase2-row {
  margin-top: 36px;
  padding: 32px;
  border: 1px dashed rgba(var(--text-rgb), 0.14);
  border-radius: 14px;
  background: rgba(var(--text-rgb), 0.012);
}
.phase2-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(var(--text-rgb), 0.08);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.phase2-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.phase2-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(var(--text-rgb), 0.1);
  background: rgba(11, 11, 12, 0.4);
  text-decoration: none;
  color: var(--text);
  border-radius: 10px;
  transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
}
.phase2-tile:hover {
  border-color: var(--accent);
  background: rgba(201, 169, 110, 0.04);
  transform: translateY(-2px);
}
.phase2-num { color: var(--mute); font-size: 9.5px; letter-spacing: 0.3em; }
.phase2-title {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: pretty;
}
.phase2-line {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(var(--text-rgb), 0.6);
  margin: 0;
}
.phase2-pill {
  margin-top: auto;
  padding-top: 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 820px) {
  .phase2-tiles { grid-template-columns: 1fr; }
}

/* ========== Phase II cards (in §09 Beyond Launch) ========== */
.phase2-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.phase2-card {
  display: flex;
  flex-direction: column;
  padding: 32px 30px 30px;
  border: 1px solid rgba(var(--text-rgb), 0.1);
  background: rgba(var(--text-rgb), 0.018);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 220ms ease;
}
.phase2-card:hover { border-color: rgba(201, 169, 110, 0.4); }
.phase2-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.55;
}
.phase2-card-cap {
  color: var(--accent);
  margin-bottom: 18px;
}
.phase2-card-title {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin: 0 0 14px;
  text-wrap: pretty;
}
.phase2-card-lede {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(var(--text-rgb), 0.68);
  margin: 0 0 22px;
}
.phase2-card-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.phase2-card-list li {
  padding: 7px 0;
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(var(--text-rgb), 0.06);
  color: rgba(var(--text-rgb), 0.78);
  display: flex; gap: 8px; align-items: flex-start;
}
.phase2-card-list li::before {
  content: "/"; color: var(--accent); flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}
.phase2-card-list li:last-child { border-bottom: none; }
.phase2-card-pill {
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 14px;
  border: 1px dashed rgba(201, 169, 110, 0.45);
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.phase2-schema-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(var(--text-rgb), 0.08);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
@media (max-width: 1000px) {
  .phase2-cards { grid-template-columns: 1fr; }
}

/* ========== Schema figure (Direction 02 illustration) ========== */
.schema-figure {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(var(--text-rgb), 0.1);
  background: #050505;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.schema-figure::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.6;
}
.schema-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #000;
}
.schema-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 14px 6px;
  color: var(--mute);
  flex-wrap: wrap;
}
.schema-caption span:first-child { color: var(--accent); }

/* --- Mobile Layout Fixes --- */
@media (max-width: 900px) {
  /* 1. Shrink sticky headers on mobile */
  .sm-spine {
    position: sticky;
    top: 66px;
    z-index: 10;
    background: rgba(var(--bg-rgb), 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 18px;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    height: auto;
  }
  .sm-spine > div:nth-child(2) {
    font-size: 16px !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
  }
  .sm-spine > div:first-child, .sm-spine > div:last-child {
    display: none !important;
  }

  .process-sticky {
    position: sticky;
    top: 66px;
    z-index: 10;
    background: rgba(var(--bg-rgb), 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 18px;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    height: auto;
  }
  .process-sticky > div:last-child {
    display: none !important;
  }
  .process-sticky .num {
    font-size: 28px !important;
    margin-bottom: 0 !important;
    -webkit-text-stroke: 0 !important;
  }
  .process-sticky .name {
    font-size: 16px !important;
  }
  .process-sticky .label, .process-sticky .label-mono {
    display: none !important;
  }

  /* 2. Fix horizontal overflow in Investment Section */
  .invest-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .invest-price-side {
    position: static;
    border-left: none;
    border-top: 1px dashed rgba(var(--text-rgb), 0.1);
    padding: 32px 0 0 0;
    text-align: left;
    align-items: flex-start;
  }
  .invest-hero {
     padding: 32px 22px;
  }
}
