:root {
  --cream: #f7f1df;
  --cream-2: #fffaf0;
  --ink: #11110f;
  --muted: #676257;
  --gold: #f4c430;
  --gold-deep: #d7a600;
  --line: rgba(17, 17, 15, 0.16);
  --paper: rgba(255, 250, 240, 0.82);
  --success: #236b46;
  --warning: #9b5a00;
  --danger: #9f2f2f;
  --shadow: 0 28px 90px rgba(45, 35, 10, 0.11);
  --radius: 28px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 6%, rgba(244, 196, 48, 0.18), transparent 28rem),
    linear-gradient(180deg, var(--cream-2) 0, var(--cream) 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.private-page {
  background: #f4eedc;
}

body.preloading { overflow: hidden; }

.cinematic-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(244, 196, 48, .16), transparent 22rem),
    #fffaf0;
  opacity: 1;
  transition: opacity .85s cubic-bezier(.22, 1, .36, 1), visibility .85s;
}
.loader-stage {
  position: relative;
  z-index: 2;
  width: min(700px, calc(100% - 3rem));
  display: grid;
  justify-items: center;
  text-align: center;
}
.loader-lockup {
  position: relative;
  isolation: isolate;
  width: min(650px, 82vw);
  opacity: 0;
  transform: translateY(10px) scale(.975);
  filter: blur(7px);
  animation: loader-lockup 1.55s .18s cubic-bezier(.22, 1, .36, 1) forwards;
}
.loader-lockup::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 40.9%;
  top: 58%;
  width: 15%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(244, 196, 48, .34);
  transform: translate(-50%, -50%) scale(.35);
  filter: blur(22px);
  opacity: 0;
  animation: loader-solar-glow 2.1s .3s cubic-bezier(.22, 1, .36, 1) forwards;
}
.loader-lockup img {
  display: block;
  width: 100%;
  height: auto;
}
.loader-stage p {
  margin: 1.15rem 0 0;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: 0;
  animation: loader-caption .8s 1.05s ease forwards;
}
.cinematic-loader.is-leaving { opacity: 0; visibility: hidden; }
@keyframes loader-lockup {
  70%, 100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes loader-solar-glow {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.35); }
  55% { opacity: .9; transform: translate(-50%, -50%) scale(1.22); }
  100% { opacity: .45; transform: translate(-50%, -50%) scale(1); }
}
@keyframes loader-caption { to { opacity: .58; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, .button { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 4px;
}
h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus,
h3[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  position: relative;
  width: min(1180px, calc(100% - 2rem));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { width: min(370px, 58vw); text-decoration: none; }
.brand img { width: 100%; height: auto; }

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a { text-decoration: none; font-size: .92rem; font-weight: 650; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 750;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(17,17,15,.15); }
.button.gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.button.light { background: transparent; color: var(--ink); }
.button.small { min-height: 40px; padding: .65rem 1rem; font-size: .9rem; }
.button[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 2rem)); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section.compact { padding: 3rem 0; }
.ink-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 18%, rgba(244,196,48,.13), transparent 18rem),
    linear-gradient(145deg, #11110f 0%, #17160f 100%);
  color: var(--cream-2);
}
.ink-section::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}
.gold-section { background: var(--gold); color: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(244, 196, 48, .2);
}
.gold-section .eyebrow::before { background: var(--ink); box-shadow: 0 0 0 5px rgba(17,17,15,.12); }

h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
h1 { font-size: clamp(3.2rem, 8.7vw, 7.7rem); max-width: 11ch; }
h2 { font-size: clamp(2.5rem, 5.4vw, 5rem); max-width: 13ch; }
h3 { font-size: clamp(1.2rem, 2.3vw, 1.55rem); line-height: 1.15; }
.lede { font-size: clamp(1.12rem, 2vw, 1.42rem); line-height: 1.5; max-width: 58ch; color: var(--muted); }
.ink-section .lede, .ink-section .muted { color: rgba(255,250,240,.72); }
.muted { color: var(--muted); }
.kicker { font-family: var(--serif); font-size: 1.25rem; font-style: italic; }

.hero { padding: clamp(3.2rem, 7vw, 6.5rem) 0 4rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.hero-copy .lede { margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note { margin-top: 1rem; font-size: .88rem; color: var(--muted); }

.photo-frame {
  position: relative;
  min-height: 620px;
  border-radius: 48% 48% 24px 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ded4bb;
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(17,17,15,.48));
}
.photo-frame img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; object-position: 50% 35%; }
.photo-caption {
  position: absolute;
  z-index: 2;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: white;
  font-size: .9rem;
}
.orbit {
  position: absolute;
  z-index: 3;
  right: -26px;
  top: 11%;
  width: 116px;
  height: 116px;
  border: 1px solid rgba(244,196,48,.9);
  border-radius: 50%;
  animation: rotate 18s linear infinite;
}
.orbit::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
@keyframes rotate { to { transform: rotate(360deg); } }

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.stat { padding: 1.5rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.3rem; font-weight: 500; }
.stat span { color: var(--muted); font-size: .92rem; }
.stat:nth-child(1) strong, .stat:nth-child(3) strong { color: var(--gold-deep); }

.feature-grid, .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature, .card {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(57, 44, 9, .04);
}
.feature-number { font-family: var(--serif); font-size: 2rem; color: var(--gold-deep); }
.feature p, .card p { margin-bottom: 0; color: var(--muted); }
.card a.stretched { display: inline-block; margin-top: 1.2rem; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 4px; }
[data-page="home"] #experience .split {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(215,166,0,.28);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(244,196,48,.13), rgba(255,250,240,.7) 58%);
  box-shadow: inset 4px 0 0 var(--gold), 0 18px 54px rgba(57,44,9,.06);
}
[data-page="home"] .feature:nth-child(2),
[data-page="home"] .feature:nth-child(5) { background: rgba(244,196,48,.14); border-color: rgba(215,166,0,.28); }
[data-page="home"] .feature:nth-child(3) { background: var(--ink); color: var(--cream-2); border-color: var(--ink); }
[data-page="home"] .feature:nth-child(3) p { color: rgba(255,250,240,.7); }
[data-page="home"] .feature:nth-child(3) .feature-number { color: var(--gold); }
[data-page="home"] .card-grid > .card:nth-child(2) { background: var(--ink); color: var(--cream-2); border-color: var(--ink); }
[data-page="home"] .card-grid > .card:nth-child(2) p { color: rgba(255,250,240,.7); }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.quote { font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1.05; letter-spacing: -.035em; }
.sun-divider { display: flex; align-items: center; gap: 1rem; margin: 2rem 0; }
.sun-divider::before, .sun-divider::after { content: ""; height: 1px; flex: 1; background: currentColor; opacity: .25; }
.sun-divider img { width: 30px; }

.page-hero { padding: 4.5rem 0 2.8rem; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6.4rem); max-width: 13ch; }
.page-hero .lede { margin-bottom: 0; }

.form-shell {
  margin: 1rem auto 5rem;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255,250,240,.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.form-progress { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(244,196,48,.12); }
.form-progress span { padding: 1rem; border-right: 1px solid var(--line); font-size: .78rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.form-progress span:last-child { border-right: 0; }
.form-progress span.active { color: var(--ink); background: var(--gold); }
.form-body { padding: clamp(1.3rem, 5vw, 3.2rem); }
.form-step[hidden] { display: none; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
label, legend { display: block; margin-bottom: .45rem; font-size: .94rem; font-weight: 760; }
input, textarea, select {
  width: 100%;
  min-height: 50px;
  padding: .82rem .9rem;
  border: 1px solid rgba(17,17,15,.25);
  border-radius: 13px;
  background: #fffdf7;
  color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.choice-row { display: grid; gap: .65rem; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.38);
}
.choice input { width: 19px; min-height: 19px; margin: .15rem 0 0; accent-color: var(--ink); }
.choice label { margin: 0; font-weight: 600; }
.help { font-size: .84rem; color: var(--muted); }
.form-actions { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.8rem; }
.notice {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: rgba(244,196,48,.12);
}
.notice.provisional { border-color: var(--warning); background: rgba(155,90,0,.08); }
.form-message { margin-top: 1rem; padding: 1rem; border-radius: 14px; display: none; }
.form-message.show { display: block; }
.form-message.success { background: rgba(35,107,70,.1); color: var(--success); }
.form-message.error { background: rgba(159,47,47,.1); color: var(--danger); }

.dashboard-shell { padding: 2rem 0 5rem; }
.demo-badge { display: inline-flex; padding: .3rem .65rem; border-radius: 999px; background: var(--gold); font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-top { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1rem; margin-bottom: 1rem; }
.welcome-card, .next-card, .passport, .vault-card, .reflection-card {
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,250,240,.88);
  box-shadow: 0 12px 38px rgba(43,32,5,.06);
}
.welcome-card { background: var(--ink); color: white; }
.welcome-card p { color: rgba(255,255,255,.68); }
.next-card { background: linear-gradient(145deg, rgba(244,196,48,.16), rgba(255,250,240,.92) 62%); border-color: rgba(215,166,0,.24); }
.progress-ring {
  width: 128px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--gold) var(--progress, 0%), rgba(255,255,255,.13) 0);
  position: relative;
}
.progress-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--ink); }
.progress-ring strong { position: relative; font-family: var(--serif); font-size: 1.9rem; font-weight: 500; }
.welcome-layout { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.passport { margin-top: 1rem; }
.passport-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; }
.passport-head h2 { font-size: clamp(2.1rem, 5vw, 4.2rem); margin-bottom: 0; }
.milestones { display: grid; gap: .65rem; }
.milestone {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.42);
}
.stamp {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--serif);
  font-weight: 700;
}
.milestone.complete .stamp, .milestone.mentor_confirmed .stamp { background: var(--gold); border-color: var(--gold); color: var(--ink); box-shadow: 0 0 0 6px rgba(244,196,48,.15); }
.milestone.complete, .milestone.mentor_confirmed { background: linear-gradient(90deg, rgba(244,196,48,.09), rgba(255,255,255,.46) 42%); }
.milestone.in_progress { border-color: var(--gold-deep); }
.milestone.locked { opacity: .55; }
.milestone h3 { margin: 0 0 .2rem; font-size: 1rem; }
.milestone p { margin: 0; font-size: .84rem; color: var(--muted); }
.status-pill { padding: .35rem .6rem; border-radius: 999px; border: 1px solid var(--line); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }

.lab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.lab-card { min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; padding: 2rem; border-radius: 28px; border: 1px solid var(--line); background: var(--paper); }
.lab-card:nth-child(2), .lab-card:nth-child(5) { background: var(--ink); color: white; }
.lab-card:nth-child(2) p, .lab-card:nth-child(5) p { color: rgba(255,255,255,.7); }
.lab-card .number { font-family: var(--serif); font-size: 3rem; color: var(--gold-deep); }
.lab-card details { margin-top: 1.2rem; }
.lab-card summary { cursor: pointer; font-weight: 800; }
.lab-card details p { margin: 1rem 0 0; }

.ideas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.idea { padding: 2rem; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); }
.idea:nth-child(2) { background: rgba(244,196,48,.15); border-color: rgba(215,166,0,.28); }
.idea:nth-child(3) { background: var(--ink); color: var(--cream-2); border-color: var(--ink); }
.idea:nth-child(3) .idea-meta { color: rgba(255,250,240,.68); }
.idea blockquote { margin: 0 0 1.4rem; font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.25; }
.idea-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; color: var(--muted); }
.example-tag { font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }

.vault-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.vault-card { position: relative; min-height: 220px; }
.vault-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); font-size: 1.2rem; }
.vault-status { margin-top: 1.5rem; display: inline-block; padding: .4rem .7rem; border-radius: 999px; background: rgba(17,17,15,.06); font-size: .78rem; font-weight: 850; text-transform: uppercase; }

.reflection-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.reflection-card h3 { margin-bottom: .35rem; }
.reflection-card textarea { min-height: 120px; }
.device-note { position: static; margin-bottom: 1rem; }

.portfolio-page { padding: 3rem 0; }
.portfolio-cover { min-height: 72vh; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2rem, 6vw, 5rem); border-radius: 34px; background: var(--ink); color: white; }
.portfolio-cover h1 { max-width: 10ch; }
.portfolio-section { margin-top: 1rem; padding: 2rem; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); }

.success-state { text-align: center; padding: clamp(3rem, 8vw, 6rem) 1rem; }
.success-sun { width: 96px; height: 96px; margin: 0 auto 1.5rem; animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); filter: drop-shadow(0 0 22px rgba(244,196,48,.45)); } }

.site-footer { padding: 3rem 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; }
.footer-logo { width: min(410px, 100%); margin-bottom: 1rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; }
.footer-links a { text-underline-offset: 4px; }
.disclaimer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 750; font-size: .88rem; }

.loading { min-height: 360px; display: grid; place-items: center; text-align: center; }
.loading img { width: 70px; margin: 0 auto 1rem; animation: rotate 4s linear infinite; }
.hidden { display: none !important; }

.reveal-ready .reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1) var(--reveal-delay, 0ms), transform .7s cubic-bezier(.22,1,.36,1) var(--reveal-delay, 0ms);
}
.reveal-ready .reveal-item.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .menu-button { display: grid; place-items: center; }
  .brand { position: absolute; left: 50%; top: 50%; width: min(290px, 52vw); transform: translate(-50%, -50%); }
  .menu-button { z-index: 1; margin-left: auto; }
  .nav-links { position: absolute; inset: 76px 1rem auto; display: none; padding: 1rem; border: 1px solid var(--line); border-radius: 20px; background: var(--cream-2); box-shadow: var(--shadow); }
  .nav-links.open { display: grid; }
  .nav-links .button { width: 100%; }
  .hero-grid, .split, .dashboard-top, .footer-grid { grid-template-columns: 1fr; }
  .photo-frame, .photo-frame img { min-height: 520px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container, .narrow { width: min(100% - 2rem, 1120px); }
  .brand { width: min(220px, 62vw); }
  .nav-shell { min-height: 68px; }
  .nav-links { inset-block-start: 68px; }
  .section { padding: 3.25rem 0; }
  .section.compact { padding: 1.75rem 0 3.25rem; }
  .page-hero { padding: 2.7rem 0 1.65rem; }
  .hero { padding: 2.35rem 0 2.75rem; }
  h1 { font-size: clamp(2.7rem, 12vw, 4.1rem); }
  h2 { font-size: clamp(2.05rem, 9.5vw, 3.1rem); }
  .hero-actions { align-items: center; }
  .hero-actions .button { width: auto; max-width: 100%; }
  .photo-frame, .photo-frame img { min-height: 390px; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .feature-grid, .card-grid, .lab-grid, .ideas-grid, .vault-grid, .field-grid { grid-template-columns: 1fr; }
  .form-progress span { padding: .75rem .45rem; font-size: .67rem; text-align: center; }
  .form-shell { margin-bottom: 3rem; border-radius: 22px; }
  .form-body { padding: 1.15rem; }
  .form-actions { align-items: flex-start; flex-direction: column-reverse; }
  .form-actions .button { width: auto; max-width: 100%; min-width: 9.5rem; }
  .welcome-layout { align-items: center; flex-direction: column; text-align: center; }
  .welcome-layout > div:first-child { width: 100%; }
  .welcome-card h1 { max-width: 100%; }
  .welcome-card h1 span { display: block; }
  .progress-ring { margin-inline: auto; }
  .next-card { text-align: center; }
  .next-card .eyebrow { justify-content: center; }
  .dashboard-shell { padding: 1rem 0 3.5rem; }
  .welcome-card, .next-card, .passport, .vault-card, .reflection-card { border-radius: 20px; }
  .passport { padding: .95rem; }
  .passport-head { gap: .15rem; margin-bottom: 1rem; }
  .milestones { gap: .7rem; }
  .milestone {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas: "stamp copy" ". status";
    gap: .55rem .75rem;
    align-items: start;
    padding: .9rem;
    text-align: left;
  }
  .stamp { grid-area: stamp; width: 38px; height: 38px; }
  .milestone > div:not(.stamp) { grid-area: copy; min-width: 0; }
  .milestone h3 { font-size: .98rem; line-height: 1.25; overflow-wrap: anywhere; }
  .milestone p { line-height: 1.45; }
  .milestone .status-pill { grid-area: status; justify-self: start; margin-top: 0; }
  .status-pill { max-width: 100%; white-space: normal; text-align: center; }
  .passport-head { align-items: flex-start; flex-direction: column; }
  .reflection-card { padding: 1.05rem; }
  .reflection-card textarea { min-height: 130px; }
  .device-note { margin-bottom: 1.25rem; }
  .footer-links { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .brand { width: min(205px, 60vw); }
  .nav-shell { width: calc(100% - 1rem); }
  .menu-button { width: 42px; height: 42px; flex: 0 0 42px; }
  .form-progress span { font-size: .61rem; letter-spacing: .035em; }
  .milestone { grid-template-columns: 36px minmax(0, 1fr); padding-inline: .75rem; }
  .stamp { width: 35px; height: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .loader-lockup { opacity: 1; transform: none; clip-path: none; }
  .loader-lockup::before { display: none; }
  .loader-stage p { opacity: 1; transform: none; }
  .reveal-ready .reveal-item { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .no-print, .device-note { display: none !important; }
  body { background: white; color: black; }
  .container, .narrow { width: 100%; }
  .portfolio-page { padding: 0; }
  .portfolio-cover { min-height: 9.5in; border-radius: 0; break-after: page; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .portfolio-section { break-inside: avoid; box-shadow: none; background: white; }
}
