/* ── Nate Trotter Gallery ───────────────────────────────────────────── */
:root {
  --ink: #0a0a0a;
  --ink-2: #141414;
  --ink-3: #1c1c1c;
  --paper: #f4f1ea;
  --paper-2: #ebe6dc;
  --paper-3: #c9c2b3;
  --muted: #79736a;
  --accent: #d4a96a;       /* burnished gold */
  --accent-2: #c97b4a;     /* sienna */
  --hairline: rgba(244, 241, 234, 0.08);
  --serif: 'Cormorant Garamond', 'Tiempos Headline', Georgia, serif;
  --sans: 'Inter Tight', 'Inter', 'Söhne', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ink); color: var(--paper); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--ink); }

a { color: inherit; text-decoration: none; transition: opacity .25s ease, color .25s ease; }
a:hover { opacity: .72; }

img { display: block; max-width: 100%; height: auto; }

/* ── Type ──────────────────────────────────────────────────────────── */
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; line-height: 0.95; }
.eyebrow { font-family: var(--mono); text-transform: uppercase; font-size: 11px; letter-spacing: 0.18em; color: var(--paper-3); }
.lede { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 28px); font-weight: 300; line-height: 1.4; color: var(--paper-2); }
.hed { font-family: var(--serif); font-size: clamp(56px, 12vw, 200px); line-height: 0.9; letter-spacing: -0.04em; }
.hed-2 { font-family: var(--serif); font-size: clamp(40px, 6vw, 96px); line-height: 0.95; letter-spacing: -0.03em; }
.hed-3 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.02em; }
.italic { font-style: italic; }

/* ── Nav ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(to bottom, rgba(10,10,10,0.65), rgba(10,10,10,0));
  transition: background .35s ease, padding .35s ease;
}
.nav.scrolled {
  background: rgba(10,10,10,0.84);
  padding: 14px 40px;
  border-bottom: 1px solid var(--hairline);
}
.nav__brand {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.01em;
  display: flex; align-items: baseline; gap: 8px;
}
.nav__brand .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; display: inline-block; }
.nav__links {
  display: flex; gap: 32px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav__cta {
  padding: 8px 18px;
  border: 1px solid var(--paper-3);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all .3s ease;
}
.nav__cta:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); opacity: 1; }

@media (max-width: 720px) {
  .nav { padding: 16px 20px; }
  .nav__links { display: none; }
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex; align-items: flex-end;
  padding: 0 40px 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: grayscale(0.1) contrast(1.05);
  animation: kenburns 24s ease-in-out infinite alternate;
  transform-origin: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.5) 50%, rgba(10,10,10,0.85) 100%),
    linear-gradient(to bottom, rgba(10,10,10,0.55), rgba(10,10,10,0.3) 30%, rgba(10,10,10,0.85));
}
.hero__content { position: relative; max-width: 1400px; width: 100%; margin: 0 auto; }
.hero__eyebrow { margin-bottom: 24px; opacity: 0; animation: rise 1.2s .3s ease forwards; }
.hero__hed { margin: 0 0 24px; opacity: 0; transform: translateY(40px); animation: rise 1.4s .5s cubic-bezier(.18,.9,.27,1) forwards; }
.hero__sub { max-width: 580px; opacity: 0; transform: translateY(24px); animation: rise 1.2s .9s ease forwards; }
.hero__scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--paper-3); opacity: 0; animation: rise 1.2s 1.3s ease forwards; }
.hero__scroll::after { content: ''; display: block; width: 1px; height: 36px; background: var(--paper-3); margin: 12px auto 0; animation: pulse 2s ease-in-out infinite; }

@keyframes kenburns {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.12); }
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Sections ──────────────────────────────────────────────────────── */
section { padding: 120px 40px; max-width: 1400px; margin: 0 auto; }
.section__head { margin-bottom: 80px; }
.section__head .eyebrow { display: block; margin-bottom: 24px; }

/* ── Featured grid ─────────────────────────────────────────────────── */
.featured {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 28px;
}
.tile {
  position: relative; overflow: hidden;
  background: var(--ink-2);
  cursor: pointer;
  transition: transform .6s cubic-bezier(.18,.9,.27,1);
}
.tile:hover { transform: translateY(-6px); }
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s cubic-bezier(.18,.9,.27,1), filter .6s ease;
}
.tile:hover img { transform: scale(1.06); filter: brightness(0.85); }
.tile__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.35) 60%, rgba(10,10,10,0) 100%);
  opacity: 0; transition: opacity .5s ease;
}
.tile:hover .tile__overlay { opacity: 1; }
.tile__name { font-family: var(--serif); font-size: 24px; letter-spacing: -0.015em; margin: 0 0 6px; }
.tile__price { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--paper-3); }
.tile__price.sold { color: var(--accent-2); }

/* Asymmetric placements */
.tile.t-1 { grid-column: span 7; grid-row: span 4; }
.tile.t-2 { grid-column: span 5; grid-row: span 3; }
.tile.t-3 { grid-column: span 5; grid-row: span 3; }
.tile.t-4 { grid-column: span 4; grid-row: span 3; }
.tile.t-5 { grid-column: span 4; grid-row: span 3; }
.tile.t-6 { grid-column: span 4; grid-row: span 3; }
.tile.t-7 { grid-column: span 6; grid-row: span 4; }
.tile.t-8 { grid-column: span 6; grid-row: span 4; }
.tile.t-3up { grid-column: span 4; grid-row: span 3; }
.tile.t-4up { grid-column: span 3; grid-row: span 3; }

@media (max-width: 960px) {
  .featured { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.t-1, .tile.t-2, .tile.t-3, .tile.t-4, .tile.t-5, .tile.t-6, .tile.t-7, .tile.t-8, .tile.t-3up, .tile.t-4up { grid-column: span 1; grid-row: span 3; }
}

/* ── Manifesto / About ─────────────────────────────────────────────── */
.manifesto {
  background: var(--paper);
  color: var(--ink);
  padding: 160px 40px;
  margin: 0;
  max-width: none;
}
.manifesto__inner { max-width: 1100px; margin: 0 auto; }
.manifesto .eyebrow { color: var(--muted); }
.manifesto .hed-2 { color: var(--ink); }
.manifesto p { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.45; font-weight: 300; color: #2a2a2a; margin: 28px 0; max-width: 800px; }
.manifesto p span.emph { color: var(--accent-2); font-style: italic; }
.manifesto__stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin-top: 96px; border-top: 1px solid rgba(0,0,0,.12); padding-top: 60px;
  max-width: 560px;
}
.stat { }
.stat__n { font-family: var(--serif); font-size: clamp(48px, 6vw, 88px); line-height: 0.9; letter-spacing: -0.03em; color: var(--ink); }
.stat__l { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); margin-top: 12px; }

@media (max-width: 720px) {
  .manifesto { padding: 100px 24px; }
  .manifesto__stats { grid-template-columns: 1fr; gap: 36px; }
}

/* ── Product page ──────────────────────────────────────────────────── */
.work-hero {
  min-height: 100svh;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 0;
  padding: 0;
  max-width: none;
}
.work-hero__img {
  position: sticky; top: 0;
  height: 100svh;
  background: var(--ink-2);
  overflow: hidden;
}
.work-hero__img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.work-hero__img[data-dzi] { background: var(--ink-2); cursor: grab; }
.work-hero__img[data-dzi]:active { cursor: grabbing; }
.work-hero__img[data-dzi] img.osd-fallback { display: none; }
.work-hero__img .zoom-hint {
  position: absolute; bottom: 24px; right: 24px; z-index: 5;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper); background: rgba(10,10,10,0.55); backdrop-filter: blur(6px);
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hairline);
  pointer-events: none; opacity: 0.85;
}
.work-hero__price a { color: inherit; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.work-hero__price a:hover { opacity: 0.72; }
.work-hero__meta {
  padding: 140px 56px 80px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--ink);
  border-left: 1px solid var(--hairline);
}
.work-hero__name { margin: 0 0 12px; }
.work-hero__price { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; color: var(--accent); margin: 20px 0 32px; }
.work-hero__price.sold { color: var(--accent-2); }
.work-hero__desc { color: var(--paper-2); font-size: 17px; line-height: 1.7; max-width: 520px; }
.work-hero__desc p { margin: 0 0 14px; }
.work-hero__cta {
  display: inline-block;
  margin-top: 36px;
  padding: 18px 36px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all .35s ease;
  align-self: flex-start;
}
.work-hero__cta:hover { background: var(--accent); color: var(--ink); opacity: 1; transform: translateY(-2px); }
.work-hero__cta.secondary { background: transparent; color: var(--paper); border: 1px solid var(--paper-3); margin-left: 12px; }
.work-hero__cta.secondary:hover { background: var(--paper); color: var(--ink); }
.work-meta {
  margin-top: 48px;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--paper-3);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.work-meta div span { display: block; color: var(--paper); font-size: 13px; margin-top: 6px; text-transform: none; letter-spacing: 0; font-family: var(--sans); }

@media (max-width: 920px) {
  .work-hero { grid-template-columns: 1fr; }
  .work-hero__img { position: relative; height: 70svh; }
  .work-hero__meta { padding: 60px 28px 80px; }
}

/* ── Footer ────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--hairline);
  padding: 80px 40px 40px;
  margin-top: 120px;
  max-width: none;
}
.footer__inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--paper-3); margin: 0 0 18px; font-weight: 400; }
.footer__brand { font-family: var(--serif); font-size: 28px; letter-spacing: -0.01em; }
.footer__tagline { font-family: var(--serif); font-style: italic; color: var(--paper-2); margin-top: 12px; max-width: 360px; line-height: 1.5; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.footer__legal { max-width: 1400px; margin: 60px auto 0; padding-top: 30px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--paper-3); letter-spacing: 0.06em; }
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__legal { flex-direction: column; gap: 12px; }
}

/* ── Reveal on scroll ──────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1.2s cubic-bezier(.18,.9,.27,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Shop ─────────────────────────────────────────────── */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px 28px; align-items: start; }
.shop-card { display: flex; flex-direction: column; }
.shop-card__img { display: block; overflow: hidden; background: var(--ink-2); aspect-ratio: 4 / 5; }
.shop-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.18,.9,.27,1); }
.shop-card__img:hover img { transform: scale(1.05); }
.shop-card__body { padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.shop-card__name { font-family: var(--serif); font-size: 22px; letter-spacing: -0.015em; margin: 0; }
.shop-card__price { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--paper-3); }
.shop-card__btn { align-self: flex-start; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); border: 1px solid var(--paper-3); padding: 10px 20px; border-radius: 999px; transition: background .3s, color .3s; }
.shop-card__btn:hover { background: var(--paper); color: var(--ink); }
.shop-card__sold { align-self: flex-start; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }
/* ── Product ──────────────────────────────────────────── */
.product__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.product__img { position: sticky; top: 110px; background: none; }
.product__img img { display: block; width: 100%; height: auto; max-height: calc(100vh - 150px); object-fit: contain; margin: 0 auto; }
.product__back { display: inline-block; margin-bottom: 28px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-3); }
.product__back:hover { color: var(--paper); }
.product__name { margin: 14px 0 18px; }
.product__price { font-family: var(--serif); font-size: 38px; letter-spacing: -0.02em; margin-bottom: 28px; }
.variants { border: 0; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.variants legend { padding: 0; margin-bottom: 12px; }
.variant { display: block; cursor: pointer; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant__box { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: baseline; padding: 16px 20px; border: 1px solid var(--paper-3); border-radius: 12px; transition: border-color .25s, background .25s; }
.variant__box b { font-weight: 500; font-size: 16px; }
.variant__box i { grid-column: 1; font-style: normal; font-size: 13px; color: var(--paper-3); }
.variant__box em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-family: var(--mono); font-size: 15px; }
.variant:hover .variant__box { border-color: var(--paper-2); }
.variant input:checked + .variant__box { border-color: var(--paper); background: rgba(255,255,255,0.06); box-shadow: 0 0 0 1px var(--paper); }
.variant input:focus-visible + .variant__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.variant.is-sold { cursor: not-allowed; }
.variant.is-sold .variant__box { opacity: 0.45; }
.variant.is-sold .variant__box em { text-decoration: line-through; }
.product__desc { color: var(--paper-2); font-size: 15.5px; line-height: 1.7; margin: 0 0 28px; max-width: 520px; }
.product__note { color: var(--paper-3); font-size: 13px; margin: 16px 0 36px; }
@media (max-width: 900px) { .product__grid { grid-template-columns: 1fr; gap: 32px; } .product__img { position: static; } }
.shop-card__name a { color: inherit; }
.shop-card__sub { color: var(--paper-3); }
.variants[hidden] { display: none; }
.sizes { margin-top: -4px; }
.product__price.is-text { font-size: 30px; }
.shop-card__sub { display: block; margin-top: 2px; }

/* ── Inquiry form ─────────────────────────────────────── */
.inquiry-form { position: relative; max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide, .inquiry-form__actions, .inquiry-form__status { grid-column: 1 / -1; }
.field > span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-3); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--paper); background: rgba(255,255,255,0.04); border: 1px solid var(--paper-3); border-radius: 12px; padding: 14px 16px; transition: border-color .25s, background .25s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder { color: var(--paper-3); }
.field input:hover, .field textarea:hover { border-color: var(--paper-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--paper); background: rgba(255,255,255,0.07); box-shadow: 0 0 0 1px var(--paper); }
.inquiry-form__actions { text-align: center; margin-top: 8px; }
.inquiry-form__actions .work-hero__cta { border: 0; cursor: pointer; font: inherit; font-family: var(--mono); }
.inquiry-form__actions .work-hero__cta[disabled] { opacity: .6; cursor: progress; }
.inquiry-form__status { text-align: center; margin: 4px 0 0; font-size: 15px; line-height: 1.6; color: var(--paper-2); }
.inquiry-form__status.is-error { color: var(--accent-2); }
.inquiry-form.is-sent .field, .inquiry-form.is-sent .inquiry-form__actions { display: none; }
.inquiry-form.is-sent .inquiry-form__status { font-family: var(--serif); font-size: 26px; color: var(--paper); }
@media (max-width: 640px) { .inquiry-form { grid-template-columns: 1fr; } }

/* ── Cart ─────────────────────────────────────────────────────────── */
.nav__right { display: flex; align-items: center; gap: 14px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--paper-3); border-radius: 999px; background: transparent; color: var(--paper); cursor: pointer; transition: all .3s ease; }
.cart-btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cart-btn:focus-visible, .cart-close:focus-visible, .cart-item__qty button:focus-visible, .cart-item__remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cart-btn__count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--ink); font: 600 11px/18px var(--sans); text-align: center; }
.cart-btn__count[hidden] { display: none; }
.cart-overlay { position: fixed; inset: 0; z-index: 190; background: rgba(0,0,0,0.6); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.cart-overlay.is-open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 200; width: min(440px, 100vw); display: flex; flex-direction: column; background: var(--ink-2); border-left: 1px solid var(--hairline); transform: translateX(100%); visibility: hidden; transition: transform .45s cubic-bezier(.18,.9,.27,1), visibility .45s; }
.cart-drawer.is-open { transform: none; visibility: visible; }
.cart-open { overflow: hidden; }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1px solid var(--hairline); }
.cart-drawer__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -0.015em; }
.cart-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--paper); font-size: 28px; line-height: 1; cursor: pointer; }
.cart-close:hover { background: var(--ink-3); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 8px 28px; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.cart-item__img { width: 76px; height: 96px; object-fit: cover; background: var(--ink-3); }
.cart-item__title { font-family: var(--serif); font-size: 22px; line-height: 1.1; letter-spacing: -0.01em; }
.cart-item__meta { margin-top: 4px; color: var(--paper-3); font-size: 13px; }
.cart-item__qty { display: inline-flex; align-items: center; margin-top: 12px; border: 1px solid var(--paper-3); border-radius: 999px; }
.cart-item__qty button { width: 32px; height: 30px; border: 0; background: transparent; color: var(--paper); font-size: 16px; cursor: pointer; border-radius: 999px; }
.cart-item__qty button:hover:not([disabled]) { background: var(--ink-3); }
.cart-item__qty button[disabled] { opacity: .35; cursor: not-allowed; }
.cart-item__qty span { min-width: 26px; text-align: center; font-family: var(--mono); font-size: 13px; }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-item__price { font-family: var(--mono); font-size: 14px; }
.cart-item__remove { padding: 0; border: 0; background: none; color: var(--paper-3); font-size: 12px; text-decoration: underline; cursor: pointer; }
.cart-item__remove:hover { color: var(--paper); }
.cart-empty { padding: 56px 0; text-align: center; color: var(--paper-2); }
.cart-empty__link { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); text-decoration: underline; }
.cart-drawer__foot { padding: 20px 28px 28px; border-top: 1px solid var(--hairline); }
.cart-drawer__foot[hidden] { display: none; }
.cart-subtotal { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-3); }
.cart-subtotal strong { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -0.01em; text-transform: none; color: var(--paper); }
.cart-checkout { display: block; width: 100%; margin: 0; border: 0; cursor: pointer; text-align: center; font-family: var(--mono); }
.cart-checkout[disabled] { opacity: .6; cursor: progress; transform: none; }
.cart-note { margin: 14px 0 0; text-align: center; color: var(--paper-3); font-size: 12.5px; line-height: 1.5; }
.cart-status { margin: 12px 0 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--paper-2); }
.cart-status.is-error { color: var(--accent-2); }
.cart-status[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .cart-drawer, .cart-overlay { transition: none; } }

/* ── Gallery rows: every row fills the full width, paintings keep their shape ── */
.featured--flow { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.featured--flow::after { content: ''; flex-grow: 1000000; }
.featured--flow .tile, .featured--flow .tile[class] { display: block; grid-column: auto; grid-row: auto; margin: 0; flex: calc(var(--ar, 1) * 100) 1 calc(var(--ar, 1) * 300px); min-width: 0; }
.featured--flow .tile img { display: block; width: 100%; height: auto; object-fit: initial; }
@media (max-width: 960px) { .featured--flow { gap: 14px; } .featured--flow .tile, .featured--flow .tile[class] { flex-basis: calc(var(--ar, 1) * 190px); } }

/* ── Collections page: category sections ───────────────────────────── */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-nav a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--paper-3); border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); transition: all .3s ease; }
.cat-nav a span { color: var(--paper-3); }
.cat-nav a:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cat-nav a:hover span { color: var(--ink); }
.cat { padding-top: 90px; padding-bottom: 20px; scroll-margin-top: 70px; }
.cat__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 32px; margin-bottom: 36px; padding-bottom: 18px; border-bottom: 1px solid var(--hairline); }
.cat__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.02em; }
.cat__desc { margin: 0; color: var(--paper-2); font-size: 15px; }
.cat__count { margin-left: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-3); }

/* Zoom viewer fell back to the plain image */
.work-hero__img.osd-failed { cursor: default; background: none; }
.work-hero__img.osd-failed img.osd-fallback { display: block; width: 100%; height: 100%; max-height: 80vh; object-fit: contain; }

/* ── Painting page: image centered below the menu, not touching the top ── */
.work-hero { padding: 104px 40px 40px; column-gap: 56px; align-items: start; }
.work-hero__img { top: 104px; height: calc(100svh - 144px); background: none; overflow: hidden; }
.work-hero__img img { object-fit: contain; }
.work-hero__img[data-dzi] { background: none; }
.work-hero__meta { align-self: center; }
@media (max-width: 920px) {
  .work-hero { padding: 90px 20px 20px; }
  .work-hero__img { position: relative; top: 0; height: 62svh; }
}

/* Small phones: keep the longer "Fine Art" name clear of the cart button */
@media (max-width: 480px) {
  .nav { padding: 14px 14px; }
  .nav__brand { font-size: 16px; gap: 6px; white-space: nowrap; }
  .nav__right { gap: 8px; }
  .nav__cta { padding: 7px 12px; font-size: 11px; }
  .cart-btn { width: 34px; height: 34px; }
}

/* ══ Phone experience: bottom tab bar, 2-column shop, sticky collection chips ══ */
.tabbar { display: none; }
@media (max-width: 720px) {
  html { scroll-padding-top: 70px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    background: rgba(12,12,12,0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--hairline);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 52px; color: var(--paper-3); text-decoration: none;
    font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.is-active { color: var(--paper); }
  .tabbar a.is-active svg { stroke: var(--accent, #d9a860); }
  .tabbar a:active { opacity: .6; }

  /* top bar: bigger tap targets */
  .cart-btn { width: 40px; height: 40px; }
  .nav__cta { padding: 10px 14px; font-size: 11px; }

  /* shop: two products per row, whole card tappable */
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .shop-card__body { padding-top: 10px; gap: 2px; }
  .shop-card__name { font-size: 17px; line-height: 1.2; }
  .shop-card__price { font-size: 10px; letter-spacing: 0.04em; line-height: 1.5; }
  .shop-card__sub { font-size: 10px; }
  .shop-card__btn { display: none; }

  /* collections: category chips stay put while scrolling */
  .cat-nav {
    position: sticky; top: 57px; z-index: 90; margin: 0 0 8px; padding: 10px 20px;
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    background: rgba(10,10,10,0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hairline);
  }
  .cat-nav::-webkit-scrollbar { display: none; }
  .cat-nav a { flex: 0 0 auto; padding: 9px 14px; font-size: 10.5px; white-space: nowrap; }
  .cat { scroll-margin-top: 120px; }

  /* artwork names are readable without hovering */
  .tile__overlay { opacity: 1; background: linear-gradient(to top, rgba(10,10,10,.82), rgba(10,10,10,0) 55%); padding: 10px; }
  .tile__name { font-size: 13px; line-height: 1.2; }
  .tile__price { font-size: 9px; }

  /* footer: compact */
  footer { padding: 48px 20px 24px; margin-top: 64px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer__inner > div:first-child { grid-column: 1 / -1; }
  .footer ul li { margin-bottom: 14px; }
  .footer ul a { display: inline-block; padding: 2px 0; }

  /* painting + product pages */
  .product { padding-left: 20px; padding-right: 20px; }
  .product__img img { width: 100%; max-height: 62svh; object-fit: contain; }
  .work-hero__cta, .product__btn, .cart-add { min-height: 48px; }
  .hero__scroll, .scroll-cue { display: none; }
  .cart-drawer { padding-bottom: env(safe-area-inset-bottom); }
}

@media (max-width: 720px) {
  .coll-top { display: contents; }
  .coll-top .section__head { padding: 104px 20px 0; margin-bottom: 22px !important; }
  .footer__inner { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .footer__inner > div { min-width: 0; overflow-wrap: anywhere; }
  .nav { padding: 12px 14px; }
  .nav__brand { font-size: 15px; gap: 5px; }
  .nav__right { gap: 6px; }
  .nav__cta { padding: 9px 12px; letter-spacing: 0.04em; }
  .cart-btn { width: 38px; height: 38px; }
}
@media (max-width: 720px) {
  div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: minmax(0,1fr) !important; gap: 32px !important; }
  div[style*="grid-template-columns"] > div { min-width: 0; }
  .nav__brand { min-width: 0; }
}
@media (max-width: 360px) { .nav__brand { font-size: 14px; } .nav__cta { padding: 8px 10px; } }
