/* DARCYCO. Colours, type and motion live here, in one place. */
:root {
  --paper: #f6f2ec;
  --paper-2: #ece6dd;
  --ink: #14110f;
  --muted: #7a716a;
  --line: rgba(20, 17, 15, .14);
  --error: #8b1a1a;
  --serif: "Bodoni Moda", Didot, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --header: 64px;
  --ticker: 34px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.bag-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
::selection { background: var(--ink); color: var(--paper); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.01em; margin: 0 0 .45em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
em { font-style: italic; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 12px; }
.eyebrow { font-size: .68rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2em; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 34em; }

/* ── Brand marks: the logo, drawn in whatever colour the text is ───────────── */
.mono, .wordmark {
  display: inline-block;
  background: currentColor;
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
}
.mono { --mark: url("/images/monogram.png"); aspect-ratio: 1072 / 1200; }
.wordmark { --mark: url("/images/wordmark.png"); aspect-ratio: 1000 / 99; }

.seal {
  --size: 64px;
  display: inline-grid; place-items: center;
  width: var(--size); height: var(--size); border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #463d37, var(--ink) 62%);
  box-shadow: inset 0 0 0 calc(var(--size) * .06) rgba(255, 255, 255, .05), inset 0 -3px 8px rgba(0, 0, 0, .5), 0 6px 18px rgba(20, 17, 15, .25);
  color: var(--paper);
}
.seal .mono { width: 44%; opacity: .92; filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, .6)); }
.seal-sm { --size: 30px; box-shadow: none; }
.seal-lg { --size: 104px; }

/* ── Buttons and links ─────────────────────────────────────────────────── */
.button {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 34px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 0;
  font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  transition: color .4s var(--ease);
  isolation: isolate;
}
.button::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--paper);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.button:hover:not(:disabled) { color: var(--ink); }
.button:hover:not(:disabled)::before { transform: none; }
.button:disabled { background: var(--paper-2); border-color: var(--paper-2); color: var(--muted); }
.button.wide { width: 100%; }
.button.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button.light::before { background: transparent; }
.button.light:hover { color: var(--paper); background: transparent; }
.button.is-loading { pointer-events: none; }
.button.is-loading::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.text-link { font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.text-button { background: none; border: 0; padding: 0; font-size: .8rem; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: var(--ticker) 0 auto; z-index: 30; height: var(--header);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(246, 242, 236, .86);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-color: var(--line);
}
.nav { display: flex; gap: 28px; }
.nav a, .bag-button { font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.brand { display: block; line-height: 0; }
.brand .wordmark { width: clamp(124px, 14vw, 172px); }
.bag-button { justify-self: end; display: flex; align-items: center; gap: 8px; min-height: 44px; background: none; border: 0; padding: 0; }
.bag-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--ink); color: var(--paper); font-size: .62rem; letter-spacing: 0;
}
.bag-count.is-empty { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.bag-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
@media (max-width: 960px) { .wide-only { display: none; } }

main { padding-top: calc(var(--ticker) + var(--header)); }
.home main { padding-top: var(--ticker); }

/* ── Moving bands: free-shipping ticker and Australian Made ribbon ─────── */
.marquee { overflow: hidden; display: flex; white-space: nowrap; }
.marquee-track { display: flex; flex: none; animation: marquee var(--speed, 40s) linear infinite; }
.marquee-track > div { display: flex; flex: none; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-mono { width: .9em; margin: 0 1.6em; opacity: .7; }
.ticker {
  position: fixed; inset: 0 0 auto; z-index: 31; height: var(--ticker);
  align-items: center; background: var(--ink); color: var(--paper);
  font-size: .64rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  --speed: 48s;
}
.ticker .marquee-mono { width: 11px; }
.ribbon-wrap { overflow: hidden; overflow: clip; padding: 56px 0; }
.ribbon {
  transform: rotate(-2.2deg); width: 110%; margin-left: -5%;
  background: var(--ink); color: var(--paper);
  padding: 20px 0; box-shadow: 0 18px 40px rgba(20, 17, 15, .14);
  font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 3rem); font-style: italic; letter-spacing: .01em;
  --speed: 34s;
}
.ribbon .marquee-track { animation-direction: reverse; }
.ribbon .marquee-mono { width: .7em; opacity: .55; }

/* ── Intro: the monogram as a window ─────────────────────────────────────── */
.intro { height: 270vh; height: 250svh; position: relative; }
.intro-stage { position: sticky; top: var(--ticker); height: calc(100vh - var(--ticker)); height: calc(100svh - var(--ticker)); overflow: hidden; }
.intro-window, .intro-photo {
  position: absolute; inset: 0;
  background: url("/images/group-night.jpg") 50% 60% / cover no-repeat;
}
.intro-window {
  -webkit-mask: url("/images/monogram.png") no-repeat;
  mask: url("/images/monogram.png") no-repeat;
  -webkit-mask-size: var(--mask-size, 38vmin auto); mask-size: var(--mask-size, 38vmin auto);
  -webkit-mask-position: var(--mask-pos, center 42%); mask-position: var(--mask-pos, center 42%);
}
.intro-photo { opacity: 0; z-index: 1; }
.intro-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(20, 17, 15, .55), rgba(20, 17, 15, .3)); }
.intro-caption {
  position: absolute; left: 0; right: 0; bottom: max(4vh, 24px);
  display: grid; justify-items: center; gap: 14px; text-align: center; padding: 0 var(--gutter);
}
.intro-caption .eyebrow { margin: 0; }
.intro-wordmark { width: min(300px, 62vw); }
.scroll-cue { margin: 6px 0 0; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--ink), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.intro-end {
  position: absolute; inset: 0; z-index: 2; opacity: 0;
  display: grid; place-content: center; justify-items: center; gap: 28px; text-align: center;
  color: var(--paper); padding: 0 var(--gutter);
}
.intro-end h1 { margin: 0; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.no-js .intro { height: auto; }
.no-js .intro-stage { position: relative; }
.no-js .intro-window { -webkit-mask: none; mask: none; }
.no-js .intro-caption { display: none; }
.no-js .intro-end { opacity: 1; }

/* ── The four places ───────────────────────────────────────────────────── */
.panels { display: flex; height: 92vh; min-height: 560px; background: var(--ink); }
.panel {
  position: relative; flex: 1; overflow: hidden;
  color: var(--paper); text-decoration: none;
  background: var(--img) center / cover no-repeat;
  transition: flex .8s var(--ease);
}
.panel + .panel { border-left: 1px solid rgba(246, 242, 236, .18); }
.panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 17, 15, .28), transparent 30%, transparent 45%, rgba(20, 17, 15, .72)); transition: background .6s; }
.panel-index { position: absolute; top: calc(var(--header) + 20px); left: 24px; font-size: .7rem; letter-spacing: .24em; }
.panel-body { position: absolute; left: 24px; right: 24px; bottom: 32px; display: grid; gap: 6px; }
.panel-place { font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 3.4rem); line-height: 1; }
.panel-line { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-more { display: grid; gap: 4px; margin-top: 14px; max-height: 0; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .6s var(--ease), max-height .6s var(--ease); }
.panel-name { font-family: var(--serif); font-style: italic; font-size: 1.3rem; }
.panel-notes { font-size: .85rem; opacity: .85; }
.panel-cta { margin-top: 10px; justify-self: start; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
@media (min-width: 900px) and (hover: hover) {
  .panel:hover, .panel:focus-visible { flex: 2.6; }
  .panel:hover .panel-more, .panel:focus-visible .panel-more { max-height: 160px; opacity: 1; transform: none; transition-delay: .15s; }
}
@media (max-width: 899px), (hover: none) {
  .panels { flex-direction: column; height: auto; }
  .panel { flex: none; height: 78svh; min-height: 460px; }
  .panel + .panel { border-left: 0; border-top: 1px solid rgba(246, 242, 236, .18); }
  .panel-index { top: 24px; }
  .panel-more { max-height: none; opacity: 1; transform: none; }
}

/* ── Sections and the collection grid ───────────────────────────────────── */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section-head p:last-child { margin: 0; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 48px 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: 64px 28px; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}
.card { position: relative; }
.card a { text-decoration: none; display: block; }
.card-media { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; margin-bottom: 18px; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
.card-hover { opacity: 0; }
@media (hover: hover) {
  .card a:hover .card-hover { opacity: 1; }
  .card a:hover .card-media img { transform: scale(1.04); }
}
.card-index { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: .6em; }
.card h3 { margin-bottom: .35em; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--muted); margin: 0; }
.card-meta span:last-child { color: var(--ink); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--paper); padding: 4px 10px; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; }
.quick-add {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 0; font-size: 1.3rem; font-weight: 300; line-height: 1;
  transition: background .3s, color .3s, transform .4s var(--ease), opacity .3s;
}
.quick-add:hover { background: var(--ink); color: var(--paper); transform: rotate(90deg); }
.quick-add:disabled { display: none; }
@media (hover: hover) { .quick-add { opacity: 0; } .card:hover .quick-add, .quick-add:focus-visible { opacity: 1; } }

/* ── Scent finder ──────────────────────────────────────────────────────── */
.finder { position: relative; overflow: hidden; overflow: clip; background: var(--ink); color: var(--paper); padding: clamp(88px, 12vw, 160px) var(--gutter); }
.finder .eyebrow { color: rgba(246, 242, 236, .6); }
.finder-mono { position: absolute; right: -6vw; top: 50%; transform: translateY(-50%); width: min(62vw, 640px); opacity: .06; pointer-events: none; }
.finder-inner { position: relative; max-width: 1120px; margin: 0 auto; min-height: 320px; }
.finder-q { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 32px 0 22px; }
.finder-q span { font-family: var(--sans); font-size: .66rem; letter-spacing: .22em; opacity: .55; margin-right: 14px; vertical-align: middle; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 52px; padding: 0 24px;
  background: transparent; color: var(--paper);
  border: 1px solid rgba(246, 242, 236, .35);
  font-size: .9rem; transition: background .3s, color .3s, border-color .3s;
}
.chip:hover, .chip:focus-visible { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.enter { animation: enter .6s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } }
.match { display: grid; gap: 28px; margin-top: 32px; align-items: center; }
@media (min-width: 700px) { .match { grid-template-columns: 300px 1fr; gap: 48px; } }
.match-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.match h3 { font-size: clamp(2rem, 4vw, 3rem); }
.match-notes { opacity: .7; }
.match-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 24px 0; }
.finder .button { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.finder .button::before { background: var(--ink); }
.finder .button:hover { color: var(--paper); }
.finder .text-button { color: rgba(246, 242, 236, .6); }

.moods { display: grid; gap: 10px; margin-top: 36px; }
@media (min-width: 700px) { .moods { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .moods { grid-template-columns: repeat(4, 1fr); } }
.mood {
  display: grid; gap: 8px; align-content: end; text-align: left;
  min-height: 132px; padding: 22px;
  background: transparent; color: var(--paper);
  border: 1px solid rgba(246, 242, 236, .3);
  transition: background .35s, color .35s, border-color .35s, transform .5s var(--ease);
}
.mood:hover, .mood:focus-visible { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: translateY(-3px); }
.mood-label { font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; }
.mood-notes { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; opacity: .65; }

/* ── Coming soon ───────────────────────────────────────────────────────── */
.soon { border-top: 1px solid var(--line); }
.soon-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 56px 24px; }
@media (min-width: 700px) { .soon-grid { grid-template-columns: repeat(2, 1fr); gap: 56px 28px; } }
@media (min-width: 1200px) { .soon-grid { grid-template-columns: repeat(4, 1fr); } }
.soon-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); margin-bottom: 18px; }
.soon-media img { width: 100%; height: 100%; object-fit: cover; }
.soon-type { display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px; }
.tone-ink { background: radial-gradient(circle at 50% 35%, #2b2522, var(--ink) 70%); color: #d9bf8f; }
.tone-cream { background: radial-gradient(circle at 50% 35%, #fbf8f3, #ece4d8 75%); color: var(--ink); }
.tone-sun { background: linear-gradient(155deg, #f3dccb 0%, #d8a98c 38%, #b98068 62%, #e9c6ae 100%); color: #3b2219; }
.tone-sun::after {
  content: ""; position: absolute; inset: -20%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 246, 236, .55) 50%, transparent 60%);
  animation: sheen 5.5s var(--ease) infinite;
}
@keyframes sheen { 0% { transform: translateX(-60%); } 55%, 100% { transform: translateX(60%); } }
.tone-sun .soon-type-name, .tone-sun .soon-type-kind, .tone-sun .soon-mono, .tone-sun .sun { position: relative; z-index: 1; }
.tone-sunset { background: linear-gradient(180deg, #f6d3b5 0%, #eba987 45%, #c9746a 78%, #8f4f5c 100%); color: #3a1c1e; }
.tone-sunset::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 46%, rgba(255, 236, 214, .55), transparent 42%); animation: glowSet 7s ease-in-out infinite alternate; }
@keyframes glowSet { to { transform: translateY(8%); opacity: .6; } }
.tone-sunset .soon-type-name, .tone-sunset .soon-type-kind, .tone-sunset .sun { position: relative; z-index: 1; }
.sun.sunset { animation: none; }
.sun { width: 64px; height: 64px; margin-bottom: 14px; fill: none; stroke: currentColor; stroke-width: 1; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.soon-mono { width: 54px; margin-bottom: 18px; }
.soon-type-name { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.05; }
.soon-type-kind { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; opacity: .75; }
.soon-media .badge { left: 12px; top: 12px; }
.soon-desc { color: var(--muted); font-size: .9rem; margin: 10px 0 18px; }
.notify { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--ink); }
.notify input[type="email"] { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; font: inherit; font-size: .9rem; padding: 0; }
.notify input[type="email"]:focus { outline: none; }
.notify button { min-height: 48px; border: 0; background: none; padding: 0 0 0 12px; font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.notify.is-done input, .notify.is-done button { display: none; }
.notify-done { width: 100%; margin: 0; padding: 14px 0; font-family: var(--serif); font-size: 1.05rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Our craft page ──────────────────────────────────────────────────── */
.craft-hero { max-width: 760px; margin: 0 auto; padding: clamp(72px, 11vw, 140px) var(--gutter) clamp(48px, 7vw, 96px); text-align: center; display: grid; justify-items: center; }
.craft-hero .seal { margin-bottom: 32px; transform: rotate(-8deg); }
.craft-hero .lede { margin-inline: auto; }
.craft-steps { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1180px; display: grid; gap: clamp(64px, 10vw, 140px); }
.craft-step { display: grid; gap: 28px; align-items: center; }
.craft-step figure { margin: 0; overflow: hidden; background: var(--paper-2); box-shadow: 0 30px 60px -30px rgba(20, 17, 15, .35); }
.craft-step img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.6s var(--ease); }
.craft-step:hover img { transform: scale(1.03); }
.craft-step:last-child img { aspect-ratio: 5 / 4; }
.craft-num { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; color: rgba(20, 17, 15, .12); margin-bottom: 8px; }
.craft-text h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.craft-text p { color: var(--muted); font-size: 1.05rem; max-width: 26em; }
@media (min-width: 860px) {
  .craft-step { grid-template-columns: 1.1fr 1fr; gap: clamp(48px, 7vw, 110px); }
  .craft-step figure { width: min(100%, 480px); justify-self: end; }
  .craft-step:nth-child(even) figure { order: 2; justify-self: start; }
  .craft-step:last-child { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .craft-step:last-child figure { width: min(100%, 860px); justify-self: center; }
  .craft-step:last-child .craft-text p { margin-inline: auto; }
}
.craft-end { text-align: center; padding: clamp(96px, 12vw, 160px) var(--gutter); display: grid; justify-items: center; gap: 4px; }
.craft-end .button { margin-top: 20px; }
.story-text .text-link { display: inline-block; margin-top: 8px; }

/* ── Story ─────────────────────────────────────────────────────────────── */
.story { display: grid; }
.story-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story-text { padding: 64px var(--gutter) 96px; max-width: 620px; }
.story-text .seal { margin-bottom: 32px; }
.promises { list-style: none; padding: 24px 0 0; margin: 32px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 0; }
.promises li { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
.promises li + li::before { content: "·"; margin: 0 14px; color: var(--muted); }
@media (min-width: 900px) {
  .story { grid-template-columns: 1.15fr 1fr; align-items: center; }
  .story-media img { aspect-ratio: auto; height: 100%; min-height: 680px; }
  .story-text { padding: 80px clamp(40px, 7vw, 120px); }
}

/* ── Product page ──────────────────────────────────────────────────────── */
.product { max-width: var(--max); margin: 0 auto; display: grid; }
@media (min-width: 900px) {
  .product { grid-template-columns: 1.2fr 1fr; gap: clamp(48px, 6vw, 96px); padding: 32px var(--gutter) 0; align-items: start; }
  .product-info { position: sticky; top: calc(var(--ticker) + var(--header) + 40px); padding-top: 24px; }
}
.gallery { min-width: 0; position: relative; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { width: 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: start; background: var(--paper-2); }
.gallery-track img.studio { object-fit: contain; background: #fff; }
/* Desktop: the photos become an editorial collage beside the sticky details. */
@media (min-width: 900px) {
  .gallery-track { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; gap: 10px; overflow: visible; scroll-snap-type: none; }
  .gallery-track img { aspect-ratio: 4 / 5; }
  .gallery-track img:nth-child(3n + 1) { grid-column: span 2; aspect-ratio: 5 / 4; }
  .gallery-track img:first-child { aspect-ratio: 1; }
  .gallery-track img:last-child:nth-child(3n + 2) { grid-column: span 2; aspect-ratio: 16 / 9; }
  .gallery-track img.studio { padding: 6%; }
  .gallery-dots { display: none; }
}
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 8px; }
.gallery-dots button { width: 28px; height: 20px; padding: 0; border: 0; background: none; position: relative; }
.gallery-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: rgba(246, 242, 236, .5); transition: background .3s; }
.gallery-dots button[aria-current]::before { background: var(--paper); }
.product-info { padding: 40px var(--gutter) 0; }
@media (min-width: 900px) { .product-info { padding-inline: 0; } }
.product-info h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); margin-bottom: .2em; }
.product-notes { font-family: var(--serif); font-size: 1.25rem; color: var(--muted); }
.product-desc { font-size: 1.05rem; max-width: 30em; }
.local-time { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); margin: 20px 0 28px; }
.local-time::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #b8925a; box-shadow: 0 0 0 0 rgba(184, 146, 90, .6); animation: glow 2.4s infinite; }
@keyframes glow { 70% { box-shadow: 0 0 0 8px rgba(184, 146, 90, 0); } }
.buy-row { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; }
.product-price { font-size: 1.2rem; margin: 0 0 16px; }
.stock-line { color: var(--error); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.assurances { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 8px; font-size: .84rem; color: var(--muted); }
.assurances li { display: flex; gap: 12px; align-items: center; }
.assurances li::before { content: ""; width: 14px; height: 1px; background: var(--ink); flex: none; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 9px; height: 9px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
details p { margin: 0 0 20px; color: var(--muted); font-size: .9rem; }

.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(246, 242, 236, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(100%); transition: transform .45s var(--ease);
}
.buy-bar.is-visible { transform: none; }
.buy-bar p { margin: 0; font-size: .8rem; }
.buy-bar-name { font-family: var(--serif); font-size: 1.05rem !important; }
.buy-bar .button { min-height: 48px; padding: 0 22px; }
@media (min-width: 900px) { .buy-bar { display: none; } }

/* ── Text pages, thank you ─────────────────────────────────────────────── */
.text-page { max-width: 680px; margin: 0 auto; padding: clamp(64px, 10vw, 128px) var(--gutter); }
.text-mono { width: 34px; margin-bottom: 32px; }
.text-page h2 { font-size: 1.6rem; margin-top: 1.8em; }
.text-page ul { padding-left: 1.2em; }
.text-page li { margin-bottom: .5em; }
.contact-big { font-family: var(--serif); font-size: clamp(1.5rem, 5vw, 2.4rem); }
.thanks { min-height: calc(100svh - var(--header) - var(--ticker)); display: grid; place-content: center; justify-items: center; text-align: center; gap: 4px; padding: 64px var(--gutter); }
.thanks .seal { margin-bottom: 32px; }
.thanks .lede { margin-inline: auto; }
.thanks .button { margin-top: 16px; }
.stamp { animation: stamp .9s cubic-bezier(.3, 1.6, .5, 1) .2s both; }
@keyframes stamp { from { opacity: 0; transform: scale(2.4) rotate(-24deg); } to { opacity: 1; transform: rotate(-8deg); } }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { position: relative; overflow: hidden; overflow: clip; background: var(--ink); color: var(--paper); padding: clamp(72px, 10vw, 120px) var(--gutter) calc(32px + env(safe-area-inset-bottom)); }
.footer-mono { position: absolute; right: -4vw; bottom: -18vw; width: min(70vw, 760px); opacity: .07; pointer-events: none; }
.footer-inner { position: relative; max-width: var(--max); margin: 0 auto; display: grid; gap: 48px; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1fr auto; align-items: end; } }
.footer-wordmark { width: min(320px, 70vw); }
.footer-line { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; margin: 28px 0 0; color: rgba(246, 242, 236, .75); }
.site-footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 48px; }
.site-footer nav a { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.fine { position: relative; max-width: var(--max); margin: 64px auto 0; padding-top: 24px; border-top: 1px solid rgba(246, 242, 236, .14); font-size: .74rem; color: rgba(246, 242, 236, .5); }

/* ── Bag drawer ────────────────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(20, 17, 15, .4); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.bag {
  position: fixed; z-index: 50; top: 0; right: 0; bottom: 0;
  width: min(460px, 100vw);
  background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .45s var(--ease);
}
.bag.is-open { transform: none; }
.bag-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 14px 28px; border-bottom: 1px solid var(--line); }
.bag-head h2 { font-size: 1.7rem; margin: 0; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; }
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.bag-body { flex: 1; overflow-y: auto; padding: 8px 28px calc(28px + env(safe-area-inset-bottom)); }
.bag-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 72px 0; }
.bag-empty .seal { margin-bottom: 20px; transform: rotate(-8deg); }
.bag-empty p { font-family: var(--serif); font-size: 1.3rem; max-width: 14em; margin-bottom: 20px; }
.bag-lines { list-style: none; margin: 0; padding: 0; }
.bag-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); animation: enter .5s var(--ease) both; }
.bag-line img { width: 84px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.bag-line p { margin: 0; }
.bag-name { font-family: var(--serif); font-size: 1.15rem; }
.bag-line-end { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: end; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 12px; }
.qty button { width: 36px; height: 36px; background: none; border: 0; font-size: 1rem; }
.qty button:disabled { color: var(--line); }
.qty span { min-width: 22px; text-align: center; font-size: .88rem; }
.free-ship { margin: 20px 0 10px; font-size: .84rem; }
.meter { height: 2px; background: var(--line); }
.meter span { display: block; height: 100%; background: var(--ink); transition: width .6s var(--ease); }
.region { border: 0; padding: 0; margin: 24px 0 0; }
.region legend { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.segmented button { min-height: 46px; background: none; border: 0; font-size: .82rem; transition: background .3s, color .3s; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.gift { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0; font-size: .9rem; cursor: pointer; }
.gift input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
.gift small { display: block; color: var(--muted); font-size: .78rem; }
.totals { margin: 0 0 6px; border-top: 1px solid var(--line); padding-top: 16px; }
.totals div { display: flex; justify-content: space-between; margin-bottom: 6px; }
.totals dd { margin: 0; }
.form-error { color: var(--error); font-size: .88rem; }
.bag .button.wide { margin-top: 12px; }
.center { text-align: center; }

/* ── Toast ─────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 10px; background: var(--ink); color: var(--paper); font-size: .84rem;
  transform: translate(-50%, 20px); opacity: 0; transition: transform .45s var(--ease), opacity .3s;
}
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; }
.toast .seal { background: var(--paper); color: var(--ink); }
.product-page .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ── Admin ─────────────────────────────────────────────────────────────── */
.admin-login { display: grid; gap: 12px; max-width: 360px; }
.admin-login input, .admin-stock input { font: inherit; padding: 12px; border: 1px solid var(--ink); border-radius: 0; width: 100%; background: transparent; }
.admin-stock table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; }
.admin-stock th { text-align: left; font-weight: 400; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.admin-stock td { width: 110px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ── Motion ────────────────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--delay, 0ms), transform 1.1s var(--ease) var(--delay, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Photos glide from the collection into the product page (Chrome, Edge, Safari 18.2+). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .7, .1, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}
