/* Aurel — concept skincare store (Credoark demo).
   Voice: quiet, tactile, editorial. Bone ground, sage fields, olive ink, one clay accent. */
@font-face { font-family: 'Aurel Serif'; src: url('../../../assets/fonts/instrument-serif.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Aurel Serif'; font-style: italic; src: url('../../../assets/fonts/instrument-serif-italic.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Aurel Sans'; src: url('../../../assets/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bone: #F1E9DE;
  --paper: #FAF6F0;
  --sage: #E4D5C1;
  --sage-deep: #8A6E4E;
  --ink: #2A241D;
  --muted: rgba(42, 36, 29, 0.66);
  --line: rgba(42, 36, 29, 0.14);
  --clay: #9C6B3C;
  --serif: 'Aurel Serif', 'Times New Roman', serif;
  --sans: 'Aurel Sans', system-ui, sans-serif;
  --pad: max(5vw, 18px);
  --max: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bone); color: var(--ink); font: 16px/1.6 var(--sans); overflow-x: clip; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* Concept bar ------------------------------------------------------------- */
.concept-bar {
  display: flex; justify-content: center; gap: 0.6rem 1.25rem; flex-wrap: wrap;
  padding: 0.55rem var(--pad); background: var(--ink); color: var(--bone);
  font-size: 0.78rem; letter-spacing: 0.02em; text-align: center;
}
.concept-bar a { color: var(--sage); text-underline-offset: 3px; }

/* Header ------------------------------------------------------------------ */
.header { position: sticky; top: 0; z-index: 20; background: rgba(243, 238, 230, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.logo { font-family: var(--serif); font-size: 1.9rem; letter-spacing: 0.32em; text-decoration: none; padding-left: 0.32em; }
.nav { display: flex; gap: 2rem; }
.nav a { text-decoration: none; font-size: 0.92rem; color: var(--muted); transition: color 180ms; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.header__tools { display: flex; align-items: center; gap: 0.5rem; }
.bag-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 0.9rem; }
.bag-link [data-bag-count][hidden] { display: none; }
.bag-link [data-bag-count] { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 0.3rem; border-radius: 999px; background: var(--ink); color: var(--bone); font-size: 0.72rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer; }

/* Type ---------------------------------------------------------------------- */
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7.4vw, 7.2rem); line-height: 0.95; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.display em { font-style: italic; color: var(--clay); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.02; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.lede { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--muted); max-width: 40ch; }
.kicker { font-size: 0.8rem; letter-spacing: 0.08em; color: var(--sage-deep); }

/* Buttons ------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; border: 1px solid var(--ink); font-size: 0.92rem; text-decoration: none; cursor: pointer; transition: background 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn--solid { background: var(--ink); color: var(--bone); }
.btn--solid:hover { background: var(--clay); border-color: var(--clay); }
.btn--line { background: transparent; min-height: 40px; padding: 0 1rem; }
.btn--line:hover { background: var(--ink); color: var(--bone); }
.btn--block { width: 100%; }

/* Hero ---------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.hero__copy { padding-bottom: 1rem; }
.hero .display { font-size: clamp(2.9rem, 5.4vw, 5.6rem); }
.hero__copy .lede { margin: 1.5rem 0 2rem; }
.hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero__media { border-radius: 4px 4px 260px 260px / 4px 4px 200px 200px; overflow: hidden; background: var(--sage); aspect-ratio: 16 / 11; }
.hero__media img { height: 100%; object-fit: cover; animation: settle 1.8s var(--ease) both; }
@keyframes settle { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }

/* Steps -------------------------------------------------------------------- */
.band { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.band--sage { background: var(--sage); }
.band--paper { background: var(--paper); }
.band__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.step { padding: 2rem 2rem 2.5rem 0; border-right: 1px solid var(--line); text-decoration: none; transition: background 300ms; }
.step + .step { padding-left: 2rem; }
.step:last-child { border-right: 0; }
.step__n { font-family: var(--serif); font-size: 4.5rem; line-height: 1; color: var(--sage-deep); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin: 1rem 0 0.4rem; }
.step p { color: var(--muted); margin: 0 0 1.2rem; max-width: 30ch; }
.step span.more { font-size: 0.88rem; border-bottom: 1px solid currentColor; }
.step:hover .more { color: var(--clay); }

/* Cards --------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--paper); border-radius: 4px; overflow: hidden; }
.card__media { display: block; aspect-ratio: 4 / 5; background: var(--sage); overflow: hidden; }
.card__media img { height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.card__step { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--sage-deep); }
.card__name { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; margin: 0; }
.card__name a { text-decoration: none; }
.card__short { margin: 0; color: var(--muted); font-size: 0.94rem; }
.card__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: auto; padding-top: 1rem; }
.card__price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.card__price small { color: var(--muted); margin-left: 0.3rem; }

/* Routine builder ----------------------------------------------------------- */
.routine { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.routine__ask { margin: 1.5rem 0 0; padding: 0; border: 0; }
.routine__ask legend { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.8rem; }
.feels { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.feels button { min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--ink); background: transparent; cursor: pointer; transition: background 200ms, color 200ms; }
.feels button[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.routine__panel { background: var(--paper); border-radius: 4px; padding: clamp(1.25rem, 3vw, 2.25rem); }
.routine__note { margin: 0 0 1.25rem; font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; }
.routine__steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.routine__steps li { display: grid; grid-template-columns: 2.4rem 64px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--line); animation: rise 520ms var(--ease) both; }
.routine__steps li:nth-child(2) { animation-delay: 80ms; }
.routine__steps li:nth-child(3) { animation-delay: 160ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.routine__n { font-family: var(--serif); font-size: 1.5rem; color: var(--sage-deep); }
.routine__thumb { display: block; border-radius: 3px; overflow: hidden; background: var(--sage); aspect-ratio: 4 / 5; }
.routine__meta { display: flex; flex-direction: column; }
.routine__meta strong { font-weight: 500; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--sage-deep); }
.routine__meta a { text-decoration: none; font-family: var(--serif); font-size: 1.3rem; }
.routine__price { font-variant-numeric: tabular-nums; }
.routine__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* Editorial band ------------------------------------------------------------ */
.editorial { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.editorial figure { margin: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 10; }
.editorial figure img { height: 100%; object-fit: cover; }
.editorial blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.15; }
.editorial p { color: var(--muted); max-width: 38ch; }

/* Ingredient index ---------------------------------------------------------- */
.index { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.index__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.index__list li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.index__list button { width: 100%; min-height: 48px; text-align: left; background: none; border: 0; font-family: var(--serif); font-size: 1.35rem; cursor: pointer; color: var(--muted); transition: color 180ms, padding 300ms var(--ease); }
.index__list button:hover { color: var(--ink); }
.index__list button[aria-pressed="true"] { color: var(--clay); padding-left: 0.6rem; }
.index__card { position: sticky; top: 96px; background: var(--paper); border-radius: 4px; padding: clamp(1.4rem, 3vw, 2.4rem); }
.index__name { font-family: var(--serif); font-weight: 400; font-size: 2.6rem; margin: 0; line-height: 1; }
.index__what { color: var(--muted); font-size: 1.05rem; }
.index__label { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--sage-deep); margin: 1.5rem 0 0.4rem; }
.index__found { list-style: none; margin: 0; padding: 0; }
.index__found li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.index__found a { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; }
.index__found a:hover { color: var(--clay); }
.index__found span { color: var(--muted); font-size: 0.88rem; }

/* Shop ---------------------------------------------------------------------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.filters a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 0.9rem; }
.filters a[aria-current="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.filters [data-grid-count] { margin-left: auto; color: var(--muted); font-size: 0.88rem; }

/* Product page -------------------------------------------------------------- */
.crumbs { display: flex; gap: 0.6rem; padding-block: 1.5rem; font-size: 0.88rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.pdp__gallery { display: grid; gap: 1rem; }
.pdp__gallery figure { margin: 0; border-radius: 4px; overflow: hidden; background: var(--sage); }
.pdp__main { aspect-ratio: 4 / 5; }
.pdp__main img { height: 100%; object-fit: cover; animation: settle 1.4s var(--ease) both; }
.pdp__alt { aspect-ratio: 16 / 10; }
.pdp__alt img { height: 100%; object-fit: cover; }
.pdp__info { position: sticky; top: 96px; }
.pdp__name { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: 1; margin: 0.4rem 0 0.6rem; }
.pdp__short { color: var(--muted); font-size: 1.1rem; margin: 0; }
.pdp__price { font-size: 1.25rem; margin: 1.4rem 0; font-variant-numeric: tabular-nums; }
.pdp__price small { color: var(--muted); font-size: 0.9rem; margin-left: 0.4rem; }
.pdp__buy { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.pdp__buy .btn { flex: 1 1 12rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 44px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; }
.qty input, .qty output { width: 2.4rem; text-align: center; border: 0; background: none; font: inherit; font-size: 16px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm button { width: 38px; height: 38px; }
.pdp__sections { margin-top: 2rem; border-top: 1px solid var(--line); }
.pdp__sections details { border-bottom: 1px solid var(--line); }
.pdp__sections summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.35rem; }
.pdp__sections summary::-webkit-details-marker { display: none; }
.pdp__sections summary::after { content: '+'; font-family: var(--sans); color: var(--muted); transition: transform 300ms var(--ease); }
.pdp__sections details[open] summary::after { transform: rotate(45deg); }
.pdp__sections p, .pdp__ings { color: var(--muted); margin: 0 0 1.25rem; }
.pdp__ings { padding-left: 1.1rem; }
.pdp__ings li { margin-bottom: 0.4rem; }
.pdp__ings strong { color: var(--ink); font-weight: 500; }
.pdp__note { margin-top: 1.5rem; font-size: 0.82rem; color: var(--muted); }
.pairs { padding-block: clamp(3.5rem, 7vw, 6rem); }
.pairs .h2 { margin-bottom: 2rem; }

/* Bag ----------------------------------------------------------------------- */
.bag-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; padding-bottom: 5rem; }
[data-bag] { display: contents; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto auto; gap: 1.25rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.line__thumb { display: block; border-radius: 3px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sage); }
.line__meta { display: flex; flex-direction: column; }
.line__meta a { font-family: var(--serif); font-size: 1.4rem; text-decoration: none; }
.line__meta span { color: var(--muted); font-size: 0.88rem; }
.line__price { font-variant-numeric: tabular-nums; min-width: 4rem; text-align: right; }
.line__remove { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.summary { position: sticky; top: 96px; background: var(--paper); border-radius: 4px; padding: 1.75rem; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.summary__hint { color: var(--sage-deep); font-size: 0.92rem; margin: 1rem 0 1.25rem; }
.summary__note { color: var(--muted); font-size: 0.82rem; text-align: center; margin: 0.9rem 0 0; }
.empty { grid-column: 1 / -1; padding: 3rem 0 6rem; max-width: 34rem; }
.empty p:not(.h2) { color: var(--muted); }

/* Footer, toast, dialog ----------------------------------------------------- */
.footer { background: var(--ink); color: var(--bone); padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.6fr)); gap: 2rem; }
.footer .logo { font-size: 2.6rem; }
.footer p { color: rgba(243, 238, 230, 0.68); max-width: 40ch; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer a { text-decoration: none; color: rgba(243, 238, 230, 0.82); }
.footer a:hover { color: var(--sage); }
.footer__base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(243, 238, 230, 0.15); font-size: 0.82rem; color: rgba(243, 238, 230, 0.6); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__base a { color: var(--sage); }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 50; transform: translate(-50%, 140%); display: flex; gap: 1rem; align-items: center; padding: 0.85rem 1.2rem; border-radius: 999px; background: var(--ink); color: var(--bone); font-size: 0.92rem; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); transition: transform 420ms var(--ease); max-width: calc(100vw - 2rem); }
.toast.is-on { transform: translate(-50%, 0); }
.toast a { color: var(--sage); white-space: nowrap; }
dialog { border: 0; border-radius: 6px; padding: 0; max-width: min(30rem, calc(100vw - 2rem)); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(31, 42, 34, 0.45); }
.dialog__in { padding: 2rem; }
.dialog__in .h2 { font-size: 2rem; margin-bottom: 0.8rem; }
.dialog__in p { color: var(--muted); }
.dialog__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 0.5rem var(--pad) 1rem; background: var(--bone); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.8rem 0; font-size: 1.05rem; color: var(--ink); }
  .nav-toggle { display: inline-grid; place-items: center; }
  .hero, .routine, .editorial, .index, .pdp, .bag-layout { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 1.6rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .pdp__info, .summary, .index__card { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .grid--3 { grid-template-columns: 1fr; }
  .index__list { columns: 1; }
  .line { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: 't m p' 't q r'; gap: 0.4rem 1rem; }
  .line__thumb { grid-area: t; } .line__meta { grid-area: m; } .line__price { grid-area: p; }
  .line .qty { grid-area: q; justify-self: start; } .line__remove { grid-area: r; }
  .routine__steps li { grid-template-columns: 2rem 52px minmax(0, 1fr) auto; gap: 0.7rem; }
  .filters [data-grid-count] { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ===== Revamp ================================================================ */
.btn--sm { min-height: 36px; padding: 0 0.9rem; font-size: 0.84rem; }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--clay); border-color: var(--clay); color: var(--paper); }
.btn--ghost-light { background: transparent; color: var(--paper); border-color: rgba(250, 246, 240, 0.6); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }

/* Film hero */
.film { position: relative; min-height: calc(100svh - 106px); display: grid; align-items: end; overflow: hidden; color: var(--paper); background: #3a3026; }
.film video, .film__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.film::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 24, 18, 0.62) 0%, rgba(30, 24, 18, 0.18) 48%, transparent 70%), linear-gradient(180deg, transparent 45%, rgba(30, 24, 18, 0.6)); pointer-events: none; }
.film__in { position: relative; z-index: 2; width: 100%; padding: 0 var(--pad) clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; max-width: var(--max); margin: 0 auto; }
.film__word { font-family: var(--serif); font-weight: 400; font-size: clamp(5rem, 18vw, 17rem); line-height: 0.8; letter-spacing: -0.03em; margin: 0; animation: lift 1.6s var(--ease) both; }
.film__tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.3rem); margin: 0.6rem 0 1.4rem; opacity: 0; animation: lift 1.4s 0.35s var(--ease) both; }
.film__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; opacity: 0; animation: lift 1.2s 0.55s var(--ease) both; }
.film__toggle { align-self: end; font-size: 0.82rem; }
@keyframes lift { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Ingredient ticker */
.ticker { overflow: hidden; background: var(--ink); color: var(--paper); }
.ticker__track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker span { padding: 0.85rem 1.6rem; font-family: var(--serif); font-size: 1.15rem; white-space: nowrap; }
.ticker span::after { content: '✦'; margin-left: 3.2rem; color: #C9A27A; font-size: 0.8rem; vertical-align: middle; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Pinned ritual */
.ritual { position: relative; height: 320vh; background: var(--paper); }
.ritual__pin { position: sticky; top: 68px; height: calc(100vh - 68px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: 0 var(--pad); max-width: var(--max); margin: 0 auto; }
.ritual__steps { position: relative; display: grid; gap: 0.5rem; padding-left: 1.6rem; }
.ritual__track { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); }
.ritual__track i { position: absolute; inset: 0; background: var(--clay); transform: scaleY(0); transform-origin: top; transition: transform 120ms linear; }
.rstep { padding: 1rem 0; opacity: 0.32; transition: opacity 500ms var(--ease); }
.rstep.is-on { opacity: 1; }
.rstep__n { font-family: var(--serif); font-size: 1.3rem; color: var(--clay); }
.rstep h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 4.5vw, 4.2rem); line-height: 1; margin: 0.2rem 0 0.5rem; }
.rstep p { margin: 0 0 0.8rem; color: var(--muted); max-width: 34ch; }
.rstep a { font-size: 0.9rem; text-underline-offset: 4px; }
.ritual__shots { position: relative; height: min(78vh, 760px); border-radius: 220px 220px 8px 8px; overflow: hidden; background: var(--sage); }
.ritual__shots figure { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.08); transition: opacity 900ms var(--ease), transform 1400ms var(--ease); }
.ritual__shots figure.is-on { opacity: 1; transform: none; }
.ritual__shots img { width: 100%; height: 100%; object-fit: cover; }
.ritual__shots figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: 0.4rem 0.8rem; border-radius: 999px; background: rgba(250, 246, 240, 0.88); font-size: 0.8rem; }
.ritual.is-static { height: auto; }
.ritual.is-static .ritual__pin { position: relative; top: auto; height: auto; padding-block: 4rem; }
.ritual.is-static .rstep { opacity: 1; }

/* Texture accordion */
.textures { display: flex; gap: 0.75rem; height: clamp(420px, 62vh, 620px); }
.tex { position: relative; flex: 1; min-width: 0; border-radius: 6px; overflow: hidden; cursor: pointer; transition: flex 900ms var(--ease); border: 0; padding: 0; background: var(--sage); color: var(--paper); text-align: left; }
.tex img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tex::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(30, 24, 18, 0.65)); }
.tex__txt { position: absolute; z-index: 2; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; }
.tex__txt b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1; }
.tex__txt span { display: block; max-width: 30ch; margin-top: 0.5rem; font-size: 0.92rem; opacity: 0; transform: translateY(8px); transition: opacity 500ms, transform 600ms var(--ease); }
.tex.is-open { flex: 2.6; }
.tex.is-open img { transform: scale(1.04); }
.tex.is-open .tex__txt span { opacity: 0.92; transform: none; }

/* Shoppable shelf */
.shelf-wrap { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.shelf { position: relative; border-radius: 6px; overflow: visible; aspect-ratio: 1122 / 1402; max-height: 82vh; }
.shelf > img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.spot { position: absolute; z-index: 3; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 0; background: var(--paper); cursor: pointer; box-shadow: 0 0 0 0 rgba(250, 246, 240, 0.7); animation: ping 2.4s infinite; }
.spot::after { content: '+'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.1rem; color: var(--ink); }
.spot[aria-expanded="true"] { background: var(--clay); animation: none; }
.spot[aria-expanded="true"]::after { content: '×'; color: var(--paper); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(250, 246, 240, 0.75); } 70% { box-shadow: 0 0 0 14px rgba(250, 246, 240, 0); } 100% { box-shadow: 0 0 0 0 rgba(250, 246, 240, 0); } }
.shelf__card { position: absolute; z-index: 4; width: min(17rem, 70vw); margin: 22px 0 0 -20px; display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1.1rem; border-radius: 10px; background: var(--paper); box-shadow: 0 18px 50px rgba(30, 24, 18, 0.25); animation: pop 320ms var(--ease); }
.shelf__card.is-left { margin-left: calc(-1 * min(17rem, 70vw) + 20px); }
.shelf__card strong { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.05; }
.shelf__card > span:not(.card__step):not(.shelf__row) { color: var(--muted); font-size: 0.9rem; }
.shelf__row { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.5rem; }
.shelf__row a { font-size: 0.85rem; margin-right: auto; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Lifestyle split */
.life { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; min-height: 90vh; }
.life figure { margin: 0; overflow: hidden; }
.life img { width: 100%; height: 100%; object-fit: cover; }
.life__copy { display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; padding: clamp(2.5rem, 6vw, 6rem); background: var(--ink); color: var(--paper); }
.life__copy blockquote { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.08; }
.life__copy p { color: rgba(250, 246, 240, 0.7); max-width: 40ch; margin: 0; }
.life__copy figure { border-radius: 4px; max-width: 22rem; aspect-ratio: 4 / 5; }

/* Campaign (marketing layer) */
.campaign { background: var(--sage); }
.campaign .kicker { color: var(--sage-deep); }
.ads { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.ad { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(42, 36, 29, 0.14); font-family: var(--sans); color: #111; }
.ad__label { display: block; margin: 0 0 0.7rem; font-size: 0.8rem; color: var(--sage-deep); }
.ig__head { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.85rem; font-size: 0.82rem; }
.ig__ava { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--serif); font-size: 0.95rem; }
.ig__head b { font-weight: 600; } .ig__head small { color: #777; display: block; font-size: 0.72rem; }
.ig__img { aspect-ratio: 4 / 5; }
.ig__img img { width: 100%; height: 100%; object-fit: cover; }
.ig__cta { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0.85rem; background: #F3EEE7; font-size: 0.85rem; font-weight: 600; }
.ig__cap { padding: 0.7rem 0.85rem 1rem; font-size: 0.85rem; line-height: 1.45; }
.story { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; color: #fff; }
.story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35), transparent 30%, transparent 55%, rgba(0,0,0,0.55)); }
.story__bars { position: absolute; z-index: 2; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; }
.story__bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.45); }
.story__bars i:first-child { background: #fff; }
.story__top { position: absolute; z-index: 2; top: 22px; left: 12px; display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 600; }
.story__sticker { position: absolute; z-index: 2; left: 50%; top: 79%; transform: translate(-50%, -50%) rotate(-4deg); padding: 0.7rem 1rem; border-radius: 12px; background: var(--paper); color: var(--ink); text-align: center; font-family: var(--serif); font-size: 1.5rem; line-height: 1; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.story__sticker small { display: block; font-family: var(--sans); font-size: 0.7rem; color: var(--sage-deep); margin-top: 0.3rem; }
.story__swipe { position: absolute; z-index: 2; left: 0; right: 0; bottom: 10px; font-size: 0.72rem; text-align: center; font-size: 0.8rem; font-weight: 600; }
.gad { padding: 1.1rem 1.2rem 1.2rem; }
.gad__top { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: #202124; }
.gad__top i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #F1E9DE; font-style: normal; font-family: var(--serif); }
.gad__top small { display: block; color: #4d5156; font-size: 0.74rem; }
.gad__spon { font-weight: 700; font-size: 0.78rem; margin: 0.6rem 0 0.2rem; }
.gad h4 { margin: 0; color: #1a0dab; font-weight: 400; font-size: 1.2rem; line-height: 1.3; }
.gad p { margin: 0.35rem 0 0; color: #4d5156; font-size: 0.88rem; line-height: 1.5; }
.gad__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.7rem; font-size: 0.85rem; color: #1a0dab; }
.ads__note { margin-top: 1.5rem; font-size: 0.85rem; color: var(--muted); }

/* Offer pop-up */
#offer { width: min(52rem, calc(100vw - 2rem)); max-width: none; border-radius: 10px; overflow: hidden; }
.offer { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.offer figure { margin: 0; min-height: 100%; }
.offer figure img { width: 100%; height: 100%; object-fit: cover; }
.offer__body { position: relative; padding: clamp(1.6rem, 4vw, 2.8rem); display: flex; flex-direction: column; gap: 0.9rem; }
.offer__body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1; margin: 0; }
.offer__body > p { color: var(--muted); margin: 0; }
.offer__x { position: absolute; top: 0.8rem; right: 0.8rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 1.1rem; }
.offer form { display: grid; gap: 0.7rem; }
.offer input[type=email] { min-height: 48px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 16px; }
.offer label.tick { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.82rem; color: var(--muted); }
.offer label.tick input { margin-top: 0.2rem; accent-color: var(--clay); }
.offer__err { min-height: 1em; font-size: 0.82rem; color: #A2412B; }
.offer__done { margin: 0; padding: 1rem; border-radius: 10px; background: var(--bone); font-size: 0.92rem; }
.offer__no { background: none; border: 0; padding: 0; color: var(--muted); font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; }

@media (max-width: 900px) {
  .film__in { grid-template-columns: 1fr; }
  .film__toggle { justify-self: start; }
  .ritual__pin, .shelf-wrap, .life { grid-template-columns: 1fr; }
  .ritual__shots { height: 70vw; border-radius: 160px 160px 8px 8px; }
  .textures { flex-direction: column; height: auto; }
  .tex { flex: none; height: 46vw; min-height: 220px; }
  .tex.is-open { flex: none; height: 70vw; }
  .tex__txt span { opacity: 0.9; transform: none; }
  .ads { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; }
  .offer { grid-template-columns: 1fr; }
  .offer figure { height: 180px; }
  .life { min-height: auto; }
  .life > figure { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) { .film__word, .film__tag, .film__actions { opacity: 1; animation: none; } }

/* Desktop film hero: the portrait film stays sharp in an arch beside the wordmark */
@media (min-width: 901px) {
  .film { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); padding: clamp(1.5rem, 3vw, 2.5rem) var(--pad); background: var(--bone); color: var(--ink); max-width: none; }
  .film::after { display: none; }
  .film video, .film__poster { position: relative; inset: auto; grid-area: 1 / 2; justify-self: center; height: min(calc(100svh - 160px), 860px); width: auto; aspect-ratio: 1080 / 1350; border-radius: 999px 999px 10px 10px; object-position: 50% 50%; box-shadow: 0 40px 90px rgba(42, 36, 29, 0.18); }
  .film__in { grid-area: 1 / 1; grid-template-columns: 1fr; padding: 0 0 0 max(0px, calc((100vw - var(--max)) / 2)); margin: 0; }
  .film__word { font-size: clamp(6rem, 13.5vw, 13rem); color: var(--ink); }
  .film__tag { color: var(--clay); }
  .film .btn--light { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .film .btn--light:hover { background: var(--clay); border-color: var(--clay); }
  .film .btn--ghost-light { color: var(--ink); border-color: var(--line); }
  .film .btn--ghost-light:hover { background: var(--ink); color: var(--paper); }
  .film__toggle { justify-self: start; margin-top: 2.2rem; }
  .film__meta { display: flex; gap: 2rem; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); max-width: 30rem; }
  .film__meta div { display: flex; flex-direction: column; font-size: 0.85rem; color: var(--muted); }
  .film__meta b { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; color: var(--ink); line-height: 1.1; }
}
@media (max-width: 900px) { .film__meta { display: none; } }
