/* =========================================================
   WiseWood — Ancient Runes design system
   Тёмная кора + пергамент + резной рунический шрифт.
   ========================================================= */

:root {
  --bark: #1c140d;
  --bark-deep: #120d08;
  --bark-light: #2a1c10;
  --parchment: #e8dcbd;
  --parchment-light: #f1e6cb;
  --ink: #241a12;
  --gold: #c9a86a;
  --gold-bright: #e0bc7e;
  --ember: #a4522c;
  --muted: #a9926e;
  --line: rgba(201, 168, 106, 0.22);
  --shadow: rgba(0, 0, 0, 0.45);
  --rune: "Metamorphous", serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bark);
  color: var(--parchment);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--rune); font-weight: 400; line-height: 1.2; margin: 0 0 0.5em; color: var(--parchment-light); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { max-width: 62ch; color: var(--muted); }

/* ---------- Page transition fade ---------- */
body.page-fade { animation: page-in 0.5s ease; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(180deg, rgba(18,13,8,0.96), rgba(18,13,8,0.85));
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  position: sticky; top: 0; z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.logo { font-family: var(--rune); font-size: 1.7rem; color: var(--gold-bright); letter-spacing: 0.06em; text-transform: uppercase; display: inline-flex; align-items: center; }
.logo img { height: 58px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-nav a { color: var(--parchment); opacity: 0.8; font-size: 0.92rem; letter-spacing: 0.02em; }
.site-nav a:hover, .site-nav a.active { opacity: 1; color: var(--gold-bright); }
.header-icons { display: flex; align-items: center; gap: 18px; }
.header-icons a { opacity: 0.85; display: inline-flex; align-items: center; }
.header-icons a:hover { opacity: 1; }
.icon { width: 20px; height: 20px; display: block; color: currentColor; }
.header-icons .icon { color: var(--gold); }
.cart-badge { position: relative; }
.cart-count {
  position: absolute; top: -8px; right: -10px; background: var(--ember); color: #fff;
  font-size: 0.68rem; border-radius: 50%; width: 17px; height: 17px; display: flex;
  align-items: center; justify-content: center; font-family: var(--sans);
}

/* ---------- Hero ---------- */
.hero {
  padding: 130px 0 200px;
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url('../images/hero-bg-clean.webp') center 35%/cover no-repeat;
  animation: ww-hero-breathe 16s ease-in-out infinite alternate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(10,7,4,0.94) 0%, rgba(10,7,4,0.78) 32%, rgba(10,7,4,0.35) 58%, rgba(10,7,4,0.55) 100%),
    linear-gradient(0deg, var(--bark) 0%, transparent 30%);
}
@keyframes ww-hero-breathe { from { transform: scale(1); } to { transform: scale(1.045); } }
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: center; }
.hero-eyebrow { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { max-width: 13ch; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.hero p.lede { font-size: 1.15rem; color: var(--parchment); font-family: var(--serif); font-style: italic; }
.hero-feature {
  border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
  border: 1px solid var(--line); transform: rotate(1deg);
}
.hero-feature img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }

/* ---------- Page hero (Flutes / Archive / About / Learn / Contact / legal) ---------- */
.page-hero {
  position: relative; padding: 80px 0 60px; text-align: left; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,7,4,0.88), rgba(10,7,4,0.94));
}
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { color: var(--parchment); max-width: 60ch; }

@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 30px; background: var(--ember); color: #fff2e2;
  border: none; border-radius: var(--radius); font-family: var(--sans); font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.02em; cursor: pointer; transition: background 0.15s ease;
}
.btn:hover { background: #833f20; color: #fff; }
.btn .icon { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; margin-left: 2px; }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--line); }
.btn-outline:hover { background: var(--bark-light); color: var(--gold-bright); }
.btn-full { width: 100%; text-align: center; }
.btn[disabled], .btn.disabled { background: #4a4038; cursor: not-allowed; opacity: 0.7; }

/* ---------- Parchment panel (product grids sit on this) ---------- */
.parchment {
  background-image: url('../parchment.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: var(--ink);
  padding: 60px 60px 70px;
  margin: -140px auto 0;
  max-width: 1120px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.5));
}
.parchment h2 { color: var(--ink); font-family: var(--rune); }
.parchment p { color: #5c4c34; }

.parchment-grid { display: grid; grid-template-columns: 1fr 260px; gap: 20px 50px; align-items: start; }
.parchment-links { border-left: 1px solid rgba(92,76,52,0.3); padding-left: 40px; }
.parchment-links .feature-link { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 26px; text-decoration: none; }
.parchment-links .feature-link .icon { color: #8a6a2f; width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.parchment-links .feature-link strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.05rem; }
.parchment-links .feature-link span { display: block; color: #7a6742; font-size: 0.85rem; }
.parchment-links .feature-link:hover strong { color: var(--ember); }

/* ---------- Product grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; margin-top: 28px; }

.card { background: var(--bark-light); border: 1px solid #6f4b24; border-radius: var(--radius); overflow: hidden; transition: transform 0.15s ease, box-shadow 0.2s ease; box-shadow: 0 14px 26px -16px rgba(0,0,0,0.6); }
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -14px rgba(0,0,0,0.7); }
.card a.card-link { color: inherit; text-decoration: none; display: block; }
.card-image {
  aspect-ratio: 3/4; position: relative; overflow: hidden;
  background-color: #120d08; background-size: 100% 100%; background-repeat: no-repeat; background-position: center;
  padding: 5.2% 6.8%;
}
.card-image--wood { background-image: url('../frames/wood-frame.svg'); }
.card-image--bamboo { background-image: url('../frames/bamboo-frame.svg'); }
.card-image--petg { background-image: url('../frames/petg-frame.svg'); }
.card-image--cajon { background-image: url('../frames/cajon-frame.svg'); }
.card-image--talharpa { background-image: url('../frames/talharpa-frame.svg'); }
.card-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.card-image .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--serif); font-style: italic; background: #1b130c; border-radius: 3px; }
.badge-img { position: absolute; top: 10px; left: 10px; height: 24px; width: auto; z-index: 2; }
.badge-img.badge-corner-right { left: auto; right: 10px; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 0.7rem; padding: 3px 9px; border-radius: 2px; font-family: var(--sans); font-weight: 600; letter-spacing: 0.03em; }
.badge-petg { background: #6b7a5a; color: #fff; }
.badge-sale { background: var(--ember); color: #fff; }
.card-body { padding: 16px 18px 20px; }
.card-body h3 { color: var(--parchment-light); font-family: var(--rune); font-size: 1rem; margin-bottom: 4px; letter-spacing: 0.02em; }
.card-key { color: var(--gold); font-size: 0.8rem; margin-bottom: 8px; }
.card-price { font-family: var(--serif); font-size: 1.25rem; color: var(--gold-bright); }
.card-price .was { text-decoration: line-through; color: var(--muted); font-size: 0.95rem; margin-right: 6px; }
.tag-sold, .tag-madeorder { display: inline-block; margin-top: 8px; font-size: 0.75rem; padding: 3px 9px; border-radius: 2px; border: 1px solid var(--line); color: var(--muted); }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.filters select {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bark-light); color: var(--parchment); font-family: var(--sans); font-size: 0.9rem;
}

/* ---------- Product page ---------- */
.product-page { padding: 48px 0 90px; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.gallery-main { aspect-ratio: 1/1; background: var(--bark-light); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius); cursor: pointer; border: 2px solid transparent; opacity: 0.75; }
.gallery-thumbs img:hover, .gallery-thumbs img.active { border-color: var(--gold); opacity: 1; }

.product-info .price { font-family: var(--serif); font-size: 2rem; color: var(--gold-bright); margin: 6px 0 4px; }
.product-info .price .was { text-decoration: line-through; color: var(--muted); font-size: 1.2rem; margin-right: 10px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.spec-table td { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.spec-table td:first-child { color: var(--muted); width: 40%; }
.spec-table td:last-child { color: var(--parchment-light); }
.description { white-space: pre-line; margin: 24px 0; color: var(--parchment); }
.legal-content {
  background: var(--parchment); color: var(--ink); border-radius: 6px;
  padding: 44px 50px; max-width: 800px; margin: 0 auto; box-shadow: 0 20px 40px -20px var(--shadow);
}
.legal-content h1 { color: var(--ink); }
.legal-content .description { color: #4a3a20; }
.breadcrumb { margin-bottom: 26px; font-size: 0.88rem; color: var(--muted); }

.qty-row { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.qty-row input { width: 64px; padding: 9px; text-align: center; border: 1px solid var(--line); background: var(--bark-light); color: var(--parchment); border-radius: var(--radius); }

.petg-benefits { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 26px; }
.petg-benefits ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.petg-benefits li { padding-left: 22px; position: relative; color: var(--muted); font-size: 0.92rem; }
.petg-benefits li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: 0.6rem; top: 6px; }
.petg-benefits strong { color: var(--parchment-light); }

.youtube-card { display: flex; align-items: center; gap: 14px; background: var(--bark-light); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 20px 0; }
.youtube-card .play { width: 40px; height: 40px; border-radius: 50%; background: #c4302b; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Interest / notify form ---------- */
.notify-form { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.notify-form input[type=email] { flex: 1; min-width: 180px; padding: 11px 14px; border: 1px solid var(--line); background: var(--bark-light); color: var(--parchment); border-radius: var(--radius); }

/* ---------- Cart / checkout ---------- */
.cart-page, .checkout-page { padding: 48px 0 90px; }
.cart-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.cart-table th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.cart-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); }
.cart-table input[type=number] { width: 56px; padding: 6px; text-align: center; background: var(--bark-light); border: 1px solid var(--line); color: var(--parchment); border-radius: var(--radius); }
.cart-total-row { text-align: right; font-family: var(--serif); font-size: 1.4rem; color: var(--gold-bright); padding: 20px 12px 0; }
.remove-link { color: var(--ember); font-size: 0.85rem; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--parchment-light); font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.96rem; background: var(--bark-light); color: var(--parchment);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.payment-choice { display: flex; gap: 16px; margin: 20px 0; }
.payment-choice label { flex: 1; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; text-align: center; }
.payment-choice input { margin-right: 8px; }

.notice { padding: 14px 18px; border-radius: var(--radius); margin: 0 0 22px; font-size: 0.94rem; }
.notice-success { background: rgba(107,122,90,0.18); color: #b7c79f; border: 1px solid rgba(107,122,90,0.4); }
.notice-error { background: rgba(164,82,44,0.16); color: #e2a685; border: 1px solid rgba(164,82,44,0.4); }
.notice-region { background: rgba(201,168,106,0.14); color: var(--gold-bright); border: 1px solid var(--line); }

/* ---------- About / quote section ---------- */
.about-section {
  position: relative; padding: 110px 0; text-align: center; overflow: hidden;
  background: url('../images/mountain-bg.webp') center/cover no-repeat;
}
.about-section::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bark) 0%, rgba(10,7,4,0.75) 30%, rgba(10,7,4,0.75) 70%, var(--bark) 100%); }
.about-section .container { position: relative; }
.about-section blockquote { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--gold-bright); max-width: 640px; margin: 0 auto 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bark-deep); border-top: 1px solid var(--line); padding: 50px 0 28px; font-size: 0.88rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: var(--gold-bright); font-family: var(--rune); font-size: 0.95rem; margin-bottom: 14px; font-weight: 400; letter-spacing: 0.03em; }
.footer-col a { display: block; color: var(--muted); margin-bottom: 9px; font-size: 0.85rem; }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 14px; }
.footer-social .icon { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; text-align: center; }
.footer-links a { color: var(--muted); margin-right: 18px; }
.footer-links a:hover { color: var(--gold); }

/* ---------- Cookie banner ---------- */
#cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; max-width: 480px;
  background: var(--bark-light); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: 0 12px 30px var(--shadow); z-index: 500; font-size: 0.88rem;
}
#cookie-banner p { color: var(--parchment); margin-bottom: 12px; }
#cookie-banner .actions { display: flex; gap: 10px; }
#cookie-banner button { flex: 1; padding: 9px 0; border-radius: var(--radius); border: 1px solid var(--line); cursor: pointer; font-family: var(--sans); font-size: 0.85rem; }
#cookie-banner .accept { background: var(--ember); color: #fff; border: none; }
#cookie-banner .decline { background: transparent; color: var(--muted); }

/* ---------- Admin (Backstage) ---------- */
.admin-body { background: #f4ecd8; color: var(--ink); }
.admin-bar { background: var(--bark-deep); color: var(--parchment); padding: 16px 0; border-bottom: 3px solid var(--ember); }
.admin-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.admin-bar a { color: var(--parchment); opacity: 0.85; margin-left: 18px; font-size: 0.88rem; }
.admin-wrap { padding: 36px 0 80px; }
.admin-card { background: #fff; border: 1px solid #d9c9a0; border-radius: var(--radius); padding: 28px 30px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 24px 0 34px; }
.stat-card { background: #fff; border: 1px solid #d9c9a0; border-radius: var(--radius); padding: 18px 20px; }
.stat-card .num { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); }
.stat-card .label { font-size: 0.82rem; color: #7a6742; }
table.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
table.admin-table th, table.admin-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid #ecdfc0; font-size: 0.9rem; }
table.admin-table th { background: #f4ecd8; color: #5c4c2f; }
table.admin-table img.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius); }
.status-pill { font-size: 0.72rem; padding: 3px 9px; border-radius: 10px; background: #eee; color: #555; }
.admin-actions { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.login-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.admin-body .form-group input, .admin-body .form-group textarea, .admin-body .form-group select {
  background: #fff; color: var(--ink); border: 1px solid #d9c9a0;
}
.admin-body .form-group label { color: #5c4c2f; }
.admin-body h1, .admin-body h2, .admin-body h3 { color: #4a3a20; }

/* ---------- Lightbox ---------- */
#lightbox { position: fixed; inset: 0; background: rgba(10,7,4,0.94); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
#lightbox .close { position: absolute; top: 22px; right: 30px; color: var(--parchment); font-size: 2rem; cursor: pointer; }

/* ---------- Motion: reveal-on-scroll, hover lift, intro ---------- */
.ww-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.ww-reveal.is-visible { opacity: 1; transform: none; }
.ww-hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.ww-hover-lift:hover { transform: translateY(-4px); }

.ww-intro {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, rgba(92,59,26,0.28), transparent 45%), var(--bark-deep);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.ww-intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.ww-intro__flute { width: min(78vw, 900px); filter: drop-shadow(0 18px 40px rgba(0,0,0,0.65)); animation: ww-flute-enter 1.35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ww-flute-enter {
  from { opacity: 0; transform: translate3d(18vw, 12vh, 0) rotate(-7deg) scale(0.82); }
  55% { opacity: 1; }
  to { opacity: 1; transform: translate3d(0,0,0) rotate(-1deg) scale(1); }
}
.ww-intro__mark { position: absolute; bottom: 11%; color: var(--gold); font: 600 11px/1.2 Georgia, serif; letter-spacing: 0.28em; text-transform: uppercase; }

.rune-divider { display: block; width: 160px; height: auto; margin: 0 auto; color: var(--gold); opacity: 0.8; }

@media (prefers-reduced-motion: reduce) {
  .ww-reveal { opacity: 1; transform: none; transition: none; }
  .ww-intro__flute { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 90px 0 120px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-feature { transform: none; }
  .parchment { padding: 30px 22px; margin-top: -80px; background-size: 100% 100%; }
  .parchment-grid { grid-template-columns: 1fr; }
  .parchment-links { border-left: none; border-top: 1px solid rgba(92,76,52,0.3); padding-left: 0; padding-top: 26px; margin-top: 10px; }
  .product-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .payment-choice { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Wide storefront: decorative sections occupy the viewport; content stays readable. */
body { background: linear-gradient(rgba(16, 12, 8, .9), rgba(16, 12, 8, .9)), url('../images/forest-bg.webp') center top / cover fixed; }
.container { width: min(100%, 1680px); max-width: none; padding-inline: clamp(20px, 4.5vw, 76px); }
.site-header { background: rgba(16, 12, 8, .88); backdrop-filter: blur(12px); }
.site-header .container { min-height: 70px; }
.logo img { height: clamp(68px, 8vw, 102px); }
.site-nav a { font-family: var(--serif); font-size: 1.15rem; }
.hero { min-height: clamp(550px, 58vw, 780px); padding: clamp(110px, 13vw, 180px) 0 190px; background: #15100c; }
.hero-bg { background-position: center 48%; }
.hero::before { background: linear-gradient(90deg, rgba(9,7,4,.83), rgba(9,7,4,.25) 65%, rgba(9,7,4,.2)), linear-gradient(0deg, #15100c 0%, transparent 40%); }
.hero::after { content: ''; position: absolute; z-index: -1; right: 0; bottom: 2%; width: min(84vw, 1400px); height: min(37vw, 450px); background: url('../images/hero-flute-feature.webp') center bottom / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%), linear-gradient(0deg, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%); opacity: .9; pointer-events: none; }
.hero .hero-layout { display: block; }
.hero-layout > div { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { max-width: none; font-family: var(--serif); font-size: clamp(3.1rem, 5.5vw, 6rem); line-height: 1.02; }
.hero-eyebrow { font-family: var(--serif); letter-spacing: .19em; }
.hero p.lede { max-width: 740px; font-size: clamp(1.12rem, 1.7vw, 1.5rem); }
.hero .btn { background: rgba(17,12,7,.83); border: 1px solid var(--gold); color: var(--parchment-light); font-family: var(--serif); text-transform: uppercase; letter-spacing: .12em; }
.hero .btn:hover { background: var(--bark-light); }
.page-hero { isolation: isolate; }
.page-hero::before { background: linear-gradient(90deg, rgba(10,7,4,.86), rgba(10,7,4,.45)), linear-gradient(0deg, var(--bark), transparent); }
.page-hero-bg { z-index: -2; }
.collection-wrap { position: relative; z-index: 2; }
.parchment { max-width: none; width: 100%; margin: -125px auto 0; padding: clamp(48px, 5vw, 90px) clamp(32px, 5vw, 85px) clamp(58px, 5vw, 88px); background-color: #c8a67c; background-image: url('../parchment.png'); background-position: center; background-size: 100% 100%; }
.parchment-grid { grid-template-columns: minmax(0, 1fr) minmax(220px, 26%); gap: clamp(24px, 3vw, 52px); }
.parchment-grid > div:first-child { min-width: 0; position: relative; }
.parchment h2 { font-family: var(--serif); font-size: clamp(2.2rem, 3.2vw, 3.8rem); }
.parchment .view-all { margin: 20px 0 0; }
.parchment .view-all a { color: #382719; text-decoration: underline; text-underline-offset: 4px; }
.parchment .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 24px); }
.parchment .card { background: rgba(238,217,181,.22); border: 1px solid rgba(84,49,23,.25); box-shadow: none; overflow: visible; }
.parchment .card-body { padding: 12px 12px 18px; }
.parchment .card-body h3 { font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.45rem); color: var(--ink); }
.parchment .card-key, .parchment .card-price { color: #523219; }
.parchment .card-price .was { color: #765c40; }
.parchment-links { padding-left: clamp(18px, 3vw, 42px); border-color: rgba(61,39,20,.38); }
.parchment-links .feature-link { align-items: center; border-bottom: 1px solid rgba(61,39,20,.2); padding-bottom: 20px; }
.parchment-links .feature-link .icon { width: 36px; height: 36px; flex: 0 0 36px; }
.parchment-links .feature-link strong { font-size: clamp(1rem, 1.5vw, 1.35rem); }
.card-image { background-image: none; background-color: #23170e; padding: 0; isolation: isolate; }
.card-image::after { content: ''; position: absolute; inset: 0; z-index: 2; background-position: center; background-repeat: no-repeat; background-size: 100% 100%; pointer-events: none; }
.card-image--wood::after { background-image: url('../frames/wood-frame.svg'); }
.card-image--bamboo::after { background-image: url('../frames/bamboo-frame.svg'); }
.card-image--petg::after { background-image: url('../frames/petg-frame.svg'); }
.card-image--cajon::after { background-image: url('../frames/cajon-frame.svg'); }
.card-image--talharpa::after { background-image: url('../frames/talharpa-frame.svg'); }
.card-image .product-photo, .card-image .placeholder { position: absolute; inset: 5% 6.8%; width: 86.4%; height: 90%; object-fit: cover; border-radius: 2px; }
.card-image .badge-img { position: absolute; z-index: 3; top: 9%; left: 9%; width: 65px; height: auto; }
.card-image .badge-sale { z-index: 3; }
.about-section { background-position: center 55%; }
@media (max-width: 1100px) {
  .parchment .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .site-nav { gap: 14px; }
}
@media (max-width: 700px) {
  .container { padding-inline: 18px; }
  .site-header .container { gap: 8px; }
  .logo img { height: 62px; }
  .site-nav { order: 3; width: 100%; justify-content: center; gap: 8px 15px; }
  .site-nav a { font-size: 1rem; }
  .hero { min-height: 590px; padding: 88px 0 150px; }
  .hero::after { width: 100%; height: 245px; bottom: 9%; }
  .hero h1 { max-width: 12ch; }
  .parchment { padding: 46px 29px 55px; margin-top: -75px; }
  .parchment-grid { grid-template-columns: 1fr; }
  .parchment-links { border-left: 0; border-top: 1px solid rgba(61,39,20,.3); padding: 22px 0 0; }
  .parchment .grid { gap: 12px; }
  .parchment .card-body { padding: 8px 8px 14px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 420px) { .parchment .grid { grid-template-columns: 1fr; } }

/* v5: one coherent hero scene, high-resolution paper and exact live brand text. */
.site-header { background: rgba(12, 9, 6, .68); border-bottom-color: rgba(213, 174, 105, .22); }
.site-header .container { min-height: 112px; gap: clamp(14px, 2vw, 32px); }
.logo { width: clamp(260px, 29vw, 415px); height: clamp(95px, 10.5vw, 148px); position: relative; flex: 0 0 auto; color: #ead2a2; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo span { position: absolute; left: 50%; top: 59%; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--rune); font-size: clamp(24px, 2.8vw, 42px); letter-spacing: .065em; line-height: 1; color: #f2dfb6; text-shadow: 0 2px 2px #211308, 0 0 10px #2b1a0d; }
.header-icons .icon { width: 33px; height: 33px; }
.cart-count { right: -6px; top: -6px; }
.hero { min-height: clamp(600px, 55vw, 780px); padding-top: clamp(130px, 12vw, 175px); background: #15100c; }
.hero-bg { background: url('../images/hero-complete-v5.webp') center center / cover no-repeat; animation: none; }
.hero::after { display: none; }
.hero::before { background: linear-gradient(90deg, rgba(7, 5, 3, .56), rgba(7, 5, 3, .13) 58%, transparent), linear-gradient(0deg, rgba(12, 9, 6, .5), transparent 36%); }
.hero-layout > div { max-width: 930px; }
.hero h1 { max-width: 15ch; }
.parchment { background: none; border: clamp(26px, 3vw, 54px) solid transparent; border-image: url('../parchment-v5.webp') 115 fill / clamp(26px, 3vw, 54px) stretch; padding: clamp(5px, 1vw, 18px) clamp(18px, 2.4vw, 42px) clamp(14px, 2.5vw, 40px); filter: drop-shadow(0 28px 28px rgba(0, 0, 0, .45)); }
.ww-fog { position: fixed; inset: 0; overflow: hidden; z-index: 9999; pointer-events: none; background: rgba(210, 208, 190, .16); animation: ww-fog-clear 1.55s ease-in forwards; }
.ww-fog span { position: absolute; width: 95vw; height: 75vh; border-radius: 50%; background: radial-gradient(ellipse, rgba(226, 225, 209, .82), rgba(188, 193, 176, .43) 48%, transparent 72%); filter: blur(50px); animation: ww-fog-drift 1.55s ease-out both; }
.ww-fog span:nth-child(1) { left: -25%; top: -20%; }
.ww-fog span:nth-child(2) { right: -24%; top: 20%; animation-delay: .09s; }
.ww-fog span:nth-child(3) { left: 5%; bottom: -36%; animation-delay: .16s; }
.ww-fog.is-leaving { animation: ww-fog-arrive .65s ease-in forwards; }
.ww-fog.is-leaving span { animation: ww-fog-return .65s ease-in forwards; }
@keyframes ww-fog-clear { 0% { opacity: 1; } 55% { opacity: .83; } 100% { opacity: 0; visibility: hidden; } }
@keyframes ww-fog-drift { from { opacity: 1; transform: translateX(0) scale(1); } to { opacity: 0; transform: translateX(15vw) scale(1.4); } }
@keyframes ww-fog-arrive { from { opacity: 0; visibility: visible; } to { opacity: 1; visibility: visible; } }
@keyframes ww-fog-return { from { opacity: 0; transform: translateX(15vw) scale(1.35); } to { opacity: 1; transform: translateX(0) scale(1); } }
@media (max-width: 860px) {
 .site-header .container { min-height: 90px; }
 .logo { width: clamp(220px, 38vw, 320px); height: 110px; }
 .logo span { font-size: clamp(22px, 3.5vw, 33px); }
 .parchment { padding: 10px 16px 24px; }
}
@media (max-width: 700px) {
 .site-header .container { min-height: 80px; }
 .logo { width: 240px; height: 95px; }
 .logo span { font-size: 24px; }
 .hero { min-height: 640px; padding-top: 90px; }
 .hero-bg { background-position: 58% center; }
 .hero::before { background: linear-gradient(180deg, rgba(7,5,3,.8), rgba(7,5,3,.12) 75%); }
 .parchment { border-width: 26px; border-image-width: 26px; padding: 3px 8px 16px; }
}
@media (prefers-reduced-motion: reduce) { .ww-fog, .ww-fog span { animation: none !important; opacity: 0; visibility: hidden; } }

/* v6: carved wood navigation and landscape instrument displays. */
.site-nav { gap: clamp(5px, .65vw, 12px); }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px clamp(11px, 1.25vw, 21px);
  color: #d7bd94; opacity: 1; font-family: var(--serif); font-size: clamp(1.02rem, 1.18vw, 1.26rem);
  letter-spacing: .025em; white-space: nowrap; border: 1px solid rgba(202,151,79,.34); border-radius: 3px;
  background: linear-gradient(100deg, rgba(63,37,18,.9), rgba(42,25,13,.97) 45%, rgba(79,45,22,.88)),
              repeating-linear-gradient(4deg, transparent 0 5px, rgba(225,168,94,.08) 6px 7px);
  box-shadow: inset 0 1px rgba(248,200,125,.18), inset 0 -3px 5px rgba(5,3,2,.68), 0 2px 5px rgba(0,0,0,.4);
  text-shadow: 1px 1px 1px #090704, -1px -1px 1px rgba(246,197,125,.22);
  transition: color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.site-nav a::before { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(228,174,102,.12); border-radius: 1px; pointer-events: none; }
.site-nav a:hover, .site-nav a.active, .site-nav a:focus-visible {
  opacity: 1; color: #ffebbf; border-color: #e9bd72; transform: translateY(-2px);
  box-shadow: inset 0 1px rgba(255,223,158,.45), inset 0 -2px 4px rgba(7,4,2,.58), 0 0 8px rgba(255,202,98,.55), 0 0 20px rgba(91,216,218,.32);
  text-shadow: 0 0 8px rgba(255,222,147,.9), 0 1px 1px #160d07;
}
.site-nav a.active { border-bottom-color: #f0c477; }
.grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(18px, 2vw, 32px); }
.parchment .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 30px); }
.card, .parchment .card { --frame-glow: #ffc975; --frame-glow-soft: rgba(255, 188, 86, .58); border: 1px solid rgba(171, 121, 59, .55); border-radius: 4px; transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.card:has(.card-image--bamboo) { --frame-glow: #d7e89e; --frame-glow-soft: rgba(167, 211, 99, .44); }
.card:has(.card-image--petg) { --frame-glow: #a6e9e5; --frame-glow-soft: rgba(100, 223, 225, .5); }
.card:has(.card-image--talharpa) { --frame-glow: #efd0e9; --frame-glow-soft: rgba(217, 154, 206, .5); }
.card-image, .gallery-main.card-image { aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: #21170f; }
.card-image::after { background-size: 100% 100%; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); transition: filter .24s ease; }
.card-image .product-photo, .card-image .placeholder { inset: 3.4% 2.4%; width: 95.2%; height: 93.2%; object-fit: contain; background: #241a13; }
.card-image .badge-img { top: 7%; left: 4%; width: clamp(62px, 5.8vw, 94px); }
.card:hover, .card:focus-within { transform: translateY(-5px); border-color: var(--frame-glow); box-shadow: 0 0 0 1px var(--frame-glow), 0 0 14px var(--frame-glow-soft), 0 0 30px rgba(97,212,218,.22), 0 16px 28px rgba(0,0,0,.28); }
.card:hover .card-image::after, .card:focus-within .card-image::after { filter: drop-shadow(0 0 5px var(--frame-glow)) drop-shadow(0 0 11px var(--frame-glow-soft)); }
.gallery-main.card-image { max-width: 100%; cursor: zoom-in; }
.gallery-main.card-image::after { pointer-events: none; }
.gallery-thumbs img { width: 105px; height: 59px; object-fit: contain; background: #251c14; }
.gallery-thumbs img:hover, .gallery-thumbs img.active { border-color: var(--gold); box-shadow: 0 0 9px rgba(230,181,101,.5); opacity: 1; }
@media (max-width: 1250px) {
 .site-header .container { flex-wrap: wrap; justify-content: center; }
 .site-nav { justify-content: center; }
 .header-icons { margin-left: auto; }
}
@media (max-width: 800px) {
 .site-nav { order: 3; width: 100%; gap: 7px; }
 .site-nav a { min-height: 39px; padding: 6px 11px; font-size: 1rem; }
 .parchment .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
 .parchment .grid, .grid { grid-template-columns: 1fr; }
 .site-nav { gap: 5px; }
 .site-nav a { padding: 5px 9px; font-size: .93rem; }
 .header-icons { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
 .site-nav a, .card, .card-image::after { transition: none !important; }
}

/* v7: mahogany artwork, carved sign and header integrated with the hero. */
.is-home .site-header {
  position: absolute; left: 0; right: 0; top: 0; width: 100%;
  background: linear-gradient(180deg, rgba(9, 7, 5, .72), rgba(9, 7, 5, .28) 72%, transparent);
  border-bottom: 0; backdrop-filter: none;
}
.is-home .hero { padding-top: clamp(225px, 18vw, 310px); }
.logo { width: clamp(300px, 29vw, 465px); height: clamp(108px, 10vw, 160px); filter: drop-shadow(0 7px 8px rgba(0,0,0,.55)); transition: filter .27s ease, transform .27s ease; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo:hover, .logo:focus-visible { transform: translateY(-2px); filter: drop-shadow(0 0 7px rgba(248,205,125,.9)) drop-shadow(0 0 21px rgba(105,225,220,.5)); }
.site-nav { gap: clamp(0px, .25vw, 5px); }
.site-nav a {
  z-index: 0; min-height: 64px; min-width: 92px; padding: 13px clamp(17px, 1.25vw, 23px);
  background: none; border: 0; border-radius: 0; box-shadow: none; transform: none;
  font-family: var(--serif); font-size: clamp(1rem, 1.15vw, 1.23rem);
  font-weight: 600; color: #e6cda0; text-shadow: 0 1px 2px #160b07, 0 -1px rgba(253,220,159,.22);
}
.site-nav a::before {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background: url('../nav-plank-v7.webp') center / 100% 100% no-repeat;
  border: 0; border-radius: 0; opacity: .97;
  transition: filter .25s ease, transform .25s ease;
}
.site-nav a:hover, .site-nav a.active, .site-nav a:focus-visible {
  color: #ffedc5; border: 0; transform: none; box-shadow: none;
  text-shadow: 0 0 8px rgba(255,228,169,.9), 0 1px 2px #160b07;
}
.site-nav a:hover::before, .site-nav a:focus-visible::before { filter: drop-shadow(0 0 7px #f3c879) drop-shadow(0 0 15px rgba(104,224,221,.58)); transform: translateY(-2px); }
.site-nav a.active::before { filter: drop-shadow(0 0 5px rgba(243,200,121,.65)); }
.header-icons .cart-badge { min-width: 50px; min-height: 50px; justify-content: center; }
.header-icons .cart-badge .icon { width: 47px; height: 47px; }
.header-icons .cart-badge:hover .icon, .header-icons .cart-badge:focus-visible .icon { filter: drop-shadow(0 0 9px rgba(248,210,135,.9)); }
.cart-count { width: 20px; height: 20px; font-size: .75rem; top: 0; right: 0; }
.card-image { background-color: #22150f; }
.card-image--wood::after, .card-image--bamboo::after, .card-image--petg::after,
.card-image--cajon::after, .card-image--talharpa::after {
  background-image: url('../frames/mahogany-frame-v7.webp');
}
.card-image::after { background-size: 100% 100%; }
.card:hover .card-image::after, .card:focus-within .card-image::after {
  filter: drop-shadow(0 0 8px rgba(255,199,119,.95)) drop-shadow(0 0 20px rgba(111,221,216,.68));
}
/* Three long wisps move at different depths, then fade to reveal the page. */
.ww-fog { background: transparent; animation: ww-mist-clear 1.9s ease-out forwards; }
.ww-fog span {
  width: 155vw; height: 67vh; border-radius: 50%;
  background: radial-gradient(ellipse 48% 36% at 20% 56%, rgba(218,221,207,.48), transparent 100%),
              radial-gradient(ellipse 43% 30% at 58% 46%, rgba(228,228,216,.48), transparent 100%),
              radial-gradient(ellipse 30% 24% at 84% 60%, rgba(196,205,196,.4), transparent 100%);
  filter: blur(27px); mix-blend-mode: screen;
  animation: ww-mist-drift 1.9s cubic-bezier(.12,.7,.4,1) both;
}
.ww-fog span:nth-child(1) { left: -38%; top: -18%; }
.ww-fog span:nth-child(2) { right: -50%; top: 16%; animation-delay: .1s; }
.ww-fog span:nth-child(3) { left: -16%; bottom: -38%; animation-delay: .18s; }
.ww-fog.is-leaving { animation: ww-mist-gather .78s ease-in forwards; }
.ww-fog.is-leaving span { animation: ww-mist-return .78s ease-in forwards; }
@keyframes ww-mist-clear { 0% { opacity: .95; visibility: visible; } 50% { opacity: .68; } 100% { opacity: 0; visibility: hidden; } }
@keyframes ww-mist-drift { from { opacity: .95; transform: translateX(-5vw) scale(1); } to { opacity: 0; transform: translateX(17vw) scale(1.18); } }
@keyframes ww-mist-gather { from { opacity: 0; visibility: visible; } to { opacity: .94; visibility: visible; } }
@keyframes ww-mist-return { from { opacity: 0; transform: translateX(12vw) scale(1.18); } to { opacity: .95; transform: translateX(0) scale(1); } }
@media (max-width: 1250px) {
 .site-header .container { justify-content: space-between; }
 .site-nav { order: 3; width: 100%; justify-content: center; }
 .is-home .hero { padding-top: clamp(255px, 26vw, 330px); }
}
@media (max-width: 700px) {
 .logo { width: min(68vw, 300px); height: 106px; }
 .site-nav a { min-width: 73px; min-height: 52px; padding: 8px 12px; font-size: .98rem; }
 .header-icons .cart-badge .icon { width: 40px; height: 40px; }
 .is-home .hero { min-height: 710px; padding-top: 270px; }
}
@media (max-width: 420px) {
 .site-nav a { min-width: 65px; min-height: 46px; padding: 7px 9px; font-size: .9rem; }
 .is-home .hero { padding-top: 285px; }
}
@media (prefers-reduced-motion: reduce) { .logo, .site-nav a::before { transition: none !important; } }

/* v8: accurate hero flute, material-specific frames and sharp page photographs. */
body { background: #15100c; }
.hero-bg { background-image: url('../images/hero-complete-v8.webp'); background-position: center center; }
.page-hero { min-height: clamp(270px, 25vw, 380px); display: flex; align-items: center; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero-bg { background-size: cover; background-repeat: no-repeat; background-position: center center; }
.page-hero::before { background: linear-gradient(90deg, rgba(10,7,4,.78), rgba(10,7,4,.16) 70%), linear-gradient(0deg, rgba(16,12,8,.72), transparent 55%); }
.card-image--wood::after, .card-image--cajon::after, .card-image--talharpa::after {
  background-image: url('../frames/mahogany-frame-v7.webp');
}
.card-image--bamboo::after { background-image: url('../frames/bamboo-rope-v8.webp'); }
.card-image--petg::after { background-image: url('../frames/petg-modern-v8.svg'); }
.card:has(.card-image--bamboo) { --frame-glow: #ead29a; --frame-glow-soft: rgba(245,199,111,.55); }
.card:has(.card-image--petg) { --frame-glow: #9ae7e3; --frame-glow-soft: rgba(75,212,218,.63); }
.parchment-links .feature-link .icon {
  width: 54px; height: 54px; flex: 0 0 54px; padding: 12px;
  color: #e9ce9c; background: #1b140e; border: 2px solid #aa8149; border-radius: 50%;
  box-shadow: 0 2px 5px rgba(35,19,8,.4), inset 0 0 0 2px rgba(231,190,122,.22);
}
.parchment-links .feature-link:hover .icon { color: #fff0cb; box-shadow: 0 0 12px rgba(229,181,99,.7), inset 0 0 0 2px rgba(231,190,122,.4); }
.parchment-links .feature-link--pending { cursor: default; }
.parchment-links .feature-link--pending span span { color: #796a55; }
.about-section {
  min-height: 320px; display: grid; place-items: center; padding: 72px 0;
  background: url('../images/mountain-v8.webp') center 53% / cover no-repeat;
}
.about-section::before { background: linear-gradient(180deg, #15100c 0%, rgba(12,9,6,.42) 26%, rgba(12,9,6,.38) 73%, #15100c 100%); }
.about-section blockquote { max-width: 760px; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.35; color: #f3e2c3; text-shadow: 0 3px 12px rgba(0,0,0,.85); }
.about-section .rune-divider { width: clamp(220px, 31vw, 380px); color: #e9be76; filter: drop-shadow(0 2px 4px rgba(0,0,0,.8)); }
.site-nav a.active::after, .site-nav a:focus-visible::after {
  content: ''; position: absolute; bottom: 6px; left: 32%; width: 36%; height: 2px;
  background: #f3d399; box-shadow: 0 0 5px rgba(255,225,155,.9);
}
@media (max-width: 700px) {
 .page-hero { min-height: 250px; padding: 55px 0; }
 .page-hero-bg { background-position: 60% center; }
 .about-section { min-height: 280px; }
}

/* v9: continuous scenery, pale carved timber and grounded transitions. */
.home-scene {
  position: relative; isolation: isolate; padding-bottom: 105px;
  background: linear-gradient(to bottom, transparent 24%, rgba(15,12,8,.12) 48%, #15100c 100%),
              url('../images/hero-complete-v9.webp') center top / 100% auto no-repeat,
              url('../images/forest-v8.webp') center bottom / cover no-repeat;
}
.home-scene .hero { background: transparent; border: 0; }
.home-scene .hero-bg { display: none; }
.home-scene .hero::before { background: linear-gradient(90deg, rgba(8,6,4,.67), rgba(8,6,4,.18) 63%, transparent); }
.home-scene .collection-wrap { z-index: 1; }
.page-scene {
  isolation: isolate; min-height: 82vh; padding-bottom: 45px;
  background: linear-gradient(to bottom, rgba(11,9,6,.22), rgba(15,12,8,.32) 32%, #15100c 100%),
              var(--scene-image) center top / cover no-repeat;
}
.page-scene .page-hero { border: 0; }
.page-scene .page-hero-bg { display: none; }
.page-scene .page-hero::before { background: linear-gradient(90deg, rgba(8,6,4,.76), rgba(8,6,4,.24) 75%); }
.site-nav a {
  min-height: 67px; transform-origin: 50% 3%;
  animation: ww-plank-sway 7s ease-in-out infinite alternate;
  color: #352012; text-shadow: 0 1px rgba(255,239,195,.38), 0 -1px rgba(65,37,20,.26);
}
.site-nav a:nth-child(2n) { animation-delay: -2.8s; }
.site-nav a:nth-child(3n) { animation-delay: -4.3s; }
.site-nav a::before { background-image: url('../nav-plank-v9.webp'); background-size: 100% 100%; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.active {
  color: #38210f; text-shadow: 0 0 9px #fff0bd, 0 1px rgba(255,244,206,.5);
}
.site-nav a:hover::before, .site-nav a:focus-visible::before {
  filter: drop-shadow(0 0 8px #f0ca72) drop-shadow(0 0 17px rgba(129,229,215,.62));
}
@keyframes ww-plank-sway { from { rotate: -.7deg; } to { rotate: .7deg; } }
.card-image--wood::after, .card-image--cajon::after, .card-image--talharpa::after {
  background-image: url('../frames/light-wood-v9.webp');
}
.parchment-links .feature-link .icon {
  background: transparent; border-color: rgba(88,57,28,.24); color: rgba(75,49,30,.63);
  box-shadow: none;
}
.parchment-links .feature-link:hover .icon {
  color: #5c421f; border-color: rgba(115,86,42,.52);
  box-shadow: 0 0 10px rgba(148,119,69,.24);
}
/* Low separate banks move across the forest floor and recede on arrival. */
.ww-fog { background: transparent; animation: ww-ground-clear 2.25s ease-out forwards; }
.ww-fog span {
  width: 135vw; height: 30vh; top: auto; bottom: -5vh;
  background: radial-gradient(ellipse 34% 38% at 16% 65%, rgba(214,219,204,.36), transparent 100%),
              radial-gradient(ellipse 31% 39% at 47% 55%, rgba(228,229,208,.31), transparent 100%),
              radial-gradient(ellipse 32% 32% at 83% 67%, rgba(211,221,211,.28), transparent 100%);
  filter: blur(23px); mix-blend-mode: screen;
  animation: ww-ground-drift 2.25s ease-out both;
}
.ww-fog span:nth-child(1) { left: -27%; bottom: -4%; top: auto; }
.ww-fog span:nth-child(2) { left: -15%; right: auto; bottom: 11%; top: auto; animation-delay: .12s; }
.ww-fog span:nth-child(3) { left: -28%; bottom: 22%; top: auto; animation-delay: .25s; }
.ww-fog.is-leaving { animation: ww-ground-gather .76s ease-in forwards; }
.ww-fog.is-leaving span { animation: ww-ground-return .76s ease-in forwards; }
@keyframes ww-ground-clear { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
@keyframes ww-ground-drift { from { opacity: .85; transform: translate(-8vw, 0) scale(1); } to { opacity: 0; transform: translate(12vw,-7vh) scale(1.15); } }
@keyframes ww-ground-gather { from { opacity: 0; visibility: visible; } to { opacity: .9; visibility: visible; } }
@keyframes ww-ground-return { from { opacity: 0; transform: translate(12vw,-7vh) scale(1.15); } to { opacity: .9; transform: translate(0,0) scale(1); } }
.basket-scene {
  position: relative; isolation: isolate; overflow: hidden; min-height: 76vh;
  background: linear-gradient(90deg, rgba(10,8,6,.72), rgba(10,8,6,.16)),
              url('../images/campfire-v9.webp') 64% center / cover no-repeat;
}
.basket-scene::before, .basket-scene::after { content: ''; position: absolute; pointer-events: none; z-index: 0; }
.basket-scene::before { width: 21vw; height: 33vh; right: 14%; bottom: 17%; background: radial-gradient(ellipse, rgba(222,220,197,.18), transparent 66%); filter: blur(16px); animation: ww-smoke 7s ease-in-out infinite alternate; }
.basket-scene::after { width: 25vw; height: 20vh; right: 9%; bottom: 12%; background: radial-gradient(ellipse, rgba(255,130,42,.17), transparent 70%); animation: ww-firelight 2s ease-in-out infinite alternate; }
@keyframes ww-smoke { from { transform: translate(-8px,22px) scale(.9); opacity: .35; } to { transform: translate(18px,-50px) scale(1.2); opacity: .8; } }
@keyframes ww-firelight { from { opacity: .5; } to { opacity: 1; } }
.basket-scene .cart-page { position: relative; z-index: 1; }
.basket-scene .cart-page h1 { color: #f2dbb3; text-shadow: 0 3px 10px #110b07; }
.basket-paper {
  max-width: 1100px; padding: clamp(12px,2.5vw,36px);
  border: clamp(26px,3vw,50px) solid transparent;
  border-image: url('../parchment-v5.webp') 115 fill / clamp(26px,3vw,50px) stretch;
  color: #39291b; filter: drop-shadow(0 18px 23px rgba(0,0,0,.46));
}
.basket-paper a, .basket-paper .cart-table a, .basket-paper .remove-link { color: #6b3c21; }
.basket-paper .cart-table th { color: #6a5038; }
.basket-paper .cart-table th, .basket-paper .cart-table td { border-bottom-color: rgba(85,54,33,.29); }
.basket-paper .cart-table input[type=number] { color: #39291b; background: #f0dec0; border-color: #a48662; }
.cart-table-scroll { max-width: 100%; overflow-x: auto; }
.cart-table { min-width: 650px; }
@media (max-width: 700px) {
  .home-scene { background-size: auto, auto 690px, cover; background-position: center top, 60% top, center bottom; }
  .is-home .hero { padding-top: 270px; min-height: 680px; }
  .hero .btn { display: none; }
  .site-nav a { min-height: 54px; }
  .basket-scene { background-position: center, 70% center; }
  .basket-paper { border-width: 25px; border-image-width: 25px; padding: 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
 .site-nav a, .basket-scene::before, .basket-scene::after { animation: none !important; }
}

/* v10: the scenery begins behind the public header on every page. */
body:not(.is-home) {
  background: linear-gradient(180deg, rgba(9,7,5,.22), #15100c 85%),
              url('../images/forest-v8.webp') center top / 100% auto no-repeat,
              #15100c;
}
body:not(.is-home) .site-header {
  position: absolute; inset: 0 0 auto; width: 100%;
  background: linear-gradient(180deg, rgba(9,7,5,.70), rgba(9,7,5,.26) 72%, transparent);
  border-bottom: 0; backdrop-filter: none;
}
.page-scene .page-hero {
  padding-top: clamp(230px, 19vw, 310px);
  padding-bottom: 75px;
  min-height: clamp(420px, 32vw, 560px);
}
.basket-scene .cart-page { padding-top: clamp(220px, 19vw, 300px); }
body:not(.is-home) > .product-page,
body:not(.is-home) > .checkout-page,
body:not(.is-home) > .container.product-page {
  padding-top: clamp(230px, 19vw, 310px);
}
@media (max-width: 700px) {
  .page-scene .page-hero { padding-top: 290px; min-height: 520px; }
  .basket-scene .cart-page { padding-top: 285px; }
  body:not(.is-home) > .product-page,
  body:not(.is-home) > .checkout-page,
  body:not(.is-home) > .container.product-page { padding-top: 285px; }
}

/* v11: one unbroken hero photograph, soft forest light and visible rolling mist. */
.home-scene {
  background: linear-gradient(180deg, rgba(10,8,5,.12) 0%, rgba(12,9,6,.06) 45%, rgba(15,12,8,.42) 81%, #15100c 100%),
              url('../images/hero-extended-v11.webp') center top / cover no-repeat;
}
.page-scene {
  background: linear-gradient(180deg, rgba(10,8,6,.50) 0%, rgba(10,8,6,.28) 30%, rgba(13,10,7,.28) 56%, #15100c 100%),
              var(--scene-image) center top / cover no-repeat;
}
.page-scene .page-hero::before { display: none; }
.page-scene .page-hero h1, .page-scene .page-hero p { text-shadow: 0 2px 12px rgba(0,0,0,.85); }
.basket-scene {
  background: linear-gradient(180deg, rgba(10,8,6,.45), rgba(10,8,6,.30) 53%, #15100c 100%),
              url('../images/campfire-v9.webp') 64% center / cover no-repeat;
}
.site-nav { gap: clamp(8px, 1vw, 20px); }
.site-nav a {
  min-width: 0; min-height: 44px; padding: 6px 2px;
  animation: none; rotate: 0deg; font-family: var(--rune);
  font-weight: 400; font-size: clamp(1.13rem, 1.42vw, 1.52rem);
  line-height: 1.3; letter-spacing: .02em; color: #f0d7ab;
  text-shadow: 0 2px 3px #160e08, 0 -1px rgba(255,237,198,.4);
  transition: color .24s ease, text-shadow .24s ease, transform .24s ease;
}
.site-nav a::before, .site-nav a.active::after, .site-nav a:focus-visible::after { content: none; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.active {
  color: #ffe1a5; transform: translateY(-2px);
  text-shadow: 0 0 7px rgba(255,218,147,.98), 0 0 17px rgba(241,192,103,.75),
               0 0 29px rgba(100,207,194,.48), 0 2px 3px #160e08;
}
.card-body { position: relative; min-height: 102px; }
.material-tag {
  position: absolute; right: 11px; bottom: 13px; display: inline-block;
  padding: 3px 9px; max-width: 43%;
  border: 1px solid rgba(86,62,37,.48); border-radius: 2px;
  background: rgba(242,220,177,.25); color: #594029;
  font-family: var(--rune); font-size: clamp(.77rem, .83vw, .96rem);
  line-height: 1.3; letter-spacing: .035em; text-transform: uppercase; white-space: nowrap;
}
.material-tag--bamboo { border-color: rgba(75,93,52,.5); color: #405134; }
.material-tag--petg { border-color: rgba(60,91,94,.55); color: #38575a; }
.material-tag--cajon, .material-tag--talharpa { border-color: rgba(86,62,37,.48); }
/* The mist stays at ground level after the page opens; it thickens on navigation. */
.ww-fog { animation: ww-mist-settle 2.5s ease-out both; }
.ww-fog span {
  position: absolute; top: auto; right: auto; width: 160vw; height: 41vh; border-radius: 50%;
  background: radial-gradient(ellipse 29% 36% at 14% 68%, rgba(224,232,220,.52), transparent 100%),
              radial-gradient(ellipse 32% 38% at 43% 54%, rgba(220,229,219,.54), transparent 100%),
              radial-gradient(ellipse 30% 34% at 81% 65%, rgba(215,225,218,.47), transparent 100%);
  filter: blur(25px); mix-blend-mode: screen;
  animation: ww-mist-roll 18s ease-in-out infinite alternate;
}
.ww-fog span:nth-child(1) { left: -34%; bottom: -14%; animation-delay: -7s; }
.ww-fog span:nth-child(2) { left: -12%; bottom: 1%; animation-duration: 23s; animation-delay: -12s; }
.ww-fog span:nth-child(3) { left: -45%; bottom: 18%; height: 25vh; opacity: .48; animation-duration: 28s; animation-delay: -4s; }
.ww-fog.is-leaving { animation: ww-mist-cover .76s ease-in forwards; }
.ww-fog.is-leaving span { animation: ww-mist-roll 18s ease-in-out infinite alternate; }
@keyframes ww-mist-settle { from { opacity: 1; visibility: visible; } to { opacity: .46; visibility: visible; } }
@keyframes ww-mist-cover { from { opacity: .46; visibility: visible; } to { opacity: .94; visibility: visible; } }
@keyframes ww-mist-roll {
  from { transform: translate(-11vw, 1.5vh) scale(1); }
  to { transform: translate(8vw, -2.5vh) scale(1.09); }
}
@media (max-width: 700px) {
  .home-scene { background-size: auto, cover; background-position: center top, 66% top; }
  .site-nav { gap: 5px 15px; }
  .site-nav a { min-height: 38px; padding: 4px 1px; font-size: 1.04rem; }
  .material-tag { font-size: .83rem; }
  .ww-fog span { width: 230vw; height: 34vh; }
}
@media (prefers-reduced-motion: reduce) {
  .ww-fog { animation: none !important; opacity: .26; visibility: visible; }
  .ww-fog span { animation: none !important; }
  .ww-fog.is-leaving { opacity: .26; }
}
.card-body .card-price { padding-right: 44%; }
@media (max-width: 420px) {
  .site-nav { gap: 3px 11px; }
  .site-nav a { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ww-fog span { opacity: .5; visibility: visible; }
}

/* v12: smaller accurately positioned instrument and custom carved navigation lettering. */
.home-scene {
  background: linear-gradient(180deg, rgba(10,8,5,.20), rgba(12,9,6,.04) 42%, #15100c 100%),
              url('../images/hero-desktop-v12.webp') center 38% / cover no-repeat;
}
.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; }
.site-nav { gap: clamp(7px,.8vw,15px); }
.site-nav a { min-height: 40px; padding: 3px 2px 11px; position:relative; }
.site-nav .nav-art { display:block; height: 27px; width:auto; max-width:none; filter:drop-shadow(0 2px 2px #160c06); transition:filter .25s ease, transform .25s ease; }
.site-nav a:hover .nav-art, .site-nav a:focus-visible .nav-art, .site-nav a.active .nav-art {
  filter: drop-shadow(0 0 5px #ffda8c) drop-shadow(0 0 12px rgba(230,191,105,.7));
  transform:translateY(-1px);
}
.site-nav a.active::after, .site-nav a:hover::after, .site-nav a:focus-visible::after {
  content:''; position:absolute; left:9%; right:9%; bottom:0; width:82%; height:9px;
  background: url('../nav-labels/underline.svg') center / 100% 100% no-repeat;
  box-shadow:none;
}
/* Banks of textured mist move across the ground and fully disperse. */
.ww-fog { animation: ww-mist-clear-v12 5.4s ease-out forwards; }
.ww-fog span {
  background: url('../images/mist-bank-v12.svg') center bottom / 100% 100% no-repeat;
  width: 165vw; height: 41vh; border-radius:0; filter:blur(12px); mix-blend-mode:screen;
  animation: ww-mist-glide-v12 5.4s cubic-bezier(.18,.45,.65,1) both;
}
.ww-fog span:nth-child(1) { left:-40%; bottom:-10%; animation-delay:0s; }
.ww-fog span:nth-child(2) { left:-28%; bottom:9%; opacity:.65; animation-delay:.2s; }
.ww-fog span:nth-child(3) { left:-46%; bottom:22%; height:24vh; opacity:.45; animation-delay:.4s; }
.ww-fog.is-leaving { animation: ww-mist-cover-v12 .76s ease-in forwards; }
.ww-fog.is-leaving span { animation: ww-mist-return-v12 .76s ease-in forwards; }
@keyframes ww-mist-clear-v12 { 0% { opacity:.9; visibility:visible; } 44% { opacity:.72; } 100% { opacity:0; visibility:hidden; } }
@keyframes ww-mist-glide-v12 { 0% { transform:translateX(-12vw) scale(1); } 100% { transform:translateX(15vw) scale(1.14); } }
@keyframes ww-mist-cover-v12 { from { opacity:0; visibility:visible; } to { opacity:.9; visibility:visible; } }
@keyframes ww-mist-return-v12 { from { opacity:0; transform:translateX(12vw) scale(1.12); } to { opacity:1; transform:translateX(0) scale(1); } }
@media (max-width: 700px) {
  .home-scene {
    background: linear-gradient(180deg, rgba(8,6,4,.26), rgba(10,7,5,.04) 40%, #15100c 100%),
                url('../images/forest-mobile-v12.webp') center top / cover no-repeat;
  }
  .is-home .hero { min-height:870px; padding-top:285px; }
  .home-scene .hero::after {
    display:block; content:''; position:absolute; z-index:0;
    width:94vw; height:auto; aspect-ratio:2009 / 783;
    left:3vw; right:auto; bottom:125px;
    background:url('../images/flute-mobile-v12.webp') center / contain no-repeat;
    opacity:1; filter:drop-shadow(0 12px 12px rgba(0,0,0,.65));
    mask:none; -webkit-mask:none; transform:none; pointer-events:none;
  }
  .home-scene .hero::before { background:linear-gradient(180deg, rgba(8,6,4,.66), transparent 75%); }
  .site-nav { gap:5px 10px; }
  .site-nav a { min-width:0; min-height:36px; padding:2px 2px 10px; }
  .site-nav .nav-art { height:22px; }
  .ww-fog span { width:240vw; height:34vh; }
}
@media (max-width: 420px) {
  .site-nav { gap:4px 7px; }
  .is-home .hero { min-height:835px; padding-top:285px; }
  .home-scene .hero::after { bottom:100px; }
}
@media (prefers-reduced-motion: reduce) {
  .ww-fog, .ww-fog span { animation:none !important; opacity:0 !important; visibility:hidden !important; }
  .site-nav .nav-art { transition:none; }
}
@media (min-width: 701px) {
  .home-scene { background-position: center top, center 50%; }
  .is-home .hero { min-height: clamp(760px, 63vw, 940px); }
}

/* v13: responsive photographs rendered at a recognisable scale. */
@media (min-width: 701px) {
  .home-scene { background-position:center top, center 28%; }
}
@media (max-width: 700px) {
  .page-scene {
    background: linear-gradient(180deg, rgba(11,8,5,.42), rgba(12,9,6,.26) 36%, #15100c 100%),
                var(--scene-mobile) 60% top / cover no-repeat;
  }
  .home-scene .hero::after {
    /* This is the original photograph, with the flute resting in the scene. */
    width:100%; height:auto; aspect-ratio:1086 / 1448;
    left:0; right:0; bottom:65px;
    background:url('../images/hero-mobile-integrated-v13.webp') center / cover no-repeat;
    filter:none; opacity:1;
    mask-image:linear-gradient(180deg,transparent 0%,#000 15%,#000 88%,transparent 100%);
    -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 15%,#000 88%,transparent 100%);
  }
  .basket-scene {
    background: linear-gradient(180deg, rgba(10,8,6,.48), rgba(10,8,6,.34) 48%, #15100c 100%),
                url('../images/campfire-mobile-v13.webp') 60% top / cover no-repeat;
  }
}
@media (min-width: 701px) {
  .home-scene {
    background-image: linear-gradient(180deg, rgba(10,8,5,.20), rgba(12,9,6,.04) 42%, #15100c 100%),
                      url('../images/hero-desktop-v13.webp');
  }
}

/* v14: a landscape frame sized for the maker's photographs rather than 16:9. */
.card-image:not([style*="aspect-ratio"]), .gallery-main.card-image { aspect-ratio: 8 / 5; }
.gallery-thumbs img { width: 105px; height: 66px; object-fit: contain; }

/* v15: the frame follows each photograph's own proportions. */
.card-image, .card-image:not([style*="aspect-ratio"]), .gallery-main.card-image {
  aspect-ratio: auto;
  padding: 0;
  overflow: hidden;
  background: #241a13;
  border: clamp(16px, 1.5vw, 23px) solid transparent;
  border-image-source: url('../frames/light-wood-v9.webp');
  border-image-slice: 115;
  border-image-repeat: stretch;
  border-radius: 0;
}
.card-image--bamboo { border-image-source: url('../frames/bamboo-rope-v8.webp'); border-image-slice: 130; }
.card-image--petg { border-width: 11px; border-image-source: url('../frames/petg-modern-v8.svg'); border-image-slice: 50; }
.card-image::after { content: none; }
.card-image > .product-photo,
.gallery-main.card-image > .product-photo {
  display: block;
  position: static;
  inset: auto;
  width: 100%; height: auto;
  max-width: 100%; max-height: none;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}
.card-image:has(> .placeholder) { aspect-ratio: 8 / 5; }
.card-image > .placeholder {
  position: static; inset: auto; width: 100%; height: 100%;
  min-height: 160px; display: flex; align-items: center; justify-content: center;
}
.card:hover .card-image, .card:focus-within .card-image {
  filter: drop-shadow(0 0 6px var(--frame-glow)) drop-shadow(0 0 12px var(--frame-glow-soft));
}
@media (max-width: 700px) {
  .card-image, .gallery-main.card-image { border-width: 16px; }
  .card-image--petg { border-width: 9px; }
}

/* v16: keep portrait scenery at a stable size on long mobile pages. */
@media (max-width: 700px) {
  .page-scene {
    position: relative;
    background: radial-gradient(ellipse at 55% 620px, rgba(88, 61, 35, .24), transparent 68%), #15100c;
  }
  .page-scene::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    height: clamp(640px, 90svh, 820px);
    pointer-events: none;
    background: linear-gradient(180deg, rgba(11, 8, 5, .46), rgba(12, 9, 6, .20)),
                var(--scene-mobile) 55% top / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 54%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 54%, transparent 100%);
  }
  .page-scene > .page-hero,
  .page-scene > .container { position: relative; z-index: 1; }
}

/* v17: readable material labels and material-specific frames. */
.card-image.card-image--bamboo {
  border-image-source: url('../frames/bamboo-rope-v8.webp');
  border-image-slice: 130;
}
.card-image.card-image--petg {
  border-width: 11px;
  border-image-source: url('../frames/petg-modern-v8.svg');
  border-image-slice: 50;
}
.material-tag {
  padding: 5px 10px;
  border: 1px solid rgba(232, 198, 133, .82);
  background: rgba(35, 26, 17, .88);
  color: #f6dfb0;
  font-size: clamp(.88rem, .95vw, 1rem);
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
}
.material-tag--bamboo { border-color: #b7cc88; color: #e1efbf; }
.material-tag--petg { border-color: #9ad6d3; color: #d9f4ef; }
@media (max-width: 700px) {
  .card-image.card-image--petg { border-width: 9px; }
  .material-tag { font-size: .9rem; }
}

/* v18: dissolve the desktop hero shade before its lower edge. */
@media (min-width: 701px) {
  .home-scene .hero::before {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  }
}

/* v19: the archive artwork no longer scales with the number of instruments. */
@media (min-width: 701px) {
  .page-scene.archive-scene {
    position: relative;
    background: linear-gradient(to bottom, #241b13, #15100c 2200px);
  }
  .archive-scene::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    height: clamp(450px, 43vw, 880px);
    pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 8, 6, .4), rgba(12, 9, 6, .15)),
                var(--scene-image) center top / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  }
  .archive-scene > .page-hero,
  .archive-scene > .container { position: relative; z-index: 1; }
}

/* Maker story and framed, replaceable portrait. */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(275px, 32%);
  align-items: start;
  gap: clamp(28px, 4vw, 76px);
}
.about-story {
  max-width: 70ch;
  white-space: normal;
  color: #f0dfbe;
  font-family: var(--serif);
  font-size: clamp(1.34rem, 1.58vw, 1.7rem);
  line-height: 1.53;
  letter-spacing: .008em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .75);
}
.maker-portrait {
  margin: 4px 0 0;
  padding: 0;
  background: #241a12;
  border: 16px solid transparent;
  border-image: url('../frames/light-wood-v9.webp') 115 / 16px stretch;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .55), 0 0 0 1px rgba(220, 177, 110, .36);
  transform: rotate(1deg);
}
.maker-portrait img { width: 100%; height: auto; aspect-ratio: 9 / 17; object-fit: cover; object-position: center 35%; }
.maker-portrait figcaption {
  padding: 12px 7px 5px;
  color: #eed8ae;
  font: italic 1.35rem var(--serif);
  text-align: center;
}
.about-social-links { margin-top: 30px; }

/* Explain the delivery limit before buyers enter their address or pay. */
.delivery-boundary {
  max-width: 860px;
  margin: 12px 0 40px;
  padding: 20px 25px;
  border: 1px solid rgba(228, 184, 105, .68);
  border-left: 5px solid #e2b66e;
  background: rgba(28, 20, 12, .88);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .3);
}
.delivery-boundary strong { display: block; color: #ffdf9c; font: 1.45rem var(--rune); }
.delivery-boundary p { max-width: 75ch; margin: 8px 0 0; color: #f3e4c6; }
.delivery-boundary a, .notice-region a { color: #ffe2a2; text-decoration: underline; text-underline-offset: 3px; }
.delivery-inline { color: #ead0a4; font-size: .93rem; }

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .maker-portrait { width: min(100%, 390px); margin: 24px auto 0; }
}
@media (max-width: 700px) {
  .about-content { padding-top: 18px; }
  .about-story { font-size: clamp(1.25rem, 5vw, 1.48rem); line-height: 1.48; }
  .delivery-boundary { margin: 12px 0 28px; padding: 16px 18px; }
  .delivery-boundary strong { font-size: 1.16rem; }
}

/* v20: place the smaller maker portrait over the dark left side of About. */
@media (min-width: 901px) {
  .about-layout { grid-template-columns: minmax(215px, 24%) minmax(0, 1fr); }
  .about-story { grid-column: 2; grid-row: 1; max-width: 65ch; }
  .maker-portrait {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: min(100%, 340px);
    transform: rotate(-1deg);
  }
  .maker-portrait figcaption { font-size: 1.18rem; }
}
.delivery-inline a { color: #ffe2a2; text-decoration: underline; text-underline-offset: 3px; }

/* v21: compact About introduction and a slim antique portrait frame. */
.about-scene .page-hero {
  min-height: 0;
  padding-bottom: 12px;
}
.about-scene .page-hero h1 { margin-bottom: 0; }
.about-scene .about-content { padding-top: 18px; }
.about-scene .about-story { margin: 0; }
.about-scene .maker-portrait {
  position: relative;
  margin-top: 0;
  padding: 8px;
  border: 4px solid #78603e;
  border-image: none;
  border-radius: 2px;
  background: linear-gradient(135deg, #b08d59, #38291b 26%, #755638 58%, #2d2117);
  box-shadow: inset 0 0 0 1px rgba(242, 205, 144, .8),
              0 0 0 2px #2d2115, 0 15px 36px rgba(0, 0, 0, .56);
  transform: none;
}
.about-scene .maker-portrait::after {
  content: '';
  position: absolute;
  inset: 11px;
  pointer-events: none;
  border: 1px solid rgba(235, 197, 125, .55);
}
@media (max-width: 900px) {
  .about-scene .maker-portrait { margin: 20px auto 0; }
}
