/* ==========================================================================
   Jon Jackson — portfolio styles
   No frameworks, no web fonts, no network requests. Loads instantly.
   Want a different accent colour? Change --accent below. That's the one knob.
   ========================================================================== */

:root {
  --accent: #b4552b;          /* the single accent colour — change this */

  --bg:        #fbfaf9;
  --bg-alt:    #f3f1ee;
  --surface:   #ffffff;
  --ink:       #171614;
  --ink-soft:  #57534e;
  --ink-faint: #726d68;      /* 4.5:1 on every surface (was #8b857e, 3.5:1) */
  --line:      #e3dfda;      /* decorative separators */
  --line-ctl:  #8e8b88;      /* borders that define a control — 3:1 minimum */
  --shadow:    0 1px 2px rgba(23,22,20,.05), 0 8px 24px rgba(23,22,20,.06);
  --shadow-lg: 0 2px 6px rgba(23,22,20,.08), 0 24px 60px rgba(23,22,20,.14);

  --radius: 10px;
  --wrap: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-serif, Georgia, "Times New Roman", serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #121110;
    --bg-alt:    #191817;
    --surface:   #1d1c1a;
    --ink:       #f5f3f0;
    --ink-soft:  #b3aca4;
    --ink-faint: #8a827a;
    --line:      #2e2c29;
    --line-ctl:  #696866;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 24px 60px rgba(0,0,0,.55);
    --accent:    #e08356;
  }
}

/* --------------------------------------------------------------- Baseline */

*, *::before, *::after { box-sizing: border-box; }

/* Announced by screen readers, invisible on screen. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* While an overlay is open. The offset is set on the body in JS and restored
   on close, so the page behind cannot scroll — including on iOS, where
   overflow:hidden alone does not hold it. */
body.is-locked {
  position: fixed;
  left: 0; right: 0; width: 100%;
  overflow: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ----------------------------------------------------------------- Header */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);                                  /* fallback: opaque */
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }

.wordmark {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none;
}

.nav { display: flex; gap: clamp(18px, 3vw, 34px); }
.nav a {
  text-decoration: none; font-size: 15px; color: var(--ink-soft);
  position: relative; padding: 4px 0; transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; }

/* ------------------------------------------------------------------- Hero */

.hero { padding: clamp(72px, 13vw, 148px) clamp(20px, 5vw, 48px) clamp(56px, 9vw, 104px); }

.eyebrow {
  margin: 0 0 22px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 500;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 9vw, 92px);
  font-weight: 500; letter-spacing: -0.035em; margin-bottom: 26px;
}

.hero-intro {
  margin: 0 0 36px; font-size: clamp(18px, 2.1vw, 22px);
  color: var(--ink-soft); max-width: 36ch; line-height: 1.5;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); border-color: var(--ink-faint); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }

.ghost-btn {
  background: transparent; border: 1px solid var(--line-ctl); color: var(--ink-soft);
  border-radius: 100px; padding: 7px 15px; font: inherit; font-size: 14px; cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.ghost-btn:hover { color: var(--ink); border-color: var(--ink-faint); }

/* --------------------------------------------------------------- Sections */

.section { padding: clamp(56px, 9vw, 104px) 0; scroll-margin-top: 66px; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 500; letter-spacing: -0.025em;
}

.section-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 34px;
}

/* ---------------------------------------------------------------- Filters */

.filters { display: flex; flex-wrap: wrap; gap: 7px; }

.filter {
  border: 1px solid var(--line-ctl); background: transparent; color: var(--ink-soft);
  padding: 7px 15px; border-radius: 100px; font: inherit; font-size: 14px; cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--ink-faint); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ------------------------------------------------------------------- Grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  grid-auto-flow: dense;          /* wide cards never leave a hole in the grid */
  gap: clamp(14px, 2vw, 26px);
}

.card {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch;
  border: 0; padding: 0; margin: 0; text-align: left;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  font: inherit; color: inherit;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease), box-shadow .3s var(--ease);
}
.card.is-in { opacity: 1; transform: none; }
.card:hover { box-shadow: var(--shadow-lg); }
.card.is-featured { grid-column: span 2; }

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;              /* fixed box = zero layout shift */
  overflow: hidden; flex: 0 0 auto;
  background: var(--bg-alt);
}
.card.is-featured .card-media { aspect-ratio: 16 / 9; }

.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.card:hover .card-media img { transform: scale(1.035); }
.card-media .ph { width: 100%; height: 100%; }

.play {
  position: absolute; inset: 0; margin: auto;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: #171614;
  display: grid; place-items: center; font-size: 19px; padding-left: 3px;
  box-shadow: 0 4px 20px rgba(0,0,0,.28);
  transition: transform .3s var(--ease);
}
.card:hover .play { transform: scale(1.08); }

.card-body { padding: 16px 18px 20px; flex: 1 1 auto; display: flex; flex-direction: column; }
.card-title { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.card-blurb {
  margin: 5px 0 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: block; margin-top: 10px; font-size: 12.5px; color: var(--ink-faint); }
.card-more {
  display: block; margin-top: auto; padding-top: 12px;
  font-size: 13px; font-weight: 500; color: var(--accent);
  opacity: 0; transform: translateX(-4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.card:hover .card-more, .card:focus-visible .card-more { opacity: 1; transform: none; }

.empty { text-align: center; color: var(--ink-faint); padding: 48px 0; }

/* ------------------------------------------------------------------ About */

.about-text {
  color: var(--ink-soft);
  font-size: clamp(17.5px, 1.9vw, 20px);
  line-height: 1.7;
  margin: 24px 0 0;
  max-width: 62ch;
}

/* ------------------------------------------------------------ Contact form */

.contact-inner > *:not(.form) { max-width: 720px; }
.contact-lead { color: var(--ink-soft); margin: 16px 0 0; font-size: 17.5px; }

.form {
  margin: 34px 0 0; max-width: 720px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }

.field label {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600;
}
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-ctl); border-radius: 8px;
  padding: 11px 13px; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent); outline-offset: 1px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* Spam trap — kept out of sight and out of the tab order. */
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.form-note { margin: 0; font-size: 14px; color: var(--ink-faint); max-width: 46ch; }
.form-note.is-error { color: #b3261e; }
.form-note.is-setup {
  color: var(--ink-soft); background: var(--bg-alt);
  border: 1px dashed var(--line); border-radius: 8px; padding: 9px 13px;
}
@media (prefers-color-scheme: dark) { .form-note.is-error { color: #f2907f; } }

.form-done {
  grid-column: 1 / -1;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 26px 28px;
}
.form-done h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; }
.form-done p { margin: 8px 0 0; color: var(--ink-soft); }

.contact-meta { margin: 30px 0 0; font-size: 14.5px; color: var(--ink-faint); }
.links { display: flex; gap: 18px; flex-wrap: wrap; }
.links a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.links a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ----------------------------------------------------------------- Footer */

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 14px; color: var(--ink-faint);
}
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

/* --------------------------------------------------------- Project detail */

.detail { position: fixed; inset: 0; z-index: 90; background: var(--bg); }
.detail[hidden] { display: none; }
.detail-scroll {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  animation: fade .25s var(--ease);
}
@keyframes fade { from { opacity: 0 } }

.detail-bar {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg);                                  /* fallback: opaque */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.detail-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; height: 60px;
}
.detail-steps { display: flex; gap: 8px; }

.detail-stage { background: #0e0d0c; }
.stage-inner { position: relative; max-width: 1400px; margin: 0 auto; }
.stage-inner .zoomable { cursor: zoom-in; }

.expand {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(255,255,255,.9); color: #171614;
  border: 0; border-radius: 100px; padding: 7px 14px;
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.detail-stage:hover .expand, .expand:focus, .expand:focus-visible { opacity: 1; transform: none; }
@media (hover: none) {
  .expand { opacity: 1; transform: none; }
}
.stage-inner img, .stage-inner video {
  width: 100%; max-height: 74vh; max-height: min(74vh, 74svh);
  object-fit: contain; margin: 0 auto;
}
.stage-inner iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.stage-inner .ph { aspect-ratio: 16 / 9; width: 100%; }
.stage-caption {
  margin: 0; padding: 11px 16px;
  font-size: 13.5px; color: rgba(255,255,255,.62); text-align: center;
}

/* the grouped files */
.detail-thumbs {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 16px 0 4px; scrollbar-width: thin;
}
/* These strips clip vertically, so keep the focus ring inside the control. */
.detail-thumbs .thumb:focus-visible, .filters .filter:focus-visible { outline-offset: -2px; }
.detail-thumbs:empty { display: none; }

.thumb {
  position: relative; flex: 0 0 auto;
  width: 132px; padding: 0; border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden; cursor: pointer;
  background: var(--bg-alt); font: inherit; text-align: left;
  transition: border-color .2s var(--ease);
}
.thumb.is-active { border-color: var(--accent); }
/* Only the picture is dimmed — the caption underneath stays legible. */
.thumb img, .thumb .ph {
  width: 100%; height: 82px; object-fit: cover;
  opacity: .62; transition: opacity .2s var(--ease);
}
.thumb:hover img, .thumb:hover .ph,
.thumb.is-active img, .thumb.is-active .ph { opacity: 1; }
.thumb-tag {
  position: absolute; top: 6px; right: 7px;
  background: rgba(23,22,20,.66); color: #fff;
  font-size: 10px; padding: 2px 6px; border-radius: 100px;
}
.thumb-label {
  display: block; padding: 7px 9px 9px;
  font-size: 11.5px; line-height: 1.35; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.detail-body { padding: clamp(28px, 5vw, 52px) 0 clamp(60px, 10vw, 110px); }

.detail-head { border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.d-cat {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.d-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 5vw, 48px); letter-spacing: -0.03em; margin: 10px 0 0;
  text-wrap: balance;
}
.d-blurb { margin: 12px 0 0; font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 50ch; }
.d-meta {
  margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px;
  font-size: 14px; color: var(--ink-faint);
}
.d-actions { margin-top: 24px; }

/* the write-up */
.post { max-width: 65ch; padding-top: 8px; }
.post[hidden] { display: none; }
.post h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(21px, 2.6vw, 27px); letter-spacing: -0.02em;
  margin: 44px 0 0; text-wrap: balance;
}
.post h4 {
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); margin: 34px 0 0;
}
.post p { margin: 16px 0 0; color: var(--ink-soft); }
.post ul { margin: 16px 0 0; padding-left: 20px; color: var(--ink-soft); }
.post li { margin: 7px 0 0; }
.post strong { color: var(--ink); font-weight: 600; }
.post a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.post blockquote {
  margin: 30px 0 0; padding: 4px 0 4px 22px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45; color: var(--ink);
}

.post figure { margin: 34px 0 0; }
.post figure img { width: 100%; border-radius: var(--radius); background: var(--bg-alt); }
.post figcaption { margin-top: 9px; font-size: 13.5px; color: var(--ink-faint); }

/* ---------------------------------------------------- Fullscreen viewer */

.fs {
  position: fixed; inset: 0; z-index: 120;
  background: #0b0a09;
  display: grid; grid-template-rows: 1fr auto;
  animation: fade .2s var(--ease);
}
.fs[hidden] { display: none; }

.fs-stage {
  display: grid; place-items: center;
  min-height: 0; padding: clamp(12px, 3vw, 40px);
}
.fs-stage img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; cursor: pointer;      /* click advances to the next */
  animation: fsIn .28s var(--ease);
}
.fs-stage video { max-width: 100%; max-height: 100%; }
.fs-stage iframe { width: min(100%, 1600px); aspect-ratio: 16 / 9; border: 0; }
.fs-stage .fs-ph { width: min(100%, 1200px); aspect-ratio: 16 / 9; cursor: pointer; border-radius: 4px; }

@keyframes fsIn { from { opacity: 0; transform: scale(.985) } }

.fs-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 16px clamp(16px, 4vw, 34px) clamp(20px, 4vw, 30px);
}
.fs-caption {
  margin: 0; color: rgba(255,255,255,.86);
  font-size: clamp(14px, 1.6vw, 16px); line-height: 1.5; max-width: 70ch;
}
.fs-caption[hidden] { display: none; }
.fs-count {
  color: rgba(255,255,255,.5); font-size: 13px;
  font-variant-numeric: tabular-nums; letter-spacing: .06em;
  margin-left: auto; flex: 0 0 auto;
}

.fs-btn {
  position: absolute; z-index: 3;
  border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff;
  backdrop-filter: blur(8px);
  display: grid; place-items: center; line-height: 1;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.fs-btn:hover { background: rgba(255,255,255,.24); }
.fs-btn[hidden] { display: none; }

.fs-close {
  top: clamp(12px, 2.5vw, 22px); right: clamp(12px, 2.5vw, 22px);
  width: 42px; height: 42px; border-radius: 50%; font-size: 24px;
}
.fs-prev, .fs-next {
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 76px; border-radius: 8px; font-size: 30px;
}
.fs-prev { left: clamp(10px, 2vw, 20px); }
.fs-next { right: clamp(10px, 2vw, 20px); }
.fs-prev:hover, .fs-next:hover { transform: translateY(-50%) scale(1.04); }

@media (max-width: 620px) {
  .fs-prev, .fs-next { width: 40px; height: 62px; font-size: 24px; }
  .fs-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .fs-count { margin-left: 0; }
}

/* ----------------------------------------------------------- Placeholders */
/* Drawn in CSS when a project has no files yet — no images, no requests.    */

.ph {
  position: relative;
  background:
    radial-gradient(120% 120% at 18% 12%, var(--p1) 0%, transparent 58%),
    radial-gradient(120% 120% at 84% 88%, var(--p2) 0%, transparent 58%),
    linear-gradient(148deg, var(--p3), var(--p4));
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.32), transparent 46%);
}
.ph::after {
  content: attr(data-label);
  position: absolute; left: 16px; right: 16px; bottom: 13px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
  text-shadow: 0 1px 10px rgba(0,0,0,.4);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ------------------------------------------------------------ Responsive  */

@media (max-width: 820px) {
  .card.is-featured { grid-column: span 1; }
  .card.is-featured .card-media { aspect-ratio: 4 / 3; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }

  .nav {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 6px 0; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px clamp(20px, 5vw, 48px); font-size: 16px; }
  .nav a::after { display: none; }

  .nav-toggle {
    display: grid; gap: 5px; place-content: center;
    width: 40px; height: 40px; padding: 0;
    background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 17px; height: 1.5px; background: var(--ink); border-radius: 2px; }

  .section-head { flex-direction: column; align-items: flex-start; }
  .filters { overflow-x: auto; width: 100%; padding-bottom: 4px; flex-wrap: nowrap; }
  .filter { white-space: nowrap; }

  .form { grid-template-columns: 1fr; }
  .stage-inner img, .stage-inner video { max-height: 52vh; }
  .thumb { width: 116px; }
  .card-more { opacity: 1; transform: none; }
}

/* ------------------------------------------------------ Motion preference */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .card { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ Print */

@media print {
  .site-header, .filters, .detail, .fs, .hero-actions, .site-footer, .form { display: none; }
  .card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}
