/* mirantsoa.dev — warm editorial, calm motion */
/* Burgundy theme. Fonts: Fraunces (headings, soft optical serif) + Figtree (text). */
:root {
  --bg: #f7f1ec;
  --surface: #fcf8f5;
  --surface-2: #f0e6e0;
  --ink: #221a1b;
  --ink-2: #43383a;
  --muted: #74676a;
  --line: #e7dad4;
  --accent: #7b1e34;
  --accent-ink: #fcf8f5;
  --accent-soft: #f4e2e6;
  --wine: #5a1426;
  --accent-deep: #5a1426;
  --wine-ink: #fbeff1;
  --sage: #5b7262;
  --shadow: 0 1px 2px rgb(60 20 30 / .06), 0 14px 40px -14px rgb(60 20 30 / .22);
  --radius: 18px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #150c0f; --surface: #1e1316; --surface-2: #28191d; --ink: #f3e8e8; --ink-2: #dccbcd;
    --muted: #a8969a; --line: #36242a; --accent: #e9a1b3; --accent-ink: #1b0d11; --accent-soft: #33171f;
    --wine: #3b0f1b; --wine-ink: #fbeff1; --accent-deep: #f6cfd8;
    --sage: #a3bfae; --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 48px -16px rgb(0 0 0 / .65);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #150c0f; --surface: #1e1316; --surface-2: #28191d; --ink: #f3e8e8; --ink-2: #dccbcd;
  --muted: #a8969a; --line: #36242a; --accent: #e9a1b3; --accent-ink: #1b0d11; --accent-soft: #33171f;
  --wine: #3b0f1b; --wine-ink: #fbeff1; --accent-deep: #f6cfd8;
  --sage: #a3bfae; --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 48px -16px rgb(0 0 0 / .65);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .15em; margin: 0; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 400; }
em, .it { font-style: italic; }
/* Fraunces: soft, non-wonky shapes for a calm, natural feel */
h1, h2, h3, h4, .brand, .role, .about-lead, .cs-lede, .strip span, .mail, .cs-stats strong, .cs-next strong, .principle .n, .portrait strong {
  font-variation-settings: "SOFT" 80, "WONK" 0; font-optical-sizing: auto;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: baseline; gap: 2px; padding: 11px 0; font: 450 23px/1 var(--serif); text-decoration: none; letter-spacing: -.02em; }
.brand .dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-block; padding: 12px 12px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-tools { display: flex; align-items: center; gap: 6px; }
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; min-width: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 500 13px/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: border-color .2s, transform .2s;
}
.pill-btn:hover { border-color: var(--muted); }
.pill-btn svg { width: 16px; height: 16px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 999px; font: 500 15.5px/1 var(--sans);
  text-decoration: none; border: 1px solid transparent; transition: transform .25s cubic-bezier(.2,.7,.2,1), background .2s, border-color .2s;
}
.btn svg { width: 17px; height: 17px; transition: transform .25s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(48px, 7vw, 88px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 620px; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 300px at 82% 30%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
              radial-gradient(520px 260px at 10% 10%, color-mix(in srgb, var(--sage) 12%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: 13.5px; color: var(--ink-2);
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: #3f9a6b; box-shadow: 0 0 0 0 rgb(63 154 107 / .5); animation: pulse 2.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(63 154 107 / .45); } 70% { box-shadow: 0 0 0 9px rgb(63 154 107 / 0); } 100% { box-shadow: 0 0 0 0 rgb(63 154 107 / 0); } }
.hero h1 { margin: 26px 0 0; font: 340 clamp(44px, 8vw, 104px)/.95 var(--serif); letter-spacing: -.03em; }
.hero h1 .line2 { display: block; font-style: italic; color: var(--accent); }
.hero .role { margin: 26px 0 0; font: 380 clamp(21px, 2.4vw, 28px)/1.35 var(--serif); color: var(--ink-2); max-width: 30ch; }
.hero .lede { margin: 18px 0 0; max-width: 54ch; color: var(--muted); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.now { margin-top: 28px; display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; color: var(--muted); }
.now b { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sage); white-space: nowrap; }

.hero-card {
  position: relative; display: block; text-decoration: none; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 10px; transform: rotate(1.2deg); transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.hero-card:hover { transform: rotate(0deg) translateY(-4px); }
.hero-card img { border-radius: 14px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.hero-card .cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 8px 6px; font-size: 14px; }
.hero-card .cap span { color: var(--muted); }
.hero-card .cap strong { font-weight: 500; }
.hero-card .tag {
  position: absolute; top: -14px; left: 22px; background: var(--accent); color: var(--accent-ink); font: 600 12px/1 var(--mono); letter-spacing: .1em;
  text-transform: uppercase; padding: 8px 12px; border-radius: 999px;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-card { transform: none; max-width: 560px; } }

/* ---------- stack strip ---------- */
.strip { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip-track { display: flex; gap: 44px; width: max-content; animation: marquee 48s linear infinite; }
.strip span { font: 380 22px/1 var(--serif); color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 44px; }
.strip span::after { content: "✦"; font-size: 12px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: clamp(72px, 10vw, 128px) 0 0; }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin: 12px 0 0; font: 360 clamp(36px, 5vw, 60px)/1.02 var(--serif); letter-spacing: -.025em; }
.section-head h2 em { color: var(--accent); }
.section-head p { margin: 0; max-width: 42ch; color: var(--muted); }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- case studies ---------- */
.case { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); }
.case + .case { margin-top: clamp(24px, 4vw, 40px); }
.case.flip { grid-template-columns: 1fr 1.35fr; }
.case.flip .case-media { order: 2; }
@media (max-width: 900px) { .case, .case.flip { grid-template-columns: 1fr; } .case.flip .case-media { order: 0; } }

.browser { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: sticky; top: 96px; }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar .url { flex: 1; text-align: center; font: 500 12px/1 var(--mono); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--surface-2); }
.media-note { margin: 12px 4px 0; font-size: 12.5px; color: var(--muted); }

.case-num { font: 500 12px/1 var(--mono); color: var(--accent); letter-spacing: .12em; }
.case h3 { margin: 14px 0 0; font: 400 clamp(30px, 3.6vw, 42px)/1.05 var(--serif); letter-spacing: -.02em; }
.case .summary { margin: 14px 0 0; font-size: 18px; color: var(--ink-2); }
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 26px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.meta dt { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin: 6px 0 0; font-size: 15px; }
.built { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.built li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15.5px; }
.built li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 1px; background: var(--accent); }
.built strong { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.chips li { font: 500 12.5px/1 var(--sans); padding: 8px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.case .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- more work ---------- */
.grid-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .grid-more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-more { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .35s;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: var(--shadow); }
.card .k { display: flex; justify-content: space-between; gap: 12px; font: 600 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card .k .live { color: var(--sage); }
.card h3 { margin: 18px 0 8px; font: 450 22px/1.2 var(--serif); letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .chips { margin-top: auto; padding-top: 20px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.portrait { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.portrait img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.portrait span { display: block; font-size: 14px; color: var(--muted); }
.portrait strong { font: 450 20px/1.25 var(--serif); }
.about-lead { font: 360 clamp(24px, 2.8vw, 32px)/1.3 var(--serif); margin: 0; letter-spacing: -.01em; }
.about-lead em { color: var(--accent); }
.about-body p { margin: 0 0 18px; color: var(--ink-2); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.principle { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.principle .n { font: 380 28px/1 var(--serif); color: var(--accent); font-style: italic; }
.principle h3 { margin: 12px 0 6px; font-size: 16px; font-weight: 600; }
.principle p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- skills ---------- */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .skills { grid-template-columns: 1fr; } }
.skill { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.skill h3 { margin: 0 0 12px; font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.skill p { margin: 0; font: 400 17.5px/1.55 var(--sans); color: var(--ink-2); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .timeline li { grid-template-columns: 1fr; gap: 8px; } }
.timeline .when { font: 500 13px/1.6 var(--mono); color: var(--muted); }
.timeline h3 { margin: 0; font: 450 22px/1.25 var(--serif); letter-spacing: -.01em; }
.timeline h3 span { color: var(--muted); }
.timeline p { margin: 8px 0 0; color: var(--ink-2); font-size: 15.5px; max-width: 70ch; }
.edu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
@media (max-width: 860px) { .edu { grid-template-columns: 1fr; } }
.edu .card h3 { margin-top: 12px; font-size: 21px; }

/* ---------- contact ---------- */
.contact { margin-top: clamp(72px, 10vw, 128px); padding: clamp(56px, 8vw, 104px) 0; background: var(--wine); color: var(--wine-ink); border-radius: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0 0; --bg: var(--wine-ink); }
.contact .eyebrow { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.contact h2 { margin: 18px 0 0; font: 340 clamp(40px, 6.4vw, 88px)/1 var(--serif); letter-spacing: -.03em; max-width: 15ch; }
.contact h2 em { color: #f3b6c5; }
.contact p { margin: 24px 0 0; max-width: 52ch; color: color-mix(in srgb, var(--bg) 72%, transparent); }
.mail {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 36px; font: 380 clamp(19px, 2.6vw, 30px)/1.2 var(--serif); color: var(--bg);
  text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--bg) 35%, transparent); padding-bottom: 6px; overflow-wrap: anywhere; max-width: 100%;
}
.mail svg { width: .8em; height: .8em; flex: none; }
@media (max-width: 520px) { .mail { font-size: 19px; } }
.mail:hover { border-bottom-color: var(--bg); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); text-decoration: none; font-size: 14.5px; }
.socials a:hover { border-color: var(--bg); }
.socials svg { width: 16px; height: 16px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(56px, 8vw, 96px); padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--bg) 14%, transparent); font-size: 13px; color: color-mix(in srgb, var(--bg) 55%, transparent); }
.foot a { color: inherit; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip-track, .status i { animation: none; }
  .hero-card { transform: none; }
}
@media (max-width: 520px) { .status { font-size: 12.5px; } .hero h1 { margin-top: 20px; } }

/* ---------- case-study pages ---------- */
.case-link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s; }
.case-link:hover { background-size: 100% 1px; }
.case .links .btn { height: 46px; }
.cs-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-block; padding: 11px 2px; margin: -11px 0; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.cs-hero h1 { margin: 14px 0 0; font: 340 clamp(40px, 7vw, 92px)/1 var(--serif); letter-spacing: -.03em; max-width: 16ch; }
.cs-lede { margin: 24px 0 0; font: 380 clamp(20px, 2.2vw, 25px)/1.45 var(--serif); color: var(--ink-2); max-width: 44ch; }
.cs-hero .meta { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 980px; }
@media (max-width: 760px) { .cs-hero .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs-hero .ctas { margin-top: 8px; }
.cs-media .browser { position: static; }
.cs-stats { list-style: none; padding: 0; margin: clamp(40px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .cs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs-stats li { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.cs-stats strong { display: block; font: 360 clamp(36px, 4.4vw, 50px)/1 var(--serif); color: var(--accent); }
.cs-stats span { display: block; margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.cs-section { display: grid; grid-template-columns: 280px 1fr; gap: clamp(20px, 4vw, 56px); padding: clamp(40px, 6vw, 64px) 0; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .cs-section { grid-template-columns: 1fr; } }
.cs-section h2 { margin: 0; font: 380 clamp(28px, 3.2vw, 38px)/1.1 var(--serif); letter-spacing: -.02em; }
.cs-section p { margin: 0 0 18px; color: var(--ink-2); max-width: 68ch; }
.cs-section .built { gap: 14px; max-width: 72ch; }
.cs-stack { display: grid; gap: 24px; }
.cs-stack h3 { margin: 0; font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cs-stack .chips { margin-top: 12px; }
.cs-gallery-wrap { padding: clamp(40px, 6vw, 64px) 0 0; }
.cs-gallery-wrap h2 { margin: 0 0 28px; font: 380 clamp(28px, 3.2vw, 38px)/1.1 var(--serif); letter-spacing: -.02em; }
.cs-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 700px) { .cs-gallery { grid-template-columns: 1fr; } }
.cs-gallery figure { margin: 0; }
.cs-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface-2); }
.cs-gallery figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.cs-next { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; position: relative; padding-right: 48px !important; margin-top: clamp(56px, 8vw, 96px); padding: 28px 0; border-top: 1px solid var(--line); text-decoration: none; }
.cs-next strong { font: 360 clamp(28px, 3.6vw, 42px)/1.05 var(--serif); flex: 1; min-width: 12ch; }
.cs-next svg { position: absolute; right: 0; top: 50%; margin-top: -16px; width: 32px; height: 32px; transition: transform .3s; }
.cs-next:hover svg { transform: translateX(6px); }

/* ---------- burgundy highlights: her name and the key facts ---------- */
.hero h1 { color: var(--accent-deep); }
.brand { color: var(--accent-deep); }
.portrait strong { color: var(--accent); }
.lede strong, .about-body strong { color: var(--accent); font-weight: 600; }
.built strong { color: var(--accent); }
.meta div:first-child dd { color: var(--accent); font-weight: 600; }
.timeline h3 { color: var(--accent); }
.timeline h3 span { color: var(--muted); }
.edu .card h3 { color: var(--accent); }
.cs-hero h1 { color: var(--accent-deep); }

/* phones: the "Live" card repeats the first project's preview, so hide it there */
@media (max-width: 600px) { .hero-card { display: none; } }
h2.eyebrow { margin: 0; }
