:root {
  --paper: #eef2ec;
  --paper-deep: #e3ebe3;
  --ink: #1a2420;
  --muted: #5a6860;
  --line: #c5d0c6;
  --sage: #5f7a68;
  --sage-deep: #4a6354;
  --blush: #c9a3a8;
  --blush-deep: #a87f86;
  --blush-soft: #ead9db;
  --gold: #b8975a;
  --gold-soft: #e8dcc4;
  --accent: var(--sage);
  --accent-soft: #dfe8e1;
  --max: min(96rem, calc(100vw - 3.5rem));
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--sage-deep); }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.75rem;
  z-index: 2;
}

.skip:focus { top: 1rem; }

.bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 3;
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

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

.brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 auto;
  color: var(--sage-deep);
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.name {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variation-settings: "SOFT" 40, "WONK" 0.6;
  color: var(--ink);
}

.role { display: none; }

nav {
  display: flex;
  gap: 1.35rem;
}

nav a {
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a[aria-current="page"] {
  border-bottom-color: var(--sage);
}

.social {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.social a:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: white;
}

.social svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.cred-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.cred-line .sep {
  color: var(--blush-deep);
  font-weight: 600;
  letter-spacing: 0;
}

main { min-width: 0; }

/* Home hero */
.home-hero {
  padding: 3.5rem 0 2.5rem;
}

.entry-hero {
  padding-bottom: 2rem;
}

.case-short .systems {
  margin-top: 0.75rem;
}

.case-short h2 {
  margin-bottom: 0.35rem;
}

.home-hero .bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  gap: 2rem 2.75rem;
  align-items: stretch;
}

.home-hero .bar > div:first-child {
  min-width: 0;
  margin-right: 0.25rem;
}

.home-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.entry-hero .portrait {
  animation: float-in 0.7s ease both;
  height: 100%;
  max-width: none;
  align-self: stretch;
}

.entry-hero .bio,
.entry-hero .actions {
  animation: rise 0.55s ease 0.08s both;
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.home-hero .bio {
  margin: 0 0 1.5rem;
  max-width: none;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--muted);
}

.home-hero .bio p { margin: 0 0 0.85rem; }
.home-hero .bio p:last-child { margin-bottom: 0; }

.win-lines {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.win-lines li {
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--sage);
  background: color-mix(in srgb, var(--paper) 70%, white);
  border-radius: 0 8px 8px 0;
}

.win-lines .label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.25rem;
}

.portrait {
  margin: 0;
  position: relative;
  width: 100%;
  max-width: 24rem;
  justify-self: end;
}

.home-hero .portrait img {
  height: 100%;
  min-height: 22rem;
  aspect-ratio: auto;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 822 / 1024;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px 14px 4px 14px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--ink) 10%, transparent);
}

/* Muted learn strip (Home) — full content width
   When visible: border-top divides hero → learn. Footer keeps its own top rule.
   When [hidden]: strip is display:none so hero sits above footer with a single line. */
.learn-strip.is-hidden,
.learn-strip[hidden] {
  display: none !important;
}

.learn-strip:not([hidden]):not(.is-hidden) {
  margin-top: 0.5rem;
  padding: 2.25rem 0 3.25rem;
  border-top: 1px solid var(--line);
}

.learn-strip {
  padding: 2rem 0 3.25rem;
}

.learn-strip .bar {
  display: block;
}

.learn-strip-copy {
  max-width: none;
}

.learn-strip-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.learn-strip-title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.55rem;
  color: var(--ink);
}

.learn-strip-body {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}

.learn-strip-action a {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--sage-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.learn-strip-action a:hover {
  color: var(--ink);
}

/* Doors (legacy path pages may still use) */
.doors {
  padding: 2.75rem 0 3.5rem;
}

.doors-intro {
  max-width: 40rem;
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.door-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.door {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.6rem 1.45rem;
  text-decoration: none;
  border: 1px solid var(--line);
  border-left: 3px solid var(--sage);
  border-radius: 14px;
  background:
    linear-gradient(160deg, color-mix(in srgb, white 70%, var(--paper)) 0%, color-mix(in srgb, var(--accent-soft) 45%, white) 100%);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  animation: rise 0.5s ease both;
}

.door:nth-child(2) {
  border-left-color: var(--blush);
  background:
    linear-gradient(160deg, color-mix(in srgb, white 70%, var(--paper)) 0%, color-mix(in srgb, var(--blush-soft) 50%, white) 100%);
  animation-delay: 0.06s;
}

.door:hover {
  transform: translateY(-4px);
  border-color: var(--sage);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--sage) 18%, transparent);
  color: var(--ink);
}

.door:nth-child(2):hover {
  border-color: var(--blush);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--blush) 20%, transparent);
}

.door .tag {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.door:nth-child(2) .tag { color: var(--blush-deep); }

.door h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.02em;
}

.door p {
  margin: 0;
  color: var(--muted);
}

.door-panel {
  display: none;
  margin-top: 2rem;
  padding: 1.75rem 0 0.5rem;
  border-top: 1px solid var(--line);
  animation: rise 0.45s ease;
}

.door-panel.is-open { display: block; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.path-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 1.5rem;
}

.path-switch button {
  font: inherit;
  cursor: pointer;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.path-switch button[aria-pressed="true"] {
  background: var(--sage);
  border-color: var(--sage);
  color: white;
}

.path {
  display: none;
  max-width: 42rem;
}

.path.is-open { display: block; }

.path h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.path ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.path li { margin: 0.35rem 0; }

.aside-note {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--blush-soft) 65%, white);
  border: 1px solid color-mix(in srgb, var(--blush) 35%, var(--line));
  color: var(--ink);
  font-size: 0.98rem;
}

.bridge {
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.proof-row article {
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--sage);
  border-radius: 14px;
  background: color-mix(in srgb, white 70%, var(--paper));
}

.proof-row article:nth-child(2) {
  border-top-color: var(--blush);
}

.proof-row article:nth-child(3) {
  border-top-color: var(--gold);
}

/* Challenge · craft · Result skim strip */
.csr {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.35rem;
  margin: 1.25rem 0 1.5rem;
  padding: 1.15rem 1.25rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, white 72%, var(--paper));
}

.csr > div {
  min-width: 0;
}

.csr > div + div {
  border-left: 1px solid var(--line);
  padding-left: 1.25rem;
}

.csr-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

.csr > div:nth-child(2) .csr-kicker { color: var(--blush-deep); }
.csr > div:nth-child(3) .csr-kicker { color: var(--gold); }

.csr > div > p:last-child {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
}

.craft {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
}

.craft li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.craft strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.craft span {
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-strip {
  margin: 3rem 0 0;
  padding: 1.35rem 1.5rem;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--gold) 55%, var(--line));
  background: color-mix(in srgb, var(--gold-soft) 40%, white);
}

.meta-strip h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.meta-strip ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.meta-strip li { margin: 0.25rem 0; }

/* Shared (inner pages) */
.hero {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 80%, white) 0%, color-mix(in srgb, var(--paper) 70%, transparent) 100%);
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 0 3.75rem;
}

.hero .bar {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.65fr);
  gap: 2.5rem 3rem;
  align-items: end;
}

.hero-copy { min-width: 0; }

.hero .lede {
  max-width: none;
  margin-bottom: 1rem;
}

.hero .lede:last-of-type { margin-bottom: 0; }

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 0 0.25rem;
  border-top: 2px solid var(--sage);
}

.hero-aside .figure {
  font-size: 2.1rem;
  margin-bottom: 0.35rem;
}

.hero-aside p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.75rem 0;
}

.page-head {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  max-width: none;
}

.page-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.page-head .lede {
  margin-bottom: 0;
  max-width: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}

.button {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.button:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--paper);
  transform: translateY(-1px);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--sage);
}

.button.ghost:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--paper);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-top: 2px solid var(--sage);
  border-radius: 12px;
  text-decoration: none;
  background: color-mix(in srgb, white 60%, var(--paper));
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.card:nth-child(2) {
  border-top-color: var(--blush);
}

.card:nth-child(3) {
  border-top-color: var(--gold);
}

.card:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  color: var(--ink);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--sage) 12%, transparent);
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}

.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.tag {
  color: var(--sage-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card:nth-child(2) .tag {
  color: var(--blush-deep);
}

.card:nth-child(3) .tag {
  color: var(--gold);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.25rem;
  margin: 0 0 0.75rem;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--sage-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.35rem, 4.6vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  font-variation-settings: "SOFT" 40, "WONK" 0.5;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: none;
  margin: 0 0 2.5rem;
}

.study {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 0.5rem;
}

.block h2 {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.index {
  color: var(--sage);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.block p {
  margin: 0 0 0.85rem;
  max-width: none;
}

.block p:last-child { margin-bottom: 0; }

.systems {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  border-top: 1px solid var(--line);
  max-width: none;
}

.systems li {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.systems strong {
  font-weight: 600;
  line-height: 1.4;
}

.systems span { max-width: none; }

.issues {
  margin: 0.5rem 0 1rem;
  padding-left: 1.15rem;
  max-width: none;
}

.issues li { margin: 0.25rem 0; }

.section {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section > p {
  max-width: none;
  margin-top: 0;
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.proof article {
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--sage);
  border-radius: 14px;
  background: color-mix(in srgb, white 70%, var(--paper));
}

.proof article:nth-child(2) {
  border-top-color: var(--blush);
}

.proof article:nth-child(3) {
  border-top-color: var(--gold);
}

.proof article:nth-child(2) .figure {
  color: var(--blush-deep);
}

.proof article:nth-child(3) .figure {
  color: var(--gold);
}

.figure {
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.45rem;
  color: var(--sage-deep);
}

.proof-row article:nth-child(2) .figure {
  color: var(--blush-deep);
}

.proof-row article:nth-child(3) .figure {
  color: var(--gold);
}

.proof p,
.steps p { margin: 0; color: var(--ink); font-size: 0.98rem; }

.scope {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
  max-width: none;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps span {
  display: block;
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  margin-top: 0.75rem;
}

.project {
  max-width: none;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.project h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.15rem;
}

.project .when {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.project p { margin: 0; }

.project .skills {
  margin-top: 0.55rem;
  color: var(--sage-deep);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-footer {
  margin-top: 3rem;
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  background: color-mix(in srgb, var(--paper-deep) 80%, white);
}

.site-footer .bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  max-width: none;
}

.site-footer .links {
  margin: 0 0 0.35rem;
}

@media (max-width: 960px) {
  .home-hero .bar,
  .hero .bar {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .portrait {
    max-width: 20rem;
    justify-self: start;
    height: auto;
  }

  .home-hero .portrait img {
    height: auto;
    min-height: 0;
    aspect-ratio: 822 / 1024;
  }

  .hero-aside {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
  }

  .hero-aside > * { flex: 1 1 12rem; }
  .projects { grid-template-columns: 1fr; }
  .door-grid { grid-template-columns: 1fr; }
  .proof-row { grid-template-columns: 1fr; }
  .csr {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .csr > div + div {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
  }
  .craft { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .site-header { background: var(--paper); backdrop-filter: none; }
  .site-header .bar { flex-direction: column; align-items: stretch; gap: 0.35rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .header-end { margin-left: 0; justify-content: space-between; }
  nav { flex-wrap: nowrap; gap: 0.5rem 1.1rem; }
  .hero { padding: 2.5rem 0 2.25rem; }
  .home-hero { padding: 2.25rem 0 1.75rem; }
  .home-hero .bar { gap: 0; }
  .home-hero .bar > div:first-child { display: contents; }
  .home-hero .cred-line { order: 1; }
  .home-hero h1 { order: 2; }
  .home-hero .portrait { order: 3; max-width: 11rem; margin: 0 0 1.25rem; }
  .home-hero .bio { order: 4; }
  .home-hero .actions { order: 5; }
  .cards { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .systems li { grid-template-columns: 1fr; gap: 0.2rem; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .door, .button { transition: none; }
  .door-panel { animation: none; }
}


/* V2 compare + paths */
.compare-banner {
  margin: 0;
  padding: 0.65rem 1.75rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.88rem;
  text-align: center;
}
.compare-banner a { color: var(--gold-soft); }
.path-switch {
  position: sticky;
  top: 4.25rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2rem;
  padding: 0.75rem 0;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.path-switch a {
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.92rem;
}
.path-switch a:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: white;
}
.path-section {
  padding: 1rem 0 3rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 7rem;
}
.path-section:first-of-type { border-top: none; }

.journey-chooser {
  margin: 0 0 2rem;
  padding: 0 0 2rem;
}

.journey-chooser-title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.journey-chooser-note {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1rem;
}

.journey-chooser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.journey-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.35rem 1.3rem;
  text-decoration: none;
  border: 1px solid var(--line);
  border-top: 3px solid var(--sage);
  border-radius: 14px;
  background: color-mix(in srgb, white 70%, var(--paper));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.journey-card:nth-child(2) {
  border-top-color: var(--blush);
}

.journey-card:hover {
  transform: translateY(-3px);
  color: var(--ink);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--sage) 14%, transparent);
}

.journey-card .tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.journey-card:nth-child(2) .tag {
  color: var(--blush-deep);
}

.journey-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.02em;
}

.journey-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.learn-reunite {
  margin-top: 1rem;
}

.framework-note {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

.career-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

.career-timeline li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.75rem 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.career-timeline li:last-child {
  border-bottom: none;
}

.career-timeline .when {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sage-deep);
  grid-column: 1;
  grid-row: 1 / -1;
}

.career-timeline h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  grid-column: 2;
}

.career-timeline .body {
  margin: 0;
  grid-column: 2;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.career-timeline .skills {
  margin: 0.45rem 0 0;
  grid-column: 2;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--sage-deep);
}

.writing-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.writing-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.writing-list li:last-child {
  border-bottom: none;
}

.writing-list a {
  font-weight: 500;
}

.writing-list .when {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .career-timeline li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .career-timeline .when,
  .career-timeline h3,
  .career-timeline .body,
  .career-timeline .skills {
    grid-column: 1;
    grid-row: auto;
  }
}

.story {
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.story-beat {
  max-width: none;
}

.story-tag {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

.story-beat > p:last-child {
  margin: 0;
  line-height: 1.65;
  color: var(--ink);
  font-size: 1.05rem;
}

@media (max-width: 700px) {
  .journey-chooser-grid {
    grid-template-columns: 1fr;
  }
}
.phud-note {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--blush) 35%, var(--line));
  background: color-mix(in srgb, var(--blush-soft) 55%, white);
  font-size: 0.98rem;
  max-width: 36rem;
}
.lens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.lens-grid li {
  padding: 1rem;
  border: 1px solid var(--line);
  border-top: 2px solid var(--sage);
  border-radius: 12px;
  background: color-mix(in srgb, white 60%, var(--paper));
}
.lens-grid li:nth-child(2) { border-top-color: var(--blush); }
.lens-grid li:nth-child(3) { border-top-color: var(--gold); }
.lens-grid strong { display: block; margin-bottom: 0.35rem; }
.lens-grid span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 800px) {
  .lens-grid { grid-template-columns: 1fr; }
}
