/* Rachel Lee portfolio.
   Layout concept: a calm blue stage for the work. Big Inter type, offset color blocks behind each image,
   and a name tag that follows the visitor from page to page. Project color lives only inside the work. */
:root {
  --paper: #C8D7E4;
  --band: #F3EBF3;
  --head: #295D7D;
  --fg: #173A50;
  --muted: #35566C;
  --leaf: #7AAC6C;
  --on-leaf: #10222D;
  --line: rgba(41, 93, 125, 0.32);
  --shadow: 0 22px 44px -22px rgba(23, 58, 80, 0.55);

  --tag-body: #FDFBFD;
  --tag-band: #295D7D;
  --tag-band-text: #F3EBF3;
  --tag-ink: #173A50;
  --tag-muted: #4E6F85;
  --mini-body: #295D7D;
  --mini-text: #C8D7E4;
  --mini-strip: #7AAC6C;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter-l: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 56px), env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F202B; --band: #1B3646; --head: #C8D7E4; --fg: #E9EEF3; --muted: #9FB6C7;
    --line: rgba(200, 215, 228, 0.25); --shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F202B; --band: #1B3646; --head: #C8D7E4; --fg: #E9EEF3; --muted: #9FB6C7;
  --line: rgba(200, 215, 228, 0.25); --shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--paper); color: var(--fg); font-family: var(--font); font-size: 1rem; line-height: 1.6;
  font-weight: 300; -webkit-font-smoothing: antialiased; overflow-x: hidden; margin: 0;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: var(--paper); z-index: 40;
}
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--head); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
.logo { fill: currentColor; display: block; }
.wrap { max-width: 1320px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
[id] { scroll-margin-top: 4.5rem; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 60; background: var(--head); color: var(--paper);
  padding: .6rem 1rem; border-radius: 6px; font-weight: 500; text-decoration: none;
}
.skip:focus { top: calc(8px + env(safe-area-inset-top, 0px)); }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .6rem; }
.brand { color: var(--head); display: block; border-radius: 6px; }
.brand .logo { width: 2.4rem; height: 2.4rem; }
.nav { display: flex; gap: clamp(.9rem, 2.6vw, 2.2rem); }
.nav a { font-weight: 500; font-size: .95rem; text-decoration: none; padding: .5rem 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav a:hover { color: var(--head); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: var(--head); border-bottom-color: var(--leaf); }

/* shared bits */
.eyebrow, .kicker { font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 44px; padding: .6rem 1.3rem;
  border: 0; border-radius: 999px; cursor: pointer; background: var(--head); color: var(--paper);
  font-weight: 700; text-decoration: none; transition: background .2s, color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--leaf); color: var(--on-leaf); }
.btn-ghost { background: transparent; color: var(--head); border: 1.5px solid var(--head); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--leaf); border-color: var(--leaf); color: var(--on-leaf); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(4px); }

.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; }
.sec-head h2, .page-title h1 {
  font-weight: 700; font-size: clamp(2.8rem, 8vw, 6rem); line-height: 1; letter-spacing: -.05em; color: var(--head);
}
.sec-head .sub { margin-top: .75rem; font-size: 1.2rem; max-width: 46ch; }
.page-title { padding-block: clamp(2.5rem, 6vw, 5rem) 0; }
.page-title .lede { margin-top: 1rem; font-size: 1.25rem; max-width: 46ch; }

/* hero */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3.5rem, 8vw, 7rem); }
.hero-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "tag" "choices"; }
.hero-head { grid-area: head; }
.tag-wrap { grid-area: tag; display: flex; justify-content: center; padding-block: .75rem 1rem; }
.hero-choices { grid-area: choices; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head tag" "choices tag"; column-gap: clamp(2rem, 6vw, 6rem); align-items: start; }
  .tag-wrap { align-self: center; }
}
h1.hello {
  font-weight: 700; font-size: clamp(3.2rem, 9.5vw, 7.2rem); line-height: 1.08; letter-spacing: -.05em;
  color: var(--head); margin-top: 1.1rem; padding-bottom: .08em; text-wrap: balance;
}
.ask { font-weight: 300; font-size: clamp(1.7rem, 4.2vw, 2.9rem); letter-spacing: -.025em; line-height: 1.15; margin-top: 1.5rem; }
.pins { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.75rem; }
.pin {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .6rem 1.15rem .6rem .95rem;
  background: transparent; color: var(--head); border: 1.5px solid var(--head); border-radius: 999px; cursor: pointer;
  font-weight: 500; font-size: 1rem; transition: background .2s, color .2s, border-color .2s;
}
.pin::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--leaf); border: 1.5px solid var(--head); flex: none; transition: background .2s, border-color .2s; }
.pin:hover, .pin:focus-visible { background: var(--leaf); border-color: var(--leaf); color: var(--on-leaf); }
.pin:hover::before, .pin:focus-visible::before { background: var(--on-leaf); border-color: var(--on-leaf); }
.pin[aria-pressed="true"] { background: var(--head); color: var(--paper); border-color: var(--head); }
.pin[aria-pressed="true"]::before { background: var(--leaf); border-color: var(--paper); }
.reply { min-height: 1.7em; margin-top: 1.1rem; font-weight: 500; }

/* name tag (landscape) */
.tag {
  position: relative; width: 23em; max-width: 100%; font-size: clamp(14px, 1.1vw + 7px, 20px);
  background: var(--tag-body); color: var(--tag-ink); border-radius: 1.1em; overflow: hidden;
  box-shadow: var(--shadow); transform: rotate(-2.5deg); transform-origin: 50% 0;
  animation: swing 1.1s cubic-bezier(.3, .7, .3, 1) .15s both;
}
@keyframes swing { 0% { transform: rotate(-10deg); } 30% { transform: rotate(1.5deg); } 60% { transform: rotate(-4.5deg); } 100% { transform: rotate(-2.5deg); } }
.tag-slot { position: absolute; top: .85em; left: 50%; width: 3.6em; height: .85em; margin-left: -1.8em; border-radius: 999px; background: var(--paper); box-shadow: inset 0 .14em .22em rgba(0, 0, 0, .3); }
.tag-band { background: var(--tag-band); color: var(--tag-band-text); padding: 2em 1.4em 1em; display: flex; align-items: baseline; justify-content: space-between; gap: 1em; }
.tag-hello { display: block; font-weight: 700; font-size: 2.4em; line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.tag-sub { display: block; font-weight: 500; font-size: .8em; letter-spacing: .18em; text-transform: uppercase; text-align: right; }
.tag-body { position: relative; padding: 1.1em 5.2em 1.3em 1.4em; min-height: 7.2em; display: flex; align-items: center; }
.tag-value { display: block; font-weight: 700; font-size: 2.4em; line-height: 1.02; letter-spacing: -.04em; overflow-wrap: anywhere; color: var(--tag-band); }
.tag-value.ghost { color: var(--tag-muted); opacity: .5; }
.tag-value.pop { animation: inkin .4s ease-out both; }
@keyframes inkin { from { opacity: 0; transform: translateY(.25em); } to { opacity: 1; transform: none; } }
.tag-logo { position: absolute; right: 1.3em; top: 50%; margin-top: -1.6em; width: 3.2em; height: 3.2em; color: var(--tag-band); }

/* corner tag */
.mini {
  position: fixed; z-index: 35; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: stretch; padding: 0; border: 0; cursor: pointer; text-align: left;
  background: var(--mini-body); color: var(--mini-text); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(23, 58, 80, .2); transition: transform .2s;
}
.mini:hover { transform: translateY(-3px); }
.mini-band { width: 30px; background: var(--mini-strip); display: grid; place-items: center; }
.mini-band::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .35); }
.mini-text { display: grid; padding: .5rem .95rem .55rem .75rem; }
.mini-label { font-size: .62rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--mini-text); }
.mini-value { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }

/* work cards */
.band-label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1.5rem; border-bottom: 1.5px solid var(--head); padding-bottom: .6rem; margin-top: clamp(3rem, 7vw, 5rem); }
.band-label h3 { font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; color: var(--head); }
.band-label span { font-size: .9rem; font-weight: 500; color: var(--muted); }
.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem 2rem; margin-top: 2.5rem; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem 2.5rem; } }
.card { min-width: 0; }
.card-link { display: block; text-decoration: none; border-radius: 8px; }
.shot { position: relative; margin: 0 12px 12px 0; aspect-ratio: 4 / 3; }
.shot::before { content: ""; position: absolute; inset: 0; transform: translate(12px, 12px); background: var(--pc); border-radius: 6px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.shot img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.card-link:hover .shot::before, .card-link:focus-visible .shot::before { transform: translate(17px, 17px); }
.card-link:hover .shot img, .card-link:focus-visible .shot img { transform: translate(-5px, -5px); }
.meta { margin-top: 1.4rem; display: grid; gap: .2rem; }
.meta h4 { font-weight: 700; font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -.03em; color: var(--head); }
.meta .sub { font-size: 1.02rem; }
.meta .tags { font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.card-soon .soon-box {
  aspect-ratio: 4 / 3; margin: 0 12px 12px 0; border: 2px dashed var(--head); border-radius: 6px; display: grid; place-items: center; text-align: center;
  padding: 1rem; color: var(--head); font-weight: 500; transform: rotate(-.6deg);
}
.card-soon .soon-box .logo { width: 3rem; height: 3rem; margin: 0 auto .6rem; opacity: .6; }

/* experience */
.xp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem 2rem; margin-top: 2.5rem; }
.xp { min-width: 0; }
.xp-shot { aspect-ratio: 4 / 3; border-radius: 6px; background: var(--xc); color: var(--xt); display: grid; place-items: center; position: relative; overflow: hidden; }
.xp-shot .logo { position: absolute; width: 70%; height: 70%; right: -12%; bottom: -22%; opacity: .14; }
.xp-shot .ph { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; position: relative; }
.xp-shot .lock { width: 3.2rem; height: 3.2rem; position: relative; }
.pill { display: inline-block; font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: .2rem .65rem; border-radius: 999px; border: 1.5px solid currentColor; }
.pill-open { color: var(--head); }
.pill-locked { background: var(--head); color: var(--paper); border-color: var(--head); }
.xp-meta { margin-top: 1.1rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; justify-items: start; }
.xp-meta h4 { font-weight: 700; font-size: 1.4rem; letter-spacing: -.025em; line-height: 1.15; color: var(--head); }
.xp-meta p { font-size: 1.02rem; }
.unlock { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; margin-top: .4rem; }
.unlock label, .field label { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.unlock-row { display: flex; gap: .5rem; }
.unlock input { flex: 1; min-width: 0; padding: .6rem .8rem; border: 1.5px solid var(--head); border-radius: 8px; background: transparent; font-weight: 500; }
.form-note { font-size: .95rem; font-weight: 500; min-height: 1.4em; }
.ask-link a { font-weight: 500; color: var(--head); }

/* about (home teaser + page) */
.about { background: var(--band); }
.statement { font-weight: 300; font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1.12; letter-spacing: -.03em; max-width: 22ch; margin-top: 1.25rem; text-wrap: balance; }
.statement strong { font-weight: 700; color: var(--head); }
.about .btn { margin-top: 2rem; }
.beliefs { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.beliefs li { border-top: 1.5px solid var(--head); padding-top: 1rem; min-width: 0; }
.beliefs h3 { font-weight: 700; font-size: 1.15rem; letter-spacing: -.015em; color: var(--head); }
.beliefs p { margin-top: .35rem; font-size: 1.05rem; }
.two-col { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 880px) { .two-col { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 5rem; } }
.prose p { font-size: 1.15rem; max-width: 62ch; }
.prose p + p { margin-top: 1.1rem; }
.timeline { border-top: 1.5px solid var(--head); }
.timeline li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.timeline .when { font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: .25rem; }
.timeline .what { font-weight: 500; font-size: 1.1rem; }
.timeline .what small { display: block; font-weight: 300; font-size: .98rem; color: var(--muted); }

/* contact cta (home) and page */
.cta { text-align: left; }
.cta h2 { font-weight: 700; font-size: clamp(2.6rem, 6.6vw, 5.2rem); line-height: 1; letter-spacing: -.05em; color: var(--head); margin-top: 1.1rem; max-width: 14ch; text-wrap: balance; }
.cta .btn { margin-top: 2rem; }
.contact-grid { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr); align-items: start; margin-top: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 880px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; } }
.reach { max-width: 34rem; }
.reach li { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: .75rem; align-items: baseline; border-top: 1px solid var(--line); padding: .95rem 0; }
.reach li:last-child { border-bottom: 1px solid var(--line); }
.reach-label { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.reach-val { font-weight: 500; font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; min-width: 0; overflow-wrap: anywhere; }
.reach-val a { color: var(--head); text-underline-offset: 3px; }
.reach-val a:hover { color: var(--fg); }
.copy { min-height: 32px; padding: .2rem .8rem; border: 1.5px solid var(--head); border-radius: 999px; background: transparent; color: var(--head); font-weight: 500; font-size: .85rem; cursor: pointer; }
.copy:hover { background: var(--leaf); border-color: var(--leaf); color: var(--on-leaf); }
.tagform { background: var(--tag-body); color: var(--tag-ink); border-radius: 1.1rem; overflow: hidden; box-shadow: var(--shadow); max-width: 34rem; }
.tagform-band { position: relative; background: var(--tag-band); color: var(--tag-band-text); padding: 2.4rem 1.6rem 1rem; }
.tagform-band::before { content: ""; position: absolute; top: .8rem; left: 50%; width: 3.4rem; height: .8rem; margin-left: -1.7rem; border-radius: 999px; background: var(--paper); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .3); }
.tagform-band strong { display: block; font-weight: 700; font-size: 2rem; letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.tagform-band span { display: block; margin-top: .4rem; font-weight: 500; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; }
.tagform-body { padding: 1.5rem 1.6rem 1.8rem; display: grid; gap: 1.4rem; }
.field { display: grid; gap: .3rem; }
.tagform .field label { color: var(--tag-muted); }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 2px solid var(--tag-band); border-radius: 0; padding: .45rem 0; font-weight: 500; font-size: 1.15rem; color: var(--tag-ink); resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--tag-band); outline-offset: 4px; }
.tagform .btn { justify-self: start; background: var(--tag-band); color: var(--tag-band-text); }
.tagform .btn:hover, .tagform .btn:focus-visible { background: var(--leaf); color: var(--on-leaf); }
.tagform .form-note { color: var(--tag-ink); }

/* project pages */
.proj-top { padding-block: clamp(2rem, 5vw, 4rem) 0; }
.back { display: inline-block; font-weight: 500; font-size: .95rem; text-decoration: none; color: var(--head); padding: .4rem 0; }
.back:hover { text-decoration: underline; text-underline-offset: 4px; }
.proj-top h1 { font-weight: 700; font-size: clamp(3rem, 10vw, 8rem); line-height: 1.02; letter-spacing: -.055em; color: var(--head); margin-top: .75rem; overflow-wrap: anywhere; }
.proj-top .tagline { margin-top: 1rem; font-size: clamp(1.2rem, 2.4vw, 1.7rem); max-width: 40ch; letter-spacing: -.01em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.5rem 2rem; margin-top: clamp(2rem, 5vw, 3.5rem); border-top: 1.5px solid var(--head); padding-top: 1.2rem; }
.facts dt { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: .3rem; font-weight: 500; font-size: 1.05rem; }
.hero-img { margin-top: clamp(2rem, 5vw, 3.5rem); }
.hero-img figure { position: relative; margin: 0 14px 14px 0; }
.hero-img figure::before { content: ""; position: absolute; inset: 0; transform: translate(14px, 14px); background: var(--pc); border-radius: 8px; }
.hero-img img { position: relative; width: 100%; border-radius: 8px; }
.copy-block { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 880px) { .copy-block { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 5rem; } }
.copy-block h2, .chapter h2 { font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.035em; line-height: 1.1; color: var(--head); text-wrap: balance; }
.copy-block .body p, .chapter-body p { font-size: 1.12rem; max-width: 62ch; }
.copy-block .body p + p, .chapter-body p + p { margin-top: 1rem; }
.copy-block .body h3 { font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.copy-block .body section + section { margin-top: 2rem; }
.system { margin-top: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); padding-top: 1.5rem; }
.system h3 { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.swatches { display: flex; flex-wrap: wrap; gap: .6rem; }
.swatch { width: 4.4rem; }
.swatch i { display: block; height: 3.4rem; border-radius: 6px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(23, 58, 80, .22); }
.swatch span { display: block; margin-top: .3rem; font-size: .72rem; font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.fonts li { font-weight: 500; font-size: 1.1rem; padding: .15rem 0; }
.chapter { margin-top: clamp(3.5rem, 8vw, 6rem); }
.chapter-head { display: grid; gap: .75rem 4rem; grid-template-columns: minmax(0, 1fr); margin-bottom: 1.75rem; }
@media (min-width: 880px) { .chapter-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: end; } }
.rows { display: grid; gap: clamp(.75rem, 1.6vw, 1.25rem); }
.row { display: flex; gap: clamp(.75rem, 1.6vw, 1.25rem); align-items: stretch; }
.row figure { flex: var(--ar) 1 0; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.row img { width: 100%; height: auto; border-radius: 8px; background: var(--band); }
.row figcaption { font-size: .88rem; font-weight: 500; color: var(--muted); }
@media (max-width: 640px) {
  .row.stack { flex-direction: column; }
  .row.stack figure { flex: none; }
}
.quotes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1.5rem; }
.quotes blockquote { margin: 0; padding: 1.1rem 1.2rem; background: var(--band); border-radius: 10px; font-size: 1.02rem; font-weight: 500; }
.quotes cite { display: block; margin-top: .5rem; font-style: normal; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.next { margin-top: clamp(4rem, 9vw, 7rem); border-top: 1.5px solid var(--head); padding-top: 1.5rem; }
.next a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; text-decoration: none; }
.next .label { font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); width: 100%; }
.next .name { font-weight: 700; font-size: clamp(2.2rem, 7vw, 5rem); letter-spacing: -.05em; line-height: 1.05; color: var(--head); }
.next a:hover .name, .next a:focus-visible .name { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 3px; text-decoration-color: var(--leaf); }

.foot { padding-block: 2.5rem 6rem; border-top: 1px solid var(--line); margin-top: clamp(4rem, 9vw, 7rem); }
.foot .wrap { display: flex; align-items: center; gap: .9rem; color: var(--muted); font-weight: 500; font-size: .9rem; flex-wrap: wrap; }
.foot .logo { width: 1.8rem; height: 1.8rem; color: var(--head); }
.about + .foot, .cta-wrap + .foot { margin-top: 0; }

@media (max-width: 520px) {
  .nav a { font-size: .88rem; }
  .brand .logo { width: 2rem; height: 2rem; }
  .timeline li { grid-template-columns: 1fr; gap: .1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
