/* ============================================================
   Ursula Spencer · ursulaspencer.com
   Ghost White default, Plum Black toggle
   Syne display · Space Mono labels/data · Inter body
   ============================================================ */

:root {
  --sulfur: #D4E04A;
  --accent: #D4E04A;
  --accent-ink: #14101A;

  --bg: #F2F0F4;
  --text: #14101A;
  --surface: #FFFFFF;
  --surface-2: #EAE6EE;
  --panel: rgba(20, 16, 26, .035);
  --line: rgba(20, 16, 26, .15);
  --line-soft: rgba(20, 16, 26, .08);
  --muted: #5D5766;
  --metric: #6D4E86;
  --hover: #6D4E86;
  --focus: #6D4E86;
  --grid: rgba(20, 16, 26, .05);
  --nav-bg: rgba(242, 240, 244, .88);

  --inverted-bg: #14101A;
  --inverted-text: #F2F0F4;
  --inverted-muted: #B8B0C2;
  --inverted-line: rgba(242, 240, 244, .16);
  --inverted-panel: rgba(242, 240, 244, .05);

  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Inter', system-ui, sans-serif;

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 40px;
  --s-5: 64px;
  --s-6: 96px;
  --s-7: 128px;

  --wrap: 1180px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

[data-theme="dark"] {
  --bg: #14101A;
  --text: #F2F0F4;
  --surface: #1B1622;
  --surface-2: #241D2C;
  --panel: rgba(242, 240, 244, .035);
  --line: rgba(184, 155, 201, .22);
  --line-soft: rgba(184, 155, 201, .11);
  --muted: #A79FB2;
  --metric: #B89BC9;
  --hover: #B89BC9;
  --focus: #B89BC9;
  --grid: rgba(184, 155, 201, .09);
  --nav-bg: rgba(20, 16, 26, .88);

  --inverted-bg: #F2F0F4;
  --inverted-text: #14101A;
  --inverted-muted: #5D5766;
  --inverted-line: rgba(20, 16, 26, .14);
  --inverted-panel: rgba(20, 16, 26, .045);
}

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

html { scroll-behavior: smooth; }

section[id], header[id] { scroll-margin-top: calc(var(--nav-h) + var(--s-1)); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .3s var(--ease), color .3s var(--ease);
}

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

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 100;
  background: var(--inverted-bg);
  color: var(--inverted-text);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  padding: var(--s-2) var(--s-3);
  text-decoration: none;
}

.skip-link:focus { left: 0; }

/* Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}

nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  max-width: var(--wrap);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 40px);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--text);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.brand:hover { color: var(--hover); }

.brand .mark { width: 38px; height: 38px; flex: none; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.nav-right,
.nav-links {
  display: flex;
  align-items: center;
}

.nav-right { gap: var(--s-2); }
.nav-links { gap: var(--s-3); }

.nav-link {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s var(--ease);
}

.nav-link:hover { color: var(--hover); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--text);
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.theme-toggle:hover { border-color: var(--hover); color: var(--hover); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 38px;
  padding: 0 var(--s-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.menu-toggle:hover { border-color: var(--hover); color: var(--hover); }

.mobile-menu { display: none; border-top: 1px solid var(--line-soft); }

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--s-1);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--s-2) clamp(24px, 4vw, 40px) var(--s-3);
}

.mobile-menu .nav-link { padding: 10px 0; font-size: .86rem; }
.mobile-menu .btn { margin-top: var(--s-1); text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  padding: var(--s-2) var(--s-3);
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}

.btn-primary { background: var(--accent); color: var(--accent-ink); }

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212, 224, 74, .28);
}

.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--hover); color: var(--hover); }
.btn-nav { padding: var(--s-1) var(--s-2); font-size: .7rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 10vw, 96px) 0 var(--s-5);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse 85% 70% at 50% 8%, transparent 45%, var(--bg) 100%);
}

.hero .wrap { position: relative; z-index: 1; }

.eyebrow,
.sec-label,
.result-context {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
}

.eyebrow { color: var(--hover); margin-bottom: var(--s-3); }

h1 {
  max-width: 1060px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.02;
}

h1 .hl {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 .1em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-sub {
  max-width: 720px;
  margin: var(--s-3) 0 var(--s-2);
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.62;
}

.hero-evolve {
  max-width: 680px;
  margin-bottom: var(--s-4);
  padding: var(--s-2) var(--s-3);
  background: var(--panel);
  border-left: 2px solid var(--hover);
  color: var(--text);
  font-size: .9rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.cta-note {
  max-width: 700px;
  margin-top: var(--s-3);
  color: var(--muted);
  font-size: .84rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: var(--s-4);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip > div {
  padding: var(--s-2) var(--s-2) var(--s-2) 0;
  border-right: 1px solid var(--line);
}

.proof-strip > div:not(:first-child) { padding-left: var(--s-2); }
.proof-strip > div:last-child { border-right: none; }

.proof-strip dt {
  color: var(--metric);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.proof-strip dd { margin-top: 4px; color: var(--muted); font-size: .72rem; line-height: 1.4; }

/* Section scaffold */
section { padding: clamp(56px, 7vw, 80px) 0; }
section + section,
.hero + section { border-top: 1px solid var(--line-soft); }

.section-head { max-width: 820px; }

.sec-label {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
  color: var(--hover);
  font-weight: 700;
}

.sec-label::before {
  width: var(--s-3);
  height: 1px;
  background: var(--hover);
  content: "";
}

h2 {
  max-width: 900px;
  margin-bottom: var(--s-2);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.018em;
  line-height: 1.08;
}

.sec-intro {
  max-width: 720px;
  margin-bottom: var(--s-5);
  color: var(--muted);
}

.closing-statement {
  max-width: 780px;
  margin-top: var(--s-4);
  padding-left: var(--s-3);
  border-left: 2px solid var(--hover);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
}

/* Problem and buyers */
#problem h2 {
  font-size: 1.875rem;
  letter-spacing: -.01em;
}

#problem .sec-intro { margin-bottom: var(--s-4); }

.indicator-grid,
.buyer-list,
.offer-list ul,
.expertise-list,
.engagement-value ul {
  list-style: none;
}

.indicator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 0 var(--s-4);
}

.indicator-grid li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  min-width: 0;
  padding: var(--s-2) 0;
  color: var(--text);
  font-size: .9375rem;
  line-height: 1.5;
}

.indicator-grid li:not(:nth-child(3)):not(:nth-child(6)) {
  border-bottom: .5px solid var(--line);
}

.indicator-grid .ti {
  display: block;
  margin-top: 2px;
  color: var(--sulfur);
  font-size: 18px;
  line-height: 1;
}

.buyer-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--s-5);
  align-items: start;
}

.buyer-list { border-top: 1px solid var(--line); }

.buyer-list li {
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.fit-panel {
  padding: var(--s-4);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}

.fit-panel h3,
.offer-list h3,
.designed-for h3,
.engagement-value h3 {
  margin-bottom: var(--s-2);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
}

.fit-panel p { color: var(--muted); font-size: .94rem; }
.fit-panel p + p { margin-top: var(--s-2); }

/* Diagnostic */
.offer-shell {
  padding: clamp(24px, 5vw, 64px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.offer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}

.offer-header h2 { margin-bottom: var(--s-2); }
.offer-descriptor { max-width: 650px; color: var(--muted); }

.offer-price {
  flex: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.offer-explanation {
  max-width: 820px;
  margin: var(--s-4) 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.offer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}

.offer-list {
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line);
}

.offer-list + .offer-list {
  padding-left: var(--s-3);
  border-left: 1px solid var(--line);
}

.offer-list li,
.expertise-list li,
.engagement-value li {
  position: relative;
  padding: var(--s-1) 0 var(--s-1) var(--s-3);
  color: var(--muted);
  font-size: .9rem;
}

.offer-list li::before,
.expertise-list li::before,
.engagement-value li::before {
  position: absolute;
  left: 0;
  color: var(--hover);
  content: "→";
}

.designed-for {
  display: grid;
  grid-template-columns: minmax(140px, .25fr) 1fr;
  gap: var(--s-3);
  align-items: baseline;
  margin: var(--s-4) 0 var(--s-3);
}

.designed-for p { max-width: 820px; color: var(--muted); }

.offer-action {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.offer-action p { max-width: 580px; color: var(--muted); font-size: .86rem; }

.pricing-note {
  max-width: 760px;
  margin-top: var(--s-3);
  color: var(--muted);
  font-size: .78rem;
}

/* Method */
.method-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  list-style: none;
}

.method-grid { grid-template-columns: repeat(4, 1fr); }

.method-grid li {
  padding: var(--s-4) var(--s-3);
  background: var(--surface);
}

.method-grid span {
  display: block;
  margin-bottom: var(--s-3);
  color: var(--metric);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.method-grid h3,
.result-card h3,
.venture-grid h3 {
  margin-bottom: var(--s-2);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
}

.method-grid p { color: var(--muted); font-size: .88rem; }

/* Results */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}

.result-card {
  display: flex;
  flex-direction: column;
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.result-context { margin-bottom: var(--s-2); color: var(--hover); }
.result-card > p:not(.result-context) { margin-bottom: var(--s-4); color: var(--muted); font-size: .92rem; }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: auto;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
}

.metrics-two { grid-template-columns: repeat(2, 1fr); }

.metrics > div { padding: var(--s-2) var(--s-2) var(--s-2) 0; background: var(--surface); }
.metrics > div:not(:first-child) { padding-left: var(--s-2); }

.metrics dt {
  color: var(--metric);
  font-family: var(--font-mono);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.25;
}

.metrics dd { margin-top: var(--s-1); color: var(--muted); font-size: .72rem; line-height: 1.4; }

.credibility-line {
  max-width: 780px;
  margin: var(--s-4) auto 0;
  color: var(--muted);
  font-size: .86rem;
  text-align: center;
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: var(--s-5);
  align-items: start;
}

.about-intro { color: var(--text); font-size: 1.08rem; }
.expertise-list { border-top: 1px solid var(--line); }
.expertise-list li { border-bottom: 1px solid var(--line); }

/* Ongoing engagement */
.engagement {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--s-5);
  padding: clamp(24px, 5vw, 64px);
  background: var(--inverted-bg);
  border-radius: 4px;
  color: var(--inverted-text);
}

.engagement h2 { color: var(--inverted-text); }
.engagement-lead { color: var(--inverted-text); font-size: 1.04rem; }
.engagement-copy > p { max-width: 720px; margin-bottom: var(--s-2); color: var(--inverted-muted); }
.engagement-copy .engagement-close { color: var(--inverted-text); font-weight: 600; }

.engagement-price {
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.engagement-value {
  padding: var(--s-3);
  background: var(--inverted-panel);
  border: 1px solid var(--inverted-line);
  border-radius: 4px;
}

.engagement-value h3 { color: var(--inverted-text); }
.engagement-value li { color: var(--inverted-muted); }
.engagement-value li::before { color: var(--inverted-muted); }

/* UserBridge and ventures */
.framework-card {
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.framework-definition { max-width: 680px; color: var(--muted); font-size: 1.02rem; }

.ventures { padding-top: var(--s-4); padding-bottom: var(--s-4); }

.venture-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  max-width: 900px;
  margin: 0 auto;
}

.venture-grid article {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--s-3) 0 0;
  border-top: 1px solid var(--line);
}

.venture-grid h3 { font-size: 1.45rem; }

.venture-grid .venture-role {
  margin-bottom: var(--s-2);
  color: var(--metric);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.venture-grid .venture-description { color: var(--muted); font-size: .88rem; }

/* Final CTA */
.final {
  padding: clamp(64px, 8vw, 96px) 0;
  text-align: center;
}

.final .sec-label { justify-content: center; }
.final h2 { max-width: 820px; margin: 0 auto var(--s-2); }
.final > .wrap > p:not(.sec-label) { max-width: 650px; margin: 0 auto var(--s-4); color: var(--muted); }
/* Footer */
footer { padding: var(--s-4) 0; border-top: 1px solid var(--line); }

.foot-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
  color: var(--muted);
  font-size: .72rem;
}

/* Motion */
.fade { opacity: 1; transform: none; }

.reveal-ready .fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.reveal-ready .fade.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal-ready .fade,
  .reveal-ready .fade.in { opacity: 1 !important; transform: none !important; transition-delay: 0s !important; }
  body { transition: none; }
}

@media print {
  html { scroll-behavior: auto; }
  nav { position: static; background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  nav .theme-toggle,
  nav .menu-toggle,
  nav .btn,
  .mobile-menu { display: none !important; }
  .hero,
  section { padding: 36px 0; }
  .reveal-ready .fade,
  .reveal-ready .fade.in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .sec-label,
  h2 { break-after: avoid; }
  .offer-shell,
  .result-card,
  .engagement,
  .framework-card,
  .venture-grid article { break-inside: avoid; }
  #userbridge { break-inside: avoid; }
}

/* Responsive */
@media (max-width: 1040px) {
  .js .nav-links { display: none; }
  .js .menu-toggle { display: inline-flex; }
  .js .mobile-menu:not([hidden]) { display: block; }

  html:not(.js) .nav-inner { height: auto; min-height: var(--nav-h); padding-top: var(--s-1); padding-bottom: var(--s-1); }
  html:not(.js) .nav-right { flex-wrap: wrap; justify-content: flex-end; }
  html:not(.js) .nav-links { order: 3; width: 100%; justify-content: flex-end; flex-wrap: wrap; }

  .method-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip > div:nth-child(2) { border-right: none; }
  .proof-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .buyer-layout,
  .offer-columns,
  .results-grid,
  .about-layout,
  .engagement { grid-template-columns: 1fr; gap: var(--s-4); }

  .offer-list + .offer-list { padding-left: 0; border-left: 0; }
  .venture-grid { gap: var(--s-2); }
}

@media (max-width: 600px) {
  .btn-nav { display: none; }
  .brand-name { font-size: .94rem; }
  h1 { font-size: clamp(2rem, 9vw, 2.25rem); }
  .hero-cta .btn { width: 100%; text-align: center; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip > div,
  .proof-strip > div:not(:first-child) { padding: var(--s-2) 0; border-right: none; border-bottom: 1px solid var(--line); }
  .proof-strip > div:last-child { border-bottom: none; }

  .method-grid,
  .venture-grid { grid-template-columns: 1fr; }

  .indicator-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    column-gap: 0;
  }

  .indicator-grid li { border-bottom: .5px solid var(--line); }
  .indicator-grid li:last-child { border-bottom: none; }

  .offer-header,
  .offer-action { flex-direction: column; align-items: flex-start; }
  .offer-price { order: -1; }
  .offer-action .btn { width: 100%; text-align: center; }
  .designed-for { grid-template-columns: 1fr; gap: var(--s-1); }

  .metrics { grid-template-columns: 1fr; }
  .metrics > div,
  .metrics > div:not(:first-child) { padding: var(--s-2) 0; }

  .foot-inner { justify-content: center; text-align: center; }
}
