:root {
  color-scheme: dark;
  --ink: #f2ede2;
  --muted: #aaa79f;
  --dim: #72716c;
  --night: #0b0d0e;
  --night-soft: #111416;
  --panel: rgba(20, 22, 22, 0.78);
  --line: rgba(231, 199, 134, 0.22);
  --line-cool: rgba(235, 239, 232, 0.12);
  --gold: #e6c17a;
  --gold-bright: #f3d593;
  --green: #9bc8a8;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Segoe UI", Inter, Arial, sans-serif;
  --page: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }

html {
  background: var(--night);
  color: var(--ink);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 7%, rgba(203, 165, 92, 0.11), transparent 30rem),
    radial-gradient(circle at 12% 42%, rgba(78, 103, 92, 0.08), transparent 28rem),
    linear-gradient(180deg, #090b0c 0%, #0d1011 55%, #090b0c 100%);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--ink);
  color: var(--night);
  font-weight: 700;
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  width: var(--page);
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-cool);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: 0.22em;
}

.brand img { filter: drop-shadow(0 0 16px rgba(230,193,122,0.15)); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-nav a:hover {
  border-color: rgba(230,193,122,0.48);
  color: var(--gold-bright);
}

.hero {
  width: var(--page);
  min-height: min(820px, calc(100svh - 88px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.72fr);
  align-items: center;
  gap: clamp(42px, 7vw, 108px);
  padding: clamp(64px, 10vh, 112px) 0;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow,
.section-index {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.21em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: break-word; }

h1 {
  max-width: 770px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.45rem, 7.15vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-wrap: balance;
}

h1 em {
  color: var(--gold-bright);
  font-weight: 400;
}

.hero-lede {
  max-width: 660px;
  margin: 34px 0 0;
  color: #c4c0b7;
  font-family: var(--serif);
  font-size: clamp(1.06rem, 1.55vw, 1.32rem);
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 36px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 23px;
  border: 1px solid rgba(243, 213, 147, 0.62);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(230,193,122,0.16), rgba(230,193,122,0.04));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
  color: var(--gold-bright);
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  background: rgba(230,193,122,0.2);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.84rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(155,200,168,0.08), 0 0 16px rgba(155,200,168,0.55);
}

.threshold-figure {
  position: relative;
  justify-self: end;
  width: min(100%, 430px);
  margin: 0;
}

.threshold-figure::before,
.threshold-figure::after {
  position: absolute;
  z-index: 0;
  content: "";
  border: 1px solid rgba(230,193,122,0.13);
  border-radius: 50%;
  pointer-events: none;
}

.threshold-figure::before { inset: 9% -18% 26%; }
.threshold-figure::after { inset: 22% -8% 14%; }

.threshold-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: min(66vh, 640px);
  min-height: 500px;
  border: 1px solid rgba(231,199,134,0.23);
  border-radius: 48% 48% 8px 8px / 22% 22% 8px 8px;
  object-fit: cover;
  object-position: 50% 68%;
  box-shadow: 0 26px 90px rgba(0,0,0,0.52), 0 0 70px rgba(204,157,73,0.08);
}

.threshold-figure figcaption {
  position: relative;
  z-index: 2;
  margin: 16px 4px 0;
  color: var(--dim);
  font-family: var(--serif);
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
}

.section-shell {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) 0;
  border-top: 1px solid var(--line-cool);
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.6vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.68fr);
  gap: clamp(48px, 9vw, 130px);
  align-items: start;
}

.prose {
  color: #bdbab2;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.78;
}

.prose p { margin: 0; }
.prose p + p { margin-top: 1.35em; }

.principles h2 { max-width: 780px; }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 60px;
  border: 1px solid var(--line-cool);
  background: var(--line-cool);
}

.principle-grid article {
  min-height: 300px;
  padding: 30px 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.017), transparent 55%),
    var(--night-soft);
}

.numeral {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.principle-grid h3 {
  min-height: 2.6em;
  margin: 58px 0 18px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.3;
}

.principle-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.experience {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1fr);
  gap: clamp(48px, 10vw, 150px);
}

.life-loop {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: life-step;
}

.life-loop li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) 1fr;
  gap: 26px;
  padding: 27px 0 27px 46px;
  border-top: 1px solid var(--line-cool);
  counter-increment: life-step;
}

.life-loop li:last-child { border-bottom: 1px solid var(--line-cool); }

.life-loop li::before {
  position: absolute;
  left: 0;
  color: var(--gold);
  content: "0" counter(life-step);
  font-family: var(--serif);
  font-size: 0.75rem;
}

.life-loop strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 400;
}

.life-loop span { color: var(--muted); font-size: 0.91rem; }

.faq h2 { max-width: 760px; }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 58px;
  border: 1px solid var(--line-cool);
  background: var(--line-cool);
}

.faq-grid article {
  min-height: 220px;
  padding: 31px 30px;
  background: var(--night-soft);
}

.faq-grid h3 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.3;
}

.faq-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.faq-grid a {
  color: var(--gold-bright);
  text-underline-offset: 0.2em;
}

.beta-note {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(36px, 7vw, 94px);
  align-items: center;
}

.beta-note > div:last-child { max-width: 820px; }
.beta-note h2 { font-size: clamp(2.1rem, 4vw, 4rem); }
.beta-note p { max-width: 680px; margin: 26px 0 0; color: var(--muted); }
.beta-note .primary-action { margin-top: 28px; }

.beta-seal {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,193,122,0.1), transparent 70%);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 4rem;
  box-shadow: inset 0 0 30px rgba(230,193,122,0.04);
}

.site-footer {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 40px 0 max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-cool);
  color: var(--dim);
  font-size: 0.77rem;
}

.site-footer p { margin: 0; }
.footer-mark { color: var(--ink); font-weight: 750; letter-spacing: 0.2em; }
.fine-print { text-align: right; }

.not-found {
  width: min(720px, calc(100vw - 36px));
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 72px 0;
}

.not-found > img { margin-bottom: 34px; }
.not-found h1 { max-width: 680px; font-size: clamp(3rem, 9vw, 6rem); }
.not-found > p:not(.eyebrow) { margin: 28px 0; color: var(--muted); }

a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  :root { --page: min(100% - 36px, 720px); }
  .site-header { min-height: 74px; }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 58px;
    padding: 66px 0 80px;
  }
  .hero-copy { max-width: 720px; }
  h1 { font-size: clamp(3.2rem, 12.2vw, 6.2rem); }
  .threshold-figure { justify-self: center; width: min(88vw, 460px); }
  .threshold-figure img { height: min(76vh, 680px); }
  .manifesto-grid,
  .experience { grid-template-columns: 1fr; }
  .prose { max-width: 680px; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-grid article { min-height: 270px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid article { min-height: auto; }
  .site-footer { grid-template-columns: 1fr; gap: 9px; }
  .fine-print { text-align: left; }
}

@media (max-width: 560px) {
  :root { --page: calc(100vw - 30px); }
  .brand { font-size: 0.98rem; }
  .brand img { width: 30px; height: 30px; }
  .site-nav { gap: 14px; font-size: 0.65rem; letter-spacing: 0.04em; }
  .site-nav a:nth-child(2) { display: none; }
  .hero { padding-top: 52px; }
  h1 { font-size: clamp(3rem, 15vw, 4.65rem); line-height: 0.94; }
  .hero-lede { margin-top: 26px; font-size: 1.01rem; line-height: 1.62; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .primary-action { width: 100%; }
  .status { justify-content: center; }
  .threshold-figure { width: 92vw; }
  .threshold-figure::before { inset: 9% 0 26%; }
  .threshold-figure::after { inset: 22% 4% 14%; }
  .threshold-figure img { min-height: 430px; height: 68vh; border-radius: 46% 46% 8px 8px / 18% 18% 8px 8px; }
  .section-shell { padding: 78px 0; }
  h2 { font-size: clamp(2.25rem, 11vw, 3.2rem); }
  .principle-grid { grid-template-columns: 1fr; margin-top: 42px; }
  .principle-grid article { min-height: 230px; }
  .principle-grid h3 { min-height: auto; margin-top: 42px; }
  .faq-grid { margin-top: 42px; }
  .faq-grid article { padding: 26px 24px; }
  .life-loop li { grid-template-columns: 1fr; gap: 10px; padding-left: 38px; }
  .beta-note { grid-template-columns: 1fr; }
  .beta-seal { width: 104px; height: 104px; font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
