:root {
  --cream: #F6F0E4;
  --cream-2: #EFE5D3;
  --cream-3: #E5D7BE;
  --paper: #FBF8F1;
  --ink: #2A2118;
  --ink-soft: #6B5B4A;
  --ink-faint: #9A8A76;
  --gold: #B8925A;
  --gold-soft: #D9C29A;
  --sale: #A5533A;
  --line: rgba(42, 33, 24, .12);
  --shadow: 0 24px 60px -28px rgba(70, 48, 22, .45);
  --radius: 22px;
  --serif: "Noto Serif Thai", "Cormorant Garamond", Georgia, serif;
  --latin: "Cormorant Garamond", Georgia, serif;
  --sans: "IBM Plex Sans Thai", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 .4rem;
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--gold);
  font-weight: 500;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  background: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px -12px rgba(42, 33, 24, .6); }
.btn-ink:hover { background: #3b2f23; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.btn.wide { flex: 1; }
.icon-btn {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform .2s var(--ease), background .2s;
}
.icon-btn:hover { background: var(--cream-2); transform: scale(1.06); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.small { width: 38px; height: 38px; }
.icon-btn.small svg { fill: currentColor; stroke: none; width: 16px; }

/* Announcement + nav */
.announce {
  background: var(--ink); color: var(--cream);
  text-align: center; font-size: .85rem; padding: .5rem 1rem;
  letter-spacing: .02em;
}
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem clamp(16px, 4vw, 56px);
  background: rgba(246, 240, 228, .78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, padding .3s;
}
.nav.scrolled { border-color: var(--line); padding-block: .55rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; fill: var(--ink); stroke: none; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-word { font-family: var(--latin); font-weight: 600; letter-spacing: .28em; font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: clamp(.8rem, 2.5vw, 2rem); }
.nav-links a { text-decoration: none; font-size: .95rem; position: relative; }
.nav-links a:not(.fb-btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-links a:not(.fb-btn):hover::after { transform: scaleX(1); transform-origin: left; }
.fb-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .95rem .45rem .7rem; border-radius: 999px;
  background: var(--gold-soft); color: var(--ink);
  transition: background .25s;
}
.fb-btn:hover { background: var(--gold); }
.fb-btn svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.nav-toggle { display: none; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; border-radius: 1px; background: var(--ink);
  transition: transform .3s var(--ease), background .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  overflow-x: clip;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 2rem;
  padding: clamp(2rem, 6vw, 5rem) clamp(16px, 6vw, 96px) 4rem;
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); letter-spacing: -.01em; }
.hero-text { color: var(--ink-soft); font-size: 1.1rem; max-width: 34ch; margin: 1.2rem 0 2rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero-copy > *:nth-child(2) { animation-delay: .12s; }
.hero-copy > *:nth-child(3) { animation-delay: .24s; }
.hero-copy > *:nth-child(4) { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-art { position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; perspective: 900px; }
.hero-disc {
  position: absolute; inset: 9%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--paper), var(--cream-2) 60%, var(--cream-3));
  box-shadow: var(--shadow), inset 0 2px 0 rgba(255, 255, 255, .7);
  display: grid; place-items: center;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .4s var(--ease);
  transform-style: preserve-3d;
}
.hero-mark {
  width: 62%; height: 62%;
  fill: var(--ink); stroke: var(--ink); stroke-width: 3;
  stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0;
  animation: draw 2.4s .3s var(--ease) forwards, fillin 1s 2.1s ease forwards;
  transform: translateZ(40px);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; stroke-width: 0; } }
.hero-ring {
  position: absolute; inset: 2%;
  border-radius: 50%;
  border: 1px dashed var(--gold-soft);
  animation: spin 40s linear infinite;
}
.hero-ring::after {
  content: ""; position: absolute; top: 50%; left: -6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--gold);
}
@keyframes spin { to { transform: rotate(360deg); } }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); animation: float 9s ease-in-out infinite; }
.orb-a { width: 22%; aspect-ratio: 1; right: -2%; top: 8%; background: radial-gradient(circle at 30% 30%, #fff8ea, var(--gold-soft)); }
.orb-b { width: 13%; aspect-ratio: 1; left: 0; bottom: 10%; background: radial-gradient(circle at 30% 30%, #fff, #e9c9b8); animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-18px) translateX(6px); } }

/* Home: hero and marquee share the first screen, so the marquee shows without scrolling. */
body[data-page="home"] main { display: flex; flex-direction: column; min-height: calc(100svh - 68px); }
body[data-page="home"]:has(#announce:not([hidden])) main { min-height: calc(100svh - 108px); }
body[data-page="home"] .hero { flex: 1; min-height: 0; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--cream-2); }
.marquee-track {
  display: flex; gap: 2.2rem; width: max-content; padding: 1rem 0;
  animation: marquee 32s linear infinite;
  font-family: var(--serif); font-size: 1.3rem; color: var(--ink-soft); white-space: nowrap;
}
.marquee-track i { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6.5rem) clamp(16px, 6vw, 96px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.count { color: var(--ink-faint); font-size: .95rem; }
.hint { text-align: center; color: var(--ink-faint); font-size: .85rem; margin: 1rem 0 0; }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); font-size: .92rem;
  transition: background .25s, color .25s, transform .2s var(--ease);
}
.chip:hover { transform: translateY(-1px); border-color: var(--ink-faint); }
.chip[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tools { display: flex; gap: .6rem; flex-wrap: wrap; }
.search {
  display: flex; align-items: center; gap: .4rem;
  padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
}
.search svg { width: 18px; height: 18px; color: var(--ink-faint); }
.search input, .tools select {
  border: 0; background: none; font: inherit; color: inherit; padding: .55rem 0; outline: none; min-width: 0;
}
.search input { width: 11rem; }
.tools select { padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }

/* Grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.card {
  text-decoration: none; display: block;
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.card.in { opacity: 1; transform: none; }
.card-media {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: var(--paper);
  transform: perspective(800px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform .5s var(--ease), box-shadow .5s;
  box-shadow: 0 10px 30px -22px rgba(70, 48, 22, .5);
}
.card:hover .card-media { box-shadow: var(--shadow); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s, transform 1.2s var(--ease); }
.card-media img.alt { opacity: 0; }
.card:hover .card-media img { transform: scale(1.05); }
.card:hover .card-media img.alt { opacity: 1; }
.card-media .glare {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .45), transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.card:hover .glare { opacity: 1; }
.badges { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; z-index: 2; }
.badges .badge { flex: none; }
.badge {
  font-size: .75rem; padding: .25rem .65rem; border-radius: 999px;
  background: rgba(251, 248, 241, .9); backdrop-filter: blur(6px);
  font-weight: 500;
}
.badge.sale { background: var(--sale); color: #fff; }
.badge.b-spin { background: var(--ink); color: var(--paper); }
.quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  padding: .7rem; border-radius: 14px; text-align: center; font-size: .9rem; font-weight: 500;
  background: rgba(251, 248, 241, .92); backdrop-filter: blur(6px);
  transform: translateY(130%); transition: transform .45s var(--ease);
}
.card:hover .quick, .card:focus-visible .quick { transform: none; }
.card-body { padding: 1rem .25rem 0; }
.card-body h3 { font-size: 1.12rem; }
.card-sub { color: var(--ink-faint); font-size: .88rem; margin: .1rem 0 .35rem; }
.dots { display: flex; gap: 5px; margin-top: .45rem; }
.dots span { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line); }

.price { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; font-weight: 500; }
.price .now { font-size: 1.05rem; }
.price.on-sale .now { color: var(--sale); }
.price s { color: var(--ink-faint); font-size: .9rem; font-weight: 400; }
.price .off { font-size: .75rem; color: var(--sale); border: 1px solid currentColor; border-radius: 999px; padding: 0 .5rem; }
.price.big .now { font-size: 1.8rem; font-family: var(--serif); }
.price.big s { font-size: 1.05rem; }
.empty { text-align: center; color: var(--ink-faint); padding: 3rem 0; }

/* About */
.about {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: center;
  background: var(--cream-2); border-radius: 40px; margin: 0 clamp(16px, 4vw, 56px) 4rem;
}
.about-mark { aspect-ratio: 1; border-radius: 50%; background: var(--paper); display: grid; place-items: center; box-shadow: var(--shadow); max-width: 360px; width: 100%; justify-self: center; }
.about-mark svg { width: 58%; fill: var(--ink); stroke: none; }
.about-copy p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.08rem; max-width: 52ch; white-space: pre-line; }
.about-copy h1, .about-copy h2 { font-family: var(--latin); letter-spacing: .06em; font-size: clamp(2rem, 4vw, 3rem); }
.about-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.about-page { margin-top: 1.5rem; }

.footer { text-align: center; padding: 3rem 1rem 3.5rem; border-top: 1px solid var(--line); }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--latin); letter-spacing: .28em; font-weight: 600; }
.footer-brand svg { width: 32px; height: 32px; fill: var(--ink); stroke: none; }
.footer p { margin: .4rem 0; }
.muted { color: var(--ink-faint); font-size: .85rem; }

/* Product sheet */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: end center; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(42, 33, 24, .38); backdrop-filter: blur(6px); animation: fade .35s ease; }
.sheet-panel {
  position: relative; width: min(1180px, 100%); max-height: 94vh; overflow: auto;
  background: var(--paper); border-radius: 32px 32px 0 0;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.2rem, 3vw, 2.5rem);
  animation: up .55s var(--ease);
  overscroll-behavior: contain;
}
.sheet.closing .sheet-panel { animation: down .35s ease forwards; }
.sheet.closing .sheet-backdrop { animation: fade .35s ease reverse forwards; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes down { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet-close { position: sticky; top: 0; justify-self: end; grid-column: 2; grid-row: 1; z-index: 3; margin-bottom: -46px; }
.viewer { grid-row: 1 / span 2; min-width: 0; }
.view-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--cream-2); margin-bottom: .8rem; }
.view-tabs[hidden] { display: none; }
.view-tabs button { border: 0; background: none; padding: .45rem 1.1rem; border-radius: 999px; font-size: .9rem; transition: background .25s, color .25s; }
.view-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.stage { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; height: 100%; object-fit: cover; scroll-snap-align: center; cursor: zoom-in; user-select: none; }
.lens {
  position: absolute; width: 180px; height: 180px; border-radius: 50%; pointer-events: none;
  border: 3px solid var(--paper); box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  background-repeat: no-repeat; translate: -50% -50%;
}
.spin { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; user-select: none; }
.spin.grabbing { cursor: grabbing; }
.spin img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.spin-hint {
  position: absolute; left: 50%; bottom: 16px; translate: -50% 0;
  display: flex; align-items: center; gap: .5rem; padding: .45rem 1rem; border-radius: 999px;
  background: rgba(251, 248, 241, .9); font-size: .85rem; transition: opacity .4s;
}
.spin-hint svg { width: 34px; height: 18px; animation: sway 1.6s ease-in-out infinite; }
@keyframes sway { 50% { transform: translateX(5px); } }
.spin-hint.gone { opacity: 0; }
.spin-load { position: absolute; left: 20%; right: 20%; top: 50%; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.spin-load span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.spin-load.done { display: none; }
.spin-bar { display: flex; align-items: center; gap: .8rem; margin-top: .8rem; }
.spin-bar[hidden] { display: none; }
.spin-bar input { flex: 1; accent-color: var(--ink); }
.thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 72px; aspect-ratio: 1; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: var(--cream); transition: border-color .2s, transform .2s; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs button:hover { transform: translateY(-2px); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.details { padding-top: .5rem; min-width: 0; grid-column: 2; }
.details h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-right: 52px; }
.p-sub { color: var(--ink-faint); margin: .2rem 0 1rem; font-family: var(--latin); font-size: 1.2rem; font-style: italic; }
.swatches { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.2rem 0 0; }
.swatch { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem .3rem .35rem; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; }
.swatch i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.p-desc { color: var(--ink-soft); white-space: pre-line; margin: 1.4rem 0; }
.p-cta { display: flex; gap: .6rem; }
.note { color: var(--ink-faint); font-size: .8rem; margin: .8rem 0 0; }
.more { margin-top: 2.2rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.more h3 { font-size: 1.05rem; margin-bottom: .8rem; }
.more-row { display: flex; gap: .8rem; overflow-x: auto; padding-bottom: 6px; }
.more-row a { flex: 0 0 120px; text-decoration: none; font-size: .85rem; }
.more-row img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; margin-bottom: .35rem; transition: transform .3s var(--ease); }
.more-row a:hover img { transform: translateY(-3px); }

.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 140%; z-index: 60;
  padding: .7rem 1.3rem; border-radius: 999px; background: var(--ink); color: var(--paper);
  transition: translate .4s var(--ease), opacity .3s;
  opacity: 0; pointer-events: none;
}
.toast.show { translate: -50% 0; opacity: 1; }

/* Admin live preview: marks the product being edited */
.card.preview-focus .card-media { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--gold); }

/* Skeleton */
.skel { background: linear-gradient(100deg, var(--cream-2) 30%, var(--paper) 50%, var(--cream-2) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -100% 0; } }


/* Multi-page bits */
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.page-head { padding-top: clamp(1.5rem, 4vw, 2.5rem); padding-bottom: 0; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-head .section-head { margin-bottom: 0; }
.shop-page { padding-top: 2rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: var(--ink-faint); margin-bottom: 1.4rem; }
.crumbs a { text-decoration: none; color: var(--ink-soft); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.pdp { padding: clamp(1.2rem, 3vw, 2.5rem) clamp(16px, 6vw, 96px) clamp(3rem, 6vw, 5rem); }
.pdp-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--paper); border-radius: 32px; padding: clamp(1.2rem, 3vw, 2.5rem);
  box-shadow: 0 30px 70px -45px rgba(70, 48, 22, .45);
  animation: rise .7s var(--ease) both;
}
.pdp .viewer { grid-row: auto; }
.pdp .details { grid-column: auto; }
.pdp .details h2 { margin-right: 0; }
.pdp .viewer { position: sticky; top: 90px; align-self: start; }
.not-found { text-align: center; padding: 6rem 1rem; }
.not-found h1 { font-size: 2rem; margin-bottom: .5rem; }
.not-found .btn { margin-top: 1.5rem; }

@media (max-width: 860px) {
  .pdp-grid { grid-template-columns: 1fr; border-radius: 26px; }
  .pdp .viewer { position: static; }
}
@media (max-width: 560px) {
  /* Phones: nav links move into a hamburger drop-down. */
  .nav-toggle {
    display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .25rem 16px 1rem;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a:not(.fb-btn) { padding: .95rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a:not(.fb-btn)::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--gold); }
  .nav-links .fb-btn { justify-content: center; margin-top: 1rem; padding: .8rem 1rem; }
  .pdp { padding-inline: 10px; }
  .pdp-grid { padding: 14px; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 1.5rem; min-height: auto; }
  .hero-art { width: min(78vw, 380px); order: -1; }
  .hero-text { margin-inline: auto; }
  /* Phones: size the hero by screen height so it and the marquee fit one screen on any phone. */
  body[data-page="home"] .hero { align-content: space-evenly; gap: 2.2svh; padding-block: 2svh; }
  body[data-page="home"] .hero-art { width: min(70vw, 32svh, 380px); }
  body[data-page="home"] .hero h1 { font-size: clamp(1.45rem, 4.2svh, 2.4rem); }
  body[data-page="home"] .hero-text { font-size: clamp(.9rem, 2.1svh, 1.05rem); margin: 1.2svh auto 2.4svh; }
  /* min-width: 0 lets text wrap instead of widening the grid past the screen. */
  body[data-page="home"] .hero > * { min-width: 0; }
  body[data-page="home"] .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; width: min(100%, 340px); margin-inline: auto; }
  body[data-page="home"] .hero-cta .btn { min-width: 0; padding: min(.85rem, 1.6svh) .4rem; font-size: clamp(.82rem, 3.9vw, 1rem); white-space: nowrap; }
  body[data-page="home"] .marquee-track { padding: .7rem 0; font-size: 1.1rem; }
  .hero-cta { justify-content: center; }
  .about { grid-template-columns: 1fr; text-align: center; border-radius: 28px; }
  .about-mark { max-width: 220px; }
  .about-copy p:not(.eyebrow) { margin-inline: auto; }
  .about-cta { justify-content: center; }
  .sheet-panel { grid-template-columns: 1fr; border-radius: 26px 26px 0 0; }
  .viewer, .details { grid-column: 1; grid-row: auto; }
  .stage { width: min(100%, 62vh); margin-inline: auto; }
  .sheet-close { grid-column: 1; position: absolute; top: 14px; right: 14px; margin: 0; }
  .details h2 { margin-right: 0; }
}
@media (max-width: 560px) {
  .brand-word { display: none; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .chip { flex: 0 0 auto; }
  .tools { flex-wrap: nowrap; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body h3 { font-size: 1rem; }
  .quick { display: none; }
  .p-cta { flex-direction: column; }
}
@media (hover: none) {
  .card-media img.alt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* Phones held sideways: logo beside the copy, sized by screen height so the marquee stays on screen. */
@media (orientation: landscape) and (max-height: 520px) {
  body[data-page="home"] .hero {
    grid-template-columns: 1fr auto; text-align: left; align-content: center;
    gap: 5vw; padding-block: 2svh;
  }
  body[data-page="home"] .hero > * { min-width: 0; }
  body[data-page="home"] .hero-art { order: 0; width: min(40vw, 60svh); }
  body[data-page="home"] .hero h1 { font-size: clamp(1.3rem, 7svh, 2.4rem); }
  body[data-page="home"] .hero-text { font-size: clamp(.85rem, 3.6svh, 1.05rem); margin: 2svh 0 4svh; }
  body[data-page="home"] .hero-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; width: min(100%, 340px); margin-inline: 0;
  }
  body[data-page="home"] .hero-cta .btn { min-width: 0; padding: min(.85rem, 2.6svh) .4rem; font-size: clamp(.82rem, 3.9svh, 1rem); white-space: nowrap; }
  body[data-page="home"] .marquee-track { padding: .5rem 0; font-size: 1rem; }
}
