/* ==========================================================================
   Michael Straub — shared stylesheet
   One file for every page. Mobile-first; layouts widen at 760px and 1024px.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Color */
  --bg: #FFFFFF;
  --ink: #16181D;
  --text-2: #44474F;
  --muted: #5A5D66;
  --line: #E6E4DF;
  --field-line: #C9C7C1;
  --panel: #F4F2EE;
  --slot: #E3E0D9;
  --accent: #1F4FD1;
  --accent-hover: #163A9C;
  --on-accent: #FFFFFF;
  --dark: #16181D;
  --dark-line: #2E3138;
  --on-dark: #FFFFFF;
  --on-dark-muted: #C4C6CC;
  --on-dark-accent: #9DB4F5;

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-body: 1.0625rem;                          /* 17px */
  --fs-lead: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --fs-h1: clamp(3rem, 1.6rem + 6vw, 5.5rem);
  --fs-h2: clamp(2.125rem, 1.5rem + 2.4vw, 3.25rem);
  --fs-h3: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  --fs-quote: clamp(1.875rem, 1.2rem + 2.8vw, 3.25rem);
  --fs-small: 0.9375rem;                         /* 15px */

  /* Space & shape */
  --gutter: clamp(16px, 4vw, 24px);
  --section: clamp(56px, 8vw, 96px);
  --max: 1200px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 24px 48px rgba(22, 24, 29, 0.18);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; }
h1 { font-size: var(--fs-h1); line-height: 0.98; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--on-dark); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--flush-top { padding-top: 0; }
.band { background: var(--panel); border-block: 1px solid var(--line); }
.band--dark { background: var(--dark); color: var(--on-dark); border: 0; }

/* Two columns that stack on small screens */
.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 64px); }
.split > * { min-width: 0; }
.split__narrow { flex: 1 1 320px; }
.split__wide { flex: 999 1 480px; }
.split--center { align-items: center; }

.eyebrow {
  margin: 0 0 12px; font-size: var(--fs-small); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); max-width: 36em; }
.meta { font-size: var(--fs-small); color: var(--muted); }

.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 8px 16px; border-top: 1px solid var(--ink); padding-top: 32px; margin-bottom: 40px;
}
.section-head p { margin: 0; color: var(--muted); }

/* ---------- 4. Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px; border-radius: var(--radius);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--on-dark); }
.btn--small { min-height: 44px; padding: 10px 18px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 5. Header & navigation ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 10; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 48px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: '';
}
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }

.nav { display: none; }
.nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(22,24,29,.08);
}
.nav__list { list-style: none; margin: 0; padding: 8px var(--gutter) 20px; display: flex; flex-direction: column; }
.nav__list a:not(.btn) {
  display: block; padding: 14px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.nav__list a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav__list .nav__cta { padding-top: 16px; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav, .nav.is-open { display: block; position: static; box-shadow: none; border: 0; }
  .nav__list { flex-direction: row; align-items: center; gap: 28px; padding: 0; }
  .nav__list a:not(.btn) { padding: 6px 0; border: 0; font-size: 1rem; }
  .nav__list a:not(.btn):hover { color: var(--accent); }
  .nav__list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
  .nav__list .nav__cta { padding-top: 0; }
}

/* ---------- 6. Homepage ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 64px); padding-block: clamp(56px, 8vw, 88px) var(--section); }
.hero__text { flex: 999 1 520px; min-width: 0; }
.hero__text h1 { margin-bottom: 24px; }
.hero__text h1 em { font-weight: 500; }
.hero__text .lead { margin-bottom: 32px; }
.hero__text .btn-row { margin-bottom: 28px; }
.hero__cover { flex: 1 1 280px; display: flex; justify-content: center; }
.book-cover { width: min(340px, 100%); border-radius: 2px 6px 6px 2px; box-shadow: var(--shadow); background: var(--slot); }

.quote { max-width: 960px; margin-inline: auto; text-align: center; }
.quote blockquote { margin: 0 0 20px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: var(--fs-quote); line-height: 1.15; }
.quote .eyebrow { margin: 0; }

.theme-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); column-gap: 40px;
}
.theme-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }

.band--dark h2 { margin-bottom: 20px; }
.band--dark .lead, .band--dark .on-dark-muted { color: var(--on-dark-muted); }
.innovators { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); line-height: 1.35; margin-top: 24px; }
.innovators span { color: var(--on-dark-accent); }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { padding: 12px 0; border-bottom: 1px solid var(--dark-line); }
.check-list li:last-child { border-bottom: 0; }

.portrait { flex: 1 1 260px; max-width: 360px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--slot); }
.about h2 { margin-bottom: 20px; }
.about .btn-row { margin-top: 24px; }

/* ---------- 7. Forms ---------- */
.form-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 16px;
}
.band--dark .form-card { color: var(--ink); border: 0; }
.field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field-row > .field { flex: 1 1 200px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-small); font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink);
  padding: 12px; min-height: 48px; border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--bg); width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-card .btn { align-self: flex-start; }
.form-note { font-size: var(--fs-small); color: var(--muted); margin: 0; }
.form-status { font-size: var(--fs-small); margin: 0; padding: 12px 14px; border-radius: var(--radius); background: #E8EEFC; color: var(--ink); }

/* ---------- 8. Fine Art: From Study to Canvas ---------- */
.page-intro { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 48px; padding-block: clamp(56px, 8vw, 88px) clamp(40px, 6vw, 72px); }
.page-intro h1 { flex: 999 1 520px; }
.page-intro h1 em { font-weight: 500; }
.page-intro .lead { flex: 1 1 320px; margin: 0; }

.painting { border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 72px); }
.painting__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 32px; }
.painting__head h2 span { color: var(--accent); }
.painting__head p { margin: 0; }
.painting__body { display: flex; flex-wrap: wrap; gap: 32px; }
.painting__frame {
  flex: 999 1 520px; min-width: 0; background: var(--panel); border: 1px solid var(--line);
  padding: clamp(20px, 4vw, 40px); display: flex; justify-content: center; align-items: center;
}
.painting__frame a { display: block; }
.painting__img { width: auto; max-width: 100%; max-height: 640px; box-shadow: var(--shadow); background: var(--slot); }
.painting__side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.painting__side .eyebrow { margin: 0; }

.studies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.studies img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--line); background: var(--slot); }

/* ---------- 9. Painting detail ---------- */
.crumbs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: var(--fs-small); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs p { margin: 0; }

.detail { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 56px); padding-block: 32px var(--section); }
.viewer { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.viewer__stage {
  background: var(--panel); padding: clamp(16px, 4vw, 40px); display: flex; justify-content: center; align-items: center;
  min-height: min(70vw, 560px);
}
.viewer__stage img { max-height: 640px; width: auto; box-shadow: var(--shadow); background: var(--slot); }
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.thumb {
  display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 4px;
  background: var(--slot); cursor: pointer; overflow: hidden;
}
.thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.thumb[aria-pressed="true"] { border-color: var(--accent); }
.thumb:hover { border-color: var(--field-line); }
.thumb[aria-pressed="true"]:hover { border-color: var(--accent); }

.detail__info { flex: 1 1 320px; min-width: 0; }
.detail__info h1 { font-size: clamp(2.75rem, 1.8rem + 3.2vw, 4rem); margin-bottom: 24px; }
.specs {
  margin: 0 0 28px; padding-block: 20px; border-block: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 10px 24px;
}
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.detail__info .stack { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }

.scale { display: flex; align-items: flex-end; justify-content: center; gap: 28px; height: 280px; border-bottom: 2px solid var(--line); flex: 1 1 320px; }
.scale__canvas {
  width: var(--w); height: var(--h); margin-bottom: 40px; background: var(--slot);
  border: 1px solid var(--field-line); display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; color: var(--muted);
}
.scale__person { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.scale__head { width: 34px; height: 34px; border-radius: 50%; background: var(--muted); }
.scale__body { width: 58px; height: 202px; border-radius: 28px 28px 6px 6px; background: var(--muted); }

.study-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.study-grid figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.study-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); background: var(--slot); }
.study-grid figcaption { font-size: var(--fs-small); color: var(--muted); }

.book-link { font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; margin-top: 24px; }

.pager { border-top: 1px solid var(--line); }
.pager__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-block: 40px; }
.pager a { text-decoration: none; color: var(--muted); }
.pager a span { display: block; font-family: var(--serif); font-size: 1.625rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.pager a:hover span { color: var(--accent); }
.pager__next { text-align: right; margin-left: auto; }

/* ---------- 9b. Speaking ---------- */
.hero-photo { width: min(480px, 100%); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); background: var(--slot); }
.hero__text h1 em { font-weight: 500; }

.signature {
  background: var(--dark); color: var(--on-dark); border-radius: var(--radius-lg);
  padding: clamp(28px, 6vw, 64px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.signature .eyebrow { color: var(--on-dark-accent); margin: 0; }
.signature h2 { max-width: 16em; }
.signature .lead { color: var(--on-dark-muted); margin: 0 0 8px; }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px 24px; }
.topic { border-top: 2px solid var(--ink); padding-top: 20px; }
.topic h3 { margin-bottom: 8px; }
.topic p { color: var(--text-2); }

.format-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.format-list li { background: var(--panel); border-radius: 14px; padding: 24px; }
.format-list h3 { font-size: 1.5rem; margin-bottom: 8px; }
.format-list p { color: var(--text-2); }

.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.quote-card { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.quote-card blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; }
.quote-card figcaption { font-size: var(--fs-small); color: var(--muted); }

.form-title { font-size: 2rem; margin-bottom: 4px; }

/* ---------- 9c. Digital ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 24px; }
.feature-stack { display: flex; flex-direction: column; gap: 24px; }
.feature--reverse { flex-direction: row-reverse; }
.feature__title { font-size: var(--fs-h2); }
.card {
  display: flex; flex-direction: column; background: var(--bg); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { color: var(--ink); border-color: var(--field-line); box-shadow: 0 16px 32px rgba(22,24,29,.10); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card__media { aspect-ratio: 4 / 3; background: var(--panel); overflow: hidden; }
.card__media img, .card__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__media--contain img { object-fit: contain; padding: 16px; }
.card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.card__title { font-size: 1.625rem; line-height: 1.15; }
.card__text { color: var(--text-2); margin: 0; }
.card:hover .card__title { color: var(--accent); }

.tags { list-style: none; margin: auto 0 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.8125rem; line-height: 1.4; padding: 4px 10px; border-radius: 999px; background: var(--panel); color: var(--text-2); }

.feature {
  display: flex; flex-wrap: wrap; background: var(--panel); border-radius: var(--radius-lg); overflow: hidden;
  color: var(--ink); text-decoration: none; border: 1px solid var(--line);
}
.feature:hover { color: var(--ink); border-color: var(--field-line); }
.feature:hover .feature__title { color: var(--accent); }
.feature__media { flex: 3 1 480px; min-width: 0; background: var(--slot); min-height: 280px; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { flex: 2 1 340px; min-width: 0; padding: clamp(24px, 5vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.feature__body .eyebrow, .feature__body p { margin: 0; }
.feature__body .tags { margin: 0; padding: 0; }
.feature__body .tag { background: var(--bg); }

/* ---------- 9d. Contact ---------- */
.route-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.route {
  display: flex; flex-direction: column; gap: 8px; padding: 28px 24px;
  border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 4px 4px 14px 14px;
  color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.route:hover { color: var(--ink); border-top-color: var(--accent); box-shadow: 0 16px 32px rgba(22,24,29,.08); }
.route h3 { font-size: 1.75rem; }
.route p { color: var(--text-2); margin: 0; flex: 1; }
.route .link-arrow { color: var(--accent); margin-top: 8px; }

.choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.choice legend { font-size: var(--fs-small); font-weight: 600; margin-bottom: 8px; padding: 0; width: 100%; }
.choice label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.optional { font-weight: 400; color: var(--muted); }

/* ---------- 10. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 32px; font-size: var(--fs-small); color: var(--muted); }
.site-footer p { margin: 0; }

/* ---------- 11. Small-screen refinements ---------- */
@media (max-width: 559px) {
  .btn-row .btn { flex: 1 1 100%; }
  .form-card .btn { align-self: stretch; }
  .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .scale { height: 240px; gap: 20px; }
  .scale__canvas { width: calc(var(--w) * 0.8); height: calc(var(--h) * 0.8); margin-bottom: 32px; }
  .scale__body { height: 162px; }
  .pager__next { text-align: left; margin-left: 0; }
}

/* ---------- 12. Print ---------- */
@media print {
  .site-header, .nav-toggle, .form-card, .pager { display: none; }
  body { font-size: 11pt; }
}

/* ---------- 13. Digital project pages ---------- */
.project-head { display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 6vw, 72px); padding-block: 32px clamp(40px, 6vw, 56px); }
.project-head__text { flex: 999 1 520px; min-width: 0; }
.project-head__text h1, .project__info h1 { font-size: clamp(2.75rem, 1.8rem + 3.2vw, 4.25rem); margin-bottom: 12px; }
.project-sub { font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.project-head__meta { flex: 1 1 300px; min-width: 0; }
.project-head__meta .specs { margin-bottom: 20px; }
.project-head__meta .tags { margin: 0; padding: 0; }

.media-stage {
  margin: 0; background: var(--panel); border-radius: var(--radius-lg); padding: clamp(16px, 4vw, 40px);
  display: flex; justify-content: center; align-items: center;
}
.media-stage video, .media-stage img { max-width: 100%; max-height: 720px; width: auto; height: auto; border-radius: 12px; box-shadow: var(--shadow); background: var(--slot); }
.media-stage video { min-width: min(100%, 280px); }
.media-stage--image img { box-shadow: none; border-radius: 8px; background: transparent; }
.media-stage--hero { padding: 0; overflow: hidden; }
.media-stage--hero img { width: 100%; max-height: none; border-radius: 0; }
.media-note { font-size: var(--fs-small); color: var(--muted); margin: 10px 0 0; }

.case-section { display: flex; flex-wrap: wrap; gap: 16px clamp(32px, 6vw, 64px); padding-block: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.case-section > h2 { flex: 1 1 260px; }
.case-section__body { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.case-section__body p { margin: 0; }
.line-list { list-style: none; margin: 0; padding: 0; }
.line-list li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); position: relative; }
.line-list li::before { content: ''; position: absolute; left: 4px; top: 22px; width: 10px; height: 2px; background: var(--accent); }

.project { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(32px, 5vw, 56px); padding-block: 32px var(--section); }
.project__media { flex: 999 1 520px; min-width: 0; }
.project__info { flex: 1 1 320px; min-width: 0; }
.project__info .specs { margin-top: 28px; }

.screen-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 260px)); justify-content: center; gap: 20px; }
.screen-gallery img { width: 100%; height: auto; border-radius: 14px; background: var(--panel); }

/* ---------- 14. Previous / next arrows (painting & project pages) ---------- */
.crumbs { align-items: center; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper p { margin: 0; min-width: 4.5em; text-align: center; font-variant-numeric: tabular-nums; }
.stepper__btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--bg);
  transition: border-color .15s, color .15s, background-color .15s;
}
.crumbs .stepper__btn { color: var(--ink); }
.stepper__btn:hover, .crumbs .stepper__btn:hover { border-color: var(--accent); color: var(--accent); }
