/* ---------- Tokens ---------- */
:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #6b675f;
  --line: #e2ddd3;
  --accent: #ba4b2b;
  --accent-ink: #ffffff;
  --deal: #2e7d4a;
  --radius: 14px;
  --maxw: 1200px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 10px 30px rgba(28, 27, 25, 0.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --surface: #1e1d1a;
    --text: #f1ede6;
    --muted: #a39e94;
    --line: #2f2d29;
    --accent: #e5734f;
    --accent-ink: #151412;
    --deal: #6fcf8f;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--muted); margin-bottom: .75em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 1px solid var(--text);
  background: var(--text); color: var(--bg); font: 500 .95rem var(--font-body);
  text-decoration: none; cursor: pointer; transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--text); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--block { width: 100%; }
.btn--small { padding: .5em 1.1em; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-family: var(--font-display); font-size: 1.35rem; text-decoration: none; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.cart-btn {
  position: relative; background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: .45em 1em; font: 500 .9rem var(--font-body); color: var(--text); cursor: pointer;
}
.cart-btn [data-cart-count] {
  display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; margin-left: .35em;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; padding: 0 .3em;
}
.menu-btn { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--text); }
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 10vw, 120px) 0 clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero__art img { width: 100%; height: auto; }
@media (max-width: 820px) { .hero__grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.link-arrow { text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.page-head { padding-top: clamp(40px, 7vw, 80px); padding-bottom: 24px; }
.page-head p { color: var(--muted); max-width: 40em; font-size: 1.1rem; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px;
  padding: .45em 1.1em; font: 500 .9rem var(--font-body); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Portfolio grid ---------- */
/* Equal tiles; each piece is shown whole (contain) on a mat, so mixed proportions line up
   and the corner signatures are never cropped. */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 24px; }
.work-card {
  display: block; width: 100%; padding: 0; border: 0;
  background: none; text-align: left; cursor: zoom-in; color: inherit; font: inherit;
}
.work-card__img { border-radius: var(--radius); overflow: hidden; background: var(--line); aspect-ratio: 4 / 5; }
.work-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .5s ease; }
.work-card:hover .work-card__img img { transform: scale(1.03); }
/* Design work is shown landscape and edge to edge; art stays portrait and framed. */
.work-card--design .work-card__img { aspect-ratio: 4 / 3; }
.work-card--design .work-card__img img { object-fit: cover; padding: 0; }
/* On the Work page, art fills its card edge to edge too (the homepage keeps the framed look). */
[data-work-grid] .work-card--art .work-card__img img { object-fit: cover; padding: 0; }
/* Hairline edge so logos on white backgrounds don't dissolve into white sections. */
.work-card--design .work-card__img, .more-card__img { outline: 1px solid var(--line); outline-offset: -1px; }
.work-card__meta { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px 0; }
.work-card__meta h3 { font-size: 1.1rem; margin: 0; }
.work-card__meta span { color: var(--muted); font-size: .85rem; white-space: nowrap; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1100px, 100vw - 32px); max-height: calc(100vh - 32px); padding: 0; border: 0;
  border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
.lightbox::backdrop { background: rgba(10, 10, 9, .8); }
.lightbox__inner { display: grid; grid-template-columns: 1.5fr 1fr; }
.lightbox__img { background: var(--bg); display: grid; place-items: center; max-height: calc(100vh - 32px); }
.lightbox__img img { max-height: calc(100vh - 32px); width: auto; object-fit: contain; }
.lightbox__body { padding: 32px; display: flex; flex-direction: column; }
.lightbox__nav { display: flex; gap: 8px; margin-top: auto; padding-top: 24px; }
.lightbox__close { position: absolute; top: 12px; right: 12px; z-index: 1; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); cursor: pointer; font-size: 1.1rem; display: inline-grid; place-items: center;
}
@media (max-width: 760px) {
  .lightbox__inner { grid-template-columns: 1fr; }
  .lightbox__img img { max-height: 55vh; }
  .lightbox__body { padding: 20px; }
}

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 24px; }
.product-card { text-decoration: none; display: block; }
.product-card__img { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--line); position: relative; }
/* contain, not cover: show the whole piece (and its corner signatures) inside the square */
.product-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .5s ease; }
.product-card:hover .product-card__img img { transform: scale(1.04); }
.product-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 500; margin: 14px 0 4px; }
.product-card .price { color: var(--muted); }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--surface); color: var(--text);
  font-size: .75rem; font-weight: 600; padding: .3em .8em; border-radius: 999px; letter-spacing: .04em;
}

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); padding: clamp(32px, 6vw, 64px) 0; }
.product__gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: contain; padding: 4%; background: var(--line); }
/* Product photo carousel ("gallery": "carousel" in products.json). */
.pc { position: relative; }
.pc__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: var(--radius); }
.pc__track::-webkit-scrollbar { display: none; }
.pc__track img { flex: 0 0 100%; scroll-snap-align: center; border-radius: 0; }
.pc__arrow { position: absolute; top: calc(50% - 22px); transform: translateY(-50%); background: var(--surface); box-shadow: var(--shadow); }
.pc__arrow--prev { left: 12px; }
.pc__arrow--next { right: 12px; }
.pc__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.pc__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.pc__dots button[aria-current="true"] { width: 24px; background: var(--text); }
@media (prefers-reduced-motion: reduce) { .pc__track { scroll-behavior: auto; } }
.product__thumbs { display: flex; gap: 10px; margin-top: 10px; }
.product__thumbs button { width: 72px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.product__thumbs button[aria-current="true"] { border-color: var(--text); }
.product__price { font-size: 1.5rem; margin: 0 0 24px; }
.product__info { position: sticky; top: 96px; align-self: start; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 8px; }
.field select, .field input, .field textarea {
  width: 100%; padding: .8em 1em; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit;
}
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { background: none; border: 0; width: 36px; height: 36px; cursor: pointer; font-size: 1.1rem; color: var(--text); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.field[hidden] { display: none; }
.check-field { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: .95rem; cursor: pointer; }
.check-field input { width: 18px; height: 18px; accent-color: var(--accent); }
.check-field input:disabled + span { color: var(--muted); }
.coming-soon-note { background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 12px 18px; margin: 24px 0 8px; }
.draft-note { background: var(--surface); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 14px; font-size: .9rem; color: var(--muted); }
.photo-intake { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 32px 0; }
.photo-intake h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; margin: 0 0 12px; color: var(--accent); }
.how-to-order { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; font-size: .95rem; }
.how-to-order p { margin: 0 0 6px; }
.how-to-order ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.photo-intake ul { padding-left: 1.2em; margin: 12px 0; }
.add-note { font-size: .9rem; margin: 10px 0 0; }
.photo-intake__drawings { margin: 0 0 12px; padding-left: 1.4em; font-weight: 500; }
.qty span { min-width: 2ch; text-align: center; }
.details-list { padding-left: 1.1em; color: var(--muted); }
/* Sticker add-ons on print pages. */
.addons { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.addons__head { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.addons__head .muted { font-size: .9rem; }
.addon { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 12px; align-items: center; }
.addon + .addon { margin-top: 10px; }
@media (max-width: 480px) {
  .addon { grid-template-columns: 56px 1fr auto; grid-template-areas: "img name btn" "img price btn"; row-gap: 2px; }
  .addon > a:first-child { grid-area: img; }
  .addon__name { grid-area: name; }
  .addon__price { grid-area: price; }
  .addon .btn { grid-area: btn; }
}
.addon img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; display: block; }
.addon__name { text-decoration: none; font-weight: 500; }
.addon__price s, .cart-item small s { color: var(--muted); }
.deal { color: var(--deal); font-weight: 600; }
.breadcrumb { font-size: .9rem; color: var(--muted); padding-top: 24px; }
.breadcrumb a { text-decoration: none; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } .product__info { position: static; } }

/* ---------- Cart drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(10, 10, 9, .45); opacity: 0; pointer-events: none;
  transition: opacity .25s; z-index: 40;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--surface);
  z-index: 50; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.cart-open .drawer { transform: none; }
.cart-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.4rem; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 4px; }
.drawer__note { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.drawer__error { color: var(--accent); font-size: .9rem; margin-bottom: 12px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.cart-item h4 { margin: 0 0 2px; font-size: .95rem; font-weight: 500; }
.cart-item small { color: var(--muted); display: block; margin-bottom: 8px; }
.cart-item .remove { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .8rem; padding: 0; }
.cart-empty { text-align: center; padding: 48px 0; color: var(--muted); }

/* ---------- About / contact ---------- */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 6vw, 80px); align-items: start; }
.about__portrait { border-radius: var(--radius); overflow: hidden; }
.about__portrait img { width: 100%; height: auto; }
.about blockquote { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.35; margin: 0 0 1em; }
.contact-form { max-width: 560px; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* ---------- Notice / status page ---------- */
.status { text-align: center; padding-top: clamp(64px, 12vw, 140px); padding-bottom: clamp(64px, 12vw, 140px); max-width: 560px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; color: var(--muted); font-size: .9rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

.skeleton { color: var(--muted); padding: 40px 0; }

.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.facts strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; line-height: 1.2; }
.facts span { color: var(--muted); font-size: .9rem; }

/* Art / Design switch on the Work page */
.segmented { display: inline-flex; padding: 4px; margin-bottom: 20px; border: 1.5px solid var(--accent); border-radius: 999px; background: var(--surface); }
.segmented button {
  border: 0; background: none; color: var(--text); font: 600 1rem var(--font-body);
  padding: .65em 1.6em; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.segmented button:hover { color: var(--accent); }
.segmented button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.filters[hidden] { display: none; }

/* ---------- Case study ---------- */
a.work-card { text-decoration: none; cursor: pointer; }
.case__hero { background: var(--line); }
.case__hero img { width: 100%; height: min(78vh, 56.25vw); object-fit: cover; }
/* "size": "short" on a hero: a lower banner so the content below peeks into view. */
.case__hero--short img { height: min(52vh, 38vw); }
/* "size": "natural": the whole image at its own proportions (crop the file itself to taste). */
.case__hero--natural img { height: auto; }
/* Artwork is shown whole, never cropped. */
.case__hero--art img { object-fit: contain; padding: clamp(16px, 3vw, 40px) 0; }
.case__head {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px);
  padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 72px); align-items: start;
}
.case__head h1 { margin-bottom: .3em; }
.case__summary { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.3; max-width: 26em; margin: 0; }
.case__credits { margin: 0; display: grid; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.case__credits dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.case__credits dd { margin: 2px 0 0; }
.case__body { display: grid; gap: clamp(24px, 4vw, 48px); }
.case__text { max-width: calc(680px + 40px); font-size: 1.1rem; line-height: 1.7; padding-top: clamp(8px, 2vw, 24px); padding-bottom: clamp(8px, 2vw, 24px); }
.case__text p:last-child { margin-bottom: 0; }
.case__image img, .case__pair img { width: 100%; height: auto; border-radius: 4px; background: var(--line); }
.case__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
/* Paired images share one shape so mismatched photos line up. */
.case__pair img { aspect-ratio: 4 / 3; object-fit: cover; }
.case__pair--portrait img { aspect-ratio: 3 / 4; }
.case__pair--square img { aspect-ratio: 1 / 1; }
.case__caption { color: var(--muted); font-size: .85rem; margin: 10px 0 0; }
.case__more { padding-top: clamp(56px, 8vw, 96px); margin-top: clamp(48px, 8vw, 96px); border-top: 1px solid var(--line); }
.carousel__controls { display: flex; align-items: center; gap: 8px; }
/* Contact band at the foot of every design project page. */
.cta-band { background: var(--accent); color: var(--accent-ink); padding: clamp(56px, 9vw, 112px) 0; margin-top: clamp(56px, 8vw, 96px); }
.cta-band__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.cta-band__art { width: clamp(180px, 22vw, 300px); height: auto; }
@media (max-width: 640px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band__art { display: none; } }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; max-width: 12em; margin: 0; color: inherit; }
.cta-band p { margin: 12px 0 28px; font-size: 1.1rem; max-width: 30em; }
main:has(.cta-band) + .site-footer { margin-top: 0; border-top: 0; }
/* 20% larger than a standard button; near-black text in light mode, white in dark. */
.cta-band .btn { background: var(--accent-ink); color: #151412; border-color: var(--accent-ink); font-size: 1.14rem; }
@media (prefers-color-scheme: dark) { .cta-band .btn { color: #ffffff; } }
.carousel__controls .link-arrow { margin-right: 8px; }
.carousel__controls .icon-btn:disabled { opacity: .35; cursor: default; }
/* Cards line up with the page container; the track bleeds to the screen edge. */
.carousel {
  --edge: max(20px, calc((100vw - var(--maxw)) / 2 + 20px));
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 26vw, 340px); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 4px var(--edge) 16px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { display: none; }
.more-card {
  scroll-snap-align: start; display: block; text-decoration: none; text-align: left;
  padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
}
.more-card__img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.more-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.more-card:hover .more-card__img img { transform: scale(1.03); }
.more-card h3 { font-size: 1.1rem; margin: 12px 0 2px; }
.more-card span { color: var(--muted); font-size: .9rem; }
@media (max-width: 520px) { .carousel { grid-auto-columns: 78vw; gap: 16px; } }
@media (max-width: 820px) { .case__head { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .case__pair { grid-template-columns: 1fr; } }

/* ---------- Homepage ---------- */
.featured-split { margin-top: clamp(48px, 7vw, 80px); }
/* Client names row: plain type, no logos. */
.clients { border-top: 1px solid var(--line); text-align: center; }
.clients__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px clamp(32px, 6vw, 72px); }
.clients__list li { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--muted); }
/* Homepage cards: artwork fills the frame edge to edge (art 3:4, design 4:3, shop 3:4). */
[data-page="home"] .work-card__img { aspect-ratio: 3 / 4; }
[data-page="home"] .work-card--design .work-card__img { aspect-ratio: 4 / 3; }
[data-page="home"] .work-card__img img,
[data-page="home"] .product-card__img img { object-fit: cover; padding: 0; }
[data-page="home"] .product-card__img { aspect-ratio: 3 / 4; }

/* Hero slideshow: full-bleed images with caption and dots laid over the artwork. */
.slideshow { position: relative; aspect-ratio: 4 / 5; background: var(--line); }
.slideshow { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.slideshow > img, .slide img { width: 100%; height: 100%; object-fit: cover; padding: 0; transition: transform .8s ease; }
/* Gentle zoom on hover (mouse only). Transforms are GPU-composited, so this is cheap. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .slideshow:hover .slide.is-active img { transform: scale(1.04); }
}
.slide__tag {
  position: absolute; top: 16px; left: 16px; z-index: 1; pointer-events: none;
  padding: .35em .9em; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: #1c1b19; background: rgba(255, 255, 255, .88);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18); backdrop-filter: blur(6px);
}
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.slide a, .slide button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 120px 18px 20px; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent);
  color: #fff; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slide figcaption strong { color: #fff; font-weight: 600; margin-right: .35em; }
.slideshow__dots { position: absolute; right: 20px; bottom: 22px; display: flex; gap: 6px; z-index: 1; }
.slideshow__dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; opacity: .55; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: width .3s, opacity .3s;
}
.slideshow__dots button:hover { opacity: .85; }
.slideshow__dots button[aria-current="true"] { width: 22px; opacity: 1; }
@media (max-width: 820px) { .slideshow { aspect-ratio: 1; } }
@media (prefers-reduced-motion: reduce) { .slide, .slide.is-active { transition: none; } }

/* ---------- Events ---------- */
.events-list { display: grid; gap: 32px; padding-bottom: 64px; }
.event-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.event-card__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.event-card__img img { width: 100%; height: 100%; object-fit: cover; }
.event-card h3 { font-size: 1.5rem; }
.events-empty { text-align: center; padding: clamp(48px, 8vw, 96px) 24px; border: 1px dashed var(--line); border-radius: var(--radius); }
.events-empty h2 { margin-bottom: .3em; }
.events-empty p { color: var(--muted); max-width: 32em; margin: 0 auto 24px; }
.events-empty .hero__actions { justify-content: center; margin-top: 0; }
@media (max-width: 640px) { .event-card { grid-template-columns: 1fr; } }

/* Sold-out product: pointer to the "You might also like" row. */
.sold-out-note { margin: 12px 0 0; font-size: .9rem; color: var(--muted); text-align: center; }
.sold-out-note a { color: var(--text); font-weight: 500; }
#also-like { scroll-margin-top: 88px; }
/* Product rows: tall frames like the shop grid, so prints aren't cropped. */
.carousel--portrait { grid-auto-columns: clamp(200px, 21vw, 280px); }
.carousel--portrait .more-card__img { aspect-ratio: 3 / 4; }
