/* Meghan Race — shared styles
   Palettes inspired by Meghan's oil paintings:
   • marsh (default) — golden grass, sage, rust
   • drape — moody plum, silk, dusty rose
   • birch — high-contrast ink on cream
*/

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600&family=Geist+Mono:wght@400;500&display=swap');

:root,
[data-palette="marsh"] {
  --bg:        oklch(0.962 0.012 85);
  --bg-2:      oklch(0.925 0.020 80);
  --bg-3:      oklch(0.88  0.030 78);
  --ink:       oklch(0.22  0.015 55);
  --ink-2:     oklch(0.42  0.022 55);
  --ink-3:     oklch(0.60  0.025 60);
  --rule:      oklch(0.80  0.025 70);
  --accent:    oklch(0.56  0.135 68);
  --accent-2:  oklch(0.46  0.135 32);
  --accent-3:  oklch(0.50  0.075 130);
  --hero-painting: url('assets/paintings/striped-fields.jpeg');
  --hero-painting-pos: 50% 50%;
}

[data-palette="drape"] {
  --bg:        oklch(0.18  0.025 295);
  --bg-2:      oklch(0.235 0.030 295);
  --bg-3:      oklch(0.30  0.035 300);
  --ink:       oklch(0.94  0.010 80);
  --ink-2:     oklch(0.74  0.018 80);
  --ink-3:     oklch(0.55  0.025 290);
  --rule:      oklch(0.35  0.035 290);
  --accent:    oklch(0.72  0.055 325);
  --accent-2:  oklch(0.58  0.090 25);
  --accent-3:  oklch(0.65  0.060 220);
  --hero-painting: url('assets/paintings/drape-triptych.jpeg');
  --hero-painting-pos: 50% 50%;
}

[data-palette="birch"] {
  --bg:        oklch(0.972 0.005 85);
  --bg-2:      oklch(0.935 0.008 80);
  --bg-3:      oklch(0.89  0.010 80);
  --ink:       oklch(0.14  0.008 55);
  --ink-2:     oklch(0.40  0.012 55);
  --ink-3:     oklch(0.58  0.015 60);
  --rule:      oklch(0.80  0.012 60);
  --accent:    oklch(0.42  0.090 50);
  --accent-2:  oklch(0.36  0.060 130);
  --accent-3:  oklch(0.30  0.020 60);
  --hero-painting: url('assets/paintings/birch-mural.jpeg');
  --hero-painting-pos: 50% 35%;
}

:root {
  --f-display: 'Instrument Serif', 'Cormorant Garamond', 'Times New Roman', serif;
  --f-body:    'Geist', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --f-mono:    'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --shell-pad: clamp(20px, 4vw, 64px);
  --shell-max: 1280px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 220ms ease, color 220ms ease;
}
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--bg); }

h1, h2, h3, .display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.04;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 8vw, 124px); }
h2 { font-size: clamp(36px, 5.4vw, 76px); }
h3 { font-size: clamp(24px, 2.8vw, 38px); line-height: 1.18; }

p { margin: 0 0 1em; text-wrap: pretty; }
em, .italic { font-style: italic; }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 30%, transparent);
  padding-bottom: 1px;
  transition: color 160ms ease, border-color 160ms ease;
}
a:hover { color: var(--accent-2); border-color: var(--accent-2); }
a.plain { border-bottom: 0; }

.mono { font-family: var(--f-mono); }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.no-rule::before { display: none; }

/* layout primitives */
.shell { width: min(100% - calc(var(--shell-pad) * 2), var(--shell-max)); margin-inline: auto; }
.shell-wide { width: min(100% - calc(var(--shell-pad) * 2), 1480px); margin-inline: auto; }
.shell-narrow { width: min(100% - calc(var(--shell-pad) * 2), 760px); margin-inline: auto; }

section { position: relative; }
.pad-y { padding-block: clamp(64px, 8vw, 112px); }
.pad-y-sm { padding-block: clamp(40px, 5vw, 64px); }

hr.rule { border: 0; height: 1px; background: var(--rule); margin: 0; }

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in oklab, var(--rule) 50%, transparent);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
  gap: 24px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.005em;
  border: 0;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: url("assets/meghan-headshot.png") center 18% / cover no-repeat var(--bg-2);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 25%, transparent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.nav-links a {
  border: 0;
  color: var(--ink-2);
  position: relative;
  padding-block: 4px;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent-2);
}
@media (max-width: 760px) {
  .nav-links { gap: 16px; font-size: 13px; }
}

/* mobile caret nav — checkbox toggle, no JS */
.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  transition: color 160ms ease, border-color 160ms ease;
}
.nav-toggle:hover { color: var(--ink); border-color: color-mix(in oklab, var(--ink) 25%, transparent); }
.nav-toggle-caret {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 200ms ease;
}
.nav-toggle-input:checked ~ .nav-toggle .nav-toggle-caret {
  transform: translateY(1px) rotate(-135deg);
}

@media (max-width: 700px) {
  .nav-row {
    flex-wrap: wrap;
    row-gap: 0;
    padding-block: 16px;
    column-gap: 16px;
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 24px;
    justify-content: flex-start;
  }
  .brand-mark { width: 36px; height: 36px; }
  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }
  .nav-links {
    flex: 1 1 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    font-size: 16px;
    padding: 0;
    margin-top: 0;
    border-top: 1px solid color-mix(in oklab, var(--rule) 60%, transparent);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 260ms ease, opacity 200ms ease, padding 200ms ease, margin-top 200ms ease;
  }
  .nav-toggle-input:checked ~ .nav-links {
    max-height: 60vh;
    opacity: 1;
    visibility: visible;
    padding: 6px 0 8px;
    margin-top: 14px;
  }
  .nav-links a {
    padding-block: 12px;
    width: 100%;
  }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--accent-2); }
}

/* footer */
footer.foot {
  border-top: 1px solid var(--rule);
  padding-block: 64px;
  color: var(--ink-2);
  font-size: 14px;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: end;
}
.foot-row .display { font-size: clamp(40px, 6vw, 64px); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { border: 0; color: var(--ink-2); }
.foot-links a:hover { color: var(--ink); }

/* hero — index */
.hero {
  position: relative;
  padding-block: clamp(64px, 10vw, 140px) clamp(56px, 8vw, 120px);
  overflow: hidden;
}
.hero-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.hero-portrait {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--ink) 12%, transparent),
    0 0 0 4px var(--bg),
    0 0 0 5px color-mix(in oklab, var(--accent-2) 55%, transparent);
}
.hero-byline-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-byline-meta .name {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.1;
}
.hero-byline-meta .sig {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.hero h1 .accent { color: var(--accent-2); font-style: italic; }
.hero-painting {
  aspect-ratio: 16/9;
  width: min(100%, 460px);
  margin-left: auto;
  margin-top: clamp(64px, 10vw, 140px);
  background: var(--hero-painting) center/cover no-repeat;
  background-position: var(--hero-painting-pos);
  border: 1px solid var(--rule);
  box-shadow:
    0 1px 0 color-mix(in oklab, var(--ink) 6%, transparent),
    0 20px 40px -28px color-mix(in oklab, var(--ink) 25%, transparent);
}
.hero-painting-cap {
  margin-top: 10px;
  margin-left: auto;
  width: min(100%, 460px);
  text-align: right;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-meta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  color: var(--ink-2);
  font-size: 14px;
  align-items: center;
}
.hero-meta .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-3);
  margin-right: 10px;
  transform: translateY(-2px);
}

.lede {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.32;
  letter-spacing: -0.005em;
  color: var(--ink);
}

/* generic two-col */
.cols-2 {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
}
@media (max-width: 820px) {
  .cols-2 { grid-template-columns: 1fr; gap: 32px; }
}

/* cards (resources, work, etc.) */
.card {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  padding: clamp(20px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}
.card:hover { background: var(--bg-3); transform: translateY(-2px); }
.card h3 { font-size: clamp(22px, 2.2vw, 30px); }
.card .meta { color: var(--ink-3); font-size: 13px; font-family: var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.card .arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.05em;
  color: var(--accent-2); margin-top: auto; border: 0;
}
.card .arrow::after { content: "→"; transition: transform 220ms ease; }
.card:hover .arrow::after { transform: translateX(4px); }

/* grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 880px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (min-width: 881px) and (max-width: 1100px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }

/* "now" / "what I do" */
.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(20px, 2.2vw, 32px);
}
.bullets li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding-block: clamp(16px, 2vw, 28px);
  border-top: 1px solid var(--rule);
}
.bullets li:last-child { border-bottom: 1px solid var(--rule); }
.bullets .n {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding-top: 6px;
}
.bullets h3 { margin-bottom: 6px; }
.bullets p { color: var(--ink-2); margin: 0; }
@media (max-width: 640px) {
  .bullets li { grid-template-columns: 1fr; gap: 6px; }
}

/* timeline */
.timeline {
  display: grid;
  gap: 0;
}
.tl-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(20px, 3vw, 56px);
  padding-block: clamp(20px, 2.4vw, 32px);
  border-top: 1px solid var(--rule);
  align-items: start;
}
.tl-row:last-child { border-bottom: 1px solid var(--rule); }
.tl-when {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 8px;
}
.tl-role { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; margin-bottom: 4px; }
.tl-org { color: var(--ink-2); font-size: 14px; margin-bottom: 14px; }
.tl-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-2); }
.tl-points li { padding-left: 18px; position: relative; }
.tl-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 1px;
  background: var(--accent-2);
}
@media (max-width: 720px) {
  .tl-row { grid-template-columns: 1fr; gap: 8px; }
}

/* certs */
.certs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.cert {
  padding: clamp(18px, 2vw, 26px) clamp(20px, 2vw, 28px);
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg);
}
.cert:nth-child(2n) { border-right: 0; }
.cert .when { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; }
.cert .name { font-family: var(--f-display); font-size: clamp(20px, 2vw, 26px); line-height: 1.15; }
.cert .org { font-size: 13px; color: var(--ink-2); }
@media (max-width: 640px) {
  .certs { grid-template-columns: 1fr; }
  .cert { border-right: 0; }
}

/* pull-quote */
.pull {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
  color: var(--ink);
}
.pull .accent { color: var(--accent-2); font-style: italic; }

/* tag chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg);
}

/* palette swatches */
.palette-bar {
  display: flex;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  align-items: center;
}
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--ink) 20%, transparent); }

/* art page */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 32px);
}
.gallery figure { margin: 0; grid-column: span 6; display: flex; flex-direction: column; gap: 12px; }
.gallery figure.wide { grid-column: span 8; }
.gallery figure.narrow { grid-column: span 4; }
.gallery figure.full { grid-column: span 12; }
.gallery img {
  width: 100%;
  height: auto;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  box-shadow: 0 30px 60px -40px color-mix(in oklab, var(--ink) 50%, transparent);
}
.gallery figcaption {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; justify-content: space-between; gap: 12px;
}
.gallery figcaption .title { color: var(--ink-2); text-transform: none; letter-spacing: 0; font-family: var(--f-display); font-size: 18px; }
@media (max-width: 880px) {
  .gallery figure, .gallery figure.wide, .gallery figure.narrow, .gallery figure.full { grid-column: span 12; }
}

/* framed painting figures — oil paintings gallery */
.gallery figure.framed img {
  border: 12px solid #c4a97a;
  box-shadow: inset 0 0 0 2px rgba(70,42,8,0.30), 0 8px 36px rgba(0,0,0,0.22);
}

/* figure-row caption above case-study galleries */
.case-figs-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

/* constrain case-study galleries so screenshots don't dominate */
.case-gallery-block {
  max-width: 1040px;
  margin-inline: auto;
}
.case-gallery-block .gallery { gap: clamp(14px, 1.6vw, 22px); }
/* portrait mobile-screenshot tiles — same aspect so figcaptions align */
.gallery figure.mobile-shot img {
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top center;
}

/* secondary nav — index of case studies under the hero */
.case-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.case-index li { display: flex; }
.case-index a {
  border: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.4vw, 32px) clamp(18px, 1.6vw, 24px);
  border-right: 1px solid var(--rule);
  color: var(--ink-2);
  transition: background 200ms ease, color 200ms ease;
  position: relative;
  min-height: 100%;
}
.case-index li:last-child a { border-right: 0; }
.case-index a::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 2px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms ease;
}
.case-index a:hover { background: var(--bg-2); color: var(--ink); }
.case-index a:hover::before { transform: scaleX(1); }
.case-index .n {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  color: var(--accent-2);
  font-style: italic;
}
.case-index .t {
  font-family: var(--f-display);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}
.case-index .m {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: auto;
  padding-top: 12px;
}
@media (max-width: 880px) {
  .case-index { grid-template-columns: 1fr; }
  .case-index a {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    flex-direction: row;
    align-items: baseline;
    gap: 20px;
    padding: 20px 4px;
  }
  .case-index li:last-child a { border-bottom: 0; }
  .case-index .t { flex: 1; }
  .case-index .m { margin-top: 0; padding-top: 0; }
}

/* anchored case sections — leave room under sticky nav */
.case-section { scroll-margin-top: 80px; }

/* mural feature — large stairwell photo with body alongside */
.mural-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.mural-figure { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.mural-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  box-shadow:
    0 1px 0 color-mix(in oklab, var(--ink) 8%, transparent),
    0 40px 80px -40px color-mix(in oklab, var(--ink) 55%, transparent);
}
.mural-figure figcaption,
.mural-detail figcaption {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; justify-content: space-between; gap: 12px;
}
.mural-figure figcaption .title,
.mural-detail figcaption .title {
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--f-display);
  font-size: 18px;
}

.mural-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 8px;
}

.mural-detail { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.mural-detail img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  box-shadow: 0 40px 80px -50px color-mix(in oklab, var(--ink) 55%, transparent);
}

@media (max-width: 880px) {
  .mural-feature { grid-template-columns: 1fr; }
  .mural-figure img { aspect-ratio: 3 / 4; }
}

/* meta-list — key/value rows under mural body */
.meta-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.meta-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.meta-list .k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.meta-list .v {
  color: var(--ink);
  font-size: 15px;
}
.pipeline {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.pipeline li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.pipeline .pipeline-step {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pipeline .pipeline-tool {
  font-family: var(--f-display);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.2;
  color: var(--ink);
}
.pipeline .pipeline-what {
  font-size: 15px;
  color: var(--ink-2);
}
@media (max-width: 640px) {
  .pipeline li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }
}

/* case-index 2-up variant (Claude page) */
.case-index.two-up { grid-template-columns: repeat(2, 1fr); }
.case-index.two-up .n { font-style: normal; }
@media (max-width: 880px) {
  .case-index.two-up { grid-template-columns: 1fr; }
}

/* part-divider — splits a long page into named halves */.part-divider {
  padding-block: clamp(56px, 7vw, 96px);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.part-divider-row {
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 3vw, 48px);
  flex-wrap: wrap;
}
.part-divider .part-num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.part-divider .part-title {
  font-family: var(--f-display);
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  flex: 1;
  text-wrap: balance;
}

/* claude page banner */
.banner-frame {
  position: relative;
  padding: clamp(28px, 4vw, 64px) clamp(24px, 4vw, 56px);
  border: 1px solid var(--rule);
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--bg-2) 92%, transparent), var(--bg-2));
  overflow: hidden;
}
.banner-frame .deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 110% -10%, color-mix(in oklab, var(--accent-2) 50%, transparent), transparent 50%),
    radial-gradient(ellipse at -10% 120%, color-mix(in oklab, var(--accent-3) 40%, transparent), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}
.banner-frame > * { position: relative; z-index: 1; }

/* code-ish */
.terminal {
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.65;
  background: color-mix(in oklab, var(--ink) 92%, var(--bg));
  color: color-mix(in oklab, var(--bg) 92%, transparent);
  border: 1px solid color-mix(in oklab, var(--ink) 80%, transparent);
  padding: clamp(18px, 2vw, 28px);
  overflow-x: auto;
}
.terminal .pmt { color: var(--accent); }
.terminal .com { color: color-mix(in oklab, var(--bg) 50%, transparent); }
.terminal .out { color: color-mix(in oklab, var(--bg) 80%, transparent); }

/* mini stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: clamp(20px, 2.4vw, 32px) clamp(18px, 2vw, 28px);
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 8px;
}
.stat:last-child { border-right: 0; }
.stat .n { font-family: var(--f-display); font-size: clamp(34px, 4vw, 56px); line-height: 1; }
.stat .l { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}

/* small painterly inline ornaments */
.brush {
  display: inline-block;
  width: 1.2em;
  height: 0.18em;
  background: var(--accent-2);
  border-radius: 2px;
  vertical-align: middle;
  margin: 0 0.3em 0.15em;
  transform: skewX(-12deg);
  opacity: 0.85;
}

/* hero painting variant */
.hero-strip {
  margin-top: clamp(48px, 6vw, 88px);
  height: clamp(220px, 32vw, 460px);
  background: var(--hero-painting) center/cover no-repeat;
  background-position: var(--hero-painting-pos);
  border: 1px solid var(--rule);
}

/* feature row */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 88px);
  align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
@media (max-width: 880px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
}

/* tweaks panel host */
#tweaks-root { font-family: var(--f-body); }


/* connect page — two big channel cards */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
@media (max-width: 740px) {
  .connect-grid { grid-template-columns: 1fr; }
}
.connect-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(28px, 3.4vw, 48px);
  background: var(--bg-2);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: background 220ms ease, transform 220ms ease, border-color 220ms ease;
}
.connect-card:hover {
  background: var(--bg-3);
  border-color: color-mix(in oklab, var(--accent-2) 50%, var(--rule));
  transform: translateY(-2px);
}
.connect-card-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.connect-card-value {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.005em;
  word-break: break-word;
}
.connect-card-note {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}
.connect-card-cta {
  margin-top: 20px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* invitation list */
.invitation-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.invitation-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding-block: clamp(20px, 2.4vw, 32px);
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.invitation-list li:last-child { border-bottom: 1px solid var(--rule); }
.invitation-list .n {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.invitation-list h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  margin-bottom: 8px;
}
@media (max-width: 640px) {
  .invitation-list li { grid-template-columns: 1fr; gap: 6px; }
}

/* contact CTA button (used on About page closing) */
.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--accent-2);
  color: var(--bg);
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1;
  letter-spacing: -0.005em;
  border: 0;
  text-decoration: none;
  transition: transform 200ms ease, background 200ms ease;
}
.contact-cta:hover {
  transform: translateY(-2px);
  background: color-mix(in oklab, var(--accent-2) 85%, var(--ink));
  color: var(--bg);
}
