/* ==========================================================================
   Looking for better — styles
   Palette and fonts come from copy/brand-kit.md
   ========================================================================== */

:root {
  --bg: #F3ECE2;
  --surface: #EAE0D2;
  --surface-2: #FBF7F1;
  --surface-dark: #1E1915;
  --text: #2B231D;
  --text-light: #F1E9DE;
  --muted: #7A6B5D;
  --muted-light: rgba(241, 233, 222, .68);
  --accent: #B0794A;
  --accent-rgb: 176, 121, 74;
  --accent-soft: #D2A47A;
  --accent-2: #8E9A86;
  --line: #D9CCBA;
  --line-dark: rgba(241, 233, 222, .14);
  --line-strong: #C7B39A;                    /* section dividers that must stay visible */
  --line-dark-strong: rgba(241, 233, 222, .3);
  --error: #9B4A31;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "EB Garamond", Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 5vw, 72px);
  --section: clamp(88px, 12vw, 168px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --tshadow: 0 1px 2px rgba(20, 16, 13, .6), 0 6px 28px rgba(20, 16, 13, .45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* soft film grain for warmth */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 95;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: rgba(var(--accent-rgb), .3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
section[id], footer[id] { scroll-margin-top: 72px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--surface-dark); color: var(--text-light);
  padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip:focus { top: 16px; }

/* ---------- Shared type ---------- */
.mono {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: none;
}
.mono--lg { font-size: 56px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow--light { color: var(--accent-soft); }

/* Section names (Mlinček, Ritual, Podarite, Naročilo, Kontakt): larger, serif capitals, led by a hairline */
.eyebrow.sect {
  gap: 0;
  font-family: var(--font-head); font-style: normal; font-weight: 500;
  font-size: clamp(1.25rem, 1.6vw, 1.6rem); line-height: 1.1;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}
.eyebrow.sect.eyebrow--light { color: var(--text-light); }
.eyebrow.sect::before {
  content: ""; flex: none;
  width: 34px; height: 1px; margin-right: 16px;
  background: var(--accent);
}
.eyebrow.sect.eyebrow--light::before { background: var(--accent-soft); }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(142, 154, 134, .6);
  animation: pulse 3.2s ease-out infinite;
}

.title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2.35rem, 4.8vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -.012em;
}
.title em { color: var(--accent); }
.lead {
  margin-top: 24px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.chip {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(30, 25, 21, .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--text-light);
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  white-space: nowrap;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .45s var(--ease), box-shadow .4s var(--ease);
  isolation: isolate;
}
.btn::before { /* light sweep on hover */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--accent);
  color: var(--surface-dark);
  box-shadow: 0 10px 30px -12px rgba(var(--accent-rgb), .7);
}
.btn--primary:hover { background: #BF8857; box-shadow: 0 16px 40px -14px rgba(var(--accent-rgb), .85); }

.btn--ghost {
  color: var(--text-light);
  border: 1px solid rgba(241, 233, 222, .35);
}
.btn--ghost:hover { background: rgba(241, 233, 222, .08); border-color: rgba(241, 233, 222, .6); }

.btn--dark { background: var(--surface-dark); color: var(--text-light); }
.btn--dark:hover { background: #2D251F; }

.btn--ghost-dark { color: var(--text); border: 1px solid var(--line); }
.btn--ghost-dark:hover { border-color: var(--accent); }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--surface-dark);
  color: var(--text-light);
  transition: transform 1.1s var(--ease-io), visibility 0s 1.1s;
}
.loader__mark {
  font-family: var(--font-head); font-style: italic; font-weight: 500;
  font-size: clamp(56px, 9vw, 96px); line-height: 1;
  animation: loaderIn 1s var(--ease) both;
}
.loader__line {
  width: 72px; height: 1px; background: var(--accent-soft);
  transform-origin: left; animation: loaderLine 1s .2s var(--ease) both;
}
.loaded .loader { transform: translateY(-100%); visibility: hidden; }

/* ---------- Cursor ring ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor {
    display: block;
    position: fixed; left: 0; top: 0; z-index: 110;
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1px solid rgba(var(--accent-rgb), .7);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s;
  }
  .cursor.on { opacity: 1; }
  .cursor.hover {
    width: 64px; height: 64px; margin: -32px 0 0 -32px;
    background: rgba(var(--accent-rgb), .12);
  }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 76px;
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--gutter);
  color: var(--text-light);
  transition: background-color .5s var(--ease), color .5s var(--ease), transform .6s var(--ease), box-shadow .5s, height .5s var(--ease);
}
.nav.scrolled {
  height: 66px;
  background: rgba(243, 236, 226, .84);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line);
}
.nav.away { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-height: 44px; }
.nav__name { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { position: relative; font-size: 14px; font-weight: 500; padding: 10px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
/* Language switch: EN | SL pill with a sliding thumb */
.lang {
  position: relative; flex: none;
  display: inline-flex; padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(241, 233, 222, .3);
  transition: border-color .5s var(--ease);
}
.nav.scrolled .lang { border-color: var(--line); }
.menu-open .lang { border-color: rgba(241, 233, 222, .3); }
.lang button {
  position: relative; z-index: 1;
  width: 44px; height: 36px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  opacity: .72;
  transition: color .45s var(--ease), opacity .45s var(--ease);
}
.lang button:hover { opacity: 1; }
.lang button[aria-pressed="true"] { color: var(--surface-dark); opacity: 1; }
.lang__thumb {
  position: absolute; top: 3px; left: 3px; width: 44px; height: 36px;
  border-radius: 999px;
  background: var(--accent-soft);
  box-shadow: 0 6px 16px -8px rgba(var(--accent-rgb), .9);
  transition: transform .55s var(--ease);
}
.lang[data-active="sl"] .lang__thumb { transform: translateX(44px); }

/* a soft fade when the language changes */
.lang-anim main, .lang-anim .footer, .lang-anim .nav__links, .lang-anim .nav__cta, .lang-anim .menu__links { animation: langFade .7s var(--ease); }
@keyframes langFade { from { opacity: .25; } to { opacity: 1; } }

.nav__toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.menu-open .nav { background: transparent; box-shadow: none; color: var(--text-light); -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
.menu-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px;
  background: var(--surface-dark);
  color: var(--text-light);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s .5s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 10px 0;
  font-family: var(--font-head); font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.15;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .7s var(--ease);
}
.menu__links small { font-family: var(--font); font-size: 12px; letter-spacing: .14em; color: var(--accent-soft); }
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu-open .menu__links a:nth-child(2) { transition-delay: .06s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: .12s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: .18s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: .24s; }
.menu__foot { margin-top: 40px; color: var(--muted-light); font-size: 14px; }
.menu__foot a { color: var(--accent-soft); overflow-wrap: anywhere; }
.menu-open { overflow: hidden; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: 120px var(--gutter) 110px;
  background: var(--surface-dark);
  color: var(--text-light);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 68%;
  z-index: -2;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%);
          mask-image: linear-gradient(to right, transparent 0%, #000 24%);
}
.hero__media::after { /* warm the cool blacks + keep nav legible */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(30, 25, 21, .55) 0%, rgba(30, 25, 21, 0) 22%),
    linear-gradient(to top, rgba(30, 25, 21, .7) 0%, rgba(30, 25, 21, 0) 26%),
    rgba(70, 42, 22, .14);
  pointer-events: none;
}
.hero__layer { position: absolute; inset: -2%; will-change: transform; }
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 55%;
  animation: drift 20s ease-in-out infinite alternate;
}
.hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 60% at 18% 46%, rgba(var(--accent-rgb), .16), transparent 70%);
  animation: breathe 9s ease-in-out -3s infinite;
}
.hero__copy { position: relative; max-width: 700px; text-shadow: var(--tshadow); }
.hero__copy .hero__lead { max-width: 31rem; }
.hero__copy .btn { text-shadow: none; }
.hero__eyebrow { color: var(--accent-soft); }
.hero__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2.9rem, 5.9vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -.018em;
}
.hero__title em { color: var(--accent-soft); }
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: inline-block; }
.hero__lead { margin: 28px 0 36px; max-width: 31rem; font-size: 1.08rem; color: rgba(241, 233, 222, .8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note {
  display: flex; align-items: center; gap: 10px;
  margin-top: 22px; font-size: 13px; color: var(--muted-light); letter-spacing: .04em;
}
.hero__note::before { content: ""; width: 18px; height: 1px; background: var(--accent-soft); }
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 30px;
  display: flex; align-items: center; gap: 14px;
  min-height: 44px;
  font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted-light);
}
.hero__scroll i { position: relative; width: 56px; height: 1px; background: var(--line-dark); overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; inset: 0; background: var(--accent-soft);
  transform: translateX(-100%); animation: scrollCue 2.6s var(--ease-io) infinite;
}

/* ---------- Black Friday ---------- */
/* struck-through old prices anywhere on the page */
del { text-decoration-thickness: 1.5px; text-decoration-color: currentColor; opacity: .6; font-weight: 400; }
.nav__cta del { margin: 0 2px; font-size: .86em; }

/* "Količine omejene": a quiet pill next to the lfb mark, top left */
.stock {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 14px; margin-right: auto;
  min-height: 30px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1px solid rgba(210, 164, 122, .55);
  background: rgba(210, 164, 122, .1);
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.stock:hover { background: rgba(210, 164, 122, .2); border-color: var(--accent-soft); }
.stock { position: relative; }
.stock::before { content: ""; position: absolute; inset: -7px -4px; } /* 44px tap area, same look */
.stock i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); flex: none; }
.stock i::after { /* a soft ping */
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--accent-soft); animation: halo 2.2s ease-out infinite;
}
.nav.scrolled .stock { border-color: rgba(176, 121, 74, .45); background: rgba(176, 121, 74, .08); color: var(--accent); }
.nav.scrolled .stock i, .nav.scrolled .stock i::after { background: var(--accent); border-color: var(--accent); }
.nav.scrolled .stock i::after { background: none; }
.nav__brand { margin-right: 0; }

/* hero price line: [BLACK FRIDAY]  Prej 24,99 €  17,99 €  [−28 %] */
.deal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: -14px 0 28px;
}
.deal__badge {
  display: inline-flex; align-items: center;
  min-height: 28px; padding: 0 12px; border-radius: 6px;
  background: #0C0A08; color: var(--text-light);
  border: 1px solid rgba(210, 164, 122, .55);
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .8);
}
.deal__was { font-size: 17px; color: var(--muted-light); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.deal__now { font-family: var(--font-head); font-weight: 600; font-size: clamp(42px, 3.8vw, 58px); line-height: 1; color: var(--accent-soft); letter-spacing: -.01em; }
.deal__off {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--surface-dark);
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
}
/* "DDV vključen": quiet small print beside the price */
.deal__vat { font-size: 13px; color: var(--muted-light); letter-spacing: .04em; }
.summary__price:has(+ .summary__vat) { margin-bottom: 6px; }
.summary__vat { margin: 0 0 20px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }

/* order card: badge and the old price above the big price */
.summary__deal { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.summary__deal del { font-size: 18px; color: var(--muted); opacity: 1; }
.deal__badge--sm { min-height: 24px; padding: 0 10px; font-size: 10px; letter-spacing: .16em; }
.summary__deal + .summary__price { margin-top: 6px; }

/* banner: the deal in white so it stands apart from the caramel "free shipping" */
.marquee .hl--deal { color: var(--text-light); }

/* ---------- Free shipping ticket (under the order button) ---------- */
.ship {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: stretch;
  margin-top: 18px;
  border-radius: 12px;
  border: 1px solid rgba(210, 164, 122, .45);
  background: linear-gradient(120deg, rgba(210, 164, 122, .16), rgba(30, 25, 21, .55) 60%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--text-light);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.ship::after { /* a slow light sweep, like foil on a parcel label */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 220, .16) 50%, transparent 65%);
  transform: translateX(-110%); animation: sheen 7s ease-in-out 2s infinite;
}
.ship:hover { transform: translateY(-2px); border-color: rgba(210, 164, 122, .8); box-shadow: 0 22px 44px -20px rgba(var(--accent-rgb), .6); }
.ship__icon {
  display: grid; place-items: center;
  padding: 0 10px 0 12px;
  color: var(--accent-soft);
}
.ship__icon svg { width: 34px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ship__truck { animation: shipBob 1.6s ease-in-out infinite; }
.ship__speed path { stroke-dasharray: 9 30; animation: shipSpeed 1.2s linear infinite; }
.ship__speed path:nth-child(2) { animation-delay: -.4s; }
.ship__speed path:nth-child(3) { animation-delay: -.8s; }
.ship__text {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 8px 16px 8px 0;
  line-height: 1.15;
}
.ship__text strong { font-size: 13.5px; font-weight: 600; }
.ship__text small { font-size: 11px; color: var(--muted-light); letter-spacing: .02em; }
@keyframes shipBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2px); } }
@keyframes shipSpeed { from { stroke-dashoffset: 39; } to { stroke-dashoffset: 0; } }

/* ---------- Free shipping banner ---------- */
.marquee {
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px) 0;
  background: var(--surface-dark);
  color: var(--text-light);
  border-top: 1px solid rgba(210, 164, 122, .25);
  border-bottom: 1px solid rgba(210, 164, 122, .25);
}
.marquee__track {
  display: flex; align-items: center; gap: clamp(28px, 3.4vw, 52px);
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-head); font-weight: 500; font-style: italic;
  font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.1; white-space: nowrap;
  color: rgba(241, 233, 222, .55);
}
.marquee span.hl { color: var(--accent-soft); }
.marquee i {
  font-family: var(--font-head); font-style: italic; font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: rgba(241, 233, 222, .35);
}

/* ---------- Ribbon on the order card ---------- */
.ribbon {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  padding: 16px clamp(24px, 3vw, 36px);
  background: linear-gradient(100deg, #A9703F 0%, #C99366 55%, #B0794A 100%);
  color: var(--surface-dark);
  font-size: 15px; font-weight: 600; letter-spacing: .04em;
}
.ribbon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ribbon::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-110%);
  animation: sheen 6s ease-in-out infinite;
}
.qty__ship {
  display: inline-block; margin-left: 10px; padding: 3px 10px;
  border-radius: 999px; background: rgba(142, 154, 134, .2); color: #5F6B58;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; vertical-align: middle;
}

/* hero entrance (JS only) */
.js .deal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.loaded .deal { opacity: 1; transform: none; transition-delay: .76s; }
.js .ship { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.loaded .ship { opacity: 1; transform: none; transition-delay: .98s; }
.loaded .ship:hover { transform: translateY(-2px); transition-delay: 0s; }
.js .hero__media { opacity: 0; transition: opacity 1.8s ease .5s; }
.js .line > span { transform: translateY(108%); transition: transform 1.25s var(--ease); }
.js .line:nth-child(2) > span { transition-delay: .12s; }
.js .hero__eyebrow, .js .hero__lead, .js .hero__actions, .js .hero__note, .js .hero__scroll {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
.loaded .hero__media { opacity: 1; }
.loaded .line > span { transform: none; transition-delay: .35s; }
.loaded .line:nth-child(2) > span { transition-delay: .47s; }
.loaded .hero__eyebrow { opacity: 1; transform: none; transition-delay: .25s; }
.loaded .hero__lead { opacity: 1; transform: none; transition-delay: .7s; }
.loaded .hero__actions { opacity: 1; transform: none; transition-delay: .82s; }
.loaded .hero__note { opacity: 1; transform: none; transition-delay: .94s; }
.loaded .hero__scroll { opacity: 1; transform: none; transition-delay: 1.2s; }

/* ---------- 2. Facts ---------- */
.facts { padding: 34px var(--gutter); border-bottom: 2px solid var(--line-strong); background: var(--bg); }
.facts__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__list li {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 24px;
  border-left: 2px solid var(--line-strong);
}
.facts__list li:first-child { border-left: 0; padding-left: 0; }
.facts__list svg {
  flex: none; width: 34px; height: 34px;
  fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  animation: bob 6s ease-in-out infinite;
}
.facts__list li:nth-child(2) svg { animation-delay: -1.5s; }
.facts__list li:nth-child(3) svg { animation-delay: -3s; }
.facts__list li:nth-child(4) svg { animation-delay: -4.5s; }
.facts__list strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.facts__list span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.facts__list strong span { font-size: inherit; color: inherit; }

/* ---------- 3. Grinder ---------- */
.grinder {
  display: grid; grid-template-columns: 5fr 6fr; align-items: center;
  gap: clamp(48px, 7vw, 120px);
  padding: var(--section) var(--gutter);
}
.grinder__media { position: relative; display: grid; place-items: center; }
/* the exploded grinder stays in view while you read the six features beside it */
@media (min-width: 921px) {
  .grinder { align-items: start; }
  .grinder__media { position: sticky; top: 72px; min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); }
}
.frame {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--surface-dark);
  box-shadow: 0 50px 90px -40px rgba(43, 35, 29, .55), 0 2px 6px rgba(43, 35, 29, .08);
  transform-style: preserve-3d;
  transition: transform .8s var(--ease);
}
.frame__inner { position: absolute; left: 0; right: 0; top: -8%; bottom: -8%; will-change: transform; }
.frame__inner img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.frame__sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .13) 50%, transparent 62%);
  transform: translateX(-110%);
  animation: sheen 8s ease-in-out -2s infinite;
}
.frame__wipe { display: none; }
.js .frame__wipe {
  display: block; position: absolute; inset: 0; background: var(--bg);
  transform-origin: top; transition: transform 1.5s var(--ease-io);
}
.js .frame.in .frame__wipe { transform: scaleY(0); }
.js .frame .frame__inner img { transform: scale(1.15); transition: transform 2.2s var(--ease); }
.js .frame.in .frame__inner img { transform: none; }
.gift__photo { width: 100%; aspect-ratio: 3 / 2; }
.gift__photo .frame__inner { top: -4%; bottom: -4%; }
.gift__photo .frame__inner img { object-position: 55% 50%; }
.gift__photo .frame__wipe { background: var(--surface); }

.features { margin-top: 44px; border-bottom: 1px solid var(--line); }
.feature {
  position: relative;
  display: grid; grid-template-columns: 64px 1fr;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.feature::after {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease);
}
.feature:hover::after { transform: scaleX(1); }
.feature__num { font-family: var(--font-head); font-style: italic; font-size: 22px; color: var(--accent); line-height: 1.3; }
.feature h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; transition: transform .6s var(--ease); }
.feature p { color: var(--muted); font-size: 15px; }
.feature:hover h3 { transform: translateX(6px); }

/* ---------- 4. Ritual ---------- */
.ritual { position: relative; background: var(--surface-dark); color: var(--text-light); }
.ritual__track { height: 240vh; }
.ritual__pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: grid; align-items: center;
  padding: 0 var(--gutter);
  overflow: hidden;
}
.ritual__inner {
  position: relative; max-width: 1240px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: clamp(40px, 6vw, 104px);
}
.ritual__copy { min-width: 0; }

/* Photo beside the quote: zooms out gently as the words light up (--rp is set by main.js) */
.ritual__photo {
  --rp: 0;
  height: min(74vh, 640px); height: min(74svh, 640px);
  aspect-ratio: 7 / 10;
  box-shadow: 0 60px 110px -50px rgba(0, 0, 0, .85), 0 0 0 1px rgba(241, 233, 222, .06);
}
.ritual__photo .frame__inner { top: 0; bottom: 0; }
.ritual__photo .frame__wipe { background: var(--surface-dark); }
.js .ritual__photo.in .frame__inner img,
.ritual__photo .frame__inner img {
  object-position: 50% 50%;
  transform: scale(calc(1.12 - var(--rp) * .12));
  transition: transform .4s linear;
}
.js .ritual__photo:not(.in) .frame__inner img { transform: scale(1.18); transition: transform 2.2s var(--ease); }
.ritual__glow {
  position: absolute; left: 50%; top: 50%;
  width: min(900px, 120vw); aspect-ratio: 1;
  margin: calc(min(900px, 120vw) / -2) 0 0 calc(min(900px, 120vw) / -2);
  background: radial-gradient(circle, rgba(var(--accent-rgb), .2), transparent 62%);
  animation: breathe 10s ease-in-out -4s infinite;
  pointer-events: none;
}
.ritual__statement {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.9vw, 3.7rem);
  line-height: 1.18;
  letter-spacing: -.008em;
  max-width: 21em;
}
.ritual__statement.is-short { font-size: clamp(2.3rem, 5.2vw, 4.8rem); line-height: 1.12; max-width: none; }
.ritual__inner .ritual__statement { font-size: clamp(1.6rem, 2.75vw, 2.8rem); max-width: 18em; }
.ritual__inner .ritual__statement.is-short { font-size: clamp(2.2rem, 4.4vw, 4.4rem); max-width: 11em; }
.ritual__statement .w { display: inline-block; opacity: .12; transition: opacity .5s ease, transform .7s var(--ease); }
.ritual__statement .w.em { font-style: italic; color: var(--accent-soft); }.ritual__sign {
  display: flex; align-items: center; gap: 16px;
  margin-top: clamp(28px, 4vw, 48px);
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted-light);
  opacity: 0; transform: translateY(12px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.ritual__sign::before { content: ""; width: 48px; height: 1px; background: var(--accent-soft); }
.ritual__sign .mono { font-size: 28px; letter-spacing: 0; color: var(--accent-soft); }
.ritual__sign.on { opacity: 1; transform: none; }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px);
  max-width: 1120px; margin: 0 auto;
  padding: 0 var(--gutter) calc(var(--section) * .5);
  box-sizing: content-box;
}
.step { border-top: 2px solid var(--line-dark-strong); padding-top: 28px; }
.step__num { font-family: var(--font-head); font-style: italic; font-size: 24px; color: var(--accent-soft); }
.step h3 { font-family: var(--font-head); font-weight: 600; font-size: 34px; line-height: 1.1; margin: 8px 0 10px; }
.step p { color: var(--muted-light); font-size: 15px; max-width: 22rem; }

/* The film: closes the ritual section */
.film {
  max-width: 1240px; margin: 0 auto;
  padding: 0 var(--gutter) var(--section);
  box-sizing: content-box;
}
.film__head {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 14px; margin-bottom: clamp(24px, 3.5vw, 44px);
  padding-top: clamp(40px, 6vw, 72px);
  border-top: 2px solid var(--line-dark-strong);
}
.film__title {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 3.8rem); line-height: 1.05; letter-spacing: -.01em;
}
.film__title em { color: var(--accent-soft); }
.film__frame {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #0f0c0a;
  box-shadow: 0 70px 120px -60px rgba(0, 0, 0, .9), 0 0 0 1px rgba(241, 233, 222, .06);
}
.film__video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0f0c0a; }
.film__play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  color: var(--text-light);
  background: radial-gradient(70% 70% at 50% 50%, rgba(20, 16, 13, .1), rgba(20, 16, 13, .55));
  cursor: pointer;
  transition: opacity .6s var(--ease), visibility 0s;
}
.film__disc {
  position: relative;
  display: grid; place-items: center;
  width: clamp(76px, 9vw, 112px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(241, 233, 222, .14);
  border: 1px solid rgba(241, 233, 222, .45);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .6s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease);
}
.film__disc::after { /* slow halo so the button breathes */
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), .7);
  animation: halo 3.2s ease-out -1s infinite;
}
.film__disc svg { width: 34%; margin-left: 7%; fill: currentColor; }
.film__label {
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  text-shadow: var(--tshadow);
}
.film__play:hover .film__disc,
.film__play:focus-visible .film__disc { transform: scale(1.08); background: var(--accent); border-color: var(--accent); }
.film__frame.playing .film__play { opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }

/* ---------- 5. For companies ---------- */
.biz {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(48px, 6vw, 100px);
  padding: var(--section) var(--gutter);
  background: var(--bg);
}
.biz__visual { display: grid; gap: 18px; max-width: 520px; width: 100%; justify-self: center; }
/* dark card with a close-up of the grinder body; the company name sits on the grounds cup */
.biz__shot {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: radial-gradient(90% 70% at 30% 40%, #3A2F26 0%, #1E1915 60%, #14100D 100%);
  box-shadow: 0 50px 90px -40px rgba(43, 35, 29, .6);
  container-type: size;
}
.biz__glow {
  position: absolute; left: 50%; top: 55%; width: 90cqw; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--accent-rgb), .28), transparent 60%);
  animation: breathe 9s ease-in-out -3s infinite;
}
/* studio floor: a soft lit surface and a contact shadow under the grinder */
.biz__floor {
  position: absolute; left: 0; right: 0; top: 84cqh; bottom: 0;
  background: linear-gradient(to bottom, rgba(241, 233, 222, .05), rgba(241, 233, 222, 0) 70%);
  border-top: 1px solid rgba(241, 233, 222, .07);
}
.biz__floor::after {
  content: ""; position: absolute; left: 4cqw; width: 32cqw; top: 3cqh; height: 4.5cqh;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .65), transparent);
}

/* The whole grinder (handle, top housing, grounds cup) at its real proportions.
   Card is 4:5, so 1cqh = 1.25cqw. Box: 80cqh tall, 76.5cqw wide, body on the left. */
.biz__grinder {
  --ps: 1;                                   /* print scale (the magnifier copy is larger) */
  position: absolute;
  width: 76.5cqw; height: 80cqh;
  left: 8cqw; top: 10cqh;
  animation: bizFloat 8s ease-in-out -2s infinite;
}
.biz__part { position: absolute; display: block; filter: drop-shadow(0 26px 26px rgba(0, 0, 0, .5)); }
.biz__part--handle { left: 9.268%; top: .425%;  width: 90.176%; height: 15.592%; }
.biz__part--top    { left: .556%;  top: 13.891%; width: 30.12%;  height: 40.326%; }
.biz__part--cup    { left: 1.297%; top: 54.217%; width: 29.472%; height: 45.358%; }
.biz__print {
  --len: 13;
  position: absolute; left: 3.2%; width: 25.8%; top: 59.5%; height: 14%;
  display: grid; place-items: center; text-align: center;
  pointer-events: none;
}
.biz__print span {
  max-width: 90%;
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  font-size: calc(clamp(1cqh, 18cqh / (var(--len) * .8), 2.2cqh) * var(--ps));
  letter-spacing: .14em; line-height: 1.25;
  color: rgba(24, 24, 26, .85);
  mix-blend-mode: multiply;                  /* reads like ink on brushed steel */
  text-shadow: 0 calc(1px * var(--ps)) 0 rgba(255, 255, 255, .22);
  overflow-wrap: anywhere;
}
@keyframes bizFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.8cqh); } }

/* magnifier: a 2.6x copy of the same grinder, centred on the printed name */
.biz__loupe {
  position: absolute; left: 53cqw; top: calc(63cqh - 19cqw);
  width: 38cqw; height: 38cqw; border-radius: 50%;
  overflow: hidden;
  background: #1A1512;
  box-shadow: 0 0 0 1.5px var(--accent-soft), 0 0 0 6px rgba(210, 164, 122, .12), 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.biz__loupe::after { /* glass highlight */
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(70% 55% at 30% 22%, rgba(255, 255, 255, .16), transparent 60%);
}
.biz__grinder--zoom {
  --ps: 2.6;
  width: calc(76.5cqw * 2.6); height: calc(80cqh * 2.6);
  left: calc(19cqw - 76.5cqw * 2.6 * .16); top: calc(19cqw - 80cqh * 2.6 * .665);
  animation: none;
}
.biz__grinder--zoom .biz__part { filter: none; }
.biz__leader {
  position: absolute; left: 32.5cqw; width: 20.5cqw; top: 63.2cqh; height: 0;
  border-top: 1.5px dashed rgba(210, 164, 122, .7);
}
.biz__leader::before { /* dot on the print */
  content: ""; position: absolute; left: -4px; top: -4.5px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(210, 164, 122, .2);
}
.biz__chip { position: absolute; left: 18px; bottom: 18px; }
.biz__field { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.biz__field input {
  width: 100%; min-height: 50px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: #FBF8F3; color: var(--text);
  font: 500 16px var(--font);
  transition: border-color .3s, box-shadow .3s;
}
.biz__field input::placeholder { color: #A89785; }
.biz__field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15); }
.biz__small { margin-top: 18px; max-width: 30rem; font-size: 13px; color: var(--muted); }

/* ---------- 6. Gift ---------- */
.gift {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(48px, 6vw, 100px);
  padding: var(--section) var(--gutter);
  background: var(--surface);
}
.ticks { margin: 32px 0 40px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-2);
}
.ticks li::after {
  content: ""; position: absolute; left: 7px; top: 7px;
  width: 6px; height: 10px;
  border: solid var(--surface-2); border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
.gift__visual { position: relative; display: grid; place-items: center; min-height: 540px; }
.orbit {
  position: absolute; left: 50%; top: 50%;
  width: min(480px, 90vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(122, 107, 93, .35); border-radius: 50%;
  animation: spin 80s linear infinite;
  z-index: 0;
}
.orbit::after {
  content: ""; position: absolute; inset: 14%;
  border: 1px solid rgba(122, 107, 93, .18); border-radius: 50%;
}
.tilt::after { /* light that follows the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 240, 220, .14), transparent 45%);
  opacity: 0; transition: opacity .5s;
}
.tilt:hover::after { opacity: 1; }

/* ---------- Exploded grinder (gift section) ----------
   --bh is the height of the assembled grinder. Parts sit at their real
   positions inside .xg__body (percentages measured from the photo) and
   move apart along the grinder's axis when .xg gets .open. */
.xg {
  --bh: min(470px, 58vh);
  --spring: cubic-bezier(.16, 1.18, .3, 1);
  position: relative; z-index: 1;
  display: grid; justify-items: center;
  padding: calc(var(--bh) * .2) 0 0;
}
.xg__body {
  position: relative;
  height: var(--bh);
  aspect-ratio: 1079 / 1411;
}
.xg__stage {
  position: absolute; inset: 0;
  display: block; padding: 0; border: 0; background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: float 9s ease-in-out -3s infinite;
}
.xg__stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 14px; border-radius: 14px; }
.xg__part {
  position: absolute; display: block;
  transition: transform .9s var(--ease-io), opacity .6s var(--ease);
  will-change: transform;
}
.xg__depth { display: block; width: 100%; height: 100%; transition: transform .7s var(--ease); }
.xg__part img, .xg__part svg { display: block; width: 100%; height: 100%; }
.xg__part img { filter: drop-shadow(0 18px 22px rgba(43, 35, 29, .18)); }

.xg__part--handle { left: 9.268%; top: .425%;  width: 90.176%; height: 15.592%; z-index: 3; transform-origin: 6% 80%; transition-delay: .12s; }
.xg__part--top    { left: .556%;  top: 13.891%; width: 30.12%;  height: 40.326%; z-index: 2; transition-delay: .06s; }
.xg__part--cup    { left: 1.297%; top: 54.217%; width: 29.472%; height: 45.358%; z-index: 2; transition-delay: 0s; }
.xg__part--core   { left: 2.6%;   top: 48.6%;   width: 26%;     height: 19.9%;   z-index: 1;
                    opacity: 0; transform: scale(.55); transition-delay: 0s; }
/* until the first try, the grinder "wants" to come apart: every few seconds the parts pop loose and snap back */
.xg:not(.tried) .xg__part--handle .xg__depth { animation: xgTeaseH 5s var(--ease) 1.5s infinite; }
.xg:not(.tried) .xg__part--cup .xg__depth { animation: xgTeaseC 5s var(--ease) 1.5s infinite; }
@keyframes xgTeaseH {
  0%, 76%, 100% { transform: none; }
  82% { transform: translateY(calc(var(--bh) * -.045)) rotate(-2.5deg); }
  88% { transform: none; }
  92% { transform: translateY(calc(var(--bh) * -.015)) rotate(-.8deg); }
}
@keyframes xgTeaseC {
  0%, 77%, 100% { transform: none; }
  83% { transform: translateY(calc(var(--bh) * .03)); }
  89% { transform: none; }
  93% { transform: translateY(calc(var(--bh) * .01)); }
}

/* hover hint: the parts loosen a little */
@media (hover: hover) {
  .xg:not(.open) .xg__stage:hover .xg__part--handle { transform: translateY(calc(var(--bh) * -.018)) rotate(-1.2deg); }
  .xg:not(.open) .xg__stage:hover .xg__part--cup { transform: translateY(calc(var(--bh) * .012)); }
}

/* open: the exploded view */
.xg.open .xg__part { transition-duration: 1.35s, .8s; transition-timing-function: var(--spring), var(--ease); }
.xg.open .xg__part--handle { transform: translate(calc(var(--bh) * .03), calc(var(--bh) * -.17)) rotate(-5deg); transition-delay: 0s; }
.xg.open .xg__part--top    { transform: translateY(calc(var(--bh) * -.06)); transition-delay: .06s; }
.xg.open .xg__part--cup    { transform: translateY(calc(var(--bh) * .13)) rotate(1.2deg); transition-delay: .12s; }
.xg.open .xg__part--core   { opacity: 1; transform: translateY(calc(var(--bh) * .01)); transition-delay: .32s, .32s; }
.xg.open .xg__stage { animation-play-state: paused; }

/* each part drifts on its own once apart */
.xg.open .xg__part img, .xg.open .xg__part svg { animation: xgDrift 6s ease-in-out infinite; }
.xg.open .xg__part--handle img { animation-delay: -1s; }
.xg.open .xg__part--top img { animation-delay: -3.2s; animation-duration: 7s; }
.xg.open .xg__part--core svg { animation-delay: -2s; animation-duration: 5.4s; }
.xg.open .xg__part--cup img { animation-delay: -4.4s; animation-duration: 6.6s; }
@keyframes xgDrift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* soft floor shadow */
.xg__shadow {
  position: absolute; left: -6%; width: 48%; bottom: -3.5%; height: 7%;
  background: radial-gradient(closest-side, rgba(43, 35, 29, .28), transparent);
  transition: transform 1.2s var(--spring), opacity 1s var(--ease);
}
.xg.open .xg__shadow { transform: translateY(calc(var(--bh) * .13)) scaleX(1.25); opacity: .6; }

/* numbered labels with leader lines */
.xg__labels { position: absolute; inset: 0; pointer-events: none; }
.xg__label {
  position: absolute; left: 36%;
  display: flex; align-items: baseline; gap: 10px;
  font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--text);
  white-space: nowrap;
  opacity: 0; transform: translateX(-10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.xg__label::before {
  content: ""; position: absolute; right: calc(100% + 8px); top: .7em;
  width: 7vw; max-width: 34px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.xg__label::after {
  content: ""; position: absolute; right: calc(100% + 8px + min(7vw, 34px)); top: calc(.7em - 2.5px);
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  opacity: 0; transition: opacity .3s;
}
.xg__num { font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: 18px; color: var(--accent); }
.xg__label--handle { top: 1%; left: 42%; }
.xg__label--handle::before, .xg__label--handle::after { display: none; }
.xg__label--top  { top: 27%; }
.xg__label--core { top: 57%; }
.xg__label--cup  { top: 86%; }
.xg.open .xg__label { opacity: 1; transform: none; transition-duration: .8s; }
.xg.open .xg__label::before { transform: none; transition-delay: inherit; }
.xg.open .xg__label::after { opacity: 1; transition-delay: inherit; }
.xg.open .xg__label--handle { transition-delay: .55s; }
.xg.open .xg__label--top    { transition-delay: .65s; }
.xg.open .xg__label--core   { transition-delay: .75s; }
.xg.open .xg__label--cup    { transition-delay: .85s; }

/* hand-written nudge with a drawn arrow pointing at the grinder */
.xg__note {
  position: absolute; left: 32%; top: 27%;
  display: flex; align-items: flex-end; gap: 6px;
  pointer-events: none;
  font-family: var(--font-head); font-style: italic; font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1; color: var(--accent);
  transform: rotate(-6deg); transform-origin: left center;
  transition: opacity .45s var(--ease), transform .6s var(--ease);
  white-space: nowrap;
}
.xg__note span { animation: xgNoteBob 3.2s ease-in-out infinite; }
.xg__arrow {
  flex: none; width: 76px; height: 42px;
  fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.xg__arrow path { stroke-dasharray: 120; stroke-dashoffset: 120; }
.xg.in-view .xg__arrow path { animation: xgDraw 1.1s var(--ease) .4s forwards; }
.xg.in-view .xg__arrow path + path { animation-duration: .5s; animation-delay: 1.3s; }
@media (prefers-reduced-motion: reduce) { .xg__arrow path { stroke-dashoffset: 0; } }
.xg.open .xg__note, .xg.tried .xg__note { opacity: 0; transform: rotate(-6deg) translateY(-10px) scale(.9); }
@keyframes xgDraw { to { stroke-dashoffset: 0; } }
@keyframes xgNoteBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* the button: a caramel pill that asks to be pressed */
.xg__btn {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: calc(var(--bh) * .14 + 16px); /* room for the cup when it drops */
  min-height: 52px; padding: 6px 24px 6px 6px; border-radius: 999px;
  background: var(--accent); color: #FBF6EF;
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  box-shadow: 0 14px 30px -12px rgba(var(--accent-rgb), .75), inset 0 1px 0 rgba(255, 255, 255, .25);
  cursor: pointer;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .45s var(--ease);
}
.xg__btn::before { /* soft halo that keeps breathing until the first try */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .45);
  animation: xgHalo 2.6s ease-out infinite;
}
.xg.tried .xg__btn::before { animation: none; }
.xg:not(.tried) .xg__btn { animation: xgWiggle 5s var(--ease) 1.5s infinite; }
.xg__btn:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -12px rgba(var(--accent-rgb), .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.xg__btn:active { transform: translateY(0) scale(.97); }
.xg__btn:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.xg__btnIcon {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #FBF6EF; color: var(--accent);
  transition: transform .8s var(--spring);
}
.xg__btnIcon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xg.open .xg__btn { background: var(--text); box-shadow: 0 14px 30px -12px rgba(43, 35, 29, .6), inset 0 1px 0 rgba(255, 255, 255, .12); }
.xg.open .xg__btnIcon { transform: rotate(180deg) scale(.92); color: var(--text); }
@keyframes xgHalo { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .45); } 80%, 100% { box-shadow: 0 0 0 16px rgba(var(--accent-rgb), 0); } }
@keyframes xgWiggle {
  0%, 76%, 100% { transform: none; }
  80% { transform: rotate(-3deg) scale(1.04); }
  84% { transform: rotate(3deg) scale(1.04); }
  88% { transform: rotate(-2deg); }
  92% { transform: none; }
}

/* ---------- 6. Order ---------- */
.order { padding: var(--section) var(--gutter); background: var(--bg); }
.order__head { max-width: 1180px; margin: 0 auto 56px; }
.order__grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.summary {
  position: sticky; top: 96px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}
.summary__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-dark); }
.summary__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 1.4s var(--ease); }
.summary:hover .summary__img img { transform: scale(1.04); }
.summary__body { padding: clamp(24px, 3vw, 36px); }
.summary__name { font-family: var(--font-head); font-weight: 600; font-size: 28px; line-height: 1.2; }
.summary__price { font-family: var(--font-head); font-weight: 500; font-size: 76px; line-height: 1; margin: 10px 0 22px; }
.summary__price span { font-size: 34px; vertical-align: top; margin-right: 4px; position: relative; top: 10px; color: var(--accent); }
.summary__price span.after { margin: 0 0 0 8px; }
.summary__price small { font-size: 34px; vertical-align: top; position: relative; top: 10px; margin-left: 2px; }
.summary__list { display: grid; gap: 10px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary__list li { position: relative; padding-left: 22px; font-size: 15px; }
.summary__list li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--accent);
}
.summary__note { margin-top: 18px; font-size: 13px; color: var(--muted); }

.form {
  position: relative;
  padding: clamp(24px, 4vw, 52px);
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px rgba(43, 35, 29, .35);
}
.field { position: relative; margin-bottom: 14px; }
.field input, .field textarea {
  width: 100%;
  padding: 28px 0 10px;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  font: inherit; font-size: 16px; color: var(--text);
  resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 64px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field label {
  position: absolute; left: 0; top: 26px;
  color: var(--muted); pointer-events: none;
  transform-origin: left top;
  transition: transform .35s var(--ease), color .35s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-20px) scale(.78);
  color: var(--accent);
}
.field.invalid input, .field.invalid textarea { border-bottom-color: var(--error); }
.field.invalid label { color: var(--error); }

.qty {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 20px 0; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.qty__label { color: var(--muted); }
.qty__ctrl { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty__btn {
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 20px; line-height: 1;
  transition: background-color .3s, color .3s;
}
.qty__btn:hover { background: var(--surface); color: var(--accent); }
.qty__btn:disabled { opacity: .35; cursor: default; background: none; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; }
.qty__total { margin-left: auto; color: var(--muted); }
.qty__total strong { font-family: var(--font-head); font-size: 30px; font-weight: 600; color: var(--text); margin-left: 6px; display: inline-block; }
.qty__total strong.bump { animation: bump .5s var(--ease); }

.form__error { min-height: 0; color: var(--error); font-size: 14px; margin: 10px 0; }
.form__error:empty { margin: 0; }
.form .btn--block { margin-top: 18px; }
.form__small { margin-top: 14px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.form__small a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.form__success { display: none; text-align: center; padding: 28px 0 8px; }
.form.sent .form__fields { display: none; }
.form.sent .form__success { display: block; animation: rise .8s var(--ease) both; }
.form__success h3 { font-family: var(--font-head); font-weight: 600; font-size: 36px; line-height: 1.15; margin: 18px 0 12px; }
.form__success p { color: var(--muted); max-width: 30rem; margin: 0 auto; }
.form__success .btn { margin-top: 26px; }
.tickmark { width: 64px; height: 64px; margin: 0 auto; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tickmark circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.tickmark path { stroke-dasharray: 36; stroke-dashoffset: 36; }
.form.sent .tickmark circle { animation: draw .9s var(--ease) .1s forwards; }
.form.sent .tickmark path { animation: draw .6s var(--ease) .7s forwards; }

/* ---------- 7. Footer ---------- */
.footer {
  position: relative; overflow: hidden;
  padding: var(--section) var(--gutter) 36px;
  background: var(--surface-dark);
  color: var(--text-light);
}
.footer::before {
  content: ""; position: absolute; right: -10%; top: -30%;
  width: 70vw; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .12), transparent 62%);
  animation: breathe 11s ease-in-out -5s infinite;
}
.footer__top { position: relative; max-width: 1180px; margin: 0 auto; }
.footer__title {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(2.3rem, 5.2vw, 4.6rem); line-height: 1.05; letter-spacing: -.012em;
}
.footer__title em { color: var(--accent-soft); }
.footer__mail {
  display: inline-flex; align-items: baseline; gap: 14px;
  margin-top: 36px; padding-bottom: 6px;
  font-family: var(--font-head); font-style: italic;
  font-size: clamp(1.2rem, 3.4vw, 2.4rem);
  color: var(--accent-soft);
  border-bottom: 1px solid rgba(210, 164, 122, .4);
  overflow-wrap: anywhere;
  transition: border-color .4s, color .4s;
}
.footer__contacts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 clamp(28px, 4vw, 56px); }
.footer__phone { align-items: center; gap: 12px; white-space: nowrap; }
.footer__phone svg { width: .8em; height: .8em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.footer__mail span { display: inline-block; transition: transform .5s var(--ease); }
.footer__mail:hover { color: var(--text-light); border-color: var(--text-light); }
.footer__mail:hover span { transform: translate(4px, -4px); }
.footer__bottom {
  position: relative; max-width: 1180px; margin: clamp(80px, 10vw, 140px) auto 0;
  padding-top: 32px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.footer__brand { display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.footer__brand small { font-family: var(--font-head); font-style: italic; font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted-light); }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.footer__links a { font-size: 14px; color: var(--muted-light); padding: 10px 0; transition: color .3s; }
.footer__links a:hover { color: var(--text-light); }
.footer__small { font-size: 13px; color: var(--muted-light); }

/* ---------- Signature: crank dial ---------- */
.crank {
  position: fixed; right: clamp(16px, 2.4vw, 28px); bottom: clamp(16px, 2.4vw, 28px); z-index: 40;
  width: 60px; height: 60px; padding: 0;
  border-radius: 50%;
  background: rgba(30, 25, 21, .84);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(241, 233, 222, .12);
  box-shadow: 0 14px 30px -12px rgba(20, 16, 13, .5);
  color: var(--text-light);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.crank.show { opacity: 1; transform: none; pointer-events: auto; }
.crank.show:hover { transform: scale(1.07); }
.crank svg { width: 100%; height: 100%; overflow: visible; }
.crank__track, .crank__progress { fill: none; stroke-width: 2; }
.crank__track { stroke: rgba(241, 233, 222, .14); }
.crank__progress {
  stroke: var(--accent-soft); stroke-linecap: round;
  stroke-dasharray: 182.2; stroke-dashoffset: 182.2;
  transform: rotate(-90deg); transform-origin: 32px 32px;
}
.crank__arm { transform-origin: 32px 32px; }
.crank__arm path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.crank__arm circle { fill: currentColor; }

/* ---------- Scroll reveals ---------- */
.js .reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06) translate(-1%, -.5%); } }
@keyframes breathe { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(142, 154, 134, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(142, 154, 134, 0); } }
@keyframes scrollCue { 0% { transform: translateX(-100%); } 55% { transform: translateX(0); } 100% { transform: translateX(100%); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-14px) rotate(.6deg); } }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes sheen { 0%, 55% { transform: translateX(-110%); } 85%, 100% { transform: translateX(110%); } }
@keyframes loaderIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes loaderLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bump { 40% { transform: scale(1.12); } }
@keyframes spinFlat { to { transform: rotate(360deg); } }
@keyframes halo { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.32); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 22px; }
  .nav__name { display: none; } /* the lfb monogram stays; frees room for the six links */
  .facts__list { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .facts__list li:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 920px) {
  .grinder, .gift, .biz { grid-template-columns: 1fr; }
  .grinder__media { max-width: 520px; }
  .gift__visual { min-height: 0; order: -1; }
  .order__grid { grid-template-columns: 1fr; }
  .summary { position: relative; top: 0; display: grid; grid-template-columns: 2fr 3fr; }
  .summary__img { aspect-ratio: auto; height: 100%; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 28px 0; }
}

@media (max-width: 820px) {
  .nav { gap: 10px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .lang button { height: 38px; }
  .lang__thumb { height: 38px; }
  .nav__name { display: none; }

  /* phone hero: copy on top, photo below */
  .hero {
    min-height: 0;
    grid-template-areas: "copy" "media";
    align-items: start; align-content: start;
    padding-top: 108px; padding-bottom: 0;
  }
  .hero__copy { grid-area: copy; }
  .hero__media {
    grid-area: media;
    position: relative; top: auto; right: auto; bottom: auto; left: auto;
    width: auto; height: auto; aspect-ratio: 5 / 4;
    margin: 4px calc(var(--gutter) * -1) 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
  }
  .hero__img { object-position: 50% 50%; }
  .hero__glow { background: radial-gradient(80% 50% at 30% 25%, rgba(var(--accent-rgb), .16), transparent 70%); }
  .hero__lead { margin: 20px 0 28px; font-size: 1rem; }
  .hero__note { margin-top: 18px; }
  .hero__scroll { display: none; }
}

@media (max-width: 560px) {
  .facts { padding: 26px var(--gutter); }
  .facts__list { grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .facts__list li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 6px 0 6px 14px; }
  .facts__list li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts__list svg { width: 28px; height: 28px; }
  .facts__list strong { font-size: 14px; }

  .hero__actions .btn { flex: 1 1 100%; }
  .summary { grid-template-columns: 1fr; }
  .summary__img { aspect-ratio: 4 / 3; }
  .summary__price { font-size: 64px; }
  .qty__total { margin-left: 0; width: 100%; }
  .gift__visual { min-height: 0; }
  /* two tidy rows on phones:  [BLACK FRIDAY] [−28 %]  /  17,99 €  Prej 24,99 € */
  .deal { gap: 10px 12px; }
  .deal::before { content: ""; order: 3; flex-basis: 100%; height: 0; } /* line break between the rows */
  .deal__badge { order: 1; }
  .deal__off { order: 2; }
  .deal__now { order: 4; font-size: 44px; }
  .deal__was { order: 5; font-size: 15px; }
  .deal__vat { order: 6; }
  .stock { margin-left: 10px; padding: 0 10px 0 9px; font-size: 9.5px; letter-spacing: .14em; }
  .xg { --bh: min(380px, 100vw); }
  .xg__label { font-size: 12px; gap: 7px; white-space: normal; width: 62%; }
  .xg__num { font-size: 16px; }
  .xg__label::before { width: 22px; }
  .xg__label::after { right: calc(100% + 30px); }
  .xg__note { font-size: 21px; left: 32%; }
  .xg__arrow { width: 54px; height: 30px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .crank { width: 52px; height: 52px; }
}

/* Phones, touch screens and reduced motion: no pinned scroll */
@media (max-width: 768px), (hover: none), (prefers-reduced-motion: reduce) {
  .ritual__track { height: auto; }
  .ritual__pin { position: relative; height: auto; padding: var(--section) var(--gutter) calc(var(--section) * .6); }
  .ritual__statement .w { opacity: 1; }
  .ritual__sign { opacity: 1; transform: none; }
  .ritual__photo .frame__inner img { --rp: 1; }
}

@media (max-width: 1080px) {
  .ritual__photo { height: min(62vh, 520px); height: min(62svh, 520px); }
}
/* Quote above, photo below on phones and small tablets (same breakpoint as the unpinned ritual) */
@media (max-width: 768px) {
  .ritual__inner { grid-template-columns: 1fr; gap: 48px; }
  .ritual__inner .ritual__statement { font-size: clamp(1.75rem, 5.4vw, 2.6rem); max-width: none; }
  .ritual__inner .ritual__statement.is-short { font-size: clamp(2.2rem, 8vw, 3.6rem); }
  .ritual__photo { height: auto; width: min(100%, 460px); aspect-ratio: 4 / 5; }
}
@media (max-width: 560px) {
  .film__label { font-size: 11px; letter-spacing: .18em; }
  .film__disc { width: 68px; }
  .film__frame { border-radius: 16px; }
}

/* Reduced motion: show everything at rest */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .loader { display: none; }
  .js .reveal, .js .hero__media, .js .line > span, .js .ship, .js .deal,
  .js .hero__eyebrow, .js .hero__lead, .js .hero__actions, .js .hero__note, .js .hero__scroll { opacity: 1; transform: none; }
  .js .frame__wipe { display: none; }
  .js .frame .frame__inner img { transform: none; }
  .tickmark circle, .tickmark path { stroke-dashoffset: 0; }
}
