/* ==========================================================================
   Alex J. McDermott — site styles
   Clean gallery/shop look: white space, black type, Montserrat, left sidebar.
   ========================================================================== */

:root {
  --ink: #111;
  --ink-2: #444;
  --muted: #767676;
  --line: #e6e6e6;
  --line-2: #d0d0d0;
  --bg: #fff;
  --bg-soft: #f6f5f2;
  --bg-tile: #f3f2ef;
  --accent: #111;
  --danger: #b3261e;
  --ok: #1e6b3a;
  --sidebar: 240px;
  --gutter: clamp(20px, 3.2vw, 48px);
  --radius: 2px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 15px/1.65 var(--font); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(24px, 2.4vw, 30px); }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.lead { font-size: 16px; color: var(--ink-2); max-width: 68ch; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- announcement + layout ---------- */
.announce {
  background: var(--ink); color: #fff; text-align: center;
  font-size: 12.5px; font-weight: 500; padding: 8px 16px; letter-spacing: .02em;
}
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; align-self: flex-start;
  width: var(--sidebar); flex: 0 0 var(--sidebar); height: 100vh; overflow-y: auto;
  border-right: 1px solid var(--line); padding: 24px 26px 32px;
  display: flex; flex-direction: column; background: var(--bg);
}
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sidebar-top { display: flex; justify-content: flex-end; align-items: center; min-height: 36px; }
.sidebar .nav-close { display: none; margin-right: auto; }

.wordmark {
  display: block; text-decoration: none; margin: 34px 0 64px;
  font-weight: 500; line-height: 1;
}
.wordmark-first { display: block; font-size: 13px; letter-spacing: .38em; margin-bottom: 9px; text-transform: uppercase; }
.wordmark-last { display: block; font-size: 30px; letter-spacing: .01em; font-weight: 600; }
.wordmark--small { font-size: 15px; letter-spacing: .14em; margin: 0; font-weight: 600; }

.nav-main { display: flex; flex-direction: column; gap: 6px; }
.nav-main > a, .nav-group > summary {
  font-size: 17px; font-weight: 500; text-decoration: none; padding: 3px 0;
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}
.nav-main > a[aria-current], .nav-group > summary.is-current { text-decoration: underline; text-underline-offset: 5px; }
.nav-main > a:hover, .nav-group > summary:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-group > summary { list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary .icon { transition: transform .2s; }
.nav-group[open] > summary .icon { transform: rotate(90deg); }
.nav-sub { display: flex; flex-direction: column; padding: 4px 0 8px 14px; gap: 2px; }
.nav-sub a { font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 2px 0; }
.nav-sub a:hover { color: var(--ink); text-decoration: underline; }
.nav-secondary { display: flex; flex-direction: column; gap: 8px; margin-top: 48px; align-items: flex-start; }
.nav-secondary a, .nav-secondary .linklike { font-size: 13px; text-decoration: none; color: var(--ink); }
.nav-secondary a:hover, .nav-secondary .linklike:hover { text-decoration: underline; }
.wordmark-sub { display: block; margin-top: 10px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.sidebar-bottom { margin-top: auto; padding-top: 32px; display: grid; gap: 18px; }
.sidebar-social { display: flex; align-items: center; gap: 8px; font-size: 13px; text-decoration: none; color: var(--ink-2); }
.sidebar-social:hover { color: var(--ink); }
.ig { display: grid; gap: 10px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ig-grid a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--bg-tile); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s, transform .4s; }
.ig-grid a:hover img { opacity: .85; transform: scale(1.04); }
.switch {
  display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); border-radius: 999px;
  padding: 3px; gap: 3px;
}
.switch a {
  display: flex; align-items: center; justify-content: center; padding: 8px 4px;
  border-radius: 999px; font-size: 11.5px; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap;
}
.switch a:hover { background: var(--bg-soft); }
.switch a[aria-current] { background: var(--ink); color: #fff; }

/* ---------- landing page ---------- */
.landing { min-height: 100vh; display: flex; flex-direction: column; max-width: 1180px; margin: 0 auto; padding: clamp(24px, 6vh, 72px) var(--gutter) 24px; }
.landing-intro { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.landing-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--bg-soft); }
.landing-text h1 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 14px; }
.landing-bio p { font-size: clamp(15.5px, 1.3vw, 18px); color: var(--ink-2); max-width: 60ch; }
.landing-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 18px 0 0 -8px; }
.landing-links a { display: inline-flex; padding: 9px; border-radius: 50%; color: var(--ink-2); }
.landing-links a:hover { background: var(--bg-soft); color: var(--ink); }
.landing-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(36px, 7vh, 72px); }
.choice {
  position: relative; display: flex; align-items: flex-end; min-height: clamp(220px, 34vh, 340px); overflow: hidden;
  text-decoration: none; color: #fff; background: var(--ink); isolation: isolate;
}
.choice img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.choice--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.1) 10%, rgba(0,0,0,.72)); }
.choice--research { background: radial-gradient(120% 90% at 85% 10%, #3a3a3a 0%, #151515 55%, #0b0b0b 100%); }
.choice--research::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: radial-gradient(#fff 1px, transparent 1.2px); background-size: 18px 18px;
  mask-image: linear-gradient(200deg, #000 0%, transparent 65%); -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 65%);
}
.choice:hover img { transform: scale(1.04); }
.choice-text { display: grid; gap: 6px; padding: clamp(22px, 3vw, 36px); }
.choice-icon { opacity: .85; }
.choice-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; }
.choice-sub { font-size: 14.5px; color: rgba(255,255,255,.82); max-width: 40ch; }
.choice-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.choice:hover .choice-go { text-decoration: underline; text-underline-offset: 4px; }
.landing-foot { margin-top: auto; padding-top: 40px; font-size: 12px; color: var(--muted); }
.landing-foot a { color: inherit; }
.footer--slim { padding-top: 24px; }
.footer--slim .footer-legal { margin-top: 0; }
.footer--slim a { color: inherit; }

.icon { flex: none; }
.icon-btn {
  background: none; border: 0; padding: 6px; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; position: relative; border-radius: 50%;
}
.icon-btn:hover { background: var(--bg-soft); }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font: inherit; }

.topbar { display: none; }

/* ---------- buttons & form fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .04em;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, opacity .15s;
}
.btn:hover { background: #333; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: progress; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn--small { min-height: 38px; padding: 8px 16px; font-size: 13px; }

.field {
  position: relative; display: block; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #fff; margin: 0 0 12px; transition: border-color .15s;
}
.field:focus-within { border-color: var(--ink); }
.field-label {
  display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-2); font-weight: 600;
}
.field > .field-label { position: absolute; top: 8px; left: 12px; pointer-events: none; }
.field select, .field input, .field textarea {
  width: 100%; border: 0; background: transparent; font: 500 15px/1.4 var(--font); color: var(--ink);
  padding: 26px 40px 9px 12px; appearance: none; -webkit-appearance: none; border-radius: var(--radius);
}
.field input, .field textarea { padding-right: 12px; }
.field textarea { resize: vertical; min-height: 120px; }
.field select:focus, .field input:focus, .field textarea:focus { outline: none; }
.field:has(select)::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -2px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}
.hint { font-size: 13px; color: var(--muted); margin: -4px 0 14px; }
.hint strong { color: var(--ink-2); font-weight: 600; }

/* ---------- breadcrumbs, page heads ---------- */
.page { padding: 28px var(--gutter) 64px; width: 100%; max-width: 1400px; }
.page--narrow { max-width: 860px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: 12.5px; }
.crumbs li + li::before { content: "/"; color: var(--muted); margin-right: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--muted); }
.page-head { margin-bottom: 28px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 600; }

/* ---------- home ---------- */
.hero { position: relative; height: min(78vh, 760px); min-height: 380px; overflow: hidden; background: #222; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.62)); }
.hero-text { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero-text { position: absolute; z-index: 1; left: var(--gutter); bottom: clamp(28px, 6vh, 64px); color: #fff; max-width: 640px; }
.hero-text .eyebrow { color: rgba(255,255,255,.85); }
.hero-text h1 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 600; margin-bottom: 22px; }
.section { padding: 56px var(--gutter) 0; }
.section:last-of-type { padding-bottom: 72px; }
.intro { text-align: center; max-width: 820px; margin: 0 auto; padding-top: 72px; }
.intro-h { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; }
.intro-p { color: var(--ink-2); font-size: 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature { border-top: 1px solid var(--line); padding-top: 22px; }
.feature h3 { margin-top: 14px; }
.feature p { color: var(--ink-2); font-size: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-card { display: block; padding: 40px; background: var(--bg-soft); text-decoration: none; min-height: 260px; transition: background .2s; }
.split-card:hover { background: #eeece7; text-decoration: none; }
.split-card h2 { font-size: 24px; }
.split-card p { color: var(--ink-2); max-width: 46ch; }
.split-card--dark { background: var(--ink); color: #fff; }
.split-card--dark:hover { background: #222; }
.split-card--dark p, .split-card--dark .eyebrow { color: rgba(255,255,255,.75); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: block; text-decoration: none; }
.card-media {
  aspect-ratio: 4 / 5; background: var(--bg-tile); display: flex; align-items: center; justify-content: center;
  padding: 11%; overflow: hidden;
}
.card-media img {
  max-height: 100%; width: auto; max-width: 100%; object-fit: contain;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 22px rgba(0,0,0,.14);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card-media img { transform: scale(1.025); }
.card-text { padding-top: 14px; }
.card-title { font-size: 15px; font-weight: 600; margin: 0 0 2px; }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 3px; }
.card-price { font-size: 14px; margin: 0; color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 7px 16px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active span { color: rgba(255,255,255,.7); }

/* ---------- product page ---------- */
.product {
  display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px);
  padding: 28px var(--gutter) 24px; align-items: start;
}
.product-info { grid-column: 1; }
.product-media { grid-column: 2; position: sticky; top: 24px; }
.product-title { font-size: clamp(26px, 2.4vw, 32px); margin-bottom: 6px; }
.product-meta { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.product-desc { color: var(--ink-2); }
.product-price { font-size: 22px; font-weight: 600; margin: 18px 0 2px; }
.options { margin-top: 18px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 11px 8px; font-size: 14px; font-weight: 600; transition: background .15s, color .15s; }
.seg label:hover input:not(:checked) + span { background: var(--bg-soft); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: -4px; }
.swatches { border: 0; padding: 0; margin: 0 0 12px; }
.swatches legend { margin-bottom: 8px; }
.swatches legend span { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink); font-weight: 500; }
.swatches [data-colours] { display: flex; gap: 10px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.swatch span {
  display: block; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2);
  box-shadow: inset 0 0 0 3px #fff; cursor: pointer;
}
.swatch input:checked + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.swatch input:focus-visible + span { outline: 2px dashed var(--ink); outline-offset: 3px; }
.fixed-option { border: 1px solid var(--line); background: var(--bg-soft); padding: 9px 12px; margin-bottom: 12px; font-size: 14px; }
.fixed-option .field-label { margin-bottom: 2px; }
.buy-row { display: flex; gap: 10px; margin: 18px 0 12px; }
.qty { display: flex; border: 1px solid var(--line-2); border-radius: var(--radius); }
.qty button { width: 40px; background: none; border: 0; cursor: pointer; font-size: 18px; }
.qty input { width: 40px; border: 0; text-align: center; font: 600 15px var(--font); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.accordions { margin-top: 28px; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 15px 0; font-weight: 600; font-size: 14.5px; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; }
.acc[open] summary::after { content: "−"; }
.acc-body { padding-bottom: 16px; font-size: 14px; color: var(--ink-2); }
.paper-list { padding-left: 18px; margin: 0; }
.paper-list li { margin-bottom: 6px; }
.specs { margin: 0; display: grid; gap: 6px; }
.specs div { display: grid; grid-template-columns: 90px 1fr; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

.view-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.view-tabs button {
  background: none; border: 0; padding: 10px 0; margin-bottom: -1px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent;
}
.view-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.stage {
  background: var(--bg-tile); min-height: min(70vh, 720px); display: flex; align-items: center; justify-content: center;
  padding: clamp(18px, 4vw, 56px); position: relative; overflow: hidden;
}
.stage-photo { max-height: calc(min(70vh, 720px) - 2 * clamp(18px, 4vw, 56px)); width: auto; object-fit: contain; box-shadow: 0 2px 4px rgba(0,0,0,.1), 0 16px 40px rgba(0,0,0,.18); }
.stage-note { margin-top: 10px; }
.stage--wall { padding: 0; min-height: 0; }
.stage--wall .wall { max-height: none; }

/* preview: paper / frame / mount drawn at true proportions */
.mock { position: relative; container-type: inline-size; }
/* Frame = four mitred mouldings, grain running along each side, lit from the top left. */
.mock-frame { position: absolute; inset: 0; box-shadow: 0 3px 6px rgba(0,0,0,.16), 0 22px 50px rgba(0,0,0,.22); }
.frame-side { position: absolute; display: block; }
.frame-side--top { left: 0; top: 0; width: 100%; height: var(--m); clip-path: polygon(0 0, 100% 0, calc(100% - var(--m)) 100%, var(--m) 100%); }
.frame-side--bottom { left: 0; bottom: 0; width: 100%; height: var(--m); clip-path: polygon(var(--m) 0, calc(100% - var(--m)) 0, 100% 100%, 0 100%); }
.frame-side--left { left: 0; top: 0; width: var(--m); height: 100%; clip-path: polygon(0 0, 100% var(--m), 100% calc(100% - var(--m)), 0 100%); }
.frame-side--right { right: 0; top: 0; width: var(--m); height: 100%; clip-path: polygon(0 var(--m), 100% 0, 100% 100%, 0 calc(100% - var(--m))); }
.frame-side--top { filter: brightness(1.05); }
.frame-side--right { filter: brightness(.95); }
.frame-side--bottom { filter: brightness(.9); }
/* natural light oak, matched to the sample frames (#e6b57f lit, #d7ac7e in shade) */
.mock-frame--oak .frame-side { background-color: #e2b37e; }
.mock-frame--oak .frame-side--top, .mock-frame--oak .frame-side--bottom {
  background-image:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(166, 112, 58, .16) 2px 3px, transparent 3px 7px, rgba(255, 238, 210, .22) 7px 8px),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(150, 98, 48, .10) 5px 6px),
    linear-gradient(90deg, rgba(255, 245, 225, .10), rgba(170, 115, 60, .07) 35%, rgba(255, 245, 225, .12) 60%, rgba(170, 115, 60, .06));
}
.mock-frame--oak .frame-side--left, .mock-frame--oak .frame-side--right {
  background-image:
    repeating-linear-gradient(90deg, transparent 0 2px, rgba(166, 112, 58, .16) 2px 3px, transparent 3px 7px, rgba(255, 238, 210, .22) 7px 8px),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(150, 98, 48, .10) 5px 6px),
    linear-gradient(0deg, rgba(255, 245, 225, .10), rgba(170, 115, 60, .07) 35%, rgba(255, 245, 225, .12) 60%, rgba(170, 115, 60, .06));
}
.mock-frame--white .frame-side { background-color: #f3f2ee; }
.mock-frame--white .frame-side--top, .mock-frame--white .frame-side--bottom { background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, .035) 3px 4px); }
.mock-frame--white .frame-side--left, .mock-frame--white .frame-side--right { background-image: repeating-linear-gradient(90deg, transparent 0 3px, rgba(0, 0, 0, .035) 3px 4px); }
.mock-frame--black .frame-side { background-color: #1d1d1d; }
.mock-frame--black .frame-side--top, .mock-frame--black .frame-side--bottom { background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .05) 3px 4px); }
.mock-frame--black .frame-side--left, .mock-frame--black .frame-side--right { background-image: repeating-linear-gradient(90deg, transparent 0 3px, rgba(255, 255, 255, .05) 3px 4px); }
.mock-frame--black .frame-side--top { filter: brightness(1.6); }
.mock-frame--black .frame-side--left { filter: brightness(1.3); }
.mock-inner { position: absolute; background: #fbfbf9; box-shadow: inset 0 2px 5px rgba(0,0,0,.28); }
.mock-paper { position: absolute; inset: 0; background: #fcfcfa; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 10px 30px rgba(0,0,0,.16); }
.mock-paper--warm { background: #f7f3ea; }
.mock-img { position: absolute; background-size: cover; background-position: center; }
.mock-mount-window { position: absolute; box-shadow: inset 1px 1px 0 #d9d6cf, inset 0 0 0 3px #f2f0ea, inset 2px 3px 4px rgba(0,0,0,.18); }
.mock-glass { position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.18), rgba(255,255,255,0) 32%, rgba(255,255,255,0) 70%, rgba(255,255,255,.08)); pointer-events: none; }

.wall {
  position: relative; width: 100%; aspect-ratio: 3 / 2; max-height: 70vh;
  background: linear-gradient(180deg, #ece9e3 0%, #e6e2da 76%, #cdbfaa 76%, #c2b39c 100%);
  overflow: hidden;
}
.wall .mock { position: absolute; }
.sideboard { position: absolute; background: linear-gradient(180deg, #8a6a47, #6f5236); border-radius: 2px; box-shadow: 0 10px 18px rgba(0,0,0,.18); }
.sideboard::before, .sideboard::after { content: ""; position: absolute; bottom: -9%; width: 3%; height: 10%; background: #4b3824; }
.sideboard::before { left: 6%; } .sideboard::after { right: 6%; }
.vase { position: absolute; background: #e9e5dc; border-radius: 40% 40% 12% 12%; box-shadow: inset -6px 0 10px rgba(0,0,0,.08); }
.wall-scale { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: rgba(0,0,0,.55); }

/* ---------- basket drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-scrim, .nav-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.35); animation: fade .2s; }
.nav-scrim { display: none; }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: #fff;
  display: flex; flex-direction: column; animation: slide .25s cubic-bezier(.2,.7,.2,1);
}
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 22px 18px; max-height: 62vh; overflow-y: auto; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line-img { width: 76px; height: 76px; background: var(--bg-tile); display: flex; align-items: center; justify-content: center; padding: 8px; }
.line-img img { max-height: 100%; width: auto; }
.line h3 { font-size: 14px; margin: 0 0 2px; }
.line h3 a { text-decoration: none; }
.line p { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; line-height: 1.45; }
.line-price { font-weight: 600; font-size: 14px; text-align: right; white-space: nowrap; }
.line-ctrls { display: flex; align-items: center; gap: 12px; }
.line-ctrls .qty { height: 32px; }
.line-ctrls .qty button { width: 30px; font-size: 15px; }
.line-ctrls .qty input { width: 30px; font-size: 13px; }
.line-error { color: var(--danger) !important; }
.totals { margin: 6px 0 8px; display: grid; gap: 4px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals dt, .totals dd { margin: 0; }
.totals-total { font-weight: 700; font-size: 16px; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.pay { display: grid; gap: 10px; margin: 14px 0 10px; }
.paypal-slot { min-height: 45px; }
.pay-error { color: var(--danger); margin: 0 0 6px; }
.pay-error:empty { display: none; }

/* ---------- contact modal ---------- */
.modal { border: 0; padding: 0; width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); border-radius: var(--radius); }
.modal::backdrop { background: rgba(0,0,0,.4); }
.modal-inner { margin: 0; }
.modal-body { padding: 18px 22px 22px; }
.modal-body .btn { margin-top: 4px; }
[data-contact-status].is-error { color: var(--danger); }
[data-contact-status].is-ok { color: var(--ok); }

/* ---------- zines ---------- */
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 2px 7px; border-radius: 3px; vertical-align: 1px; }
.showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.showcase-item { margin: 0; }
.showcase-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-tile); }
.showcase-item h3 { margin: 16px 0 6px; }
.showcase-item p { color: var(--ink-2); font-size: 14px; margin: 0; }
@media (max-width: 900px) { .showcase-grid { grid-template-columns: 1fr; gap: 32px; } .showcase-item img { aspect-ratio: 1; } }
.zine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px 28px; }
.zine img { aspect-ratio: 3/4; object-fit: cover; width: 100%; background: var(--bg-tile); margin-bottom: 16px; }
.empty { background: var(--bg-soft); padding: clamp(28px, 5vw, 56px); max-width: 720px; }

/* ---------- prose pages ---------- */
.prose { max-width: 70ch; }
.prose h1 { margin-bottom: .8em; }
.prose h2 { margin-top: 1.8em; font-size: 18px; }
.prose p, .prose li { color: var(--ink-2); }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 0 0 1.2em; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 9px 10px 9px 0; text-align: left; vertical-align: top; }
.prose th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.order-state { padding-top: 64px; }
.order-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; }

/* ---------- research / academic CV ---------- */
.cv { max-width: 1120px; }
.cv-profile { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 72px); padding: 24px 0 16px; }
.cv-card { text-align: center; }
.avatar { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; }
.avatar--initials { background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); border: 1px solid var(--line); }
.cv-name { font-size: 26px; margin-bottom: 2px; }
.cv-pronouns { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.cv-role { font-size: 15px; margin-bottom: 2px; }
.cv-org a { color: var(--ink-2); font-size: 14px; }
.cv-links { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 0; margin: 14px 0 0; }
.cv-links a { display: inline-flex; padding: 8px; border-radius: 50%; color: var(--ink-2); }
.cv-links a:hover { background: var(--bg-soft); color: var(--ink); }
.cv-h { font-size: 24px; font-weight: 600; margin-bottom: 18px; }
.cv-h3 { font-size: 16px; margin: 26px 0 10px; }
.cv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cv-list { padding-left: 18px; margin: 0; color: var(--ink-2); }
.cv-list li { margin-bottom: 4px; }
.cv-list--plain { list-style: none; padding: 0; }
.cv-edu { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14px; }
.cv-edu li { display: flex; gap: 12px; align-items: flex-start; }
.cv-edu .icon { margin-top: 2px; color: var(--ink-2); }
.cv-section { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 36px; }
.pubs { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.pub { display: grid; grid-template-columns: 110px 1fr; gap: 20px; }
.pub-venue { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 13px; }
.badge { display: inline-block; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 4px 9px; border-radius: 3px; }
.badge--light { background: var(--bg-soft); color: var(--ink-2); }
.pub-title { font-size: 16.5px; margin-bottom: 4px; }
.pub-title a { text-decoration: none; }
.pub-title a:hover { text-decoration: underline; }
.pub-authors, .pub-where { font-size: 14px; color: var(--ink-2); margin: 0 0 3px; }
.pub-abstract { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; max-width: 80ch; }
.pub-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: flex-start; }
.pill { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; }
.pill:hover { border-color: var(--ink); text-decoration: none; }
.bib summary::-webkit-details-marker { display: none; }
.bib pre { background: var(--bg-soft); padding: 12px; font-size: 12px; overflow-x: auto; max-width: 70ch; }
.talks, .news { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.talks li, .news li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; font-size: 14px; }
.news p { margin: 0; }

/* ---------- footer ---------- */
.footer { margin-top: auto; border-top: 1px solid var(--line); padding: 44px var(--gutter) 28px; font-size: 13.5px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-h { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer p { color: var(--ink-2); }
.footer-legal { margin-top: 36px; font-size: 12px; color: var(--muted) !important; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product { grid-template-columns: 1fr; }
  .product-media { grid-column: 1; grid-row: 1; position: static; }
  .product-info { grid-row: 2; }
  .stage { min-height: 0; }
  .stage-photo { max-height: 62vh; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .topbar {
    display: flex; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between;
    padding: 8px 10px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
  }
  .sidebar {
    position: fixed; z-index: 60; left: 0; top: 0; height: 100%; transform: translateX(-105%);
    transition: transform .25s cubic-bezier(.2,.7,.2,1); width: min(300px, 86vw); flex-basis: auto;
  }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  body.nav-open .nav-scrim { display: block; position: fixed; z-index: 55; }
  .sidebar-top { justify-content: space-between; }
  .sidebar-top .cart-btn { display: none; }
  .sidebar .nav-close { display: inline-flex; }
  .wordmark { margin: 22px 0 36px; }
  .features, .split { grid-template-columns: 1fr; }
  .cv-profile, .cv-cols { grid-template-columns: 1fr; }
  .pub, .talks li, .news li { grid-template-columns: 1fr; gap: 6px; }
  .pub-venue { flex-direction: row; align-items: center; }
  .hero { height: 62vh; }
  .landing-intro { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .landing-photo { max-width: 220px; }
  .landing-bio p { margin-left: auto; margin-right: auto; }
  .landing-links { justify-content: center; margin-left: 0; }
  .landing-choices { grid-template-columns: 1fr; }
  .split-card { padding: 28px; min-height: 0; }
}
@media (max-width: 560px) {
  .grid, .grid--4 { grid-template-columns: 1fr; gap: 28px; }
  .footer-cols { grid-template-columns: 1fr; }
  .product { padding-top: 16px; }
  .stage { padding: 14px; }
  .view-tabs { gap: 16px; }
  .drawer-foot { max-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
