:root {
  --bg: #062016;
  --bg-deep: #03140d;
  --bg-soft: #0a2a1d;
  --text: #f4efe2;
  --muted: #aab7a3;
  --dim: #70816e;
  --line: rgba(244, 239, 226, 0.16);
  --line-strong: rgba(244, 239, 226, 0.34);
  --pearl: #fff9ea;
  --glint: #d7bd72;
  --focus: #ead58f;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
  color-scheme: dark;
  scrollbar-color: rgba(215, 189, 114, 0.42) var(--bg-deep);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 239, 226, 0.08), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(215, 189, 114, 0.08), transparent 18rem),
    linear-gradient(180deg, var(--bg) 0%, #071f15 52%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

body::-webkit-scrollbar-thumb {
  background: rgba(215, 189, 114, 0.34);
  border: 2px solid var(--bg-deep);
}

body::-webkit-scrollbar-thumb:hover {
  background: rgba(234, 213, 143, 0.48);
}

body::selection {
  background: rgba(215, 189, 114, 0.26);
  color: var(--pearl);
}

a {
  color: inherit;
  text-decoration-color: rgba(215, 189, 114, 0.56);
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--pearl);
  text-decoration-color: var(--glint);
}

button,
input {
  font: inherit;
}

.ambient-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 239, 226, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 226, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
  opacity: 0.55;
}

.shell {
  width: min(1080px, calc(100% - 44px));
  margin: 0 auto;
}

.site-header {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(196px, 36vh) 1fr;
  padding: 24px 0 52px;
}

.topbar {
  width: min(1080px, calc(100% - 44px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.crumb {
  text-decoration: none;
}

.current,
.slash {
  color: rgba(244, 239, 226, 0.72);
}

.pearl-stage {
  align-self: center;
  width: min(1180px, calc(100% - 16px));
  height: clamp(188px, 33vw, 400px);
  margin: 16px auto 0;
  position: relative;
  overflow: hidden;
}

.pearl-canvas,
.pearl-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pearl-canvas {
  display: none;
}

.pearl-enhanced .pearl-canvas {
  display: block;
}

.pearl-fallback {
  margin: 0;
  display: grid;
  place-content: center;
  overflow: hidden;
  color: rgba(255, 249, 234, 0.94);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(5.7px, 1.12vw, 14px);
  line-height: 1;
  letter-spacing: 0;
  white-space: pre;
  text-shadow: 0 0 24px rgba(244, 239, 226, 0.16);
  font-variant-ligatures: none;
}

.pearl-enhanced .pearl-fallback {
  display: none;
}

.hero {
  align-self: end;
  padding-top: clamp(20px, 4vw, 64px);
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--glint);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--pearl);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.96;
}

h1 {
  max-width: 9ch;
  margin-top: 18px;
  font-size: clamp(4.2rem, 10vw, 8.4rem);
}

h2 {
  max-width: 11ch;
  font-size: clamp(2rem, 5.2vw, 4.5rem);
}

.lede,
.sublede {
  max-width: 48rem;
  margin: 0;
}

.lede {
  margin-top: 28px;
  color: var(--text);
  font-size: clamp(1.24rem, 2.3vw, 2.05rem);
  line-height: 1.22;
}

.sublede {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
}

.hero-action.primary {
  background: var(--pearl);
  color: var(--bg-deep);
  font-weight: 600;
}

.hero-action:hover,
.hero-action:focus-visible {
  border-color: var(--focus);
  outline: none;
}

.hero-action:focus-visible {
  box-shadow: 0 0 0 3px rgba(234, 213, 143, 0.18);
}

.hero-action.primary:hover,
.hero-action.primary:focus-visible {
  background: var(--focus);
  color: var(--bg-deep);
}

.hero-proof {
  list-style: none;
  padding: 20px 0 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.hero-proof li {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-proof li::after {
  content: ".";
  margin-left: 10px;
  color: rgba(244, 239, 226, 0.38);
}

.hero-proof li:last-child::after {
  content: "";
  margin: 0;
}

.section {
  padding: clamp(78px, 12vw, 148px) 0;
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(36px, 8vw, 124px);
  align-items: start;
}

.section-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
}

.section-copy p {
  margin: 0;
}

.section-copy ul {
  margin-bottom: 0;
}

.quiet-list {
  list-style: none;
  padding: 22px 0 0;
  margin: 8px 0 0;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.quiet-list li {
  color: var(--pearl);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
}

.quiet-list li::before {
  content: "+";
  color: var(--glint);
  margin-right: 0.72rem;
}

.signal {
  max-width: min(1080px, calc(100% - 44px));
  padding-bottom: clamp(90px, 13vw, 160px);
}

.signal h2 {
  margin-top: 16px;
  max-width: 14ch;
}

.signal > p:not(.section-kicker) {
  max-width: 42rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

@media (max-height: 920px) and (min-width: 821px) {
  .site-header {
    grid-template-rows: auto minmax(138px, 22vh) auto;
    padding: 18px 0 28px;
  }

  .pearl-stage {
    height: clamp(132px, 18vw, 220px);
    margin-top: 8px;
  }

  .hero {
    align-self: start;
    padding-top: 0;
  }

  h1 {
    margin-top: 12px;
    font-size: clamp(3.4rem, 6.5vw, 5.8rem);
  }

  .lede {
    margin-top: 16px;
    font-size: clamp(1.08rem, 1.72vw, 1.54rem);
  }

  .sublede {
    margin-top: 8px;
    max-width: 42rem;
    font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  }

  .hero-actions {
    margin-top: 16px;
  }

  .hero-proof {
    padding-top: 12px;
    margin-top: 14px;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-rows: auto minmax(164px, 30vh) 1fr;
    padding-bottom: 44px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  h1 {
    font-size: clamp(4rem, 19vw, 7rem);
  }

  h2 {
    max-width: 12ch;
  }
}

@media (max-width: 520px) {
  .shell,
  .topbar,
  .signal {
    width: min(100% - 28px, 1080px);
  }

  .topbar {
    font-size: 0.72rem;
  }

  .pearl-stage {
    width: calc(100% - 8px);
    height: 154px;
    margin-top: 8px;
  }

  .hero {
    padding-top: 16px;
  }

  h1 {
    font-size: clamp(3.5rem, 16vw, 5.8rem);
  }

  .lede {
    margin-top: 22px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-action {
    width: 100%;
  }

  .hero-proof {
    display: grid;
    gap: 8px;
  }

  .hero-proof li::after {
    content: "";
    margin: 0;
  }

  .section {
    padding: 72px 0;
  }

}
