:root {
  --paper: #fffdf9;
  --ivory: #f7f3ec;
  --sand: #ece4d6;
  --stone: #d9cfbd;
  --ink: #141312;
  --ink-2: #1d1b19;
  --muted: #6f6a61;
  --gold: #b79a5d;
  --gold-soft: #d6c291;
  --line: rgba(20, 19, 18, .12);
  --max: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 300 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, .statement { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.02; }
h2 em, h1 em { font-style: italic; color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow { margin: 0 0 1.4rem; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); }
.eyebrow.dark { color: #8a6d33; }
.eyebrow span::before { content: ""; display: inline-block; width: 2.2rem; height: 1px; background: currentColor; vertical-align: middle; margin-right: .9rem; opacity: .7; }
.section-intro { color: var(--muted); max-width: 34rem; margin: 1.25rem 0 0; }
.dark .section-intro { color: rgba(247, 243, 236, .66); }

/* progress + loader */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; background: var(--gold); transform: scaleX(0); transform-origin: left; }
#loader {
  position: fixed; inset: 0; z-index: 100; background: var(--ink);
  display: grid; place-content: center; justify-items: center; gap: 1.6rem;
  transition: transform 1.1s var(--ease-io) .05s, visibility 0s 1.2s;
}
#loader img { width: min(62vw, 360px); height: auto; filter: invert(1); opacity: 0; transform: translateY(10px); animation: loaderIn 1s var(--ease) .15s forwards; }
.loader-line { width: min(62vw, 360px); height: 1px; background: rgba(255, 255, 255, .15); position: relative; overflow: hidden; }
.loader-line::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; animation: loaderBar 1.2s var(--ease) .2s forwards; }
html.ready #loader { transform: translateY(-100%); visibility: hidden; }
html:not(.js) #loader { display: none; }
@keyframes loaderIn { to { opacity: 1; transform: none; } }
@keyframes loaderBar { to { transform: scaleX(1); } }

/* header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  transition: background .4s, transform .5s var(--ease), box-shadow .4s, color .4s;
  color: var(--ink);
}
.site-header.scrolled { background: color-mix(in srgb, var(--ivory) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.on-hero { color: #fff; }
.logo { display: block; line-height: 0; flex: none; }
.logo img { height: 32px; width: auto; display: block; transition: filter .4s; }
.site-header.on-hero .logo img { filter: invert(1); }
.nav { display: flex; gap: 2.2rem; }
.nav a { position: relative; text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; padding: .4rem 0; opacity: .85; transition: opacity .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav a:hover, .nav a.active { opacity: 1; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-right { display: flex; align-items: center; gap: 1.2rem; }
.status { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--stone); display: inline-block; flex: none; }
.dot.soon { background: var(--gold); box-shadow: 0 0 0 0 rgba(183, 154, 93, .55); animation: pulseGold 2.4s infinite; }
@keyframes pulseGold { 70% { box-shadow: 0 0 0 8px rgba(183, 154, 93, 0); } 100% { box-shadow: 0 0 0 0 rgba(183, 154, 93, 0); } }
.dot.open { background: #8fb27a; box-shadow: 0 0 0 0 rgba(143, 178, 122, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(143, 178, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(143, 178, 122, 0); } }
.order-btn {
  font: inherit; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: inherit; cursor: pointer;
  background: none; border: 1px solid currentColor; border-radius: 999px; padding: .55rem 1.1rem; display: inline-flex; align-items: center; gap: .6rem;
  transition: background .3s, color .3s, border-color .3s;
}
.order-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .68rem; font-weight: 500; letter-spacing: 0; transition: transform .35s var(--ease); }
.count.bump { transform: scale(1.35); }

/* buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer; font: inherit; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 1rem 1.9rem; border-radius: 999px; border: 1px solid transparent; transition: background .35s, color .35s, border-color .35s, transform .25s var(--ease);
  will-change: transform;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--gold); color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ivory); }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.pwrap { position: relative; overflow: hidden; }
.pwrap > img { position: absolute; inset: -10% 0 auto 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { inset: -8% 0 auto 0; height: 116%; scale: 1.12; animation: heroZoom 14s var(--ease) 1.2s forwards; object-position: center 40%; }
@keyframes heroZoom { to { scale: 1.0; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 19, 18, .55) 0%, rgba(20, 19, 18, .1) 35%, rgba(20, 19, 18, .35) 60%, rgba(20, 19, 18, .85) 100%); }
.hero-inner { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(5rem, 11vh, 8rem); }
.hero h1 { font-size: clamp(3.4rem, 10.5vw, 9.5rem); line-height: .92; letter-spacing: -.03em; }
.hero h1 em { color: var(--gold-soft); }
.hero .eyebrow { color: rgba(255, 255, 255, .92); text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.line { display: block; overflow: hidden; padding-bottom: .08em; }
.line > span { display: block; transform: translateY(110%); transition: transform 1.3s var(--ease); transition-delay: calc(var(--i) * .12s + .25s); }
html.ready .line > span { transform: none; }
.hero-line { overflow: hidden; }
.hero-line > span, .hero-line.hero-cta > * { display: block; }
.hero-line > span { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i) * .12s + .3s); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; overflow: visible; opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: .85s; }
html.ready .hero-line > span, html.ready .hero-cta { opacity: 1; transform: none; }
.hero-badge { margin: 0 0 1.3rem; }
.hero-badge > span { display: inline-flex; align-items: center; gap: .65rem; padding: .55rem 1.1rem; border: 1px solid rgba(214, 194, 145, .65); border-radius: 999px; background: rgba(20, 19, 18, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--gold-soft); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.hero .lead { max-width: 32rem; font-size: 1.15rem; color: rgba(255, 255, 255, .82); margin: 2rem 0 2.4rem; }
.scroll-cue { position: absolute; right: clamp(1.25rem, 4vw, 2.5rem); bottom: 2.4rem; width: 1px; height: 64px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: 0; width: 1px; height: 24px; background: var(--gold-soft); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-30px); } 100% { transform: translateY(70px); } }

/* marquee */
.marquee { background: var(--ink); color: var(--gold-soft); overflow: hidden; padding: 1.1rem 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.marquee-track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: marquee 38s linear infinite; font-family: var(--serif); font-style: italic; font-size: 1.5rem; white-space: nowrap; }
.marquee i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
.section { padding: clamp(5rem, 11vw, 9rem) 0; }
.section.dark { background: var(--ink); color: var(--ivory); }
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.img-reveal[data-reveal] { transform: none; }
.img-reveal .img-frame, .gift-card .img-frame, .idea .img-frame, .gift-row .img-frame {
  clip-path: inset(9% 7% 9% 7% round 6px); opacity: 0;
  transition: clip-path 1.5s var(--ease) var(--d, 0s), opacity 1s var(--ease) var(--d, 0s);
}
.img-reveal.in .img-frame, .gift-card.in .img-frame, .idea.in .img-frame, .gift-row figure.in .img-frame { clip-path: inset(0 round 4px); opacity: 1; }
.img-frame > img { scale: 1.16; transition: scale 2.2s var(--ease) var(--d, 0s); }
.in .img-frame > img { scale: 1; }

/* counter */
.counter-section { background: var(--paper); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.6rem; }
.search input {
  font: inherit; font-size: .95rem; width: min(100%, 300px); padding: .85rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink);
  transition: border-color .3s, background .3s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--gold); background: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.4rem; }
.filter {
  font: inherit; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1.2rem; transition: all .35s var(--ease); display: inline-flex; gap: .55rem; align-items: baseline;
}
.filter small { font-size: .68rem; opacity: .6; letter-spacing: 0; }
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, 2.4vw, 2rem); grid-template-columns: repeat(3, 1fr); transition: opacity .25s, transform .25s; }
.card { position: relative; }
.card.pre { opacity: 0; transform: translateY(28px); }
.card.pre.in { opacity: 1; transform: none; transition: opacity 1s var(--ease) calc(var(--c, 0) * 90ms), transform 1.1s var(--ease) calc(var(--c, 0) * 90ms); }

/* filtering: cards glide to their new place (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(*) { animation-duration: .65s; animation-timing-function: var(--ease); }
::view-transition-old(*):only-child { animation: vtOut .35s ease both; }
::view-transition-new(*):only-child { animation: vtIn .7s var(--ease) .12s both; }
@keyframes vtOut { to { opacity: 0; transform: scale(.94); } }
@keyframes vtIn { from { opacity: 0; transform: scale(.94); } }
.card-btn { all: unset; display: block; width: 100%; cursor: pointer; }
.card-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.thumb { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease); }
.card:hover .thumb img { transform: scale(1.07); }
.thumb::after { content: "View"; position: absolute; left: 1rem; bottom: 1rem; padding: .5rem 1rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; background: var(--ivory); border-radius: 999px; opacity: 0; transform: translateY(10px); transition: all .5s var(--ease); }
.card:hover .thumb::after, .card-btn:focus-visible .thumb::after { opacity: 1; transform: none; }
.card-body { padding: 1.1rem .1rem 0; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.tag { align-self: flex-start; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: #8a6d33; border: 1px solid rgba(138, 109, 51, .4); border-radius: 999px; padding: .22rem .7rem; }
.price { font-size: .9rem; color: var(--ink); font-weight: 400; white-space: nowrap; }
.card h3 { font-size: 1.75rem; margin: .5rem 0 .25rem; line-height: 1.1; transition: color .4s; }
.card:hover h3 { color: #8a6d33; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.quick-add {
  position: absolute; top: .8rem; right: .8rem; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--ivory); font-size: 1.4rem; line-height: 1; display: grid; place-items: center;
  transition: background .3s, color .3s, transform .4s var(--ease); z-index: 2;
}
.quick-add:hover { background: var(--gold); color: var(--ink); transform: rotate(90deg); }
.empty { text-align: center; color: var(--muted); padding: 3rem 0; }

/* ideas */
.ideas { background: var(--sand); }
.ideas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem) clamp(1.2rem, 3vw, 3rem); }
.idea { margin: 0; }
.idea.offset { margin-top: clamp(1.5rem, 6vw, 5rem); }
.idea .img-frame { aspect-ratio: 4 / 3; }
.idea figcaption { padding-top: 1.2rem; max-width: 30rem; }
.idea h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; }
.idea p { margin: .5rem 0 0; color: var(--muted); }
@media (max-width: 800px) { .ideas-grid { grid-template-columns: 1fr; } .idea.offset { margin-top: 0; } }

/* gifts */
.gifts-head { max-width: 52rem; }
.gifts h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.gifts .btn { margin-top: 2.2rem; }
.gift-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2rem); margin-top: clamp(2.5rem, 6vw, 5rem); }
.gift-row figure { margin: 0; }
.gift-row .img-frame { aspect-ratio: 4 / 3; }
.gift-row figcaption { margin-top: .9rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(247, 243, 236, .75); }
@media (max-width: 800px) { .gift-row { grid-template-columns: 1fr; } }
.gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 3rem); margin-top: clamp(3rem, 7vw, 5rem); align-items: start; }
.gift-card { margin: 0; }
.gift-card.offset { margin-top: clamp(2rem, 8vw, 6rem); }
.gift-card .img-frame { aspect-ratio: 4 / 3; }
.gift-card figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 1.1rem; font-size: .85rem; letter-spacing: .08em; }
.gift-card figcaption i { color: var(--gold-soft); font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0; }

/* about */
.about { background: var(--ivory); padding-bottom: 0; }
.statement { font-size: clamp(2rem, 5.4vw, 4.4rem); line-height: 1.12; max-width: 18em; }
.statement .w { color: rgba(20, 19, 18, .22); transition: color .5s var(--ease); }
.statement .w.on { color: var(--ink); }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; margin-top: clamp(3rem, 8vw, 6rem); }
.about figure { margin: 0; }
.about .img-frame { aspect-ratio: 4 / 3; }
.about-text p { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.2rem; }
.band { margin: clamp(4rem, 9vw, 7rem) 0 0; height: clamp(320px, 62vw, 640px); }
.band-window { margin-top: 0; height: clamp(300px, 52vw, 560px); }
.visit .band { margin-top: clamp(4rem, 9vw, 7rem); }
.band img { inset: -12% 0 auto 0; height: 124%; }

/* visit */
.visit { background: var(--sand); padding-bottom: 0; }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.open-line { display: flex; align-items: center; gap: .7rem; margin: 1.6rem 0 2rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.visit .dot { background: var(--stone); }
.visit .dot.open { background: #6e9a58; }
.visit .dot.soon { background: var(--gold); }
.details { margin: 0 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.details dt { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.details dd { margin: 0; }
.details a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.details a:hover { background-size: 100% 1px; }
.hours { list-style: none; margin: 0 0 2.2rem; padding: 0; border-top: 1px solid var(--line); }
.hours li { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.hours li.today { color: var(--ink); }
.hours li.today span:first-child::after { content: "Today"; margin-left: .7rem; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.visit-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.visit-grid { align-items: stretch; }
.visit-info { background: var(--ink); color: var(--ivory); padding: clamp(1.8rem, 4vw, 3.2rem); border-radius: 6px; }
.visit-info .eyebrow.dark { color: var(--gold-soft); }
.visit-info h2 { color: var(--ivory); }
.visit-info .open-line { color: var(--ivory); }
.visit-info .details dt { color: var(--gold-soft); }
.visit-info .hours { border-top-color: rgba(255, 255, 255, .14); }
.visit-info .hours li { border-bottom-color: rgba(255, 255, 255, .14); color: rgba(247, 243, 236, .62); }
.visit-info .hours li.today { color: #fff; }
.visit-info .btn-ghost:hover { background: var(--ivory); color: var(--ink); }
.visit-img { margin: 0; display: flex; }
.visit-img .img-frame { flex: 1; }
.signature { margin: 2rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: #8a6d33; line-height: 1.2; }
.signature small { display: block; margin-top: .3rem; font-family: var(--sans); font-style: normal; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.visit-img .img-frame { aspect-ratio: auto; min-height: 460px; }
.visit-img img { object-position: 30% center; }

/* footer */
.site-footer { box-shadow: inset 0 2px 0 var(--gold); background: var(--ink); color: var(--ivory); padding: clamp(4rem, 8vw, 6rem) 0 6rem; text-align: center; }
.footer-logo { width: min(80%, 520px); height: auto; filter: invert(1); opacity: .95; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.2rem; margin: 3rem 0 2.5rem; }
.footer-nav a { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; opacity: .75; transition: opacity .2s, color .2s; }
.footer-nav a:hover { opacity: 1; color: var(--gold-soft); }
.site-footer p { margin: .3rem 0; font-size: .8rem; color: rgba(247, 243, 236, .55); }

/* mobile tab bar */
.tabbar { display: none; }
button, a { -webkit-tap-highlight-color: transparent; }

/* product dialog */
dialog#product { border: 0; padding: 0; background: var(--ivory); color: var(--ink); width: min(960px, calc(100vw - 2rem)); max-height: calc(100svh - 2rem); border-radius: 6px; overflow: hidden; opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .45s var(--ease), transform .45s var(--ease), display .45s allow-discrete, overlay .45s allow-discrete; }
dialog#product[open] { opacity: 1; transform: none; display: grid; grid-template-columns: 1fr 1fr; }
@starting-style { dialog#product[open] { opacity: 0; transform: translateY(24px) scale(.98); } }
dialog#product::backdrop { background: rgba(20, 19, 18, 0); backdrop-filter: blur(0); transition: background .5s var(--ease), backdrop-filter .5s var(--ease), display .5s allow-discrete, overlay .5s allow-discrete; }
dialog#product[open]::backdrop { background: rgba(20, 19, 18, .6); backdrop-filter: blur(4px); }
@starting-style { dialog#product[open]::backdrop { background: rgba(20, 19, 18, 0); backdrop-filter: blur(0); } }
.p-img { background: var(--sand); min-height: 100%; }
.p-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-body { padding: clamp(1.6rem, 4vw, 3rem); display: flex; flex-direction: column; gap: .8rem; overflow: auto; }
.p-body h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.p-body .note { color: var(--muted); margin: .4rem 0 .6rem; }
.p-body dl { margin: 0; border-top: 1px solid var(--line); }
.p-body dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.p-body dt { color: var(--muted); }
.p-body dd { margin: 0; text-align: right; }
.p-actions { margin-top: auto; padding-top: 1.2rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.p-price { font-family: var(--serif); font-size: 1.6rem; }
.icon-btn { background: none; border: 0; cursor: pointer; font-size: 2rem; line-height: 1; width: 44px; height: 44px; border-radius: 50%; color: inherit; transition: background .3s, transform .4s var(--ease); }
.icon-btn:hover { background: rgba(20, 19, 18, .08); transform: rotate(90deg); }
.p-close { position: absolute; top: .6rem; right: .6rem; z-index: 3; background: var(--ivory); }

/* order drawer */
.view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 1.8rem; border-top: 1px solid var(--line); background: var(--ivory); }
.order-total.flat { padding: 1rem 0; background: none; border-top: 1px solid var(--line); }
.order-total span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.order-total b { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; }
.demo-banner { margin: 1rem 0; padding: .9rem 1rem; border: 1px dashed var(--gold); background: rgba(183, 154, 93, .12); font-size: .85rem; line-height: 1.5; border-radius: 4px; }
.pay-summary { list-style: none; margin: 0; padding: 0; }
.pay-summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.pay-summary li span:last-child { color: var(--muted); white-space: nowrap; }
.order-body fieldset { border: 0; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .8rem; }
.order-body legend { padding: 0; margin-bottom: .6rem; font-family: var(--serif); font-size: 1.4rem; }
.order-body label { display: grid; gap: .3rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.order-body input { font: inherit; font-size: .95rem; letter-spacing: 0; text-transform: none; padding: .75rem .9rem; border: 1px solid var(--line); background: #fff; border-radius: 4px; color: var(--ink); transition: border-color .25s, box-shadow .25s; }
.order-body input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(183, 154, 93, .2); }
.order-body input[aria-invalid="true"] { border-color: #b4553f; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.link-btn.left { justify-self: start; }
.pay-error { margin: 0; color: #a1442f; font-size: .88rem; }
.pay-btn { position: relative; }
.pay-btn .spinner { display: none; width: 16px; height: 16px; margin-left: .7rem; border: 2px solid rgba(247, 243, 236, .35); border-top-color: var(--ivory); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; }
.pay-btn.busy { pointer-events: none; opacity: .85; }
.pay-btn.busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.back-btn { margin-left: -.6rem; margin-right: .3rem; font-size: 1.5rem; }
.back-btn:hover { transform: none; }
#order > header { gap: .4rem; }
#order > header h2 { flex: 1; }
.done-body { text-align: center; padding-top: 2rem; }
.done-body h3 { font-size: 2.2rem; margin: 1rem 0 .3rem; }
.done-body .pay-summary { text-align: left; margin-top: 1.4rem; }
.tick { width: 74px; height: 74px; }
.tick circle { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s var(--ease) forwards; }
.tick path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(20, 19, 18, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .5s var(--ease); }
.scrim.show { opacity: 1; }
#order { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(440px, 100vw); background: var(--ivory); display: flex; flex-direction: column; transform: translateX(104%); transition: transform .65s var(--ease), visibility 0s .65s; visibility: hidden; box-shadow: -20px 0 60px rgba(0, 0, 0, .2); }
#order.open { transform: none; visibility: visible; transition: transform .65s var(--ease); }
#order > header { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem 1.2rem 1.8rem; border-bottom: 1px solid var(--line); }
#order h2 { font-size: 2rem; }
.order-body { flex: 1; overflow: auto; padding: .5rem 1.8rem; }
#order-items { list-style: none; margin: 0; padding: 0; }
#order-items li { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
#order-items img { width: 64px; height: 80px; object-fit: cover; }
#order-items h3 { font-size: 1.25rem; line-height: 1.1; }
#order-items small { color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: .2rem; margin-top: .4rem; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 1rem; line-height: 1; color: inherit; transition: background .2s, border-color .2s; }
.qty button:hover { border-color: var(--ink); background: #fff; }
.qty b { min-width: 1.8rem; text-align: center; font-weight: 400; }
.remove { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.remove:hover { color: var(--ink); }
.order-empty { color: var(--muted); padding: 2rem 0; }
.order-form { padding: 1.2rem 1.8rem calc(1.4rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--sand); display: grid; gap: .9rem; }
.order-form label { display: grid; gap: .3rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.order-form input { font: inherit; font-size: .95rem; letter-spacing: 0; text-transform: none; padding: .7rem .9rem; border: 1px solid var(--line); background: var(--ivory); border-radius: 4px; color: var(--ink); }
.order-form input:focus { outline: none; border-color: var(--gold); }
.order-actions { display: grid; gap: .6rem; margin-top: .3rem; }
.order-actions .btn { text-align: center; padding: .9rem 1rem; }
.order-actions[data-empty] .btn { opacity: .4; pointer-events: none; }
.link-btn { background: none; border: 0; font: inherit; font-size: .78rem; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: center; }
.fine { margin: 0; font-size: .78rem; color: var(--muted); text-align: center; }

.toast { position: fixed; left: 50%; bottom: 2rem; z-index: 65; transform: translate(-50%, 30px); background: var(--ink); color: var(--ivory); padding: .85rem 1.5rem; border-radius: 999px; font-size: .85rem; letter-spacing: .04em; opacity: 0; pointer-events: none; transition: opacity .4s, transform .5s var(--ease); max-width: calc(100vw - 2rem); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 1.4rem; }
  .status span { display: none; }
}
@media (max-width: 800px) {
  :root { --header-h: 60px; }
  .nav, .order-btn { display: none; }
  .status span { display: inline; }
  .logo img { height: 26px; }
  .gift-grid, .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .gift-card.offset { margin-top: 0; }
  .visit-img .img-frame { aspect-ratio: 4 / 3; min-height: 0; flex: none; width: 100%; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: .6rem; right: .6rem; bottom: calc(.6rem + env(safe-area-inset-bottom)); z-index: 55;
    background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 999px; padding: .35rem;
  }
  .tabbar a, .tabbar button { font: inherit; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(247, 243, 236, .7); text-decoration: none; text-align: center; padding: .8rem .2rem; border: 0; background: none; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; transition: background .3s, color .3s; }
  .tabbar a.active { background: var(--gold); color: var(--ink); }
  .tabbar .count { min-width: 1.2rem; height: 1.2rem; font-size: .62rem; }
  .site-footer { padding-bottom: 8rem; }
  .toast { bottom: 5.8rem; }
  dialog#product[open] { grid-template-columns: 1fr; overflow: auto; }
  .p-img { aspect-ratio: 4 / 3; min-height: 0; }
  .p-body { overflow: visible; }
  #order { width: 100vw; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .details { grid-template-columns: 1fr; }
  .section-head { align-items: stretch; }
  .search input { width: 100%; }
  .hero-inner { padding-bottom: 7.5rem; }
}

/* parallax runs on the compositor where scroll-driven animations are supported */
@keyframes px { from { transform: translate3d(0, calc(var(--p, 5%) * -1), 0); } to { transform: translate3d(0, var(--p, 5%), 0); } }
@keyframes heroScroll { to { transform: translate3d(0, 8svh, 0); } }
.pwrap > img[data-parallax="0.08"] { --p: 5.5%; }
.pwrap > img[data-parallax="0.12"] { --p: 8%; }
@supports (animation-timeline: view()) {
  .pwrap > img[data-parallax] { animation: px linear both; animation-timeline: view(); animation-range: cover; }
  .hero-media > img[data-parallax] { animation: heroZoom 14s var(--ease) 1.2s forwards, heroScroll linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 100svh; }
}

/* phone refinements */
@media (max-width: 800px) {
  .section { padding: clamp(3.5rem, 14vw, 5rem) 0; }
  .visit { padding-bottom: 0; }
  .tabbar { transition: transform .55s var(--ease); }
  .tabbar.away { transform: translateY(170%); }
  /* hero: keep the whole shop sign in view */
  .hero-media { inset: 0 0 auto 0; height: 60svh; }
  .hero-media img, .hero-media > img[data-parallax] { inset: 0 auto auto 0; height: 100%; scale: 1; animation: none; object-position: 56% 30%; }
  .hero-shade { background: linear-gradient(180deg, rgba(20, 19, 18, .5) 0%, rgba(20, 19, 18, .05) 22%, rgba(20, 19, 18, .45) 36%, rgba(20, 19, 18, .9) 50%, var(--ink) 60%); }
  .hero-inner { padding-bottom: 6rem; }
  .hero .lead { font-size: 1.02rem; margin: 1.5rem 0 1.8rem; }
  .hero-cta { flex-wrap: nowrap; gap: .6rem; }
  .hero-cta .btn { padding: .95rem 1.1rem; font-size: .66rem; letter-spacing: .11em; white-space: nowrap; }
  /* swipeable rows */
  .ideas-grid, .gift-row {
    display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-left: calc(-1 * clamp(1.25rem, 4vw, 2.5rem)); margin-right: calc(-1 * clamp(1.25rem, 4vw, 2.5rem));
    padding: 0 clamp(1.25rem, 4vw, 2.5rem) .5rem; scroll-padding-left: clamp(1.25rem, 4vw, 2.5rem);
  }
  .ideas-grid::-webkit-scrollbar, .gift-row::-webkit-scrollbar { display: none; }
  .idea, .gift-row figure { flex: 0 0 82%; scroll-snap-align: start; }
  .idea.offset { margin-top: 0; }
  .ideas-grid [data-reveal], .gift-row [data-reveal] { opacity: 1; transform: none; }
  .idea .img-frame, .gift-row .img-frame { clip-path: none; opacity: 1; }
  .idea .img-frame > img, .gift-row .img-frame > img { scale: 1; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem .8rem; }
  .card p { display: none; }
  .card-body { padding-top: .7rem; }
  .card-top { display: contents; }
  .card .tag { order: 1; }
  .card h3 { order: 2; }
  .card .price { order: 3; }
  .card h3 { font-size: 1.3rem; margin: .15rem 0 0; }
  .price { font-size: .78rem; }
  .quick-add { width: 36px; height: 36px; top: .5rem; right: .5rem; font-size: 1.2rem; }
  .thumb::after { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-right: -1.25rem; padding-right: 1.25rem; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .marquee-track { animation: none; }
  [data-reveal], .card, .line > span, .hero-line > span, .hero-cta { opacity: 1; transform: none; }
  .img-reveal .img-frame, .gift-card .img-frame, .idea .img-frame, .gift-row .img-frame { clip-path: none; opacity: 1; }
  .img-frame > img { scale: 1; }
  .card.pre { opacity: 1; transform: none; }
  .hero-media img { scale: 1; }
}
html:not(.js) [data-reveal], html:not(.js) .line > span, html:not(.js) .hero-line > span, html:not(.js) .hero-cta { opacity: 1; transform: none; }
html:not(.js) .img-reveal .img-frame, html:not(.js) .gift-card .img-frame, html:not(.js) .idea .img-frame, html:not(.js) .gift-row .img-frame { clip-path: none; opacity: 1; }
html:not(.js) .img-frame > img { scale: 1; }
