/* ==========================================================================
   Artwork by HFB — site styles
   ========================================================================== */

:root {
  --bg: #f6f1e9;
  --surface: #fffdf9;
  --surface-2: #efe8dc;
  --ink: #1d1a17;
  --ink-soft: #3a342e;
  --muted: #6b625a;
  --line: #e2d9cc;
  --red: #d23f2a;
  --red-ink: #b8321f;
  --blue: #2348a8;
  --ochre: #e2a52b;
  --green: #2f8a63;
  --shadow: 0 1px 2px rgba(29, 26, 23, .06), 0 8px 24px rgba(29, 26, 23, .08);
  --shadow-lg: 0 2px 6px rgba(29, 26, 23, .08), 0 24px 60px rgba(29, 26, 23, .18);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141210;
    --surface: #1d1a17;
    --surface-2: #262220;
    --ink: #f3ede4;
    --ink-soft: #ddd5ca;
    --muted: #a89f94;
    --line: #35302b;
    --red: #ff6a4f;
    --red-ink: #ff8a73;
    --blue: #8aa6ff;
    --ochre: #f2bf55;
    --green: #5cc595;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #141210;
  --surface: #1d1a17;
  --surface-2: #262220;
  --ink: #f3ede4;
  --ink-soft: #ddd5ca;
  --muted: #a89f94;
  --line: #35302b;
  --red: #ff6a4f;
  --red-ink: #ff8a73;
  --blue: #8aa6ff;
  --ochre: #f2bf55;
  --green: #5cc595;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.brand-name em { font-style: italic; color: var(--red); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px;
  color: var(--ink-soft); transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

.list-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  background: var(--surface); padding: 8px 14px; border-radius: 999px; cursor: pointer;
  text-decoration: none; font-weight: 700; font-size: .92rem; transition: border-color .15s, transform .15s;
}
.list-btn:hover { border-color: var(--ink); }
.list-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--red); color: #fff; font-size: .78rem; font-weight: 800;
}
.list-count[data-count="0"] { background: var(--surface-2); color: var(--muted); }
.list-btn.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  display: inline-grid; place-items: center; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

.header-actions { display: flex; align-items: center; gap: 8px; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .brand-name { font-size: 1.12rem; }
  .list-btn .list-label { display: none; }
}

.mobile-nav {
  display: none; border-top: 1px solid var(--line); background: var(--bg);
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-around; }
.mobile-nav a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--ink-soft); }
.mobile-nav a[aria-current="page"] { color: var(--red); }
@media (max-width: 720px) { .mobile-nav { display: block; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); background: var(--ink); color: var(--bg);
  transition: transform .15s, background .15s, color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
:root[data-theme="dark"] .btn-red { color: #1a0d0a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-red { color: #1a0d0a; } }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--red); }

.hero h1 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(3rem, 9vw, 6.4rem); line-height: .95; margin: 18px 0 22px;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.hero h1 .by { display: block; font-style: italic; font-weight: 400; color: var(--muted); font-size: .42em; letter-spacing: -.01em; margin: .25em 0 .05em; }
.hero h1 .hfb { position: relative; display: inline-block; color: var(--red); }
.hero h1 .hfb svg { position: absolute; left: -4%; bottom: -.16em; width: 108%; height: .32em; overflow: visible; }
.hero h1 .hfb path { stroke: var(--blue); }
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 34em; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 34px 0 0; padding: 0; list-style: none; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.hero-stats span { font-size: .85rem; color: var(--muted); font-weight: 600; }

.hero-wall { position: relative; aspect-ratio: 1 / .92; min-height: 300px; }
.pin {
  position: absolute; background: var(--surface); padding: 10px 10px 12px; border-radius: 4px; box-shadow: var(--shadow-lg);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1); cursor: pointer; border: 0; display: block;
}
.pin img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.pin::after {
  content: ""; position: absolute; top: -9px; left: 50%; width: 64px; height: 20px; margin-left: -32px;
  background: color-mix(in srgb, var(--ochre) 55%, transparent); transform: rotate(-3deg); border-radius: 2px;
}
.pin:hover, .pin:focus-visible { transform: rotate(0) scale(1.04) !important; z-index: 5; }
.pin-1 { width: 46%; height: 64%; left: 2%; top: 4%; transform: rotate(-5deg); }
.pin-2 { width: 50%; height: 44%; right: 0; top: 0; transform: rotate(4deg); }
.pin-3 { width: 52%; height: 44%; left: 14%; bottom: 0; transform: rotate(3deg); z-index: 2; }
.pin-4 { width: 38%; height: 50%; right: 4%; bottom: 4%; transform: rotate(-4deg); }
.pin-3::after { background: color-mix(in srgb, var(--blue) 35%, transparent); }
.pin-4::after { background: color-mix(in srgb, var(--red) 40%, transparent); }

.splash { position: absolute; z-index: -1; pointer-events: none; opacity: .5; }
.splash-1 { width: 460px; right: -170px; top: 60px; color: var(--ochre); opacity: .14; }
.splash-2 { width: 300px; left: -140px; bottom: -120px; color: var(--blue); opacity: .12; }

/* ---------- Section heads ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2, .h2 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.05; margin: 10px 0 0;
}
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 38em; }

/* ---------- Gallery controls ---------- */
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); padding: 8px 15px; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: .9rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.chip .n { font-size: .78rem; opacity: .6; }

.sort { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.sort select {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23857a6f' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  padding: 8px 36px 8px 14px; border-radius: 999px; font: inherit; color: var(--ink); cursor: pointer;
}

/* ---------- Gallery grid (masonry columns filled in reading order by gallery.js) ---------- */
.gallery { display: flex; align-items: flex-start; gap: 24px; }
.gallery-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 720px) { .gallery, .gallery-col { gap: 18px; } }
section[id], [id="your-list"] { scroll-margin-top: 84px; }
@media (max-width: 720px) { section[id], [id="your-list"] { scroll-margin-top: 124px; } }
.card {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.02); transition: transform .25s ease, box-shadow .25s ease;
  animation: rise .5s ease both;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.card-media { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--surface-2); }
.card-media img { width: 100%; height: auto; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-media { overflow: hidden; }
.card-no {
  position: absolute; left: 12px; top: 12px; background: rgba(20, 18, 16, .72); color: #fff; font-size: .74rem; font-weight: 800;
  padding: 4px 9px; border-radius: 999px; letter-spacing: .06em; backdrop-filter: blur(4px);
}
.card-body { padding: 16px 18px 18px; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.card h3 button { all: unset; cursor: pointer; }
.card h3 button:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card h3 button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.price { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; white-space: nowrap; }
.subtitle { margin: 4px 0 0; font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--red-ink); }
.subtitle-lg { margin: -10px 0 0; font-size: 1.15rem; }
.card-meta { margin: 6px 0 14px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.card-actions { display: flex; gap: 8px; }

.add-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .15s;
}
.add-btn:hover { background: var(--ink); color: var(--bg); }
.add-btn[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.add-btn .i-check { display: none; }
.add-btn[aria-pressed="true"] .i-check { display: block; }
.add-btn[aria-pressed="true"] .i-plus { display: none; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Category colors ---------- */
[data-cat="paint"] { --cat: var(--red); }
[data-cat="water"] { --cat: var(--blue); }
[data-cat="mixed"] { --cat: var(--ochre); }
[data-cat="drawing"] { --cat: var(--green); }
.chip .dot, .tag .dot { background: var(--cat, var(--ink)); }

.tag { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tag .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- About / features ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-copy p { color: var(--ink-soft); font-size: 1.06rem; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; color: #fff; }
.feature-icon .icon { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 4px; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; }
.step::before {
  counter-increment: step; content: counter(step); font-family: var(--font-display); font-size: 3.2rem; font-weight: 600;
  line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--red); display: block; margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 1.12rem; }
.step p { margin: 0; color: var(--muted); }

.cta-band {
  margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--ink); color: var(--bg); border-radius: calc(var(--radius) + 6px); padding: clamp(22px, 4vw, 36px);
  position: relative; overflow: hidden;
}
.cta-band h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; margin: 0; line-height: 1.15; }
.cta-band p { margin: 6px 0 0; opacity: .75; }
.cta-band .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner a { font-weight: 700; color: var(--ink); text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden;
}
.lightbox::backdrop { background: rgba(14, 12, 10, .78); backdrop-filter: blur(6px); }
.lightbox[open] { animation: pop .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.lb-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); max-height: calc(100dvh - 32px); }
.lb-media { position: relative; background: #0f0e0c; display: grid; place-items: center; min-height: 320px; }
.lb-media img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 32px); object-fit: contain; }
.lb-info { padding: 30px 28px 26px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.lb-info h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
.lb-price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.lb-price small { font-family: var(--font-body); font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.lb-desc { color: var(--ink-soft); margin: 0; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .92rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.specs dt { color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.specs dd { margin: 0; }
.lb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lb-actions > * { flex: 1 1 220px; white-space: nowrap; }
.lb-actions .add-btn { padding: 12px 16px; }

.lb-close, .lb-nav {
  position: absolute; z-index: 3; width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #1d1a17; box-shadow: var(--shadow);
}
.lb-close:hover, .lb-nav:hover { background: #fff; }
.lb-close { top: 14px; right: 14px; }
.lb-nav { top: 50%; margin-top: -22px; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-counter { position: absolute; left: 14px; bottom: 14px; background: rgba(20, 18, 16, .72); color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.lb-full { position: absolute; right: 14px; bottom: 14px; background: rgba(20, 18, 16, .72); color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.lb-full:hover { background: rgba(20, 18, 16, .9); }

@media (max-width: 860px) {
  .lightbox { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .lb-grid { display: block; height: 100dvh; max-height: none; overflow-y: auto; }
  .lb-media { min-height: 0; }
  .lb-media img { width: 100%; max-height: 58dvh; }
  .lb-info { overflow: visible; padding: 22px 16px 28px; }
  .lb-nav { top: auto; bottom: 14px; margin: 0; }
  .lb-prev { left: auto; right: 66px; }
  .lb-counter { top: 14px; bottom: auto; }
  .lb-full { display: none; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 140%);
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.toast a { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---------- Contact page ---------- */
.contact-hero { padding: clamp(40px, 7vw, 84px) 0 clamp(28px, 4vw, 44px); }
.contact-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 7vw, 4.6rem); line-height: 1; letter-spacing: -.03em; margin: 16px 0 18px; }
.contact-hero h1 em { color: var(--red); }
.contact-hero p { font-size: 1.12rem; color: var(--ink-soft); max-width: 38em; margin: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; padding-bottom: clamp(56px, 8vw, 96px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(20px, 3.5vw, 32px); }
.panel h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin: 0 0 6px; letter-spacing: -.01em; }
.panel > p { color: var(--muted); margin: 0 0 18px; }

.phone-card {
  position: relative; overflow: hidden; background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.phone-card .eyebrow { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.phone-number {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.01em;
  margin: 12px 0 6px; text-decoration: none; line-height: 1.1; color: inherit;
}
.phone-card p { opacity: .78; margin: 0 0 22px; color: inherit; }
.phone-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.phone-card .btn-ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 45%, transparent); }
.phone-card .btn-ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.phone-card .deco { position: absolute; right: -40px; top: -40px; width: 200px; opacity: .18; color: var(--ochre); pointer-events: none; }

.notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--bg) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--bg) 35%, transparent); font-size: .9rem; }
.notice .icon { margin-top: 2px; }

.inq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.inq-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.inq-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.inq-item h3 { font-size: 1rem; margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.25; }
.inq-item p { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.remove-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.remove-btn:hover { color: var(--red); border-color: var(--red); }
.inq-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 4px 0; margin-top: 6px; border-top: 1px solid var(--line); font-weight: 700; }
.inq-total strong { font-family: var(--font-display); font-size: 1.5rem; }
.inq-empty { text-align: center; padding: 26px 12px; border: 1.5px dashed var(--line); border-radius: 14px; color: var(--muted); }
.inq-empty svg { width: 44px; height: 44px; margin: 0 auto 8px; color: var(--muted); }

.msg-label { display: block; font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 24px 0 8px; }
.msg-box { width: 100%; min-height: 140px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font: inherit; font-size: .95rem; background: var(--bg); color: var(--ink); }
.msg-box:focus { outline: 3px solid color-mix(in srgb, var(--blue) 50%, transparent); border-color: var(--blue); }
.msg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.hint { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }

.faq { margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 8px 0 0; color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound h1 { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 9rem); margin: 0; line-height: 1; color: var(--red); }
.notfound p { color: var(--muted); font-size: 1.1rem; }
