/* ==========================================================================
   Stellita's Bakery: independent website concept
   Editorial design system · cream + cinematic ink sections
   ========================================================================== */

:root {
  --ivory: #FAF3ED;
  --cream: #F2E7DC;
  --blush: #EAC8C4;
  --blush-mute: #E3C2BC;
  --burgundy: #782F43;
  --burgundy-deep: #5A2131;
  --wine: #3B1822;
  --ink: #1E1718;
  --espresso: #2D2525;
  --champagne: #B89469;
  --champagne-lt: #DCC6A2;          /* on ink: 10:1 */
  --gold-text: #7A5B36;             /* on ivory: 5.3:1 */
  --muted: #5E4F4D;                 /* on ivory: 7.3:1 */
  --on-dark: #F4EAE2;
  --on-dark-muted: #CDBDB3;         /* on ink: 9.6:1 */
  --line: rgba(45, 37, 37, 0.14);
  --line-strong: rgba(45, 37, 37, 0.3);
  --line-dark: rgba(244, 234, 226, 0.16);
  --error: #A0263B;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1560px;
  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(80px, 9vw, 150px);
  --notice-h: 34px;
  --nav-h: 76px;
  --header-h: calc(var(--notice-h) + var(--nav-h));
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (max-width: 767px) { :root { --nav-h: 64px; --notice-h: 40px; } }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--ivory); color: var(--espresso);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: var(--burgundy); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--burgundy-deep); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--burgundy); color: var(--ivory); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 0.45em; color: inherit; }
h1 em, h2 em, h3 em, .serif em { font-style: italic; font-weight: 400; }
.d1 { font-size: clamp(2.9rem, 8.4vw, 9.2rem); line-height: 0.96; letter-spacing: -0.035em; }
.d2 { font-size: clamp(2.4rem, 5.6vw, 5.6rem); line-height: 1; letter-spacing: -0.03em; }
.d3 { font-size: clamp(1.9rem, 3.4vw, 3.2rem); line-height: 1.05; }
.h4 { font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.15; letter-spacing: -0.01em; }
.statement { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 3rem); line-height: 1.22; letter-spacing: -0.015em; font-weight: 400; }
.statement em { color: var(--burgundy); }
.dark .statement em { color: var(--blush); }

.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 4px; }
.dark :focus-visible, .wine :focus-visible, .hero :focus-visible, .site-header.on-dark:not(.is-scrolled) :focus-visible, .lightbox :focus-visible, .menu-open .site-header :focus-visible, .mobile-menu :focus-visible, .status-panel :focus-visible { outline-color: var(--champagne-lt); }

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--ink); color: var(--ivory); padding: 14px 20px; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--ivory); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 980px; }
.section { padding-block: var(--section); }
.section-sm { padding-block: clamp(64px, 8vw, 120px); }
.cream { background: var(--cream); }
.dark { background: var(--ink); color: var(--on-dark); position: relative; isolation: isolate; }
.dark::before { content: ""; position: absolute; inset: 0; background: var(--grain); pointer-events: none; z-index: -1; }
.wine { background: var(--wine); color: var(--on-dark); position: relative; isolation: isolate; }
.wine::before { content: ""; position: absolute; inset: 0; background: var(--grain); pointer-events: none; z-index: -1; }
.dark a:not(.btn), .wine a:not(.btn) { color: var(--champagne-lt); }
.dark a:not(.btn):hover, .wine a:not(.btn):hover { color: var(--ivory); }

.label {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-text); margin: 0 0 26px;
}
.label::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.dark .label, .wine .label, .hero .label { color: var(--champagne-lt); }
.num { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold-text); letter-spacing: 0; }
.dark .num, .wine .num { color: var(--champagne-lt); }
.muted { color: var(--muted); }
.dark .muted, .wine .muted { color: var(--on-dark-muted); }
.small { font-size: 0.9rem; }
.lede { font-size: clamp(1.08rem, 1.3vw, 1.22rem); color: var(--muted); max-width: 46ch; }
.dark .lede, .wine .lede { color: var(--on-dark-muted); }

/* ---------- Notice + header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; color: var(--espresso); transition: color .5s var(--ease); }
.notice {
  height: var(--notice-h); display: flex; align-items: center; justify-content: center; gap: 10px;
  padding-inline: var(--gutter); background: var(--ink); color: var(--on-dark-muted);
  font-size: 0.74rem; letter-spacing: 0.03em; line-height: 1.3; text-align: center;
}
.notice strong { color: var(--champagne-lt); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.66rem; }
.notice .sep { color: var(--champagne); }
.notice a { color: var(--on-dark); }
@media (max-width: 767px) { .notice strong, .notice .sep { display: none; } }

.nav-bar { height: var(--nav-h); border-bottom: 1px solid transparent; transition: background-color .5s var(--ease), border-color .5s var(--ease); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.site-header.solid .nav-bar, .site-header.is-scrolled .nav-bar { background: rgba(250, 243, 237, 0.95); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.site-header.on-dark:not(.is-scrolled) { color: var(--on-dark); }

/* Wordmark */
.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: inherit; line-height: 1; flex-shrink: 0; }
.wordmark:hover { color: inherit; }
.wm-name { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.85rem; letter-spacing: -0.02em; }
.wm-sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.56rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; }
.wm-sub i { font-style: normal; color: var(--champagne); font-size: 0.6rem; letter-spacing: 0; }
@media (max-width: 767px) { .wm-name { font-size: 1.55rem; } .wm-sub { font-size: 0.5rem; } }

.primary-nav { margin-left: auto; display: none; }
.primary-nav ul { list-style: none; display: flex; gap: 6px; }
.primary-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: inherit; text-decoration: none; font-size: 0.86rem; font-weight: 500; letter-spacing: 0.04em; }
.primary-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-header .nav-cta { display: none; }
.site-header.on-dark:not(.is-scrolled) .nav-cta { background: var(--ivory); color: var(--burgundy); }

.menu-toggle { margin-left: auto; min-width: 48px; height: 48px; padding: 0 4px; display: inline-flex; align-items: center; gap: 12px; border: 0; background: none; color: inherit; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.burger { width: 26px; height: 10px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-out); }
.burger::before { top: 0; } .burger::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .burger::before { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger::after { transform: translateY(-4.25px) rotate(-45deg); }
.menu-open .site-header { color: var(--on-dark); }
.menu-open .site-header .nav-bar { background: transparent !important; border-color: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

.mobile-menu { position: fixed; inset: 0; z-index: -1; background: var(--ink); color: var(--on-dark); padding: calc(var(--header-h) + 20px) var(--gutter) 32px; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-menu::before { content: ""; position: absolute; inset: 0; background: var(--grain); pointer-events: none; }
.mobile-menu ul { list-style: none; position: relative; }
.mobile-menu li { overflow: hidden; }
.mobile-menu a.mm-link { display: flex; align-items: baseline; gap: 16px; min-height: 56px; padding: 6px 0; font-family: var(--serif); font-size: clamp(1.9rem, 8.4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--on-dark); text-decoration: none; }
.mobile-menu a.mm-link span { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--champagne-lt); }
.mobile-menu a.mm-link[aria-current="page"] { font-style: italic; color: var(--blush); }
.mobile-menu .mm-foot { margin-top: auto; padding-top: 28px; position: relative; display: grid; gap: 18px; }
.mobile-menu .mm-foot p { margin: 0; font-size: 0.9rem; color: var(--on-dark-muted); }
.mobile-menu .mm-foot a:not(.btn) { color: var(--champagne-lt); }
.js .mobile-menu li { transform: translateY(100%); opacity: 0; transition: transform .7s var(--ease-out), opacity .7s var(--ease-out); }
.js .menu-open .mobile-menu li { transform: none; opacity: 1; }
.js .menu-open .mobile-menu li:nth-child(2) { transition-delay: .04s; } .js .menu-open .mobile-menu li:nth-child(3) { transition-delay: .08s; }
.js .menu-open .mobile-menu li:nth-child(4) { transition-delay: .12s; } .js .menu-open .mobile-menu li:nth-child(5) { transition-delay: .16s; }
.js .menu-open .mobile-menu li:nth-child(6) { transition-delay: .2s; } .js .menu-open .mobile-menu li:nth-child(7) { transition-delay: .24s; }
.menu-open { overflow: hidden; }

@media (min-width: 1100px) {
  .primary-nav { display: block; }
  .site-header .nav-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 30px; border: 1px solid transparent; border-radius: 0;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.2;
  text-decoration: none; text-align: center; position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out), background-color .45s var(--ease-out);
}
.btn .i { width: 16px; height: 16px; transition: transform .45s var(--ease-out); }
.btn:hover .i { transform: translateX(4px); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out); }
.btn:hover::before { transform: scaleY(1); }
.btn-primary { background: var(--burgundy); color: var(--ivory); }
.btn-primary::before { background: var(--burgundy-deep); }
.btn-primary:hover { color: var(--ivory); }
.btn-light { background: var(--ivory); color: var(--burgundy); }
.btn-light::before { background: var(--blush); }
.btn-light:hover { color: var(--burgundy-deep); }
.btn-line { border-color: currentColor; color: var(--espresso); background: transparent; }
.btn-line::before { background: var(--espresso); }
.btn-line:hover { color: var(--ivory); border-color: var(--espresso); }
.btn-line-light { border-color: rgba(244, 234, 226, 0.55); color: var(--on-dark); background: transparent; }
.btn-line-light::before { background: var(--ivory); }
.btn-line-light:hover { color: var(--ink); border-color: var(--ivory); }
.btn-sm { min-height: 46px; padding: 0 22px; font-size: 0.72rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 519px) { .btn-row .btn { width: 100%; } }

.link {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  color: var(--burgundy); background: none; border: 0; position: relative;
}
.link::after { content: ""; position: absolute; left: 0; right: 28px; bottom: 8px; height: 1px; background: currentColor; transform-origin: left; transition: transform .5s var(--ease-out); }
.link:hover::after { transform: scaleX(0); transform-origin: right; }
.link .i { width: 16px; height: 16px; transition: transform .45s var(--ease-out); }
.link:hover .i { transform: translateX(4px); }
.dark .link, .wine .link { color: var(--champagne-lt); }

/* ---------- Pictures ---------- */
.ph { position: relative; overflow: hidden; background: var(--cream); margin: 0; }
.dark .ph, .wine .ph { background: #2a2122; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph[data-ratio="p"] { aspect-ratio: 4 / 5; }
.ph[data-ratio="l"] { aspect-ratio: 3 / 2; }
.ph[data-ratio="s"] { aspect-ratio: 1 / 1; }
.ph[data-ratio="t"] { aspect-ratio: 3 / 4; }
.ph-tag {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; pointer-events: none;
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.3;
  background: rgba(30, 23, 24, 0.78); color: #F4EAE2; padding: 5px 9px;
}
.credit { font-size: 0.78rem; color: var(--muted); }
.dark .credit, .wine .credit { color: var(--on-dark-muted); }

/* Reveal */
.js .rv-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-out); }
.js .rv-img img { transform: scale(1.12); transition: transform 1.8s var(--ease-out); }
.js .rv-img.is-in { clip-path: inset(0 0 0 0); }
.js .rv-img.is-in img { transform: scale(1); }
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .d-1 { transition-delay: .1s; } .js .d-2 { transition-delay: .2s; } .js .d-3 { transition-delay: .3s; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; background: var(--ink); color: var(--on-dark); overflow: hidden; isolation: isolate; display: flex; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(22, 14, 16, 0.88) 0%, rgba(22, 14, 16, 0.66) 34%, rgba(22, 14, 16, 0.1) 62%, rgba(22, 14, 16, 0) 100%),
    linear-gradient(0deg, rgba(22, 14, 16, 0.72) 0%, rgba(22, 14, 16, 0) 40%),
    linear-gradient(180deg, rgba(22, 14, 16, 0.6) 0%, rgba(22, 14, 16, 0) 24%);
}
.hero-inner { width: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(48px, 8vh, 104px); }
.hero-title { margin: 0 0 clamp(28px, 4vh, 48px); max-width: 11.5ch; font-size: clamp(2.9rem, 6.4vw, 7.4rem); }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero-title .ln > span { display: block; }
.hero-title em { color: var(--blush); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px 56px; }
.hero-foot p { margin: 0; max-width: 30ch; font-size: clamp(1.05rem, 1.25vw, 1.2rem); color: var(--on-dark); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(48px, 8vh, 104px); display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--on-dark) !important; text-decoration: none; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; writing-mode: vertical-rl; min-width: 44px; }
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--on-dark), transparent); animation: cue 2.6s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hero .ph-tag { bottom: auto; top: calc(var(--header-h) + 14px); right: var(--gutter); }

.js .hero-media img { transform: scale(1.14); opacity: 0; transition: transform 2.8s var(--ease-out), opacity 1.4s var(--ease); }
.js .hero.is-ready .hero-media img { transform: scale(1.02); opacity: 1; }
.js .hero-title .ln > span { transform: translateY(108%); transition: transform 1.3s var(--ease-out) .15s; }
.js .hero.is-ready .hero-title .ln > span { transform: none; }
.js .hero.is-ready .hero-title .ln:nth-child(2) > span { transition-delay: .27s; }
.js .hero.is-ready .hero-title .ln:nth-child(3) > span { transition-delay: .39s; }
.js .hero .label, .js .hero-foot, .js .scroll-cue { opacity: 0; transform: translateY(16px); transition: opacity 1.1s var(--ease-out) .55s, transform 1.1s var(--ease-out) .55s; }
.js .hero.is-ready .label, .js .hero.is-ready .hero-foot, .js .hero.is-ready .scroll-cue { opacity: 1; transform: none; }
.js .hero.is-ready .hero-foot { transition-delay: .75s; }
.js .hero.is-ready .scroll-cue { transition-delay: 1.1s; }

@media (max-width: 767px), (max-width: 1023px) and (orientation: portrait) {
  .hero { min-height: auto; flex-direction: column; }
  .hero-media, .hero-shade { position: relative; inset: auto; height: 66svh; min-height: 440px; max-height: 660px; }
  .hero-shade { position: absolute; inset: 0 0 auto 0; background: linear-gradient(0deg, var(--ink) 0%, rgba(30, 23, 24, 0.72) 24%, rgba(30, 23, 24, 0) 55%), linear-gradient(180deg, rgba(22, 14, 16, 0.55) 0%, rgba(22, 14, 16, 0) 30%); }
  .hero-media img { object-position: 55% 45%; }
  .hero-inner { padding-top: 0; margin-top: -140px; padding-bottom: 56px; position: relative; }
  .hero-title { max-width: none; font-size: clamp(2.7rem, 13vw, 4.4rem); }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 28px; }
  .scroll-cue { display: none; }
}

/* ---------- Intro ---------- */
.intro-grid { display: grid; gap: 48px; align-items: end; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 1fr 0.42fr; gap: 9vw; } }
.intro-grid .statement { margin: 0; max-width: 24ch; }
.intro-aside { display: grid; gap: 22px; }
.intro-aside .ph { max-width: 360px; }

/* ---------- Section heads ---------- */
.section-head { display: grid; gap: 24px; margin-bottom: clamp(56px, 7vw, 110px); }
@media (min-width: 900px) { .section-head.split { grid-template-columns: 1fr auto; align-items: end; } }
.section-head h2 { margin: 0; max-width: 16ch; }
.section-head .lede { margin: 0; }

/* ---------- Collections ---------- */
.collections { display: grid; gap: clamp(64px, 7vw, 120px) clamp(24px, 4vw, 72px); }
@media (min-width: 768px) { .collections { grid-template-columns: repeat(12, 1fr); align-items: start; } }
.coll { display: grid; gap: 24px; text-decoration: none; color: var(--espresso); }
.coll:hover { color: var(--espresso); }
.coll .ph img { transition: transform 1.4s var(--ease-out); }
.coll:hover .ph img { transform: scale(1.045); }
.coll-meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; align-items: baseline; }
.coll-meta h3 { margin: 0; }
.coll-meta p { grid-column: 2; margin: 0; color: var(--muted); max-width: 40ch; }
.coll-meta .link { grid-column: 2; justify-self: start; }
@media (min-width: 768px) {
  .coll { grid-column: span 6; }
  .coll:nth-child(even) { margin-top: clamp(32px, 4vw, 64px); }
}


/* ---------- Cinema band ---------- */
.cinema { position: relative; min-height: clamp(560px, 94vh, 1000px); overflow: hidden; color: var(--on-dark); display: flex; align-items: flex-end; isolation: isolate; background: var(--ink); }
.cinema .ph { position: absolute; inset: -9% 0; z-index: -2; height: auto; }
.cinema::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(22, 14, 16, 0.9) 0%, rgba(22, 14, 16, 0.35) 45%, rgba(22, 14, 16, 0.15) 100%); }
.cinema .container { padding-block: clamp(120px, 14vw, 200px) clamp(48px, 8vw, 120px); }
.cinema .statement { max-width: 20ch; margin: 0; color: var(--on-dark); }
.cinema .statement em { color: var(--blush); }
.cinema .ph-tag { bottom: auto; top: 11%; }

.steps { list-style: none; display: grid; counter-reset: s; border-top: 1px solid var(--line-dark); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { padding: 40px 0 16px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .steps li { padding: 48px 48px 0 0; border-bottom: 0; } .steps li + li { padding-left: 48px; border-left: 1px solid var(--line-dark); } }
.steps .num { display: block; font-size: 3.4rem; line-height: 1; margin-bottom: 26px; }
.steps h3 { margin-bottom: 14px; }
.steps p { color: var(--on-dark-muted); max-width: 34ch; }

/* ---------- Lookbook ---------- */
.lookbook { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); align-items: start; }
.lookbook figure { margin: 0; }
.lookbook .lb1 { grid-column: span 2; }

@media (min-width: 900px) {
  .lookbook { grid-template-columns: repeat(12, 1fr); gap: 22px; }
  .lookbook { align-items: stretch; }
  .lookbook .lb1 { grid-column: 1 / span 6; grid-row: 1 / span 2; display: flex; flex-direction: column; }
  .lookbook .lb1 .ph { flex: 1; aspect-ratio: auto; min-height: 0; }
  .lookbook .lb2, .lookbook .lb4 { grid-column: 7 / span 3; }
  .lookbook .lb3, .lookbook .lb5 { grid-column: 10 / span 3; }
  .lookbook .lb2 .ph, .lookbook .lb3 .ph, .lookbook .lb4 .ph, .lookbook .lb5 .ph { aspect-ratio: 1 / 1; }
}
.lookbook figcaption { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 0.78rem; color: var(--muted); }
.lookbook figcaption span:first-child { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--espresso); }

/* ---------- Story split ---------- */
.story { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: 0.95fr 1fr; gap: 8vw; } }
.story-media { position: relative; }
.story-media .ph.small { position: absolute; width: 42%; right: -7%; bottom: -12%; border: 10px solid var(--ivory); }
.cream .story-media .ph.small { border-color: var(--cream); }
@media (max-width: 899px) { .story-media { margin: 0 0 48px; } .story-media .ph.small { right: -2%; width: 46%; } }
.story-copy p { max-width: 52ch; }
.draft { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; margin: 0 0 30px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); font-size: 0.9rem; color: var(--muted); }
.draft .i { color: var(--gold-text); margin-top: 4px; }
.draft strong { color: var(--espresso); font-weight: 600; }
.dark .draft, .wine .draft { border-color: var(--line-dark); color: var(--on-dark-muted); }
.dark .draft strong, .wine .draft strong { color: var(--on-dark); }
.dark .draft .i, .wine .draft .i { color: var(--champagne-lt); }
.pending { font-family: var(--serif); font-style: italic; color: var(--gold-text); }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.9rem; color: var(--burgundy); }

/* ---------- Contact band / instagram ---------- */
.contact-band { display: grid; gap: 56px; }
@media (min-width: 1024px) { .contact-band { grid-template-columns: 1.15fr 1fr; gap: 8vw; align-items: end; } }
.mail-link { display: inline-block; font-family: var(--serif); font-size: clamp(1.35rem, 4.2vw, 3.4rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--on-dark) !important; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 6px; transition: background-size .6s var(--ease-out); overflow-wrap: anywhere; }
.mail-link:hover { background-size: 0 1px; background-position: 100% 100%; }
.contact-rows { list-style: none; border-top: 1px solid var(--line-dark); }
.contact-rows li { display: grid; grid-template-columns: 128px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); align-items: baseline; }
.contact-rows .k { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-muted); }
.ig-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-top: clamp(72px, 9vw, 140px); padding-top: 40px; border-top: 1px solid var(--line-dark); }
.ig-handle { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0; }
.ig-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 28px; }
@media (min-width: 900px) { .ig-strip { grid-template-columns: repeat(6, 1fr); gap: 14px; } }
.ig-strip a { display: block; position: relative; overflow: hidden; }
.ig-strip a img { transition: transform 1.2s var(--ease-out), opacity .4s; }
.ig-strip a:hover img { transform: scale(1.06); opacity: .85; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 48px; }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: 0.8fr 1.4fr; gap: 8vw; } .faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; margin-bottom: 0; } }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 76px; padding: 20px 0; font-family: var(--serif); font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.25; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .45s var(--ease-out); }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0); }
.faq summary:hover { color: var(--burgundy); }
.faq .answer { padding: 0 0 28px; color: var(--muted); max-width: 64ch; }
.faq .answer p:last-child { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(80px, 10vw, 160px); padding-bottom: 36px; overflow: hidden; }
.footer-top { display: grid; gap: 44px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-title { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--champagne-lt); margin: 0 0 18px; }
.footer-links { list-style: none; display: grid; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-dark) !important; text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { text-decoration: underline; }
.footer-links span { display: inline-flex; min-height: 40px; align-items: center; color: var(--on-dark-muted); }
.giant { margin: clamp(64px, 9vw, 140px) 0 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(4rem, 15vw, 15rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--on-dark); white-space: nowrap; text-align: center; }
.giant span { display: block; color: var(--champagne-lt); font-style: normal; font-family: var(--sans); font-size: max(0.66rem, 0.06em); letter-spacing: 0.4em; text-transform: uppercase; margin-top: 1.4em; }

.footer-bottom { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; font-size: 0.82rem; color: var(--on-dark-muted); }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: underline; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90; display: flex; gap: 8px; transform: translateY(160%); transition: transform .6s var(--ease-out); }
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; min-height: 54px; box-shadow: 0 14px 34px rgba(30, 23, 24, 0.28); }
.sticky-cta .btn-icon { flex: 0 0 54px; padding: 0; background: var(--ink); color: var(--on-dark); }
.sticky-cta .btn-icon::before { background: var(--wine); }
.sticky-cta .btn-icon .i { width: 20px; height: 20px; }
@media (min-width: 1100px) { .sticky-cta { display: none; } }

/* ---------- Page intro (inner pages) ---------- */
.page-intro { padding-top: calc(var(--header-h) + clamp(56px, 9vw, 140px)); padding-bottom: clamp(56px, 7vw, 110px); }
.page-intro .d1 { max-width: 12ch; margin-bottom: 0; }
.page-intro-grid { display: grid; gap: 36px; align-items: end; }
@media (min-width: 1024px) { .page-intro-grid { grid-template-columns: 1.4fr 0.8fr; gap: 6vw; } }
.page-intro-grid .lede { margin: 0 0 8px; }
.crumb { font-size: 0.78rem; color: var(--muted); margin-bottom: 28px; letter-spacing: 0.06em; }
.crumb ol { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; }
.crumb li + li::before { content: "/"; margin-right: 10px; color: var(--champagne); }
.crumb a { color: inherit; }
.dark .crumb, .wine .crumb { color: var(--on-dark-muted); }
.band { position: relative; overflow: hidden; height: clamp(360px, 72vh, 860px); background: var(--ink); }
.band .ph { position: absolute; inset: -8% 0; height: auto; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0 32px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tab { position: relative; min-height: 52px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--burgundy); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.tab:hover { color: var(--espresso); }
.tab[aria-pressed="true"] { color: var(--burgundy); }
.tab[aria-pressed="true"]::after { transform: scaleX(1); }
.filter-status { font-size: 0.86rem; color: var(--muted); margin: 0 0 clamp(40px, 5vw, 72px); }

/* ---------- Portfolio (custom cakes) ---------- */
.portfolio { display: grid; gap: clamp(56px, 6vw, 104px) clamp(20px, 3vw, 48px); grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .portfolio { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .pf { grid-column: span 4; }
  .pf[data-slot="0"], .pf[data-slot="3"] { grid-column: span 7; }
  .pf[data-slot="1"], .pf[data-slot="2"] { grid-column: span 5; }
  .pf[data-slot="0"] .ph, .pf[data-slot="3"] .ph { aspect-ratio: 1.12 / 1; }
}
.pf { margin: 0; }
.pf-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; position: relative; cursor: zoom-in; }
.pf-open img { transition: transform 1.4s var(--ease-out); }
.pf-open:hover img, .pf-open:focus-visible img { transform: scale(1.04); }
.pf-open .view { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 9px 14px; background: var(--ivory); color: var(--espresso); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0; transform: translateY(-6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.pf-open:hover .view, .pf-open:focus-visible .view { opacity: 1; transform: none; }
@media (hover: none) { .pf-open .view { opacity: 1; transform: none; } }
.pf figcaption { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding-top: 22px; align-items: baseline; }
.pf figcaption h3 { margin: 0; }
.pf figcaption .meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8rem; color: var(--muted); }
.pf figcaption p { grid-column: 2; margin: 6px 0 0; color: var(--muted); max-width: 46ch; }
.pf figcaption .link { grid-column: 2; justify-self: start; }

/* ---------- Gallery masonry ---------- */
.masonry { columns: 2; column-gap: 10px; }
@media (min-width: 900px) { .masonry { columns: 3; column-gap: 22px; } }
@media (min-width: 1440px) { .masonry { columns: 4; } }
.m-item { break-inside: avoid; margin: 0 0 18px; }
@media (min-width: 900px) { .m-item { margin-bottom: 22px; } }
.m-item button { display: block; width: 100%; padding: 0; border: 0; background: none; position: relative; cursor: zoom-in; overflow: hidden; }
.m-item button img { transition: transform 1.3s var(--ease-out); }
.m-item button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22, 14, 16, 0.78), transparent 55%); opacity: 0; transition: opacity .5s var(--ease); }
.m-item button:hover img, .m-item button:focus-visible img { transform: scale(1.04); }
.m-item button:hover::after, .m-item button:focus-visible::after { opacity: 1; }
.m-cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 3; text-align: left; color: var(--on-dark); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.m-cap strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.15; }
.m-cap span { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
.m-item button:hover .m-cap, .m-item button:focus-visible .m-cap { opacity: 1; transform: none; }
.m-item button:hover .ph-tag, .m-item button:focus-visible .ph-tag { opacity: 0; }
.m-item figcaption { padding: 8px 2px 0; font-size: 0.76rem; color: var(--muted); line-height: 1.4; }
.m-item figcaption .t { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--espresso); }
@media (hover: none) { .m-cap { display: none; } }
@media (hover: hover) { .m-item figcaption .t { display: none; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #160E10; color: var(--on-dark); overflow: hidden; }
.lightbox::backdrop { background: rgba(22, 14, 16, 0.6); }
.lightbox[open] { display: block; animation: lb-in .5s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-grid { display: grid; height: 100%; grid-template-rows: minmax(0, 1fr) auto; }
@media (min-width: 900px) { .lb-grid { grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: 100%; } }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 72px 16px 16px; min-height: 0; }
@media (min-width: 900px) { .lb-stage { padding: 56px 96px; } }
.lb-stage figure { margin: 0; position: relative; display: flex; max-height: 100%; }
.lb-stage img { max-width: 100%; max-height: calc(100svh - 360px); width: auto; height: auto; object-fit: contain; animation: lb-img .7s var(--ease-out); }
@media (min-width: 900px) { .lb-stage img { max-height: calc(100svh - 112px); } }
@keyframes lb-img { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.lb-panel { padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); overflow-y: auto; max-height: 44svh; }
@media (min-width: 900px) { .lb-panel { padding: 96px 44px 44px; border-top: 0; border-left: 1px solid var(--line-dark); max-height: none; display: flex; flex-direction: column; } }
.lb-panel h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); margin: 0 0 12px; }
.lb-panel p { color: var(--on-dark-muted); margin: 0 0 16px; }
.lb-panel dl { margin: 0 0 22px; border-top: 1px solid var(--line-dark); }
.lb-panel dl div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line-dark); font-size: 0.86rem; }
.lb-panel dt { color: var(--on-dark-muted); }
.lb-panel dd { margin: 0; text-align: right; }
.lb-panel .btn { width: 100%; }
.lb-panel .note { font-size: 0.8rem; margin-top: 14px; }
.lb-count { font-size: 0.72rem; letter-spacing: 0.24em; color: var(--champagne-lt); margin: 0 0 16px; }
.lb-btn { position: absolute; z-index: 5; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line-dark); background: rgba(22, 14, 16, 0.6); color: var(--on-dark); transition: background-color .3s var(--ease), color .3s var(--ease); }
.lb-btn:hover { background: var(--ivory); color: var(--ink); }
.lb-btn .i { width: 20px; height: 20px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-prev .i { transform: rotate(180deg); }
@media (max-width: 899px) { .lb-prev, .lb-next { top: 12px; transform: none; } .lb-prev { left: 12px; } .lb-next { left: 72px; right: auto; } }

/* ---------- Chapters (sweet treats) ---------- */
.chapter { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) {
  .chapter { grid-template-columns: repeat(12, 1fr); gap: 0 2vw; }
  .chapter .ch-media { grid-column: 1 / span 7; position: relative; }
  .chapter .ch-copy { grid-column: 9 / span 4; }
  .chapter.flip .ch-media { grid-column: 6 / span 7; order: 2; }
  .chapter.flip .ch-copy { grid-column: 1 / span 4; order: 1; }
}
.ch-media { position: relative; }
.ch-media .ph.detail { position: absolute; width: 36%; bottom: -10%; right: -8%; border: 10px solid var(--ivory); }
.dark .ch-media .ph.detail { border-color: var(--ink); }
.chapter.flip .ch-media .ph.detail { right: auto; left: -8%; }
@media (max-width: 899px) { .ch-media { margin-bottom: 36px; } .ch-media .ph.detail, .chapter.flip .ch-media .ph.detail { right: -2%; left: auto; width: 42%; } }
.roman { font-family: var(--serif); font-style: italic; font-size: clamp(4rem, 9vw, 8rem); line-height: 0.8; color: #A8786F; display: block; margin-bottom: 20px; }
.dark .roman { color: #9A737A; }
.tbc-list { list-style: none; margin: 28px 0 34px; border-top: 1px solid var(--line); }
.tbc-list li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.tbc-list li span:first-child { color: var(--muted); }
.dark .tbc-list, .dark .tbc-list li { border-color: var(--line-dark); }
.dark .tbc-list li span:first-child { color: var(--on-dark-muted); }
.tbc { font-style: italic; }

.pairings { list-style: none; display: grid; border-top: 1px solid var(--line-strong); }
@media (min-width: 900px) { .pairings { grid-template-columns: repeat(3, 1fr); } }
.pairings li { padding: 36px 0; border-bottom: 1px solid var(--line-strong); }
@media (min-width: 900px) { .pairings li { padding: 44px 40px 8px 0; border-bottom: 0; } .pairings li + li { padding-left: 40px; border-left: 1px solid var(--line-strong); } }
.pairings p { color: var(--muted); margin: 0; }

/* ---------- Story page ---------- */
.narrative { display: grid; gap: 24px; padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line-strong); }
@media (min-width: 900px) { .narrative { grid-template-columns: 0.7fr 1.3fr; gap: 6vw; } }
.narrative h2 { margin: 0; }
.narrative .body p { max-width: 58ch; font-size: 1.1rem; }
.facts { margin: 0; border-top: 1px solid var(--line-strong); }
.facts div { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
@media (min-width: 640px) { .facts div { grid-template-columns: 220px 1fr; gap: 24px; } }
.facts dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); padding-top: 4px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts .tbc { color: var(--muted); }

/* ---------- Contact page ---------- */
.contact-hero .mail-link { color: var(--espresso) !important; font-size: clamp(1.45rem, 5.4vw, 4.8rem); }
.contact-links { display: grid; margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line-strong); }
@media (min-width: 900px) { .contact-links { grid-template-columns: repeat(3, 1fr); } }
.contact-links > * { display: flex; flex-direction: column; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--line-strong); text-decoration: none; color: var(--espresso); }
@media (min-width: 900px) { .contact-links > * { padding: 32px 32px 32px 0; border-bottom: 0; } .contact-links > * + * { padding-left: 32px; border-left: 1px solid var(--line-strong); } }
.contact-links .k { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); }
.contact-links .v { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.2; overflow-wrap: anywhere; }
.contact-links a:hover .v { color: var(--burgundy); }

/* ---------- Forms ---------- */
.form-layout { display: grid; gap: 64px; align-items: start; }
@media (min-width: 1100px) { .form-layout { grid-template-columns: 1.6fr 0.75fr; gap: 6vw; } .form-aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: clamp(40px, 5vw, 64px); counter-reset: st; }
.stepper li { counter-increment: st; border-top: 2px solid var(--line); padding-top: 14px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: border-color .5s var(--ease), color .5s var(--ease); }
.stepper li::before { content: "0" counter(st); display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.15rem; letter-spacing: 0; text-transform: none; margin-bottom: 2px; }
.stepper li.done { border-color: var(--champagne); color: var(--espresso); }
.stepper li[aria-current="step"] { border-color: var(--burgundy); color: var(--burgundy); }
@media (max-width: 559px) { .stepper li span { display: none; } .stepper li[aria-current="step"] span { display: inline; position: static; } .stepper { grid-template-columns: repeat(4, auto); justify-content: space-between; } .stepper li { min-width: 54px; } }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.js .step:not(.is-active) { display: none; }
.js .step.is-active { animation: step-in .6s var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.step + .step { margin-top: 64px; }
.js .step + .step { margin-top: 0; }
.step legend { padding: 0; margin: 0 0 10px; font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; }
.step-intro { color: var(--muted); margin: 0 0 40px; max-width: 54ch; }
.field-grid { display: grid; gap: 34px 36px; }
@media (min-width: 680px) { .field-grid.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 10px; }
.field > label, .field > .label-t { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--espresso); }
.field .opt { font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--muted); }
.req { color: var(--burgundy); }
.hint { font-size: 0.86rem; color: var(--muted); margin: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 56px; padding: 14px 2px; border: 0; border-bottom: 1px solid #8F7A76; border-radius: 0;
  background: transparent; font-size: 1.05rem; color: var(--espresso);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.textarea { min-height: 132px; resize: vertical; line-height: 1.6; padding: 16px; border: 1px solid #8F7A76; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23782F43' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; background-size: 18px; padding-right: 36px; }
.input::placeholder, .textarea::placeholder { color: #7E6D6A; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--espresso); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--burgundy); box-shadow: 0 2px 0 0 var(--burgundy); }
.textarea:focus { box-shadow: 0 0 0 1px var(--burgundy); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 2px 0 0 var(--error); }
.textarea[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field-error { color: var(--error); font-size: 0.88rem; font-weight: 500; margin: 0; }
.field-error:empty { display: none; }
.field-note { font-size: 0.88rem; color: var(--gold-text); margin: 0; }
.field-note:empty { display: none; }

.file-drop { position: relative; display: flex; align-items: center; gap: 18px; min-height: 96px; padding: 20px 22px; border: 1px dashed #8F7A76; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.file-drop:hover, .file-drop.is-drag { border-color: var(--burgundy); background: var(--cream); }
.file-drop:focus-within { border-color: var(--burgundy); box-shadow: 0 0 0 1px var(--burgundy); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-drop .i { width: 24px; height: 24px; color: var(--burgundy); }
.file-drop strong { display: block; font-weight: 600; }
.file-drop span { font-size: 0.86rem; color: var(--muted); }
.file-preview { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.file-preview img { width: 72px; height: 72px; object-fit: cover; }
.file-preview .meta { flex: 1; min-width: 0; font-size: 0.9rem; }
.file-preview .meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.consent { display: flex; gap: 14px; align-items: flex-start; font-size: 0.98rem; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--burgundy); flex-shrink: 0; }

.step-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.step-nav .btn { min-width: 210px; }
.step-nav .btn-primary { margin-left: auto; }
@media (max-width: 519px) { .step-nav { flex-direction: column-reverse; align-items: stretch; } .step-nav .btn { width: 100%; margin: 0; } }
.no-js .step-nav [data-step-next], .no-js .step-nav [data-step-back], .no-js .stepper, .no-js [data-review] { display: none; }

.review { margin: 0 0 36px; border-top: 1px solid var(--line-strong); }
.review div { display: grid; grid-template-columns: minmax(110px, 0.55fr) 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.review dt { color: var(--muted); }
.review dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }

.error-summary { border-left: 3px solid var(--error); background: #FBEDEE; padding: 20px 22px; margin-bottom: 36px; }
.error-summary h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--error); margin: 0 0 8px; }
.error-summary ul { padding-left: 18px; display: grid; gap: 4px; }
.error-summary a { color: var(--error); }

.honesty { display: flex; gap: 12px; font-size: 0.88rem; color: var(--muted); margin: 22px 0 0; }
.honesty .i { color: var(--gold-text); margin-top: 3px; }

.status-panel { padding: clamp(28px, 4vw, 56px); background: var(--ink); color: var(--on-dark); position: relative; isolation: isolate; }
.status-panel::before { content: ""; position: absolute; inset: 0; background: var(--grain); z-index: -1; pointer-events: none; }
.status-panel h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.status-panel p { color: var(--on-dark-muted); }
.status-panel strong { color: var(--on-dark); }
.status-panel a:not(.btn) { color: var(--champagne-lt); }
.status-panel .link { color: var(--champagne-lt); }
.status-steps { list-style: none; counter-reset: s; display: grid; gap: 14px; margin: 26px 0 34px; }
.status-steps li { counter-increment: s; display: flex; gap: 16px; align-items: baseline; color: var(--on-dark-muted); }
.status-steps li::before { content: "0" counter(s); font-family: var(--serif); font-style: italic; color: var(--champagne-lt); flex-shrink: 0; }
.aside-steps li { color: var(--muted); }
.aside-steps li::before { color: var(--gold-text); }
.aside-steps strong { color: var(--espresso); }
.copy-feedback { font-size: 0.9rem; color: var(--champagne-lt) !important; min-height: 1.4em; margin: 14px 0 0; }
.preview-box { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--sans); font-size: 0.86rem; line-height: 1.6; max-height: 360px; overflow: auto; margin: 14px 0 0; padding: 18px; background: rgba(244, 234, 226, 0.06); border: 1px solid var(--line-dark); color: var(--on-dark); }
.status-panel details summary { cursor: pointer; list-style: none; }
.status-panel details summary::-webkit-details-marker { display: none; }
.long-warning { color: var(--champagne-lt) !important; font-size: 0.9rem; }

.form-aside .aside-block { padding: 30px 0; border-top: 1px solid var(--line-strong); }
.form-aside .aside-block:first-child { padding-top: 0; border-top: 0; }
.form-aside h2 { font-size: 1.6rem; margin-bottom: 18px; }
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: 0.97rem; }
.check-list .i { color: var(--burgundy); margin-top: 4px; }
.dark .check-list li, .wine .check-list li { color: var(--on-dark-muted); }
.dark .check-list .i, .wine .check-list .i { color: var(--champagne-lt); }
.dark .check-list strong, .wine .check-list strong { color: var(--on-dark); }

/* ---------- Concept page ---------- */
.pillars { list-style: none; display: grid; border-top: 1px solid var(--line-dark); }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillars li { padding: 40px 0; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 1000px) { .pillars li { padding: 48px 44px 8px 0; border-bottom: 0; } .pillars li + li { padding-left: 44px; border-left: 1px solid var(--line-dark); } }
.pillars p { color: var(--on-dark-muted); }
.compare { display: grid; gap: 48px; }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr 1fr; gap: 6vw; } }
.timeline { list-style: none; border-left: 1px solid var(--champagne); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 32px 32px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--burgundy); }
.timeline li:last-child { padding-bottom: 0; }
.timeline h3 { font-size: 1.45rem; margin-bottom: 6px; }
.timeline p { color: var(--muted); margin: 0; }
.credits-list { list-style: none; columns: 1; column-gap: 48px; font-size: 0.86rem; color: var(--muted); }
@media (min-width: 900px) { .credits-list { columns: 2; } }
.credits-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); }
.notfound .big { font-family: var(--serif); font-style: italic; font-size: clamp(6rem, 22vw, 18rem); line-height: .8; color: var(--champagne-lt); margin: 0 0 24px; }

/* ---------- View transitions (cross-document, progressive) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .3s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .rv, .js .rv-img, .js .rv-img img, .js .hero-media img, .js .hero-title .ln > span, .js .hero .label, .js .hero-foot, .js .scroll-cue, .js .mobile-menu li { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  [data-parallax] { transform: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

@media print { .site-header, .sticky-cta, .site-footer, .scroll-cue { display: none; } .page-intro { padding-top: 24px; } }
.lb-open { overflow: hidden; }
/* Frame-anchored chrome: header + hero align to the viewport edge, not the content column */
.site-header .container, .hero .container { max-width: none; }
span.ph { display: block; }
.mail-link { font-size: clamp(1.3rem, 2.7vw, 2.7rem); overflow-wrap: normal; word-break: normal; }
.contact-hero .mail-link { font-size: clamp(1.4rem, 5.6vw, 5rem); }
@media (min-width: 900px) { .intro-grid { align-items: center; } }
#intro { padding-top: clamp(80px, 10vw, 160px); }
.roman { font-style: normal; line-height: 1; letter-spacing: 0.02em; font-size: clamp(3.4rem, 7vw, 6.4rem); }
/* Cinematic bands: image always fills the frame, whatever the viewport ratio */
.cinema .ph, .band .ph { aspect-ratio: auto !important; height: auto; top: -9%; bottom: -9%; }
@media (max-width: 767px) {
  .cinema .ph, .band .ph { top: 0; bottom: 0; }
  .cinema { min-height: 78svh; }
  .band { height: 56svh; min-height: 320px; }
  .ph-tag { font-size: 0.5rem; padding: 4px 6px; white-space: nowrap; right: 6px; bottom: 6px; }
}
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .hero-media, .hero-shade { height: 64svh; max-height: 760px; }
  .hero-title { font-size: clamp(3.6rem, 10vw, 6rem); }
  .hero-foot { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
@media (max-width: 767px), (max-width: 1023px) and (orientation: portrait) { .hero-media { transform: none !important; } }
