:root {
  --ink: #102733;
  --ink-deep: #07171e;
  --ink-soft: #3d535e;
  --paper: #f6f3ec;
  --paper-deep: #e8e2d7;
  --white: #fffdfa;
  --amber: #c99047;
  --amber-bright: #e6b56f;
  --rule: rgba(16, 39, 51, 0.18);
  --max: 88rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink-deep);
  transform: translateY(-180%);
}

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

.shell {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  color: var(--white);
}

.site-header--solid {
  position: relative;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.header-inner {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
}

.brand-mark svg { width: 1.35rem; height: 1.35rem; }

.brand-name {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.32rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1;
  letter-spacing: -0.015em;
}

.brand-name b { font-weight: 400; color: var(--amber-bright); }
.site-header--solid .brand-name b { color: #9c6422; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.site-nav a {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 0.2rem;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.hero {
  min-height: clamp(38rem, 72svh, 44rem);
  position: relative;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background: var(--ink-deep);
}

.hero-media,
.hero-media::before,
.hero-media::after {
  position: absolute;
  inset: 0;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-media picture {
  display: block;
}

.hero-media img {
  object-fit: cover;
  object-position: center 45%;
  animation: heroSettle 1.4s cubic-bezier(.2,.7,.2,1) both;
}

.hero-media::before {
  content: "";
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 18, 24, 0.94) 0%, rgba(4, 18, 24, 0.76) 40%, rgba(4, 18, 24, 0.15) 72%),
    linear-gradient(0deg, rgba(4, 18, 24, 0.72) 0%, rgba(4, 18, 24, 0) 50%);
}

.hero-media::after {
  content: "";
  z-index: 2;
  border: clamp(0.6rem, 1vw, 1rem) solid rgba(246, 243, 236, 0.08);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(58rem, 76%);
  padding-top: 8rem;
  padding-bottom: clamp(3rem, 6vh, 4.75rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.6rem;
  height: 1px;
  background: var(--amber-bright);
}

.hero h1,
.doorway-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.1rem, 6.15vw, 6.4rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero h1 em {
  color: var(--amber-bright);
  font-weight: 400;
  font-style: italic;
}

.hero-deck {
  max-width: 39rem;
  margin: clamp(1.15rem, 2vw, 1.6rem) 0 0;
  color: rgba(255, 253, 250, 0.82);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
}

.hero-next {
  position: absolute;
  z-index: 4;
  right: var(--gutter);
  bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-next span {
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(var(--amber-bright), transparent);
}

.step-label {
  margin: 0;
  color: var(--amber-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.problem-section {
  padding-block: clamp(3.75rem, 6.5vw, 6.25rem);
}

.problem-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 0.72fr) 1.5fr;
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: start;
}

.problem-heading {
  position: sticky;
  top: 2rem;
}

.problem-heading h2 {
  margin: 0.7rem 0 1.1rem;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 3.8vw, 3.9rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.problem-heading p:last-child {
  max-width: 26rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.door-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.door-item { border-bottom: 1px solid var(--rule); }

.door-link {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) 2.5rem;
  gap: 1rem;
  align-items: start;
  padding: clamp(1.3rem, 2.25vw, 1.85rem) 0;
  color: var(--ink);
  text-decoration: none;
  isolation: isolate;
}

.door-link::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -1.25rem;
  background: var(--white);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1);
}

.door-link:hover::before,
.door-link:focus-visible::before { transform: scaleY(1); }

.door-num {
  padding-top: 0.3rem;
  color: #966126;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
}

.door-copy strong {
  display: block;
  max-width: 28ch;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.door-copy small {
  display: block;
  max-width: 44rem;
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.door-arrow {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-top: 0.1rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-size: 1.15rem;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.door-link:hover .door-arrow,
.door-link:focus-visible .door-arrow {
  color: var(--white);
  background: var(--ink);
  transform: translateX(0.25rem);
}

.not-sure {
  margin-top: clamp(2.5rem, 4.5vw, 4rem);
  padding: clamp(1.75rem, 3.25vw, 2.75rem);
  display: grid;
  grid-template-columns: 1.1fr minmax(16rem, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  color: var(--white);
  background: var(--ink-deep);
}

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

.not-sure p { margin: 0 0 1.1rem; color: rgba(255, 255, 255, 0.73); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.35rem;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid var(--amber-bright);
}

.text-link span { transition: transform 180ms ease; }
.text-link:hover span, .text-link:focus-visible span { transform: translateX(0.25rem); }

.method {
  padding-block: clamp(3.25rem, 5vw, 5rem);
  background: var(--white);
}

.method-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.4fr;
  gap: clamp(2.5rem, 6vw, 6.5rem);
}

.method h2 {
  margin: 0.75rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.05rem, 3.1vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.method-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.method-flow li {
  min-height: 6.75rem;
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.method-flow li:not(:nth-child(3n)) { border-right: 1px solid var(--rule); }
.method-flow li:not(:nth-child(3n+1)) { padding-left: 1.2rem; }
.method-flow small { color: #966126; font-family: var(--serif); font-style: italic; }
.method-flow strong { display: block; margin-top: 1.25rem; font-size: 0.9rem; font-weight: 650; }

.site-footer {
  padding-block: 3.2rem;
  color: rgba(255,255,255,0.68);
  background: var(--ink-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}

.footer-brand { color: var(--white); }
.footer-note { max-width: 46rem; margin: 1.4rem 0 0; font-size: 0.78rem; }
.footer-meta { margin: 0; text-align: right; font-size: 0.72rem; }
.footer-meta a { text-underline-offset: 0.2em; }

/* Deeper-path pages */
.doorway-page { min-height: 100vh; background: var(--paper); }
.doorway-hero { padding-block: clamp(5rem, 10vw, 9rem) clamp(4rem, 7vw, 6rem); }
.doorway-hero .shell { display: grid; grid-template-columns: 0.36fr 1.35fr; gap: clamp(2rem, 8vw, 8rem); }
.doorway-kicker { padding-top: 0.55rem; }
.doorway-kicker p { margin: 0.8rem 0 0; color: var(--ink-soft); font-size: 0.82rem; }
.doorway-hero h1 { max-width: 15ch; color: var(--ink); font-size: clamp(3rem, 6vw, 6.5rem); }
.doorway-lede { max-width: 48rem; margin: 2rem 0 0; color: var(--ink-soft); font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.doorway-brief { color: var(--white); background: var(--ink); }
.doorway-brief .shell { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 8rem); padding-block: clamp(3rem, 6vw, 5rem); }
.doorway-brief h2 { max-width: 18ch; margin: 0; font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3.4rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.03em; }
.doorway-brief p { margin: 0; color: rgba(255,255,255,0.75); font-size: 1.05rem; }
.stub-next { padding-block: clamp(4rem, 8vw, 7rem); }
.stub-next .shell { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: clamp(2rem, 8vw, 8rem); }
.stub-next h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.15rem, 4vw, 4rem); font-weight: 400; line-height: 1.03; letter-spacing: -0.04em; }
.stub-next p { max-width: 43rem; margin: 0 0 1.75rem; color: var(--ink-soft); }
.back-link { color: var(--ink); }
.status-note { display: inline-block; margin-top: 2rem; padding: 0.5rem 0.7rem; border-left: 2px solid var(--amber); color: var(--ink-soft); background: var(--white); font-size: 0.78rem; }

[data-reveal] { opacity: 0; transform: translateY(1.25rem); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@keyframes heroSettle {
  from { opacity: 0; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

:focus-visible { outline: 3px solid var(--amber-bright); outline-offset: 4px; }

@media (max-width: 760px) {
  .header-inner { min-height: 4.8rem; }
  .site-nav a:first-child { display: none; }
  .site-nav a { font-size: 0.7rem; }
  .brand-mark { width: 2rem; height: 2rem; }
  .hero { min-height: clamp(38rem, 78svh, 43rem); }
  .hero-media img { object-position: 64% center; }
  .hero-media::before { background: linear-gradient(0deg, rgba(4,18,24,.97) 4%, rgba(4,18,24,.72) 55%, rgba(4,18,24,.22) 100%); }
  .hero-content { width: 100%; padding-top: 7.5rem; padding-bottom: 2.8rem; }
  .hero h1 { font-size: clamp(3.05rem, 12.5vw, 4.35rem); }
  .hero-deck { max-width: 31rem; font-size: 1rem; }
  .hero-next { display: none; }
  .problem-grid,
  .not-sure,
  .method-grid,
  .doorway-hero .shell,
  .doorway-brief .shell,
  .stub-next .shell { grid-template-columns: 1fr; }
  .problem-heading { position: static; }
  .problem-heading h2 { max-width: 15ch; font-size: clamp(2.25rem, 9.5vw, 3.2rem); }
  .problem-section { padding-block: 3.25rem; }
  .door-link { grid-template-columns: 2.25rem minmax(0, 1fr) 2.4rem; gap: 0.65rem; }
  .door-link::before { inset-inline: -0.75rem; }
  .door-copy strong { font-size: clamp(1.35rem, 5.4vw, 1.72rem); }
  .door-copy small { font-size: 0.88rem; }
  .not-sure { margin-top: 2.25rem; margin-inline: calc(var(--gutter) * -0.25); padding: 1.6rem; }
  .not-sure h2 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .method-flow { grid-template-columns: 1fr 1fr; }
  .method-flow li:not(:nth-child(3n)) { border-right: 0; }
  .method-flow li:nth-child(odd) { border-right: 1px solid var(--rule); padding-left: 0; }
  .method-flow li:nth-child(even) { padding-left: 1.1rem; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-meta { text-align: left; }
  .doorway-hero { padding-top: 4.5rem; }
  .doorway-hero .shell { gap: 1.5rem; }
  .doorway-hero h1 { font-size: clamp(3rem, 13vw, 5rem); }
  .doorway-brief .shell, .stub-next .shell { gap: 1.5rem; }
}

@media (max-width: 430px) {
  .brand-name { max-width: 9rem; }
  .site-nav a { max-width: 5rem; text-align: right; line-height: 1.25; }
  .hero { min-height: 39rem; }
  .hero-content { padding-bottom: 2.5rem; }
  .door-link { grid-template-columns: 1.65rem minmax(0,1fr) 2.1rem; padding-block: 1.15rem; }
  .door-arrow { width: 2.05rem; height: 2.05rem; }
  .method-flow { grid-template-columns: 1fr 1fr; }
  .method-flow li:nth-child(n) { min-height: 5.6rem; padding: 0.85rem 0.7rem 0.85rem 0; }
  .method-flow li:nth-child(even) { padding-left: 0.7rem; }
  .method-flow strong { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header { position: relative; color: var(--ink); }
  .hero { min-height: auto; color: var(--ink); background: var(--white); }
  .hero-media, .hero-next { display: none; }
  .hero-content { width: 100%; padding-block: 3rem; }
  .hero h1 em { color: var(--ink); }
}
