@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@1,6..72,400;1,6..72,500&family=Playfair+Display:wght@500;600&display=swap");

:root {
  --cream: #f7f1e7;
  --paper: #fffdf8;
  --plum: #432c4f;
  --deep-plum: #281a2f;
  --lilac: #cdbde0;
  --pale-lilac: #e9e0ee;
  --rose: #b87566;
  --rose-light: #ddb7aa;
  --ink: #302b31;
  --muted: #746c72;
  --line: rgba(67, 44, 79, 0.18);
  --shadow: 0 24px 70px rgba(46, 31, 54, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

::selection {
  color: var(--paper);
  background: var(--rose);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: white;
  background: var(--deep-plum);
  transform: translateY(-160%);
}

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

.demo-banner {
  position: relative;
  z-index: 30;
  padding: 9px 24px;
  color: #f8eefb;
  background: var(--deep-plum);
  font-size: 11px;
  letter-spacing: 0.045em;
  text-align: center;
}

.demo-banner span {
  margin-right: 10px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: white;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 36px;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(24px, 5vw, 78px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--cream);
  background: var(--plum);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 13px;
}

.brand > span:last-child {
  display: grid;
}

.brand strong {
  font-size: 14px;
  font-weight: 700;
}

.brand small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 38px);
  font-size: 13px;
  font-weight: 600;
}

nav a {
  border-bottom: 1px solid transparent;
}

nav a:hover,
nav a:focus-visible {
  border-color: currentColor;
}

.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--plum);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 830px;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: 3vw;
  overflow: hidden;
  padding: 148px clamp(24px, 7vw, 112px) 92px;
  background:
    radial-gradient(circle at 79% 28%, rgba(205, 189, 224, 0.72) 0 15%, transparent 42%),
    linear-gradient(113deg, var(--paper) 0 61%, #e1d3e8 61% 100%);
}

.hero::before {
  position: absolute;
  top: 14%;
  left: 47%;
  width: 1px;
  height: 72%;
  background: linear-gradient(transparent, var(--rose), transparent);
  content: "";
  transform: rotate(17deg);
}

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

.eyebrow {
  margin: 0 0 24px;
  color: var(--rose);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--plum);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.047em;
  line-height: 0.98;
}

h1 {
  max-width: 800px;
  margin-bottom: 32px;
  font-size: clamp(62px, 7.6vw, 116px);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(46px, 5.2vw, 80px);
}

h1 em,
h2 em {
  color: var(--rose);
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
}

.hero-intro {
  max-width: 610px;
  margin-bottom: 34px;
  color: #5c545b;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 10px 26px rgba(61, 45, 67, 0.2);
  transform: translateY(-2px);
}

.button.primary {
  color: var(--paper);
  background: var(--plum);
}

.button.cream {
  color: var(--deep-plum);
  background: var(--cream);
}

.text-link {
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.hero-proof {
  display: flex;
  max-width: 630px;
  margin: 52px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-proof li {
  display: grid;
  min-width: 0;
  flex: 1;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding-right: 20px;
}

.hero-proof strong {
  color: var(--plum);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 32px;
  font-weight: 500;
}

.hero-proof span {
  max-width: 90px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-visual {
  display: grid;
  min-height: 580px;
  place-items: center;
}

.portrait-frame {
  position: relative;
  z-index: 2;
  width: min(31vw, 430px);
  aspect-ratio: 0.74;
  margin: 0;
  overflow: hidden;
  border: 9px solid rgba(255, 253, 248, 0.78);
  border-radius: 49% 49% 10px 10px / 35% 35% 10px 10px;
  box-shadow: 0 30px 80px rgba(48, 31, 57, 0.25);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.portrait-orbit {
  position: absolute;
  z-index: 1;
  width: min(41vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(184, 117, 102, 0.55);
  border-radius: 50%;
  animation: orbit 40s linear infinite;
}

.portrait-orbit::before,
.portrait-orbit::after {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(67, 44, 79, 0.15);
  border-radius: inherit;
  content: "";
}

.portrait-orbit::after {
  inset: 25%;
}

.portrait-orbit span {
  position: absolute;
  padding: 4px 10px;
  color: var(--plum);
  background: #e1d3e8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portrait-orbit span:nth-child(1) { top: 10%; left: 7%; }
.portrait-orbit span:nth-child(2) { top: 48%; right: -2%; }
.portrait-orbit span:nth-child(3) { bottom: 8%; left: 18%; }

.portrait-card {
  position: absolute;
  z-index: 3;
  right: -4%;
  bottom: 5%;
  max-width: 245px;
  padding: 18px 20px;
  border-left: 3px solid var(--rose);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 15px 40px rgba(48, 31, 57, 0.15);
  backdrop-filter: blur(12px);
}

.portrait-card span {
  color: var(--rose);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portrait-card p {
  margin: 6px 0 0;
  color: var(--plum);
  font-family: "Newsreader", Georgia, serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.25;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.marquee {
  overflow: hidden;
  color: var(--cream);
  background: var(--rose);
}

.marquee > div {
  display: flex;
  width: max-content;
  gap: 32px;
  padding: 13px 0;
  animation: marquee 24s linear infinite;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.section {
  padding: 110px clamp(24px, 7vw, 112px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: 8vw;
  margin-bottom: 58px;
}

.section-heading > p {
  max-width: 520px;
  margin-bottom: 4px;
  color: var(--muted);
  line-height: 1.75;
}

.flip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.flip-card {
  min-height: 390px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  perspective: 1200px;
  text-align: left;
}

.flip-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  transition: transform 620ms cubic-bezier(.2,.78,.2,1);
  transform-style: preserve-3d;
}

.flip-card.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  backface-visibility: hidden;
}

.card-front {
  background: var(--paper);
}

.flip-card:nth-child(even) .card-front {
  background: var(--pale-lilac);
}

.card-back {
  color: var(--paper);
  background: var(--plum);
  transform: rotateY(180deg);
}

.flip-card:nth-child(even) .card-back {
  background: var(--rose);
}

.card-index {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.card-symbol {
  display: grid;
  width: 84px;
  height: 84px;
  margin: 44px auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--rose);
  font-family: Georgia, serif;
  font-size: 32px;
}

.card-face strong {
  color: var(--plum);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.12;
}

.card-face > span:not(.card-index, .card-symbol, .case-label, .flip-inner) {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.card-face small {
  margin-top: auto;
  padding-top: 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-back .case-label {
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-back strong {
  margin-top: 48px;
  color: white;
  font-size: 24px;
}

.card-back > span:not(.case-label) {
  color: rgba(255, 255, 255, 0.76);
}

.card-back b {
  margin-top: auto;
  color: white;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 46px;
  font-weight: 500;
}

.card-back small {
  max-width: 170px;
  padding-top: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

.journey {
  color: var(--paper);
  background:
    radial-gradient(circle at 100% 0%, rgba(205, 189, 224, 0.18), transparent 38%),
    var(--deep-plum);
}

.light-heading h2,
.resume-copy h2 {
  color: var(--paper);
}

.light-heading > p {
  color: rgba(255, 255, 255, 0.66);
}

.eyebrow.light {
  color: var(--rose-light);
}

.timeline-shell {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: clamp(35px, 6vw, 90px);
}

.timeline-controls {
  position: relative;
  display: grid;
  align-content: start;
  padding-left: 16px;
}

.timeline-controls::before {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
  content: "";
}

.timeline-tab {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  padding: 18px 0 18px 18px;
  border: 0;
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.timeline-tab::before {
  position: absolute;
  top: 26px;
  left: -14px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--deep-plum);
  border-radius: 50%;
  background: #7c6b83;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  content: "";
  transition: transform 180ms ease, background 180ms ease;
}

.timeline-tab.is-active {
  color: white;
}

.timeline-tab.is-active::before {
  background: var(--rose-light);
  transform: scale(1.5);
}

.timeline-tab span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.timeline-tab strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
  font-weight: 500;
}

.chapter-panel {
  position: relative;
  min-height: 480px;
  padding: clamp(30px, 4vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  transition: opacity 180ms ease, transform 180ms ease;
}

.chapter-panel.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.chapter-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chapter-content {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 7vw;
  padding-top: 48px;
}

.chapter-kicker {
  margin-bottom: 12px;
  color: var(--rose-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chapter-content h3 {
  margin: 0 0 22px;
  color: white;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.03;
}

.chapter-content > div > p:last-child {
  max-width: 570px;
  color: rgba(255, 255, 255, 0.71);
  font-size: 15px;
  line-height: 1.8;
}

.chapter-details {
  margin: 0;
}

.chapter-details div {
  padding: 0 0 18px;
}

.chapter-details dt {
  margin-bottom: 4px;
  color: var(--rose-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.chapter-details dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.55;
}

.chapter-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.chapter-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--rose-light);
  transition: width 320ms ease;
}

.story {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr;
  gap: 8vw;
  background: var(--paper);
}

.story-intro {
  position: sticky;
  top: 40px;
  align-self: start;
}

.story-intro h2 {
  font-size: clamp(48px, 5.4vw, 84px);
}

.story-intro > p:last-child {
  max-width: 480px;
  margin-top: 28px;
  color: var(--muted);
}

.story-steps {
  display: grid;
}

.story-steps article {
  min-height: 270px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.story-steps span {
  color: var(--rose);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-steps h3 {
  max-width: 640px;
  margin: 18px 0;
  color: var(--plum);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(29px, 3vw, 44px);
  font-weight: 500;
  line-height: 1.12;
}

.story-steps p {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.8;
}

.story-quote {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 58px clamp(28px, 5vw, 70px);
  color: white;
  background: var(--rose);
}

.story-quote > span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 100px;
  line-height: 0.7;
}

.story-quote blockquote {
  max-width: 1050px;
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(28px, 3.5vw, 52px);
  font-style: italic;
  line-height: 1.2;
}

.story-quote p {
  grid-column: 2;
  margin: 12px 0 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toolkit {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 8vw;
  background: var(--cream);
}

.accordion details {
  border-top: 1px solid var(--line);
}

.accordion details:last-child {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  padding: 24px 0;
  color: var(--plum);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(23px, 2.2vw, 34px);
  cursor: pointer;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  grid-column: 3;
  content: "+";
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 20px;
}

.accordion details[open] summary::after {
  content: "−";
}

.accordion summary span {
  color: var(--rose);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.accordion details p {
  max-width: 630px;
  margin: -8px 0 26px 50px;
  color: var(--muted);
  line-height: 1.75;
}

.resume-preview {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  align-items: center;
  gap: 10vw;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 18% 45%, rgba(205, 189, 224, 0.19), transparent 35%),
    var(--plum);
}

.resume-paper {
  display: flex;
  width: min(100%, 430px);
  aspect-ratio: 0.77;
  flex-direction: column;
  gap: 12px;
  padding: 46px;
  color: var(--plum);
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}

.paper-monogram {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--rose);
  font-family: "Playfair Display", Georgia, serif;
}

.paper-line {
  display: block;
  width: 74%;
  height: 6px;
  border-radius: 9px;
  background: #ddd3da;
}

.paper-line.wide { width: 100%; }
.paper-line.short { width: 45%; }

.resume-paper strong {
  margin-top: 22px;
  color: var(--rose);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.resume-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 28px 0 32px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.75;
}

.download-link {
  margin-left: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 12px;
  font-weight: 700;
}

.closing {
  text-align: center;
}

.closing h2 {
  max-width: 1100px;
  margin: 0 auto;
}

.closing > p:not(.eyebrow) {
  max-width: 700px;
  margin: 32px auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

footer {
  display: grid;
  grid-template-columns: 0.8fr 1fr auto;
  align-items: center;
  gap: 5vw;
  padding: 40px clamp(24px, 5vw, 78px);
  color: rgba(255, 255, 255, 0.75);
  background: var(--deep-plum);
  font-size: 11px;
}

.footer-brand .brand-mark {
  color: var(--deep-plum);
  background: var(--cream);
}

.footer-brand strong {
  color: white;
}

.footer-brand small {
  color: rgba(255, 255, 255, 0.55);
}

footer p {
  max-width: 620px;
  margin: 0;
}

footer > a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.resume-dialog {
  width: min(96vw, 1100px);
  height: min(92vh, 900px);
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

.resume-dialog::backdrop {
  background: rgba(31, 20, 35, 0.82);
  backdrop-filter: blur(5px);
}

.dialog-header,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 22px;
  color: white;
  background: var(--deep-plum);
}

.dialog-header span {
  color: var(--rose-light);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dialog-header h2 {
  margin-top: 2px;
  color: white;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

.dialog-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: white;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.resume-dialog iframe {
  display: block;
  width: 100%;
  height: calc(100% - 135px);
  border: 0;
  background: #ece9e6;
}

.dialog-actions {
  min-height: 61px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
}

.dialog-actions p {
  margin: 0;
}

.dialog-actions a {
  color: white;
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid #cf7e6a;
  outline-offset: 4px;
}

@media (max-width: 1080px) {
  .hero {
    min-height: 760px;
    grid-template-columns: 1fr 0.72fr;
  }

  .portrait-card {
    right: -8%;
  }

  .flip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flip-card,
  .flip-inner {
    min-height: 350px;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    top: 45px;
  }

  .menu-toggle {
    display: block;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.6);
  }

  nav {
    position: absolute;
    top: 82px;
    right: 24px;
    display: none;
    width: min(320px, calc(100vw - 48px));
    align-items: stretch;
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  nav.is-open {
    display: grid;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 145px;
  }

  .hero::before {
    display: none;
  }

  .hero-copy {
    z-index: 4;
  }

  .hero-visual {
    min-height: 560px;
  }

  .portrait-frame {
    width: min(70vw, 430px);
  }

  .portrait-orbit {
    width: min(88vw, 560px);
  }

  .portrait-card {
    right: 6%;
  }

  .section-heading,
  .story,
  .toolkit,
  .resume-preview {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 30px;
  }

  .timeline-shell {
    grid-template-columns: 1fr;
  }

  .timeline-controls {
    grid-template-columns: repeat(5, 1fr);
    padding: 0;
    overflow-x: auto;
  }

  .timeline-controls::before {
    top: auto;
    right: 10%;
    bottom: 7px;
    left: 10%;
    width: auto;
    height: 1px;
  }

  .timeline-tab {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2px;
    min-width: 100px;
    padding: 12px 10px 25px;
    text-align: center;
  }

  .timeline-tab::before {
    top: auto;
    bottom: 3px;
    left: 50%;
  }

  .chapter-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .story-intro {
    position: static;
  }

  .resume-paper {
    justify-self: center;
  }

  footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .demo-banner {
    padding: 8px 14px;
    line-height: 1.5;
  }

  .demo-banner span {
    display: inline-block;
  }

  .site-header {
    top: 60px;
    padding: 20px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 154px 20px 65px;
  }

  h1 {
    font-size: clamp(52px, 17vw, 74px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-proof {
    flex-wrap: wrap;
    gap: 18px 0;
  }

  .hero-proof li {
    flex: 0 0 50%;
  }

  .hero-visual {
    min-height: 470px;
  }

  .portrait-frame {
    width: 82vw;
  }

  .portrait-orbit {
    width: 100vw;
  }

  .portrait-card {
    right: 0;
    bottom: 0;
    max-width: 220px;
  }

  .section {
    padding: 78px 20px;
  }

  .flip-grid {
    grid-template-columns: 1fr;
  }

  .chapter-panel {
    padding: 28px 22px 36px;
  }

  .chapter-meta {
    flex-direction: column;
    gap: 4px;
  }

  .story-quote {
    grid-template-columns: 1fr;
  }

  .story-quote > span {
    font-size: 72px;
  }

  .story-quote p {
    grid-column: 1;
  }

  .resume-paper {
    padding: 34px;
  }

  .download-link {
    display: inline-block;
    margin: 20px 0 0 10px;
  }

  .resume-dialog {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
  }
}

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

  .portrait-orbit,
  .marquee > div {
    animation: none;
  }

  .flip-inner,
  .chapter-panel {
    transition: none;
  }
}
