/* Käare · "Immersiu fosc"
   A forest-black world; the products are lit like jewels in paper niches (.vitrine), the type is a large
   serif, and motion is slow on entry, fast on response. Easing and durations follow Emil Kowalski's rules:
   ease-out for entering, never ease-in, UI under 300ms, drawers up to 500ms, hover gated to fine pointers. */

:root {
  --bg: #0e1411;
  --bg-2: #131b16;
  --surface: #1a241e;
  --ink: #ece6da;
  --ink-2: #c9c4b8;
  --muted: #9ea396;
  --sage: #a9bfae;
  --line: rgb(236 230 218 / 0.13);
  --line-2: rgb(236 230 218 / 0.24);
  --paper: #eee8dc;
  --paper-ink: #17201b;

  --serif: "EB Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gut: clamp(20px, 5vw, 80px);
  --max: 1440px;
  --hdr: 76px;
  --sec: clamp(96px, 14vh, 168px);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hdr);
  color-scheme: dark; caret-color: var(--sage); accent-color: var(--sage);
  scrollbar-color: rgb(236 230 218 / 0.22) var(--bg); }
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .3em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
::selection { background: var(--sage); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--sage); outline-offset: 4px; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Type ---------- */
.display { font: 400 clamp(52px, 8.2vw, 128px)/0.94 var(--serif); letter-spacing: -0.028em; }
.display em, .manifesto__line em, .h2 em { font-style: italic; color: var(--sage); }
.display--md { font-size: clamp(44px, 6vw, 96px); }
.h1 { font: 400 clamp(38px, 4vw, 60px)/1.04 var(--serif); letter-spacing: -0.02em; }
.h2 { font: 400 clamp(34px, 3.6vw, 56px)/1.06 var(--serif); letter-spacing: -0.018em; }
.label, .hdr__links a, .hdr__menu, .hdr__cart, .btn, .card__line, .card__add, .crumbs, .pdp__tag,
.pdp__block h2, .ftr__col h2, .ritual__n, .vitrine__label, .hero__scroll, .drawer__head h2, .link {
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.17em; text-transform: uppercase; }

/* ---------- Actions ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 30px;
  border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); text-decoration: none; cursor: pointer;
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out), transform 160ms var(--ease-out); }
.btn--light { background: var(--ink); color: var(--bg); }
.btn:active { transform: scale(0.98); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn__price { opacity: .7; letter-spacing: .08em; }
@media (hover: hover) and (pointer: fine) {
  .btn--light:hover { background: var(--paper); }
  .btn:not(.btn--light):hover { background: var(--ink); color: var(--bg); }
}
.link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 calc(50% + 12px) / 100% 1px no-repeat; }
.link .i-arrow { transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link:hover .i-arrow { transform: translateX(4px); } }
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 20px; }

/* ---------- Header ---------- */
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; }
.hdr { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--hdr); color: var(--ink);
  transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out);
  border-bottom: 1px solid transparent; }
.hdr.is-solid, .is-product .hdr, .is-text .hdr { background: rgb(14 20 17 / 0.92); border-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hdr__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 100%; padding: 0 var(--gut); max-width: var(--max); margin: 0 auto; }
.hdr__links { display: flex; gap: 32px; }
.hdr__links a { text-decoration: none; padding: 12px 0; position: relative; }
.hdr__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .hdr__links a:hover::after { transform: scaleX(1); } }
.hdr__logo img { height: 30px; width: auto; }
.hdr__cart { justify-self: end; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border: 0; background: none; cursor: pointer; }
.hdr__cart svg { font-size: 19px; }
.hdr__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 11px;
  font-size: 11px; letter-spacing: 0; transition: transform 300ms var(--ease-out), background-color 300ms; }
.hdr__count.is-bump { transform: scale(1.18); background: var(--sage); color: var(--bg); border-color: var(--sage); }
.hdr__menu { display: none; align-items: center; gap: 10px; min-height: 44px; border: 0; background: none; cursor: pointer; }
.hdr__menu svg { font-size: 20px; }
@media (max-width: 960px) {
  :root { --hdr: 64px; }
  .hdr__menu { display: inline-flex; }
  .hdr__links { position: fixed; inset: var(--hdr) 0 auto; flex-direction: column; gap: 0; padding: 12px var(--gut) 28px;
    background: var(--bg); border-bottom: 1px solid var(--line); visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s 220ms; }
  .hdr.is-open .hdr__links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .hdr.is-open { background: var(--bg); }
  .hdr__links a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .hdr__logo img { height: 24px; }
  .hdr__cart > span:not(.hdr__count) { display: none; }
  .hdr__menu span { display: none; }
}

/* ---------- The vitrine: a lit paper niche ---------- */
.vitrine { position: relative; margin: 0; overflow: hidden; background: var(--paper); isolation: isolate; aspect-ratio: 1; }
.vitrine > img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transform: scale(1.12); transform-origin: 50% 62%;
  transition: transform 900ms var(--ease-out); }
/* the light: a pool from above and a soft falloff into the corners, like a jewellery case */
.vitrine::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: multiply;
  background: radial-gradient(120% 85% at 50% 12%, #fff 0 38%, #d9d1c2 100%); }
/* the spotlight that follows the pointer (fine pointers only, set by site.js) */
.vitrine::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; mix-blend-mode: soft-light;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 40%), rgb(255 255 255 / .85), transparent 70%);
  transition: opacity 400ms var(--ease-out); }
.vitrine.is-lit::after { opacity: 1; }
.vitrine--tall { aspect-ratio: 4 / 5; }
.vitrine--tall > img { transform: scale(1.3); transform-origin: 50% 60%; }
.vitrine--wide { aspect-ratio: 16 / 7; }
.vitrine--wide > img { object-fit: contain; transform: none; padding: 4% 6% 0; }
.vitrine--photo > img { transform: none; }
.vitrine__label { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 3; display: flex; justify-content: space-between; gap: 12px;
  color: var(--paper-ink); font-size: 11px; }
@media (hover: hover) and (pointer: fine) {
  a:hover .vitrine > img { transform: scale(1.15); }
  a:hover .vitrine--tall > img { transform: scale(1.33); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 6vw;
  padding: calc(var(--hdr) + 6vh) var(--gut) 9vh; max-width: var(--max); margin: 0 auto; }
.hero__glow { position: absolute; inset: 0 calc(var(--gut) * -1); z-index: -1; pointer-events: none;
  background: radial-gradient(40vw 50vh at 78% 42%, rgb(169 191 174 / .16), transparent 70%),
              radial-gradient(60vw 60vh at 10% 110%, rgb(169 191 174 / .07), transparent 70%); }
.hero__text { padding-bottom: 2vh; }
.hero__lead { max-width: 36ch; margin-top: 36px; color: var(--ink-2); font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 40px; }
.hero__piece { display: block; text-decoration: none; align-self: center; }
.hero__piece .vitrine { box-shadow: 0 40px 120px -30px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .04); }
.hero__scroll { position: absolute; left: var(--gut); bottom: 28px; color: var(--muted); font-size: 10px; display: flex; align-items: center; gap: 14px; }
.hero__scroll::after { content: ""; width: 48px; height: 1px; background: currentColor; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; align-items: start; gap: 40px; padding-top: calc(var(--hdr) + 40px); padding-bottom: 72px; }
  .hero__piece { width: 100%; }
  .hero__piece .vitrine--tall { aspect-ratio: 1; }
  .hero__scroll { display: none; }
}

/* ---------- Manifesto: words light up as it scrolls through ---------- */
.manifesto { min-height: 120svh; display: grid; place-items: center; padding: var(--sec) var(--gut); }
.manifesto__line { max-width: 20ch; text-align: center; font: 400 clamp(36px, 4.8vw, 80px)/1.12 var(--serif); letter-spacing: -0.018em; }
.js .manifesto__line .w { opacity: .18; transition: opacity 500ms var(--ease-out); }
.js .manifesto__line .w.is-on { opacity: 1; }

/* ---------- The routine ---------- */
.routine { padding: var(--sec) 0; border-top: 1px solid var(--line); }
.routine__stage { padding: 0 var(--gut); max-width: var(--max); margin: 0 auto; }
.routine__info { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 48px; align-items: end; padding: 56px var(--gut) 0; max-width: var(--max); margin: 0 auto; }
.routine__sub { margin-top: 16px; color: var(--muted); }
.routine__list li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.routine__list li:first-child { border-top: 1px solid var(--line); }
.routine__list a { text-decoration: none; }
.routine__list span { color: var(--muted); font-variant-numeric: tabular-nums; }
.routine__buy { display: grid; gap: 16px; justify-items: start; }
.routine__price { font: 400 48px/1 var(--serif); letter-spacing: -0.02em; }
.routine__buy .btn { width: 100%; }
@media (max-width: 960px) { .routine__info { grid-template-columns: 1fr; gap: 32px; } .vitrine--wide { aspect-ratio: 4 / 3; } .vitrine--wide > img { padding: 18% 4% 0; } }

/* ---------- Ritual: sticky frame beside the steps ---------- */
.ritual { padding: var(--sec) var(--gut); max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); }
.ritual__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 72px; }
.ritual__head p { color: var(--muted); }
.ritual__body { display: grid; grid-template-columns: 5fr 6fr; gap: 8vw; }
.ritual__step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 40px 0; border-top: 1px solid var(--line);
  opacity: .32; transition: opacity 600ms var(--ease-out); }
.ritual__step.is-on { opacity: 1; }
.ritual__n { color: var(--sage); }
.ritual__step h3 { font: 400 clamp(30px, 2.6vw, 42px)/1.1 var(--serif); letter-spacing: -0.015em; }
.ritual__verb { font-style: italic; color: var(--sage); }
.ritual__step p { max-width: 42ch; color: var(--ink-2); }
.ritual__links { display: flex; flex-wrap: wrap; gap: 0 14px; align-items: center; color: var(--muted); }
.ritual__inline { display: none; }
.ritual__frames { position: sticky; top: calc(var(--hdr) + 6vh); height: calc(100svh - var(--hdr) - 12vh); align-self: start; overflow: hidden; background: var(--surface); }
.ritual__frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06);
  filter: saturate(.85) brightness(.92); transition: opacity 900ms var(--ease-out), transform 1400ms var(--ease-out); }
.ritual__frames img.is-on { opacity: 1; transform: scale(1); }
@media (max-width: 860px) {
  .ritual__head { flex-direction: column; align-items: start; margin-bottom: 32px; }
  .ritual__body { grid-template-columns: 1fr; }
  .ritual__frames { display: none; }
  .ritual__step { min-height: 0; opacity: 1; padding: 36px 0; }
  .ritual__inline { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-top: 8px; filter: saturate(.85) brightness(.92); }
}

/* ---------- Collection ---------- */
.collection { padding: var(--sec) var(--gut); max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); }
.collection__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 64px; }
.collection__head p { color: var(--muted); max-width: 32ch; }
.collection__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 64px 24px; }
.collection__grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; }
.card--lead { grid-column: span 2; }
.card--lead .vitrine { aspect-ratio: 2.08 / 1; }
.card--lead .vitrine > img { object-fit: contain; transform: none; padding: 6% 0 0; }
.card--lead .card__link { flex: 1; }
.card--lead .card__name { font-size: clamp(30px, 2.4vw, 40px); }
.card__link { display: flex; flex-direction: column; text-decoration: none; }
.card__line { margin-top: 22px; color: var(--muted); font-size: 11px; }
.card__name { margin-top: 8px; font: 400 clamp(22px, 1.7vw, 27px)/1.15 var(--serif); letter-spacing: -0.01em; }
.card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.card__price { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.card__add { min-height: 44px; padding: 0 2px; border: 0; background: none; cursor: pointer; font-size: 11px; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 calc(50% + 10px) / 0 1px no-repeat; transition: background-size 300ms var(--ease-out); }
.card__add:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .card__add:hover { background-size: 100% 1px; } }
@media (max-width: 1100px) { .collection__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .collection__head { flex-direction: column; align-items: start; margin-bottom: 40px; } .collection__grid, .collection__grid--three { gap: 48px 16px; } .collection__grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .card__name { font-size: 20px; } .card__line { display: none; } }

/* ---------- Formula ---------- */
.formula { display: grid; grid-template-columns: 6fr 5fr; gap: 8vw; align-items: center; padding: var(--sec) var(--gut); max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); }
.formula__figure { position: relative; }
.formula__num { position: absolute; z-index: 1; left: -1vw; top: -0.32em; font: 400 clamp(140px, 19vw, 300px)/1 var(--serif); letter-spacing: -0.05em; color: var(--ink); mix-blend-mode: difference; pointer-events: none; }
.formula__num span { font-size: .4em; vertical-align: .9em; margin-left: .04em; }
.formula__figure .vitrine { width: 82%; margin-left: auto; aspect-ratio: 4 / 5; }
.formula__figure .vitrine img { object-position: 60% 50%; }
.formula__text p { margin-top: 28px; max-width: 44ch; color: var(--ink-2); }
.formula__marks { margin-top: 40px; }
.formula__marks li { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.formula__marks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
@media (max-width: 860px) { .formula { grid-template-columns: 1fr; gap: 56px; } .formula__figure .vitrine { width: 86%; } }

/* ---------- Closing ---------- */
.closing { position: relative; min-height: 92svh; display: grid; align-items: end; overflow: hidden; border-top: 1px solid var(--line); }
.closing__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; filter: saturate(.8) brightness(.62); }
.closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(14 20 17 / .92) 0, rgb(14 20 17 / .55) 45%, transparent 75%); }
.closing__text { position: relative; z-index: 1; display: grid; gap: 28px; justify-items: start; padding: 0 var(--gut) 12vh; max-width: var(--max); width: 100%; margin: 0 auto; }
.closing__text p { max-width: 34ch; color: var(--ink-2); }
@media (max-width: 860px) { .closing::after { background: linear-gradient(0deg, rgb(14 20 17 / .95) 0, rgb(14 20 17 / .6) 55%, rgb(14 20 17 / .25)); } }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 7fr 5fr; gap: 6vw; padding: calc(var(--hdr) + 48px) var(--gut) var(--sec); max-width: var(--max); margin: 0 auto; }
.pdp__media { display: grid; gap: 16px; align-content: start; }
.pdp__media > .vitrine--tall > img { transform: scale(1.04); transform-origin: 50% 70%; }
.pdp__photo { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.pdp__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88); }
.pdp__info { position: sticky; top: calc(var(--hdr) + 32px); align-self: start; display: grid; gap: 0; }
.crumbs { color: var(--muted); font-size: 10px; margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.pdp__tag { margin-top: 20px; color: var(--sage); font-size: 11px; line-height: 1.8; }
.pdp__price { margin-top: 28px; font: 400 34px/1 var(--serif); }
.pdp__buy { display: grid; gap: 14px; margin-top: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.pdp__ship { color: var(--muted); font-size: 14px; }
.pdp__out { color: var(--muted); }
.pdp__block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.pdp__block h2 { color: var(--muted); font-size: 11px; margin-bottom: 16px; }
.pdp__actives { display: flex; flex-wrap: wrap; gap: 10px; }
.pdp__actives li { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; }
.pdp__incl li { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15px; }
.pdp__incl a { text-decoration: none; }
.pdp__incl span { color: var(--muted); }
.pdp__desc { color: var(--ink-2); font-size: 16px; }
.pdp__desc > * + * { margin-top: 14px; }
.pdp__desc strong { color: var(--ink); font-weight: 500; }
.pdp__desc ul { display: grid; gap: 6px; }
.pdp__desc li { position: relative; padding-left: 18px; }
.pdp__desc li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 1px; background: var(--sage); }
.related { padding: var(--sec) var(--gut); max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); }
.related .h2 { margin-bottom: 56px; }
@media (max-width: 960px) { .pdp { grid-template-columns: 1fr; gap: 40px; } .pdp__info { position: static; } }

/* ---------- Text pages ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: calc(var(--hdr) + 72px) var(--gut) var(--sec); color: var(--ink-2); }
.prose .h1 { color: var(--ink); margin-bottom: 40px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 44px; color: var(--ink); font: 400 26px/1.2 var(--serif); }
.prose ul { display: grid; gap: 6px; }
.prose li { position: relative; padding-left: 18px; }
.prose li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 1px; background: var(--sage); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose--center { text-align: center; display: grid; justify-items: center; align-content: center; min-height: 80svh; }
.prose--center .display { color: var(--ink); margin-bottom: 16px; }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid var(--line); background: var(--bg-2); }
.ftr__in { display: grid; grid-template-columns: 4fr 3fr 3fr 2fr; gap: 48px; padding: 96px var(--gut) 72px; max-width: var(--max); margin: 0 auto; }
.ftr__brand img { height: 34px; width: auto; }
.ftr__brand p { margin-top: 24px; max-width: 34ch; color: var(--muted); font: 400 19px/1.4 var(--serif); }
.ftr__col h2 { color: var(--muted); font-size: 11px; margin-bottom: 20px; }
.ftr__col li + li { margin-top: 4px; }
.ftr__col a { display: inline-block; padding: 6px 0; text-decoration: none; font-size: 15px; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .ftr__col a:hover { color: var(--ink); text-decoration: underline; } }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 24px var(--gut); max-width: var(--max); margin: 0 auto;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .ftr__in { grid-template-columns: 1fr 1fr; padding-top: 72px; } .ftr__brand { grid-column: 1 / -1; } }

/* ---------- Cart drawer ---------- */
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__scrim { position: absolute; inset: 0; background: rgb(5 8 6 / .6); opacity: 0; transition: opacity 400ms var(--ease-out); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); display: flex; flex-direction: column;
  background: var(--bg-2); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform 460ms var(--ease-drawer); outline: none; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer.is-closing .drawer__panel { transition-duration: 300ms; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 16px 28px; border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 28px; overscroll-behavior: contain; }
.drawer__empty { padding: 48px 0; color: var(--muted); }
.drawer__empty p + p { margin-top: 20px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line__img { width: 76px; aspect-ratio: 1; background: var(--paper); overflow: hidden; }
.line__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transform: scale(1.15); }
.line__name { font: 400 19px/1.2 var(--serif); text-decoration: none; }
.line__qty { display: inline-flex; align-items: center; margin-top: 12px; border: 1px solid var(--line-2); }
.line__qty button { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; }
.line__qty output { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.line__right { display: grid; justify-items: end; gap: 8px; font-variant-numeric: tabular-nums; }
.line__remove { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: .25em; padding: 8px 0; }
.drawer__foot { padding: 20px 28px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 16px; }
.drawer__ship { font-size: 14px; color: var(--ink-2); }
.drawer__ship .bar { display: block; height: 2px; margin-top: 10px; background: var(--line); overflow: hidden; }
.drawer__ship .bar i { display: block; height: 100%; background: var(--sage); transform-origin: left; transition: transform 500ms var(--ease-out); }
.drawer__sum div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 15px; color: var(--ink-2); }
.drawer__sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.drawer__total { margin-top: 6px; padding-top: 12px !important; border-top: 1px solid var(--line); color: var(--ink) !important; font: 400 22px/1.2 var(--serif) !important; }
.drawer__status { min-height: 1.4em; font-size: 14px; color: #e6b8a6; }
.drawer__note { font-size: 12px; color: var(--muted); }
body.is-locked { overflow: hidden; }

/* ---------- Entrance choreography (hero only; everything is visible without JS) ---------- */
.js [data-split] .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.js [data-split] .ln > span { display: block; transform: translateY(105%); transition: transform 1100ms var(--ease-out); }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js .hero__piece .vitrine { opacity: 0; transform: scale(.96); filter: blur(6px); transition: opacity 1200ms var(--ease-out), transform 1400ms var(--ease-out), filter 1200ms var(--ease-out); }
.is-in [data-split] .ln > span, .is-in .reveal, .is-in .hero__piece .vitrine { transform: none; opacity: 1; filter: none; }
.is-in [data-split] .ln:nth-child(2) > span { transition-delay: 90ms; }
.is-in .hero__lead { transition-delay: 380ms; }
.is-in .hero__actions { transition-delay: 480ms; }
.is-in .hero__piece .vitrine { transition-delay: 160ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .js [data-split] .ln > span, .js .reveal, .js .hero__piece .vitrine { transform: none; opacity: 1; filter: none; }
  .js .manifesto__line .w { opacity: 1; }
  .ritual__step { opacity: 1; }
}

/* ---------- Asesora Käare (chat widget) ---------- */
.chat { position: fixed; right: 24px; bottom: 24px; z-index: 50; font-size: 15px; }
.chat__bubble { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 22px 0 18px; border: 1px solid var(--line-2);
  border-radius: 26px; background: rgb(20 28 23 / .9); color: var(--ink); cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / .7); transition: transform 160ms var(--ease-out), opacity 200ms var(--ease-out), background-color 200ms; }
.chat__bubble svg { font-size: 20px; color: var(--sage); }
.chat__bubble-label { font: 400 17px/1 var(--serif); letter-spacing: 0; }
.chat__bubble:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .chat__bubble:hover { background: var(--surface); } }
.chat.is-open .chat__bubble { opacity: 0; pointer-events: none; transform: scale(.96); }
.chat__panel { position: absolute; right: 0; bottom: 0; width: min(400px, calc(100vw - 48px)); height: min(640px, calc(100svh - 120px));
  display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -30px rgb(0 0 0 / .8);
  transform-origin: bottom right; opacity: 0; transform: scale(.96) translateY(8px);
  transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out); }
.chat__panel.is-in { opacity: 1; transform: none; }
.chat__panel[hidden] { display: none; }
.chat__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 22px; border-bottom: 1px solid var(--line); }
.chat__head h2 { font: 400 22px/1.2 var(--serif); }
.chat__x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.chat__log { flex: 1; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.msg { max-width: 92%; line-height: 1.55; }
.msg > * + * { margin-top: 10px; }
.msg--bot { color: var(--ink-2); }
.msg--bot strong { color: var(--ink); font-weight: 500; }
.msg--bot a { color: var(--sage); }
.msg--bot ul, .msg--bot ol { display: grid; gap: 4px; padding-left: 18px; list-style: disc; }
.msg--bot ol { list-style: decimal; }
.msg--user { align-self: flex-end; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.msg--err { color: #e6b8a6; }
.msg__typing { display: inline-flex; gap: 5px; padding: 6px 0; }
.msg__typing span:not(.sr) { width: 5px; height: 5px; border-radius: 50%; background: var(--sage); animation: dot 1.1s var(--ease-in-out) infinite; }
.msg__typing span:nth-child(2) { animation-delay: .15s; } .msg__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.msg__img { display: block; padding: 0; border: 0; background: var(--paper); cursor: zoom-in; max-width: 240px; }
.msg__img img { width: 100%; }
.chat__chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.chip { padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--ink); cursor: pointer; text-align: left;
  font-size: 14px; transition: background-color 200ms var(--ease-out), border-color 200ms; }
.chip:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: var(--surface); border-color: var(--sage); } }
.msg__cards { display: grid; gap: 10px; }
.pcard { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 10px; border: 1px solid var(--line); background: var(--bg); }
.pcard__img { display: block; aspect-ratio: 1; background: var(--paper); overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transform: scale(1.15); }
.pcard__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pcard__name { font: 400 17px/1.2 var(--serif); color: var(--ink); text-decoration: none; }
.pcard__price { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pcard__actions { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.pcard__add { min-height: 36px; padding: 0 12px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer;
  font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; transition: transform 160ms var(--ease-out); }
.pcard__add:active { transform: scale(.97); }
.pcard__see { font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-underline-offset: .3em; }
.pcard__out { font-size: 12px; color: var(--muted); }
.chat__form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 12px 22px; border-top: 1px solid var(--line); }
.chat__form textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; padding: 11px 0; border: 0; background: none; color: var(--ink);
  font: 400 16px/1.4 var(--sans); outline: none; }
.chat__form textarea::placeholder { color: var(--muted); }
.chat__form:focus-within { box-shadow: inset 0 1px 0 var(--sage); }
.chat__send { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: var(--bg);
  cursor: pointer; font-size: 18px; transition: opacity 200ms, transform 160ms var(--ease-out); }
.chat__send:disabled { opacity: .3; cursor: default; }
.chat__send:not(:disabled):active { transform: scale(.94); }
.chat__note { padding: 0 22px 12px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.chat__lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 32px; background: rgb(5 8 6 / .88); }
.chat__lightbox img { max-width: min(900px, 100%); max-height: 86vh; background: var(--paper); }
.chat__lightbox button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; font-size: 22px; }
body.is-locked .chat { visibility: hidden; }
@media (max-width: 640px) {
  .chat { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .chat__bubble-label { display: none; }
  .chat__bubble { width: 52px; padding: 0; justify-content: center; }
  .chat.is-open { inset: 0; right: 0; bottom: 0; }
  .chat__panel { position: fixed; left: 0; right: 0; top: auto; bottom: var(--vv-b, 0); width: 100%; height: var(--vv-h, 100svh); border: 0; }
}
@media (prefers-reduced-motion: reduce) { .msg__typing span { animation: none !important; opacity: .7; } }
.msg--bot .msg__h { margin-top: 14px; color: var(--ink); font: 400 19px/1.25 var(--serif); }
.msg--bot .msg__h:first-child { margin-top: 0; }
