/* ---------- Fonts (self-hosted, SIL Open Font License — see fonts/OFL-*.txt) ---------- */
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-italic-latin.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin.woff2") format("woff2"); font-weight: 300 600; font-display: swap; }

/* ---------- Tokens (palette taken from the GPCandas logo and photos) ---------- */
:root {
  --linen: #f4ede4;
  --paper: #faf6f0;
  --sand: #e6d9c8;
  --line: rgba(47, 29, 22, 0.14);
  --ink: #2f1d16;
  --ink-soft: #5c483d;
  --muted: #8a766a;
  --walnut: #2a1a13;
  --walnut-2: #3b271d;
  --blush: #e1b2a5;
  --blush-deep: #b46f5f;
  --sage: #97a38a;
  --wine: #6e1f2b;
  --cream: #f3e8dc;
  --serif: "Cormorant", "Cormorant Garamond", Garamond, Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius: 6px;
}

/* Modo velada: the whole site dims to candlelight */
:root[data-mode="velada"] {
  --linen: #1c130f;
  --paper: #241913;
  --sand: #34241b;
  --line: rgba(243, 232, 220, 0.14);
  --ink: #f3e8dc;
  --ink-soft: #d8c7b8;
  --muted: #a99282;
  --blush-deep: #e1b2a5;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 350;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--linen);
  overflow-x: hidden;
  transition: background 0.8s var(--ease), color 0.8s var(--ease);
}
/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1; margin: 0 0 0.35em; letter-spacing: -0.01em; }
h1 { font-size: clamp(3.2rem, 7.4vw, 6.4rem); }
h2 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); }
h3 { font-size: 1.7rem; }
h1 em, h2 em { font-style: italic; color: var(--blush-deep); font-weight: 400; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 200; }
:focus-visible { outline: 2px solid var(--blush-deep); outline-offset: 3px; }

.kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border: 1px solid var(--ink); border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--linen); text-decoration: none;
  font-size: 0.95rem; font-weight: 450; letter-spacing: 0.04em;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--light { background: var(--cream); color: var(--walnut); border-color: var(--cream); }
.btn--light:hover { background: transparent; color: var(--cream); }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--linen); }
.more-wrap { display: flex; justify-content: center; margin-top: 56px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none; cursor: pointer;
  text-decoration: none; font-size: 0.95rem; letter-spacing: 0.04em; border-bottom: 1px solid currentColor;
}
.link-arrow span { transition: transform 0.35s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow--light { color: var(--cream); }
.link-arrow:disabled { opacity: 0.3; cursor: default; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; transition: background 0.4s, box-shadow 0.4s; }
.header.is-scrolled { background: color-mix(in srgb, var(--linen) 88%, transparent); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { width: 44px; height: auto; border-radius: 8px; }
.brand__name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: 0.01em; }
.nav { display: flex; gap: 32px; }
.nav a { text-decoration: none; font-size: 0.92rem; letter-spacing: 0.05em; position: relative; padding-block: 4px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 18px; }
.link-cta { font-size: 0.92rem; letter-spacing: 0.05em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.mode-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; font-size: 0.85rem; letter-spacing: 0.04em;
  transition: background 0.4s, border-color 0.4s;
}
.mode-toggle svg { width: 16px; height: 16px; fill: currentColor; transition: fill 0.4s, filter 0.4s; }
.mode-toggle[aria-pressed="true"] { border-color: #e9b673; }
.mode-toggle[aria-pressed="true"] svg { fill: #f2c27d; filter: drop-shadow(0 0 6px rgba(242, 194, 125, 0.9)); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(30px, 6vw, 70px) clamp(60px, 9vw, 120px); overflow: hidden; }
.hero__light {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.55; transition: opacity 0.8s;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), rgba(242, 200, 150, 0.45), transparent 65%);
}
:root[data-mode="velada"] .hero__light { opacity: 1; background: radial-gradient(560px circle at var(--mx, 70%) var(--my, 30%), rgba(242, 170, 90, 0.22), transparent 65%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero__lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 40ch; margin-bottom: 34px; }
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__facts { display: flex; gap: clamp(20px, 4vw, 48px); margin: 56px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__facts dt { font-family: var(--serif); font-size: 2.2rem; line-height: 1; font-variant-numeric: lining-nums; }
.hero__facts dd { margin: 4px 0 0; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.03em; }

.hero__art { position: relative; min-height: 560px; }
.arch { margin: 0; overflow: hidden; background: var(--sand); }
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.arch:hover img { transform: scale(1.08); }
.arch--main { position: absolute; right: 0; top: 0; width: 76%; aspect-ratio: 3 / 4.1; border-radius: 999px 999px 6px 6px; translate: 0 var(--py, 0px); }
.arch--small { position: absolute; left: 0; bottom: 0; width: 40%; aspect-ratio: 3 / 4; border-radius: 999px 999px 6px 6px; border: 8px solid var(--linen); translate: 0 calc(var(--py, 0px) * -1.4); transition: border-color 0.8s; }
.hero__note {
  position: absolute; left: 6%; top: 10%; margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.1;
  color: var(--blush-deep); rotate: -7deg;
}
.hero__note::after { content: ""; display: block; width: 70px; height: 40px; margin: 6px 0 0 60px; border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; border-radius: 0 0 40px 0; }

/* ---------- Scents ---------- */
.scents { border-block: 1px solid var(--line); }
.scents__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.scent { position: relative; padding: 34px 22px; border-left: 1px solid var(--line); overflow: hidden; }
.scent:first-child { border-left: 0; }
.scent::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s var(--ease);
  background: radial-gradient(circle at 50% 120%, rgba(242, 190, 130, 0.35), transparent 70%);
}
.scent:hover::before { opacity: 1; }
.scent__num { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--muted); }
.scent__name { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; margin: 8px 0 6px; }
.scent__notes { display: block; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; position: relative; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 11vw, 150px); }
.section__head { max-width: 680px; margin-bottom: 52px; }
.section__lead { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }

.js .reveal { opacity: 0; translate: 0 24px; transition: opacity 1s var(--ease), translate 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* ---------- Collection ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.filter {
  position: relative; padding: 10px 0 14px; border: 0; background: none; cursor: pointer;
  font-size: 0.95rem; letter-spacing: 0.04em; color: var(--muted); transition: color 0.3s;
}
.filter sup { font-size: 0.65rem; margin-left: 3px; }
.filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform 0.4s var(--ease); }
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.card { display: flex; flex-direction: column; animation: card-in 0.7s var(--ease) both; }
@keyframes card-in { from { opacity: 0; translate: 0 18px; } }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--sand); margin-bottom: 20px; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.8s var(--ease), transform 1.4s var(--ease); }
.card__media .card__alt { opacity: 0; }
.card:hover .card__media img { transform: scale(1.04); }
.card:hover .card__media .card__alt { opacity: 1; }
.card__cat { position: absolute; left: 14px; top: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(250, 246, 240, 0.85); color: #2f1d16; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.card__title { font-size: 1.85rem; margin-bottom: 6px; }
.card__desc { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 16px; }
.card__note { margin: -8px 0 16px; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--blush-deep); }
.card__actions { margin-top: auto; display: flex; gap: 22px; align-items: center; }
.card__btn {
  padding: 0 0 2px; border: 0; border-bottom: 1px solid currentColor; background: none; cursor: pointer;
  font-size: 0.9rem; letter-spacing: 0.04em; text-decoration: none; color: var(--ink-soft);
}
.card__btn:hover { color: var(--blush-deep); }
.card__btn--main { color: var(--ink); }

/* ---------- Studio ---------- */
.studio-section {
  --line: rgba(243, 232, 220, 0.14);
  position: relative; padding-block: clamp(80px, 11vw, 140px); color: var(--cream);
  background: var(--walnut);
  background-image:
    radial-gradient(900px 500px at 25% 30%, rgba(242, 190, 130, 0.09), transparent 70%),
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 9px, rgba(0, 0, 0, 0.05) 9px 11px, transparent 11px 23px);
}
.studio-section .kicker { color: #bfa695; }
.studio-section h2 em { color: var(--blush); }
.section__head--light .section__lead { color: #d8c7b8; }

.studio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.studio__stagewrap { position: sticky; top: 90px; }
.stage-frame { position: relative; }
.scent-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: var(--radius); z-index: 2; }
.stage {
  position: relative; height: clamp(380px, 62vh, 600px); border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: end center;
  background:
    linear-gradient(to bottom, transparent 0 70%, rgba(0, 0, 0, 0.12) 70%, transparent 72%),
    linear-gradient(to bottom, #efe5d8 0 70%, transparent 70%),
    repeating-linear-gradient(91deg, #6b4a35 0 3px, #5c3e2b 3px 7px, #6f4d37 7px 12px, #5a3b29 12px 20px);
  transition: filter 0.8s var(--ease);
}
.stage::before { /* soft window light on the wall */
  content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity 0.8s var(--ease);
  background: radial-gradient(60% 55% at 72% 22%, rgba(255, 255, 255, 0.55), transparent 70%);
}
.stage::after { /* candle glow that only shows with the lights off */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.8s var(--ease);
  background: radial-gradient(45% 45% at 50% 45%, rgba(255, 196, 120, 0.35), transparent 75%);
}
.stage .candle-svg { position: relative; z-index: 1; height: 90%; width: auto; max-width: 100%; margin-bottom: 1%; }
.stage.is-dark { filter: brightness(0.32) saturate(0.9); }
.stage.is-dark::after { opacity: 1; }
.stage.is-dark .cv-light { filter: brightness(3.1); }
.stage.is-dark .cv-glow { opacity: 1; transform: scale(1.9); }
.stage__caption { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: #e6d6c7; text-align: center; min-height: 1.6em; }
.stage__tools { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tool {
  padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(243, 232, 220, 0.28); background: transparent;
  color: var(--cream); cursor: pointer; font-size: 0.85rem; letter-spacing: 0.04em; transition: background 0.3s, color 0.3s;
}
.tool:hover { background: rgba(243, 232, 220, 0.1); }
.tool[aria-pressed="true"] { background: var(--cream); color: var(--walnut); }
.studio__status { min-height: 1.4em; margin: 10px 0 0; text-align: center; font-size: 0.9rem; color: var(--blush); }

.steps-nav { display: flex; gap: 4px; margin-bottom: 30px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.steps-nav__btn {
  flex: 1 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px 14px 0;
  border: 0; background: none; cursor: pointer; color: rgba(243, 232, 220, 0.5); font-size: 0.9rem; letter-spacing: 0.03em;
  position: relative; transition: color 0.3s;
}
.steps-nav__btn span { font-family: var(--serif); font-size: 1.15rem; font-style: italic; }
.steps-nav__btn::after { content: ""; position: absolute; left: 0; right: 10px; bottom: -1px; height: 2px; background: var(--blush); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.steps-nav__btn:hover { color: var(--cream); }
.steps-nav__btn[aria-selected="true"] { color: var(--cream); }
.steps-nav__btn[aria-selected="true"]::after { transform: scaleX(1); }

.studio__form { min-height: 420px; }
.step { margin: 0; padding: 0; border: 0; min-width: 0; animation: step-in 0.5s var(--ease); }
@keyframes step-in { from { opacity: 0; translate: 12px 0; } }
.step legend { padding: 0; margin-bottom: 18px; font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; }
.step__help { color: #cbb8a8; font-size: 0.95rem; margin: -6px 0 18px; }

.options { display: grid; gap: 12px; }
.options--thumbs { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.options--chips { display: flex; flex-wrap: wrap; gap: 10px; }
.options--scents { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

.opt {
  position: relative; display: flex; flex-direction: column; gap: 2px; cursor: pointer; padding: 12px;
  border: 1px solid rgba(243, 232, 220, 0.16); border-radius: var(--radius); background: rgba(243, 232, 220, 0.03);
  transition: border-color 0.3s, background 0.3s, opacity 0.3s;
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:hover { border-color: rgba(243, 232, 220, 0.4); }
.opt:has(input:checked) { border-color: var(--blush); background: rgba(225, 178, 165, 0.12); }
.opt:has(input:focus-visible) { outline: 2px solid var(--blush); outline-offset: 2px; }
.opt__thumb { display: grid; place-items: end center; aspect-ratio: 1; margin-bottom: 6px; border-radius: 4px; background: linear-gradient(to bottom, #efe5d8 0 74%, #6b4a35 74%); overflow: hidden; }
.opt__thumb .candle-svg { height: 96%; width: auto; }
.opt__name { font-size: 0.95rem; color: var(--cream); }
.opt__desc { font-size: 0.8rem; color: #bfa695; line-height: 1.35; }
.opt.is-disabled { opacity: 0.28; cursor: not-allowed; }
.opt.is-disabled:hover { border-color: rgba(243, 232, 220, 0.16); }
.opt--chip { flex-direction: row; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; }
.chip-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.chip-dot--none { background: none; border: 1px dashed rgba(243, 232, 220, 0.5); }
.opt--scent { padding: 16px; }
.opt--scent .opt__name { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.1; margin-bottom: 4px; }

.subopt { margin-bottom: 26px; }
.subopt__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.subopt__title { margin: 0 0 12px; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: #bfa695; }
.subopt__row .subopt__title { margin: 0; }
.sand-layer { margin-bottom: 16px; }
.sand-layer__label { margin: 0 0 8px; font-size: 0.85rem; color: #d8c7b8; }

.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch { position: relative; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.swatch input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.swatch__dot { width: 100%; height: 100%; border-radius: 50%; background: var(--c); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.18); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.swatch:hover .swatch__dot { transform: scale(1.1); }
.swatch:has(input:checked) .swatch__dot { box-shadow: 0 0 0 3px var(--walnut), 0 0 0 4px var(--cream); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--blush); outline-offset: 4px; }
.swatch--custom { border: 1px dashed rgba(243, 232, 220, 0.6); }
.swatch--custom input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.swatch__plus { pointer-events: none; font-size: 1.1rem; color: var(--cream); line-height: 1; }
.swatch--custom.is-active { border-style: solid; background: var(--c); box-shadow: 0 0 0 3px var(--walnut), 0 0 0 4px var(--cream); }
.swatch--custom.is-active .swatch__plus { opacity: 0; }

.segmented { display: inline-flex; border: 1px solid rgba(243, 232, 220, 0.25); border-radius: 999px; padding: 3px; }
.segmented label { position: relative; cursor: pointer; padding: 4px 14px; border-radius: 999px; font-size: 0.85rem; color: #d8c7b8; transition: background 0.3s, color 0.3s; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--cream); color: var(--walnut); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--blush); outline-offset: 2px; }

.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle__track { width: 44px; height: 24px; border-radius: 999px; background: rgba(243, 232, 220, 0.2); position: relative; transition: background 0.3s; flex: none; }
.toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--cream); transition: transform 0.35s var(--ease); }
.toggle input:checked + .toggle__track { background: #c9a24a; }
.toggle input:checked + .toggle__track::after { transform: translateX(20px); }
.toggle input:focus-visible + .toggle__track { outline: 2px solid var(--blush); outline-offset: 2px; }

.summary-box { margin-top: 30px; padding: 24px; border: 1px solid rgba(243, 232, 220, 0.2); border-radius: var(--radius); background: rgba(243, 232, 220, 0.04); }
.summary { list-style: none; padding: 0; margin: 0 0 20px; }
.summary li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(243, 232, 220, 0.12); font-size: 0.95rem; }
.summary__key { color: #bfa695; }
.summary__val { text-align: right; }
.summary-box__note { margin: 12px 0 0; font-size: 0.85rem; color: #bfa695; text-align: center; }
.studio__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }

/* Candle SVG animation */
.candle-svg [data-fill], .candle-svg [data-stroke] { transition: fill 0.5s var(--ease), stroke 0.5s var(--ease); }
.cv-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 2.2s ease-in-out infinite; }
.cv-glow { transform-box: fill-box; transform-origin: center; opacity: 0.7; transition: opacity 0.8s, transform 0.8s; animation: breathe 3.4s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-1.5deg); } 35% { transform: scale(0.97, 1.05) rotate(1.5deg); } 70% { transform: scale(1.03, 0.96) rotate(-0.5deg); } }
@keyframes breathe { 50% { opacity: 0.45; } }
.fade-in { animation: fade-in 0.6s var(--ease); }
@keyframes fade-in { from { opacity: 0; translate: 0 10px; } }

/* ---------- Scent animations ---------- */
.scent-fx { position: absolute; inset: 0; }
.scent-fx__glow {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(55% 50% at 50% 45%, color-mix(in srgb, var(--scent) 55%, transparent), transparent 75%);
  animation: fx-glow 3.8s ease-out forwards;
}
@keyframes fx-glow { 25% { opacity: 1; } 100% { opacity: 0; } }
.scent-fx__label {
  position: absolute; left: 0; right: 0; top: 9%; margin: 0; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4vw, 3rem); color: #3b271d;
  text-shadow: 0 2px 18px rgba(255, 250, 240, 0.9); opacity: 0;
  animation: fx-label 3.6s var(--ease) forwards;
}
@keyframes fx-label {
  0% { opacity: 0; translate: 0 12px; letter-spacing: 0.25em; }
  25%, 70% { opacity: 1; translate: 0 0; letter-spacing: 0.02em; }
  100% { opacity: 0; translate: 0 -12px; }
}
.fx-wisp { position: absolute; left: 50%; top: 4%; width: 26%; height: 46%; translate: -50% 0; scale: var(--flip) 1; }
.fx-wisp svg { width: 100%; height: 100%; overflow: visible; }
.fx-wisp path {
  fill: none; stroke-width: 3; stroke-linecap: round; opacity: 0;
  stroke-dasharray: 320; stroke-dashoffset: 320; vector-effect: non-scaling-stroke;
  animation: fx-wisp 3.4s ease-out var(--delay) forwards;
}
@keyframes fx-wisp {
  20% { opacity: 0.8; }
  100% { stroke-dashoffset: 0; opacity: 0; translate: 0 -24px; }
}
.fx { position: absolute; left: var(--x); top: var(--y); width: var(--size); height: var(--size); margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); opacity: 0; will-change: transform, opacity; }
.fx svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(60, 30, 20, 0.18)); }
.fx--float { animation: fx-float var(--dur) cubic-bezier(0.25, 0.6, 0.35, 1) var(--delay) forwards; }
.fx--swirl { animation: fx-swirl var(--dur) cubic-bezier(0.3, 0.5, 0.3, 1) var(--delay) forwards; }
.fx--burst { animation: fx-burst var(--dur) cubic-bezier(0.15, 0.8, 0.3, 1) var(--delay) forwards; }
.fx--drift { animation: fx-drift var(--dur) linear var(--delay) forwards; }
@keyframes fx-float {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  15% { opacity: 1; }
  50% { transform: translate(calc(var(--dx) * -0.4), calc(var(--dy) * 0.5)) rotate(calc(var(--rot) * 0.5)) scale(0.9); }
  80% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); }
}
@keyframes fx-swirl {
  0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(0.3); }
  15% { opacity: 1; }
  35% { transform: translate(calc(var(--dx) * 0.8), calc(var(--dy) * 0.3)) rotate(calc(var(--rot) * 0.35)) scale(0.8); }
  65% { transform: translate(calc(var(--dx) * -0.6), calc(var(--dy) * 0.65)) rotate(calc(var(--rot) * 0.7)) scale(0.95); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); }
}
@keyframes fx-burst {
  0% { opacity: 0; transform: translate(0, 0) scale(0.2) rotate(0); }
  12% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.05) rotate(var(--rot)); }
}
@keyframes fx-drift {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  12% { opacity: 1; }
  33% { transform: translate(calc(var(--dx) * 0.7), calc(var(--dy) * 0.33)) rotate(calc(var(--rot) * 0.33)); }
  66% { transform: translate(calc(var(--dx) * -0.5), calc(var(--dy) * 0.66)) rotate(calc(var(--rot) * 0.66)); }
  85% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}

/* ---------- Contact dialog ---------- */
.contact {
  width: min(460px, calc(100% - 32px)); padding: 40px 34px 34px; border: 0; border-radius: 10px;
  background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(20, 10, 5, 0.35);
}
.contact::backdrop { background: rgba(28, 18, 13, 0.55); backdrop-filter: blur(3px); }
.contact[open] { animation: contact-in 0.45s var(--ease); }
@keyframes contact-in { from { opacity: 0; translate: 0 16px; } }
.contact h2 { font-size: 2.4rem; }
.contact__lead { color: var(--ink-soft); }
.contact__close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border: 0; background: none; cursor: pointer; font-size: 1.6rem; line-height: 1; color: var(--muted); }
.contact__options { display: grid; gap: 10px; margin-top: 22px; }
.contact__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.contact__opt:hover { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.contact__name { font-family: var(--serif); font-size: 1.45rem; }
.contact__go { font-size: 0.85rem; letter-spacing: 0.04em; }

/* ---------- Workshop ---------- */
.workshop { display: grid; grid-template-columns: 0.8fr 2fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.workshop__intro { position: sticky; top: 110px; }
.workshop__intro p:last-child { color: var(--ink-soft); }
.workshop__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.workshop__steps li:nth-child(2) { margin-top: 70px; }
.workshop__steps li:nth-child(3) { margin-top: 140px; }
.workshop__steps img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); margin-bottom: 18px; }
.workshop__num { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--blush-deep); }
.workshop__steps h3 { margin: 4px 0 6px; }
.workshop__steps p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Gallery ---------- */
.gallery { padding-bottom: clamp(70px, 9vw, 120px); }
.gallery__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.gallery__head h2 { margin: 0; }
.gallery__arrows { display: flex; gap: 10px; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 1.1rem; transition: background 0.3s, color 0.3s; }
.round-btn:hover { background: var(--ink); color: var(--linen); }
.gallery__track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 max(20px, calc((100vw - 1240px) / 2)); scrollbar-width: none; cursor: grab;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.gallery__track img { height: clamp(280px, 40vw, 440px); width: auto; flex: none; scroll-snap-align: start; border-radius: var(--radius); object-fit: cover; user-select: none; -webkit-user-drag: none; }

/* ---------- Events ---------- */
.events { padding-top: 0; }
.events__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.events__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px var(--radius) var(--radius); }
.events__text p:not(.kicker) { color: var(--ink-soft); font-size: 1.1rem; max-width: 46ch; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.footer { background: var(--walnut); color: var(--cream); padding-block: 70px 40px; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer__logo { width: 150px; border-radius: 10px; margin-bottom: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.footer__tag { font-family: var(--serif); font-style: italic; font-size: 1.4rem; margin: 0; }
.footer__links { display: flex; gap: 26px; margin: 10px 0 20px; }
.footer__links a { text-decoration: none; border-bottom: 1px solid rgba(243, 232, 220, 0.4); font-size: 0.92rem; letter-spacing: 0.05em; }
.footer__copy { font-size: 0.8rem; color: #a99282; margin: 0; }

/* ---------- 404 ---------- */
.not-found { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.not-found__logo { width: 88px; border-radius: 12px; margin-bottom: 28px; }
.not-found .kicker { justify-content: center; }
.not-found__text { color: var(--ink-soft); margin-bottom: 30px; }

/* Photos soften at night */
:root[data-mode="velada"] .arch img,
:root[data-mode="velada"] .card__media img,
:root[data-mode="velada"] .gallery__track img,
:root[data-mode="velada"] .workshop__steps img,
:root[data-mode="velada"] .events__img { filter: brightness(0.82) sepia(0.12); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 44px 22px; }
  .scents__list { grid-template-columns: repeat(3, 1fr); }
  .scent:nth-child(4) { border-left: 0; }
  .scent:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .workshop { grid-template-columns: 1fr; }
  .workshop__intro { position: static; }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { min-height: 0; aspect-ratio: 1 / 1.05; max-width: 520px; width: 100%; margin-inline: auto; }
  .studio { grid-template-columns: 1fr; gap: 20px; }
  .studio__stagewrap { top: 64px; z-index: 5; background: var(--walnut); padding-bottom: 8px; }
  .stage { height: 34vh; min-height: 230px; }
  .stage__caption { font-size: 1.05rem; margin-top: 8px; min-height: 0; }
  .stage__tools { margin-top: 6px; flex-wrap: nowrap; }
  .tool { padding: 5px 11px; font-size: 0.78rem; white-space: nowrap; }
  .studio__status { min-height: 0; margin: 4px 0 0; }
  .studio__form { min-height: 0; }
  .events__inner { grid-template-columns: 1fr; }
  .events__img { max-width: 420px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .header__inner { gap: 10px; }
  .brand__name { font-size: 1.35rem; }
  .brand__logo { width: 38px; }
  .mode-toggle__label { display: none; }
  .mode-toggle { padding: 8px; }
  .hero__note { display: none; }
  .hero__facts { gap: 18px; }
  .hero__facts dt { font-size: 1.7rem; }
  .grid { grid-template-columns: 1fr 1fr; gap: 34px 14px; }
  .card__title { font-size: 1.4rem; }
  .card__desc { font-size: 0.88rem; }
  .card__actions { flex-direction: column; align-items: flex-start; gap: 8px; }
  .scents__list { grid-template-columns: 1fr 1fr; }
  .scent { padding: 22px 14px; }
  .scent:nth-child(odd) { border-left: 0; }
  .scent:nth-child(4) { border-left: 1px solid var(--line); }
  .scent:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .workshop__steps { grid-template-columns: 1fr 1fr; }
  .workshop__steps li:nth-child(2) { margin-top: 40px; }
  .workshop__steps li:nth-child(3) { margin-top: 0; }
  .options--thumbs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .opt { padding: 8px; }
  .opt__desc { display: none; }
  .options--scents { grid-template-columns: 1fr 1fr; }
  .steps-nav__btn { font-size: 0.8rem; padding-right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: 0 0; }
  .arch--main, .arch--small { translate: none; }
}
