/* Zoe Glen: UGC & Collaborations portfolio.
   Tokens come from the Coherent Consciousness design system (same values as the main site's css/tokens.css);
   layout and components are from the "Collaborations Portfolio" design handoff. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: 'Playfair Display'; src: url('../fonts/PlayfairDisplay-Variable.ttf') format('truetype-variations'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../fonts/PlayfairDisplay-Italic-Variable.ttf') format('truetype-variations'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Libre Baskerville'; src: url('../fonts/LibreBaskerville-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Libre Baskerville'; src: url('../fonts/LibreBaskerville-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-Variable.ttf') format('truetype-variations'); font-weight: 100 1000; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bark: #7C2424;
  --bark-700: #5C1818;
  --bark-400: #98403B;
  --candle: #F4C157;
  --candle-400: #F7D078;
  --amber: #DF9244;
  --parchment: #FFF8E5;
  --parchment-deep: #F6ECCF;
  --linen: #FFFCF4;
  --clay-100: #ECE1C4;
  --clay-200: #DCCDA7;
  --stone-400: #ABA083;
  --stone-500: #847A60;
  --forest-700: #282D22;
  --forest-300: #8B9180;
  --espresso: #1F1813;
  --fg-1: #1C1814;
  --fg-2: #4A4136;
  --on-dark: #FFF8E5;
  --on-dark-2: #C9BC9C;

  --display: 'Playfair Display', Georgia, serif;
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --pad-y: clamp(72px, 9vw, 120px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--parchment); color: var(--fg-1); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: #6C1F1F; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--bark-700); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, textarea { font: inherit; }
::placeholder { color: var(--stone-400); }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--bark); outline-offset: 3px; }
.on-dark :focus-visible, .site-header :focus-visible { outline-color: var(--candle); }
.on-dark a { color: inherit; }
.on-dark a:hover { color: var(--candle); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--candle); color: var(--espresso); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--bark); }
.eyebrow-gold { color: var(--candle); }
.head-stack { display: flex; flex-direction: column; gap: 14px; }
h2 { font-family: var(--display); font-weight: 500; line-height: 1.08; }

.btn { display: inline-block; font-weight: 600; font-size: 15px; border-radius: 999px; text-decoration: none; white-space: nowrap; transition: background .3s, transform .2s, border-color .3s, opacity .3s; }
.btn:active { transform: scale(.98); }
.btn-bark { background: var(--bark); color: var(--linen); padding: 15px 26px; }
.on-dark .btn-bark:hover, .btn-bark:hover { background: var(--bark-400); color: var(--linen); }
.btn-ghost { font-weight: 400; color: var(--on-dark); padding: 15px 18px; border: 1px solid rgba(255, 248, 229, .28); }
.on-dark .btn-ghost:hover { border-color: var(--on-dark); color: var(--on-dark); }
.btn-gold { background: var(--candle); color: var(--espresso); padding: 15px 28px; }
.btn-gold:hover { background: var(--candle-400); }

/* Scroll reveal: translate only, never opacity, so content is never hidden. JS adds .reveal-on only when it will run. */
[data-reveal] { transition: translate .8s var(--ease) var(--rd, 0ms); }
.reveal-on [data-reveal]:not(.is-in) { translate: 0 22px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px var(--gutter); background: rgba(124, 36, 36, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--on-dark); border-bottom: 1px solid rgba(255, 248, 229, .1); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-dark); text-decoration: none; font-family: var(--display); font-size: 20px; font-weight: 600; white-space: nowrap; }
.brand:hover { color: var(--on-dark); }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 30px); font-size: 14px; white-space: nowrap; }
.nav-link { color: var(--on-dark-2); text-decoration: none; transition: color .3s; }
.nav-link:hover { color: var(--on-dark); }
.nav-cta { background: var(--candle); color: var(--espresso); font-weight: 600; padding: 10px 18px; border-radius: 999px; text-decoration: none; transition: background .3s, transform .3s; }
.nav-cta:hover { background: var(--candle-400); color: var(--espresso); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--espresso); color: var(--on-dark); padding: clamp(56px, 8vw, 104px) var(--gutter) 0; }
.hero-copy { position: relative; max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(46px, 7.4vw, 96px); line-height: 1.02; letter-spacing: -.01em; max-width: 14em; }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator em { grid-area: 1 / 1; color: var(--candle); opacity: 0; transform: translateY(-40%); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rotator em[data-state="active"] { opacity: 1; transform: translateY(0); }
.rotator em[data-state="next"] { transform: translateY(40%); }
.hero-lead { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.7; color: var(--on-dark-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.reels { position: relative; max-width: 1240px; margin: 0 auto; padding: 36px 0 0; display: flex; gap: clamp(8px, 1.6vw, 20px); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.reels::-webkit-scrollbar { display: none; }
/* margin:auto on the ends centres the row when it fits and still lets it scroll from the first card when it doesn't. */
.reels > :first-child { margin-left: auto; }
.reels > :last-child { margin-right: auto; }
.reel { position: relative; flex: 0 0 clamp(150px, 17vw, 212px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 248, 229, .16); box-shadow: 0 20px 40px rgba(0, 0, 0, .35); transform: translateY(var(--off)) rotate(var(--rot)); transition: transform .5s var(--ease); margin-bottom: -60px; z-index: 1; color: var(--on-dark); background: var(--espresso); }
.reel:nth-child(3) { z-index: 3; }
.reel:is(:hover, :focus-visible) { transform: translateY(-18px) rotate(0deg) scale(1.03); z-index: 5; }
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.reel:is(:hover, :focus-visible) img { transform: scale(1.08); }
.reel-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(31, 24, 19, .85), rgba(31, 24, 19, 0) 55%); }
.reel-len { position: absolute; top: 12px; left: 12px; background: rgba(31, 24, 19, .7); border-radius: 999px; padding: 5px 11px; font-size: 12px; color: var(--on-dark); }
.reel-cap { position: absolute; left: 14px; right: 14px; bottom: 76px; display: flex; flex-direction: column; gap: 3px; }
.reel-cap b { font-size: 14px; font-weight: 600; color: var(--on-dark); }
.reel-cap i { font-style: normal; font-size: 12px; color: var(--candle); }
.reel-bar { position: absolute; left: 14px; right: 14px; bottom: 66px; height: 2px; background: rgba(255, 248, 229, .2); border-radius: 2px; overflow: hidden; }
.reel-bar i { display: block; height: 100%; width: 0; background: var(--candle); transition: width .3s; }
.reel:is(:hover, :focus-visible) .reel-bar i { width: 100%; transition: width var(--dur, 8s) linear; }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 2; background: var(--bark); color: var(--on-dark); padding: 20px 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-list { display: flex; align-items: center; gap: 40px; padding-right: 40px; font-family: var(--display); font-style: italic; font-size: 24px; white-space: nowrap; }
.marquee-list li::after { content: '·'; color: var(--candle); font-style: normal; margin-left: 40px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- The work ---------- */
.work { max-width: 1368px; margin: 0 auto; padding: var(--pad-y) var(--gutter); display: flex; flex-direction: column; gap: 36px; }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.work-head .head-stack { max-width: 640px; }
.work h2, .how h2 { font-size: clamp(34px, 4.4vw, 52px); text-wrap: balance; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { white-space: nowrap; padding: 9px 16px; border-radius: 999px; font-size: 14px; border: 1px solid var(--clay-200); color: var(--fg-2); transition: all .35s var(--ease); }
.filter[aria-pressed="true"] { background: var(--bark); border-color: var(--bark); color: var(--linen); }

.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.work-card { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; background: var(--parchment-deep); color: var(--on-dark); box-shadow: 0 2px 6px rgba(46, 37, 29, .08); transition: opacity .5s var(--ease), filter .5s, transform .45s var(--ease), box-shadow .45s; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(31, 24, 19, .82), rgba(31, 24, 19, 0) 50%); }
.work-play { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--linen); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.7); transition: all .4s var(--ease); }
.work-play i { width: 0; height: 0; margin-left: 3px; border-left: 12px solid var(--bark); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.work-cap { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.work-kind { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--candle); }
.work-title { font-family: var(--display); font-size: 24px; line-height: 1.2; }
/* Filtering dims instead of removing, so the layout never jumps. */
.work-card[data-dim] { opacity: .28; filter: grayscale(.85); transform: scale(.97); }
.work-card:not([data-dim]):is(:hover, :focus-visible) { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(46, 37, 29, .22); }
.work-card:not([data-dim]):is(:hover, :focus-visible) img { transform: scale(1.06); }
.work-card:not([data-dim]):is(:hover, :focus-visible) .work-play { opacity: 1; transform: scale(1); }
.noscript-note { font-family: var(--serif); color: var(--fg-2); }

/* ---------- What I make ---------- */
.make { background: var(--forest-700); color: var(--on-dark); padding: var(--pad-y) var(--gutter); }
.make-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 80px); align-items: center; }
.make-copy { display: flex; flex-direction: column; gap: 28px; }
.make h2 { font-size: clamp(34px, 4.2vw, 50px); }
.make h2 em { color: var(--candle); }
.deliv-list { display: flex; flex-direction: column; border-top: 1px solid rgba(255, 248, 229, .16); }
.deliv-row { border-bottom: 1px solid rgba(255, 248, 229, .16); padding: 22px 0; }
.deliv-head { display: flex; align-items: baseline; gap: 18px; width: 100%; }
.deliv-n { font-size: 13px; color: var(--forest-300); min-width: 24px; transition: color .35s; }
.deliv-name { font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); color: var(--on-dark-2); transition: color .35s, transform .45s var(--ease); }
.deliv-spec { margin-left: auto; font-size: 13px; color: var(--candle); white-space: nowrap; opacity: 0; transition: opacity .35s; }
.deliv-desc { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .5s var(--ease), opacity .4s; }
.deliv-desc p { padding: 12px 0 0 42px; font-size: 15px; line-height: 1.65; color: var(--on-dark-2); max-width: 34em; }
.deliv-row[data-active="true"] .deliv-n { color: var(--candle); }
.deliv-row[data-active="true"] .deliv-name { color: var(--on-dark); transform: translateX(6px); }
.deliv-row[data-active="true"] .deliv-spec { opacity: 1; }
.deliv-row[data-active="true"] .deliv-desc { max-height: 140px; opacity: 1; }

.make-frame { position: relative; aspect-ratio: 4 / 5; max-height: 640px; border-radius: 200px 200px 30px 30px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); justify-self: stretch; }
.make-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
.make-img.is-on { opacity: 1; transform: scale(1); }

/* ---------- How I work ---------- */
.how { max-width: 1368px; margin: 0 auto; padding: var(--pad-y) var(--gutter); display: flex; flex-direction: column; gap: 40px; }
.how h2 { font-size: clamp(34px, 4.2vw, 50px); }
.how-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px 64px; align-items: end; }
.how-note { font-family: var(--serif); font-size: 17px; line-height: 1.75; color: var(--fg-2); }
.flip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.flip { display: block; width: 100%; height: 340px; perspective: 1400px; }
.flip-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.flip[aria-expanded="true"] .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 34px; border-radius: 28px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-front { background: var(--linen); border: 1px solid var(--clay-100); box-shadow: 0 4px 14px rgba(46, 37, 29, .08); }
.flip-back { background: var(--bark); color: var(--linen); transform: rotateY(180deg); box-shadow: 0 10px 30px rgba(124, 36, 36, .25); }
.flip-n { font-family: var(--display); font-size: 52px; line-height: 1; color: var(--amber); }
.flip-bottom { display: flex; flex-direction: column; gap: 16px; }
.flip-title { font-family: var(--display); font-size: 32px; line-height: 1.15; }
.flip-hint { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--bark); }
.flip-eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--candle); }
.flip-body { font-family: var(--serif); font-size: 16px; line-height: 1.6; }

.proof { margin-top: 32px; padding: clamp(28px, 4vw, 52px); background: var(--parchment-deep); border-radius: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px 56px; align-items: center; }
.proof[hidden] { display: none; }
.proof-brands { display: flex; flex-wrap: wrap; gap: 10px; }
.proof-brands li { border: 1px solid var(--clay-200); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--fg-2); }
.proof blockquote { display: flex; flex-direction: column; gap: 12px; }
.proof blockquote p { font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; }
.proof cite { font-style: normal; font-size: 14px; color: var(--stone-500); }

/* ---------- Brief builder ---------- */
.brief { padding: 0 var(--gutter) var(--pad-y); }
.brief-card { position: relative; overflow: hidden; max-width: 1240px; margin: 0 auto; background: var(--bark-700); color: var(--on-dark); border-radius: 36px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(36px, 5vw, 64px); }
.brief-intro { display: flex; flex-direction: column; gap: 18px; }
.brief h2 { font-size: clamp(38px, 4.6vw, 56px); line-height: 1.04; }
.brief-lead { font-family: var(--serif); font-size: 17px; line-height: 1.75; color: var(--on-dark-2); }
.brief-steps { display: flex; gap: 8px; margin-top: 8px; }
.brief-steps li { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.brief-steps .bar { display: block; height: 3px; border-radius: 3px; background: rgba(255, 248, 229, .16); overflow: hidden; }
.brief-steps .bar i { display: block; height: 100%; width: 0; background: var(--candle); transition: width .6s var(--ease); }
.brief-steps .lbl { font-size: 12px; color: var(--forest-300); transition: color .4s; }
.brief-steps li[data-state="current"] .lbl, .brief-steps li[data-state="done"] .lbl { color: var(--on-dark); }
.brief-steps li[data-state="current"] .bar i { width: 35%; }
.brief-steps li[data-state="done"] .bar i { width: 100%; }

.brief-form { min-width: 0; }
.brief-viewport { position: relative; overflow: hidden; min-height: 360px; }
.brief-track { display: flex; width: 100%; transition: transform .65s var(--ease); }
.brief-panel { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 2px; }
.brief-panel-fields { gap: 14px; }
.brief-q { font-family: var(--display); font-weight: 400; font-size: 26px; }
.brief-q:focus { outline: none; }
.brief-hint { font-size: 13px; color: var(--on-dark-2); }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: block; user-select: none; }
.pill span { display: block; white-space: nowrap; padding: 12px 18px; border-radius: 999px; font-size: 15px; border: 1px solid rgba(255, 248, 229, .28); cursor: pointer; transition: all .35s var(--ease); }
.pill input:checked + span { background: var(--candle); border-color: var(--candle); color: var(--espresso); transform: translateY(-2px); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.tile span { display: block; padding: 18px; border-radius: 18px; font-size: 15px; border: 1px solid rgba(255, 248, 229, .2); background: rgba(255, 248, 229, .04); cursor: pointer; transition: all .35s var(--ease); }
.tile input:checked + span { background: var(--candle); border-color: var(--candle); color: var(--espresso); }
.pill input:focus-visible + span, .tile input:focus-visible + span { outline: 2px solid var(--candle); outline-offset: 3px; }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.field { width: 100%; padding: 15px 18px; border: 1px solid rgba(255, 248, 229, .28); border-radius: 14px; background: rgba(255, 248, 229, .06); font-size: 15px; color: var(--on-dark); outline-color: var(--candle); }
textarea.field { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.brief-thanks { gap: 16px; }
.check { width: 56px; height: 56px; border-radius: 50%; background: var(--candle); display: flex; align-items: center; justify-content: center; }
.check i { width: 22px; height: 12px; border-left: 3px solid var(--espresso); border-bottom: 3px solid var(--espresso); transform: rotate(-45deg) translate(2px, -2px); }
.brief-thanks-title { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.15; }
.brief-thanks-title:focus { outline: none; }
.brief-thanks-body { font-family: var(--serif); font-size: 17px; line-height: 1.7; color: var(--on-dark-2); }
.summary { display: flex; flex-direction: column; gap: 6px; background: rgba(255, 248, 229, .06); border: 1px solid rgba(255, 248, 229, .14); border-radius: 18px; padding: 18px 20px; font-size: 14px; color: var(--on-dark); }
.summary-eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--candle); }
.summary-when { color: var(--on-dark-2); }
.link-btn { align-self: flex-start; font-size: 14px; color: var(--candle); text-decoration: underline; text-underline-offset: 3px; }

.brief-error { margin-top: 18px; font-size: 14px; line-height: 1.5; color: #FFD9D4; }
.brief-error[hidden] { display: none; }
.brief-error a { color: var(--candle); }
.brief-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.brief-nav[hidden] { display: none; }
.back { font-size: 15px; color: var(--on-dark-2); transition: opacity .3s; }
.back[hidden] { display: block; visibility: hidden; }
#brief-next[aria-disabled="true"] { opacity: .4; cursor: default; }

/* ---------- Footer ---------- */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 28px var(--gutter); border-top: 1px solid var(--clay-100); font-size: 13px; color: var(--stone-500); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--bark); text-decoration: underline; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(31, 24, 19, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s var(--ease), visibility 0s .4s; }
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .4s var(--ease), visibility 0s; }
html.lb-lock { overflow: hidden; }
.lb-panel { width: 100%; max-width: 960px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: auto; background: var(--parchment); border-radius: 30px; display: flex; flex-wrap: wrap; transform: translateY(24px) scale(.97); transition: transform .5s var(--ease); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.lightbox.is-open .lb-panel { transform: none; }
.lb-media { position: relative; flex: 0 0 min(100%, 340px); aspect-ratio: 9 / 16; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); background: var(--espresso); }
.lb-media img, .lb-media video { width: 100%; height: 100%; object-fit: cover; }
.lb-media video { object-fit: contain; }
.lb-len { position: absolute; top: 14px; left: 14px; background: rgba(31, 24, 19, .7); border-radius: 999px; padding: 5px 11px; font-size: 12px; color: var(--on-dark); }
.lb-prog { position: absolute; left: 16px; right: 16px; bottom: 18px; height: 3px; background: rgba(255, 248, 229, .25); border-radius: 3px; overflow: hidden; }
.lb-prog i { display: block; height: 100%; width: 0; background: var(--candle); }
.lb-body { flex: 1 1 320px; min-width: 0; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 22px; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lb-eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--bark); }
.lb-close { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--clay-200); display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; color: var(--fg-2); transition: background .3s; }
.lb-close:hover { background: var(--parchment-deep); }
.lb-title { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; }
.lb-block { display: flex; flex-direction: column; gap: 6px; }
.lb-label { font-size: 13px; font-weight: 600; color: var(--fg-1); }
.lb-block p { font-family: var(--serif); font-size: 16px; line-height: 1.7; color: var(--fg-2); }
.lb-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-tags li { background: var(--parchment-deep); border-radius: 999px; padding: 7px 14px; font-size: 13px; color: var(--fg-2); }
.lb-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--clay-100); }
.lb-step { font-size: 14px; font-weight: 500; color: var(--bark); }
.lb-count { font-size: 13px; color: var(--stone-500); }

/* ---------- Narrow screens ---------- */
@media (max-width: 640px) {
  .site-header { gap: 12px; }
  .nav-link { display: none; }
  .brand { font-size: 18px; gap: 10px; }
  .lb-media { flex-basis: 100%; aspect-ratio: auto; height: min(62vh, 460px); }
}
@media (max-width: 480px) {
  .deliv-head { flex-wrap: wrap; row-gap: 4px; }
  .deliv-spec { display: none; flex-basis: 100%; margin: 0 0 0 42px; white-space: normal; }
  .deliv-row[data-active="true"] .deliv-spec { display: block; }
}

/* ---------- Reduced motion: no rotating word, marquee or scroll reveals; hover and click transitions stay ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rotator em { transition: none; }
  [data-reveal] { transition: none; }
  .marquee-track { animation: none; width: auto; justify-content: center; }
  .marquee-list { flex-wrap: wrap; justify-content: center; gap: 8px 40px; padding: 0 var(--gutter); }
  .marquee-copy { display: none; }
}
