/* ==========================================================================
   Artemisia — Design Tokens
   ========================================================================== */
:root {
  /* Palette — warm, earthy, calm (matches artemisia.lv reference) */
  --c-bg:          #F8F3EA;
  --c-bg-alt:      #F1E9DA;
  --c-bg-deep:     #2A2016;
  --c-surface:     #FFFDF9;
  --c-ink:         #2B2318;
  --c-ink-soft:    #6B5F4F;
  --c-ink-faint:   #736553;
  --c-line:        #E3D8C4;
  --c-accent:      #AD7A42;   /* warm gold-tan — italic accent words */
  --c-accent-deep: #8C5E2C;
  --c-rose:        #A85D63;   /* dusty rose tee */
  --c-green:       #223B27;   /* deep green tee */
  --c-olive:       #5C6633;   /* olive tee */
  --c-cream:       #FBF8F1;
  --c-white:       #FFFFFF;
  --c-on-ink:      #FBF8F1;
  --c-header:      rgba(248, 243, 234, 0.94);
  color-scheme: light;

  /* Typography */
  --f-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', serif;
  --f-body:    'DM Sans', 'Segoe UI', sans-serif;

  --fs-h1: clamp(2.6rem, 5.4vw, 4.6rem);
  --fs-h2: clamp(2rem, 3.6vw, 3rem);
  --fs-h3: clamp(1.35rem, 2.2vw, 1.8rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: clamp(2.5rem, 5vw, 4rem);
  --space-section: clamp(2.5rem, 6vw, 4.5rem);

  --container: 1240px;
  --container-narrow: 780px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --grain-opacity: 0.032;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-soft: 0 20px 60px -25px rgba(43, 35, 24, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(43, 35, 24, 0.28);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.22s;
  --dur-med: 0.5s;
  --dur-slow: 0.9s;

  --nav-h: 84px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --c-bg: #1C1915;
  --c-bg-alt: #25211C;
  --c-bg-deep: #14120F;
  --c-surface: #2D2822;
  --c-ink: #F2EADD;
  --c-ink-soft: #C7BAA6;
  --c-ink-faint: #AF9F88;
  --c-line: #655847;
  --c-accent: #CDA56D;
  --c-accent-deep: #DEB278;
  --c-on-ink: #241C16;
  --c-header: rgba(28, 25, 21, 0.94);
  --shadow-soft: 0 20px 60px -25px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 12px 30px -18px rgba(0, 0, 0, 0.6);
  --grain-opacity: 0.022;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { scrollbar-gutter: stable; scroll-padding-top: calc(var(--nav-h) + 1.5rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }
/* flow-root: the scroll-reveal mask (.line-mask, injected by main.js)
   carries a negative margin-bottom to offset its own descender padding.
   Without a block formatting context here, that negative margin escapes
   the heading and collapses into whatever follows it, corrupting spacing
   sitewide (measured as low as -4px, and unpredictably elsewhere). */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.14; margin: 0; color: var(--c-ink); display: flow-root; }
h1 { font-size: var(--fs-h1); text-wrap: balance; }
h2 { font-size: var(--fs-h2); text-wrap: balance; }
h3 { font-size: var(--fs-h3); }
h1, h2, h3, h4 { font-optical-sizing: auto; }
p { margin: 0; }

::selection { background: var(--c-accent); color: var(--c-cream); }

:focus-visible {
  outline: 2px solid var(--c-accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.italic { font-style: italic; color: var(--c-accent-deep); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-section); }
.section--alt { background: var(--c-bg-alt); }
.section--deep { --c-ink-soft: #C9BFAE; --c-ink-faint: #AF9F88; background: var(--c-bg-deep); color: var(--c-cream); }
.section--deep h1, .section--deep h2, .section--deep h3 { color: var(--c-cream); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: var(--f-body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent-deep);
  font-weight: 500;
}
.section--deep .eyebrow { color: var(--c-accent); }

.lead {
  font-size: var(--fs-lead);
  color: var(--c-ink-soft);
  max-width: 42ch;
  text-wrap: pretty;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  background: var(--c-ink);
  color: var(--c-on-ink);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
/* The fill wipes up from the bottom edge — considered, not bouncy.
   ::before sits at z-index -1 inside the button's own stacking context,
   so it paints over the button background but under the label. */
.btn {
  --btn-bg: var(--c-ink);
  --btn-fg: var(--c-on-ink);
  --btn-fill: var(--c-accent-deep);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.9em 1.9em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-body);
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.3s var(--ease-out) 0.06s,
              border-color 0.35s var(--ease-out);
  touch-action: manipulation;
}
.btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--btn-fill);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.45s var(--ease-out);
}
.btn:is(:hover, :focus-visible)::before { transform: scaleY(1); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--c-ink);
  --btn-fill: var(--c-ink);
  border-color: var(--c-ink);
}
.btn--outline:is(:hover, :focus-visible) { color: var(--c-on-ink); }

.section--deep .btn--outline { --btn-fg: var(--c-cream); --btn-fill: var(--c-cream); border-color: var(--c-cream); }
.section--deep .btn--outline:is(:hover, :focus-visible) { color: var(--c-bg-deep); }

.btn--light { --btn-bg: var(--c-cream); --btn-fg: var(--c-bg-deep); --btn-fill: var(--c-bg-deep); border-color: var(--c-cream); }
.btn--light:is(:hover, :focus-visible) { color: var(--c-cream); }

/* Par mums "story" pair — in light theme only, swap which of the two
   blocks is dark: the photo's warm tones read better against dark brown
   than the flat cream backdrop it sits on by default. Dark theme already
   puts both blocks on a dark ground, so it's left untouched. */
[data-theme="light"] .section--story-media {
  --c-ink-soft: #C9BFAE;
  --c-ink-faint: #AF9F88;
  background: var(--c-bg-deep);
  color: var(--c-cream);
}
[data-theme="light"] .section--story-media h2 { color: var(--c-cream); }
[data-theme="light"] .section--story-media .eyebrow { color: var(--c-accent); }
[data-theme="light"] .section--story-media .btn--outline { --btn-fg: var(--c-cream); --btn-fill: var(--c-cream); border-color: var(--c-cream); }
[data-theme="light"] .section--story-media .btn--outline:is(:hover, :focus-visible) { color: var(--c-bg-deep); }

[data-theme="light"] .section--story-quote {
  --c-ink-soft: #6B5F4F;
  --c-ink-faint: #736553;
  /* --c-bg-alt, not --c-bg — the section right after this one is plain
     --c-bg, so using the same tone here would make the two blocks blend
     into one with no visible seam. */
  background: var(--c-bg-alt);
  color: var(--c-ink);
}
[data-theme="light"] .section--story-quote .quote-block { color: var(--c-ink); }

.btn--wide { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-ink);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn-icon:hover { background: var(--c-bg-alt); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: var(--c-header);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--c-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
  color: var(--c-ink);
  white-space: nowrap;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.logo:hover { opacity: 0.75; }
.logo-img { height: 34px; width: auto; display: block; }
.footer-about .logo-img { height: 30px; }

.nav-desktop {
  display: none;
}
@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.75rem);
  }
  .nav-desktop a {
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.4rem 0.1rem;
    color: var(--c-ink);
  }
  .nav-desktop a::after {
    content: '';
    position: absolute;
    left: 0; right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--c-accent-deep);
    transition: right var(--dur-fast) var(--ease-out);
  }
  .nav-desktop a:hover::after,
  .nav-desktop a[aria-current="page"]::after { right: 0; }
  .nav-desktop a[aria-current="page"] { color: var(--c-accent-deep); }
}

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-actions .btn { min-height: 44px; padding: 0.7em 1.5em; font-size: 0.88rem; }
/* Header-only: the outline button normally carries a bold --c-ink border
   (right, as a standalone CTA in the hero/footer) but sitting next to the
   hairline-bordered theme switch and menu button it read as a mismatched
   third style. Softened to match its neighbours here only — hover still
   fills solid via --btn-fill, so the click affordance isn't lost. */
.nav-actions .btn--outline { border-color: var(--c-line); }
@media (max-width: 640px) {
  .nav-actions .btn span { display: none; }
  .nav-actions .btn { padding: 0.7em 1em; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  /* Explicit color, not inherited: some mobile browsers (iOS Safari
     included) render unstyled <button> content in the system tint blue
     when color isn't declared directly on the button, and the icon's
     SVG strokes use currentColor so they'd inherit that blue tint too. */
  color: var(--c-ink);
  cursor: pointer;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }

/* Icon ported from the shadcn/ui-style animated menu button: three
   identical horizontal strokes, offset by translateY, that swing into an
   X on open. Rounded caps/joins replace the old blunt 1.5px bars — that's
   the "more round edges" ask. Two strokes converge on the same final
   -45deg angle by different rotation paths (315deg vs 135deg), which is
   what gives the merge its handcrafted, not-just-a-fade feel. */
.menu-toggle__icon { width: 20px; height: 20px; pointer-events: none; }
.menu-toggle__icon path {
  transform-origin: 12px 12px;
  transition: transform 0.3s cubic-bezier(.5, .85, .25, 1.1);
}
.menu-toggle__icon path:nth-child(1) { transform: translateY(-7px); }
.menu-toggle__icon path:nth-child(2) { transition-timing-function: cubic-bezier(.5, .85, .25, 1.8); }
.menu-toggle__icon path:nth-child(3) { transform: translateY(7px); }

.menu-toggle[aria-expanded="true"] .menu-toggle__icon path:nth-child(1) { transform: translateY(0) rotate(315deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon path:nth-child(2) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon path:nth-child(3) { transform: translateY(0) rotate(135deg); }

@media (prefers-reduced-motion: reduce) {
  .menu-toggle__icon path { transition: none; }
}

/* Side drawer menu */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 15, 8, 0.4);
  backdrop-filter: blur(2px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-out), visibility var(--dur-med);
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(86vw, 400px);
  background: var(--c-surface);
  z-index: 151;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  transform: translateX(100%);
  visibility: hidden;
  overflow-y: auto;
  transition: transform var(--dur-med) var(--ease-in-out);
  box-shadow: -20px 0 60px -20px rgba(0,0,0,0.3);
  /* Isolates this element's paint from the rest of the page during its
     (large, often-animated) open/close transition — cheaper repaints on
     lower-powered mobile GPUs regardless of which reveal mechanic below
     is active. will-change is added/removed by main.js only for the
     duration of the animation, not left on permanently. */
  contain: paint;
}
.nav-drawer.is-open { transform: translateX(0); visibility: visible; }

.nav-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}
.nav-drawer__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.nav-drawer__links a {
  font-family: var(--f-display);
  font-size: 1.9rem;
  padding: 0.5rem 0;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.nav-drawer.is-open .nav-drawer__links a { opacity: 1; transform: translateY(0); }
.nav-drawer__links a:nth-child(1) { transition-delay: 0.08s; }
.nav-drawer__links a:nth-child(2) { transition-delay: 0.14s; }
.nav-drawer__links a:nth-child(3) { transition-delay: 0.2s; }
.nav-drawer__links a:nth-child(4) { transition-delay: 0.26s; }
.nav-drawer__links a:nth-child(5) { transition-delay: 0.32s; }
.nav-drawer__links a[aria-current="page"] { color: var(--c-accent-deep); font-style: italic; }

.nav-drawer__footer {
  margin-top: auto;
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.nav-drawer__social { display: flex; gap: 0.75rem; }

body.nav-open { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vw, 4rem));
  padding-bottom: var(--space-xl);
  overflow: clip;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; }
}

.hero__copy h1 { margin-bottom: 0.85rem; }
.hero__copy .lead { margin-block: 0 1.75rem; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__media { position: relative; }
.hero__frame {
  position: relative;
  border-radius: 240px 240px 24px 24px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--c-line);
  background: var(--c-bg-alt);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute;
  left: -1.25rem; bottom: 2rem;
  background: var(--c-surface);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-card);
  max-width: 210px;
  font-size: 0.85rem;
  color: var(--c-ink-soft);
}
@media (max-width: 560px) {
  .hero__frame { border-radius: 140px 140px 20px 20px; }
  .hero__badge { left: 0; right: auto; bottom: -1rem; padding: 0.85rem 1rem; }
}
.hero__badge strong { display: block; font-family: var(--f-display); font-size: 1.3rem; color: var(--c-ink); font-style: italic; }

/* ==========================================================================
   Cards / Grids
   ========================================================================== */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  transition: border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
/* The card is paper — it doesn't hop. Only the photograph breathes,
   inside a frame that stays exactly where it was. */
.product-card:hover { border-color: var(--c-accent); }
.product-card__media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--c-bg-alt); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.product-card:hover .product-card__media img { transform: scale(1.03); }
.product-card__tag {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--c-surface);
  color: var(--c-ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4em 0.9em;
  border-radius: var(--radius-pill);
}
.product-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.product-card__body h3 { font-size: 1.25rem; }
.product-card__body p { color: var(--c-ink-soft); font-size: 0.92rem; }

/* Team bio cards (par-mums.html) reuse .product-card's frame; this is
   just the small role/credential line under the person's name. */
.product-card__role { color: var(--c-accent-deep); font-size: 0.85rem; font-weight: 500; }
.product-card--team .product-card__media { aspect-ratio: 3/4; }
.product-card--team .product-card__body p:not(.product-card__role) { font-size: 0.95rem; }
.product-card__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; }
.product-card__price { font-family: var(--f-display); font-size: 1.2rem; font-style: italic; color: var(--c-accent-deep); font-variant-numeric: tabular-nums; }
.product-card__link { position: relative; display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.9rem; }
.product-card__link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -3px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  transition: right 0.45s var(--ease-out);
}
.product-card:hover .product-card__link::after,
.product-card__link:focus-visible::after { right: 0; }
.product-card__link svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.product-card:hover .product-card__link svg { transform: translateX(4px); }

/* Benefits — set as a print spec sheet: hairline rules between columns
   (the way the client's own Gua Sha poster lays this out), an index
   numeral in the display italic, and line icons that draw themselves in. */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  column-gap: clamp(1.25rem, 2.5vw, 2.25rem);
  row-gap: clamp(1.75rem, 3vw, 2.5rem);
}
.benefit {
  position: relative;
  text-align: left;
  padding-left: clamp(1.25rem, 2.5vw, 2.25rem);
}
.benefit::before {
  content: '';
  position: absolute;
  left: 0; top: 0.3rem; bottom: 0.3rem;
  width: 1px;
  background: var(--c-line);
}
.benefit:first-child { padding-left: 0; }
.benefit:first-child::before { display: none; }

.benefit__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.benefits:not(.benefits--indexed) .benefit__head { justify-content: flex-start; }
.benefit__index {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.02em;
  /* accent-deep, not accent: the lighter gold only reaches 3.1:1 on the
     alt surface, and every other pair on this site clears AA. */
  color: var(--c-accent-deep);
  font-variant-numeric: tabular-nums;
}
.benefit__icon {
  width: 30px; height: 30px;
  flex-shrink: 0;
  color: var(--c-accent-deep);
  /* stroke-dasharray/offset are inherited SVG properties, so they cascade
     into the <use> shadow content. Paths carry pathLength="1" so every
     stroke draws over the same normalised length regardless of its size.
     Default is fully drawn — the icon is only retracted once JS has
     confirmed the element is off-screen (.is-armed), so a trigger that
     never fires leaves a visible icon rather than an empty box. */
  stroke-dasharray: 1;
}
.benefit.is-armed .benefit__icon { stroke-dashoffset: 1; }
.benefit.is-drawn .benefit__icon {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.15s var(--ease-out);
}
.benefit h3 { font-size: 1.02rem; margin-bottom: 0.4rem; font-family: var(--f-body); font-weight: 600; }
.benefit p { font-size: 0.88rem; color: var(--c-ink-soft); text-wrap: pretty; }

/* Content must never depend on the draw finishing. */
.no-js .benefit__icon { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .benefit__icon, .benefit.is-armed .benefit__icon { stroke-dashoffset: 0; }
}
/* Stacked on phones the rules turn horizontal — a different layout
   decision, not the desktop one squeezed. */
@media (max-width: 640px) {
  .benefit { padding-left: 0; padding-top: 1.4rem; }
  .benefit::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
  .benefit:first-child { padding-top: 0; }
  .benefit__head { margin-bottom: 0.9rem; }
}

/* Split section (image + text)
   Top-aligned, not centered: the media column is a tall 4/5 portrait (see
   .split__media img below) while the text column is usually much shorter
   (a couple of paragraphs), so centering left a large, uneven gap floating
   above the copy — measured 70-290px depending on how much copy a given
   page had. Aligning to start keeps the text flush with the top of the
   image on every page regardless of copy length. */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split--reverse .split__media { order: 2; }
/* The frame clips, so the settle animation scales the photograph inside a
   fixed edge instead of pushing past it (and past the viewport). Same arch
   shape as .hero__frame, so the motif carries through the story sections. */
.split__media { border-radius: 240px 240px 24px 24px; overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--c-line); }
/* height:auto is required here — without it, the img's HTML width/height
   attributes (added to prevent layout shift) win over aspect-ratio and lock
   the box to their exact pixel height, letting object-fit:cover crop a much
   taller sliver of the photo than intended. */
.split__media img { border-radius: 240px 240px 24px 24px; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
@media (max-width: 560px) {
  .split__media, .split__media img { border-radius: 140px 140px 20px 20px; }
}
.split__body h2, .feature__body h2 { margin-bottom: 1rem; }
.split__body p + p, .feature__body p + p { margin-top: 1rem; }
.split__body p { color: var(--c-ink-soft); }

/* Quote / story teaser */
.quote-block {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--c-ink);
  max-width: 30ch;
}
.quote-block cite { display: block; margin-top: 1.25rem; font-family: var(--f-body); font-style: normal; font-size: 0.85rem; letter-spacing: 0.05em; color: var(--c-ink-soft); }
/* .quote-block hardcodes --c-ink for its light-section use (t-krekls,
   klavas-gua-sha) — on a dark .section--deep block that resolves to
   near-black-on-near-black. Let it use the section's own light text there. */
.section--deep .quote-block { color: var(--c-cream); }

.service-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.65rem; }
.service-list li { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--c-ink-soft); }
.service-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.2em; color: var(--c-accent-deep); }
.service-price { font-family: var(--f-display); font-size: 1.3rem; margin-top: 1.75rem; }

/* Social strip */
.social-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.social-strip__handles { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.social-chip {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  padding: 0.6em 1.1em 0.6em 0.7em;
  font-size: 0.9rem;
  transition: border-color 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
  background: var(--c-surface);
}
.social-chip:hover { border-color: var(--c-accent-deep); background: var(--c-bg-alt); }
.social-chip svg { width: 20px; height: 20px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--c-bg-deep);
  color: var(--c-cream);
  padding-block: var(--space-xl) var(--space-lg);
}
.footer-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr;
}
/* Site links, legal/company info, and the address used to be crammed
   into one "Artemisia" column — split into its own two columns once
   there's room; below that, two-up, then a single stack on phones. */
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid .logo { color: var(--c-cream); }
.footer-grid .logo svg { color: var(--c-accent); }
.footer-about p { color: #C9BFAE; font-size: 0.92rem; max-width: 34ch; margin-top: 1rem; }
.footer-col h4 { font-family: var(--f-body); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a, .footer-col address { color: #DCD3C2; font-size: 0.93rem; font-style: normal; }
.footer-col a:hover { color: var(--c-cream); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(251,248,241,0.25);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: rgba(251,248,241,0.1); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(251,248,241,0.14);
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: #A79A85;
}
.footer-bottom ul { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--c-cream); }

/* ==========================================================================
   Reveal animation hooks (progressive enhancement — JS adds .is-visible)
   ========================================================================== */
[data-reveal] { opacity: 1; }
[data-reveal].is-visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.no-js [data-reveal] { opacity: 1; transform: none; }

/* Headings rise out of a mask instead of fading. The wrapper is added by
   JS, so with no JS the heading is simply a heading. The padding/margin
   pair keeps italic descenders from being clipped by the mask. */
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.line-mask > span { display: block; }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  padding-top: calc(var(--nav-h) + 1.75rem);
  padding-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--c-ink-faint);
  display: flex; gap: 0.5em; flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--c-accent-deep); }

/* ==========================================================================
   Page hero (secondary pages)
   ========================================================================== */
/* No padding-bottom: on both pages that use it (veikals, kontakti) this is
   immediately followed by a .section/.section--tight, which already carries
   its own top padding. The two used to stack (measured 128px on veikals —
   noticeably looser than the ~64px gap between any other two sections),
   so the space below the intro text is left entirely to the section that
   follows it. */
.page-hero { padding-top: clamp(1.5rem, 4vw, 2.5rem); }

/* Same stacking-padding issue as .page-hero above, between the gallery grid
   and the social-strip section that follows it directly. */
.gallery-section { padding-bottom: 0; }
.page-hero__inner { max-width: 720px; }
.page-hero h1 { margin-bottom: 1rem; }

/* ==========================================================================
   Product detail
   ========================================================================== */
.product-detail {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}
@media (min-width: 960px) { .product-detail { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Same arch/dome shape as .hero__frame and .split__media, plus the same
   1px contrast line — the product photo is the same kind of editorial
   image as those, and was the one place on the site still using a plain
   rounded rectangle instead of the site's signature frame. */
.product-gallery__main {
  border-radius: 240px 240px 24px 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-line);
  background: var(--c-bg-alt);
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) {
  .product-gallery__main { border-radius: 140px 140px 20px 20px; }
}
.product-gallery__thumbs { display: flex; gap: 0.75rem; margin-top: 1rem; }
.product-gallery__thumbs button {
  width: 74px; height: 74px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0; cursor: pointer;
  background: var(--c-bg-alt);
}
.product-gallery__thumbs button.is-active { border-color: var(--c-accent-deep); }
.product-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { margin-bottom: 0.5rem; }
.product-info__price { font-family: var(--f-display); font-style: italic; font-size: 1.9rem; color: var(--c-accent-deep); margin: 0.75rem 0 1.5rem; }
.product-info__lead { color: var(--c-ink-soft); margin-bottom: 1.75rem; }

.option-group { margin-bottom: 1.75rem; }
.option-group__label { display: flex; justify-content: space-between; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-ink-soft); margin-bottom: 0.75rem; }
.option-group__label strong { color: var(--c-ink); text-transform: none; letter-spacing: 0; font-family: var(--f-body); }

.swatches { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.swatch {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--c-line);
  cursor: pointer;
  position: relative;
  padding: 0;
}
.swatch[aria-pressed="true"] { border-color: var(--c-ink); }
.swatch[aria-pressed="true"]::after {
  content: '';
  position: absolute; inset: -5px;
  border: 1px solid var(--c-ink);
  border-radius: 50%;
}

.size-options { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.size-option {
  min-width: 48px; height: 44px; padding: 0 0.9em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  cursor: pointer;
  font-size: 0.9rem;
}
.size-option { color: var(--c-ink); }
.size-option[aria-pressed="true"] { background: var(--c-ink); color: var(--c-on-ink); border-color: var(--c-ink); }

.product-info__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 0.5rem; }
.stock-note { display: flex; align-items: center; gap: 0.5em; font-size: 0.85rem; color: var(--c-ink-soft); }
.stock-note svg { width: 16px; height: 16px; color: #5B7A5E; }

.checkout-note {
  display: flex; gap: 0.75rem; align-items: flex-start;
  margin-top: 1.75rem; padding: 1rem 1.15rem;
  background: var(--c-bg-alt); border-radius: var(--radius-md);
  font-size: 0.85rem; color: var(--c-ink-soft);
}
.checkout-note svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--c-accent-deep); }

.accordion { border-top: 1px solid var(--c-line); margin-top: var(--space-lg); }
.accordion-item { border-bottom: 1px solid var(--c-line); }
.accordion-item__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; background: none; border: 0; cursor: pointer;
  font-family: var(--f-display); font-size: 1.1rem; color: var(--c-ink); text-align: left;
}
.accordion-item__trigger svg { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease-out); flex-shrink: 0; margin-left: 1rem; }
.accordion-item__trigger[aria-expanded="true"] svg { transform: rotate(45deg); }
.accordion-item__panel {
  display: grid;
  grid-template-rows: 1fr;
}
.accordion.is-enhanced .accordion-item__panel { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.3s var(--ease-out), visibility 0.3s; }
.accordion.is-enhanced .accordion-item__panel.is-open { grid-template-rows: 1fr; visibility: visible; }
.accordion-item__panel > div { min-height: 0; overflow: hidden; color: var(--c-ink-soft); font-size: 0.95rem; }
.accordion-item__panel > div::after { content: ''; display: block; height: 1.5rem; }
.accordion-item__panel ul { display: flex; flex-direction: column; gap: 0.5rem; }
.accordion-item__panel li { padding-left: 1.4em; position: relative; }
.accordion-item__panel li::before { content: '—'; position: absolute; left: 0; color: var(--c-accent-deep); }

/* Steps (Gua Sha how-to) */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: var(--space-md); }
.step { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-md); padding: 1.4rem; }
.step__num { font-family: var(--f-display); font-style: italic; font-size: 1.6rem; color: var(--c-accent); display: block; margin-bottom: 0.6rem; }
.step h4 { font-family: var(--f-body); font-weight: 600; font-size: 0.98rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.87rem; color: var(--c-ink-soft); }

/* Related products */
.related-title { margin-bottom: var(--space-md); }

/* ==========================================================================
   Team / people
   ========================================================================== */
.people { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.person { text-align: left; }
.person__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow-card); margin-bottom: 1.1rem; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.person span { display: block; font-size: 0.85rem; color: var(--c-accent-deep); letter-spacing: 0.03em; margin-bottom: 0.6rem; }
.person p { font-size: 0.9rem; color: var(--c-ink-soft); }

/* Symbol strip */
.symbol-strip { display: flex; align-items: center; gap: 1.5rem; justify-content: center; color: var(--c-ink-faint); }
.symbol-strip svg { width: 46px; height: 46px; color: var(--c-accent); }

/* Timeline-ish divider text */
.divider-copy { text-align: center; max-width: 640px; margin: 0 auto; }

/* ==========================================================================
   Contact page
   ========================================================================== */
/* align-items:start, not the grid default (stretch) — the info card (with
   its item list + map) and the form card are rarely the same natural
   height, and stretch was forcing the shorter card's bordered box to
   match the taller one, leaving a dead padded gap under the submit
   button. Each card should just size to its own content. */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem); }
.contact-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-list__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list__item svg { width: 24px; height: 24px; color: var(--c-accent-deep); flex-shrink: 0; margin-top: 0.15rem; }
.contact-list__item h4 { font-family: var(--f-body); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.contact-list__item p, .contact-list__item a { color: var(--c-ink-soft); font-size: 0.92rem; }
.contact-list__item a:hover { color: var(--c-accent-deep); }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-line); aspect-ratio: 4/3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.15) sepia(0.08); }

.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--c-ink-soft); }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 0.85em 1em;
  background: var(--c-surface);
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--c-ink);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--c-accent-deep); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--c-ink-faint); margin-top: 0.75rem; }

/* ==========================================================================
   Toast (checkout placeholder feedback)
   ========================================================================== */
.toast {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  left: 50%; bottom: 1.5rem;
  transform: translate(-50%, 130%);
  background: var(--c-ink);
  color: var(--c-on-ink);
  padding: 0.9em 1.4em;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  z-index: 300;
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-med) var(--ease-out);
  max-width: min(90vw, 420px);
  text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ==========================================================================
   Misc utilities
   ========================================================================== */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: var(--space-md); }
.section-head { max-width: 640px; margin-bottom: var(--space-lg); }
.section-head.text-center { margin-inline: auto; }

/* Sun/moon switch: the sliding thumb shows the current theme. */
.theme-toggle {
  position: relative;
  display: inline-flex;
  flex: 0 0 78px;
  align-items: center;
  justify-content: space-around;
  width: 78px;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: var(--c-bg-alt);
  color: var(--c-ink-soft);
  cursor: pointer;
  touch-action: manipulation;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-surface);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.14);
  transition: transform 0.35s var(--ease-out), background-color 0.22s;
}
.theme-toggle svg { position: relative; width: 19px; height: 19px; transition: color 0.22s, transform 0.35s var(--ease-out); pointer-events: none; }
.theme-toggle__sun { color: var(--c-ink); }
[data-theme="dark"] .theme-toggle__thumb { transform: translateX(34px); background: var(--c-accent-deep); }
[data-theme="dark"] .theme-toggle__moon { color: var(--c-on-ink); transform: rotate(-12deg); }
[data-theme="dark"] .theme-toggle__sun { color: var(--c-ink-soft); transform: rotate(45deg); }
[data-theme="dark"] :is(.site-header, .nav-drawer) .logo-img { filter: brightness(0) invert(0.94); }
body { transition: background-color 0.22s, color 0.22s; }
.site-header { background: var(--c-header); }
button, .btn, .social-chip { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn svg { transition: translate 0.22s var(--ease-out); }
.btn:is(:hover, :focus-visible) svg { translate: 3px 0; }
.btn:focus-visible, .social-chip:focus-visible { box-shadow: var(--shadow-card); }
.product-card:focus-within { border-color: var(--c-accent-deep); box-shadow: var(--shadow-soft); }
.size-option, .swatch, .product-gallery__thumbs button { transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.size-option:hover, .product-gallery__thumbs button:hover { border-color: var(--c-accent-deep); }
.swatch { width: 44px; height: 44px; }
.footer-social a { width: 44px; height: 44px; }
.stock-note svg { color: #4F7653; }
[data-theme="dark"] .stock-note svg { color: #A8C39B; }
.nav-desktop a { min-height: 44px; display: inline-flex; align-items: center; }
.nav-desktop a:focus-visible::after { right: 0; }
.product-gallery__thumbs { flex-wrap: wrap; }
.product-gallery__main[aria-busy="true"] { cursor: progress; }
.section--deep :focus-visible, .site-footer :focus-visible { outline-color: var(--c-cream); }
:is(.section--deep, .site-footer) .eyebrow, .footer-col h4 { color: #CDA56D; }
@media (max-width: 1100px) and (min-width: 900px) {
  .nav-actions > .btn { display: none; }
}
@media (max-width: 640px) {
  .nav-actions { gap: 0.5rem; }
  .nav-actions > .btn { display: none; }
  .logo-img { max-width: 145px; height: auto; max-height: 34px; }
  .nav-drawer__top { gap: 1rem; }
  .nav-drawer__close { flex-shrink: 0; }
}
@media (max-width: 360px) {
  .site-header .container { gap: 0.5rem; }
  .site-header .logo-img { max-width: 115px; }
}
@media (hover: none) {
  .btn:hover, .btn-icon:hover, .product-card:hover, .social-chip:hover { transform: none; }
  .product-card:hover .product-card__media img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn-icon:hover, .product-card:hover, .social-chip:hover,
  .product-card:hover .product-card__media img { transform: none; }
  .btn svg, .product-card__link svg { transition: none; translate: none !important; transform: none !important; }
}

/* ==========================================================================
   Paper grain — the flat cream is what made the lower page read thin.
   A fixed, non-interactive overlay so it never scrolls with content.
   ========================================================================== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ==========================================================================
   Full-bleed feature band (t-shirt banner)
   Percentage tracks — not 100vw — so the reserved scrollbar gutter can't
   knock the text out of alignment with the container edge.
   ========================================================================== */
.feature {
  display: grid;
  row-gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}
.feature__body { padding-inline: var(--gutter); }
/* height:auto is required here too — see the .split__media img comment
   above for why (HTML width/height attributes otherwise defeat aspect-ratio). */
.feature__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
@media (max-width: 899px) {
  .feature__media { padding-inline: var(--gutter); }
}
@media (min-width: 900px) {
  .feature {
    grid-template-columns:
      max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)))
      minmax(0, calc(var(--container) / 2 - var(--gutter)))
      minmax(0, 1fr);
    column-gap: 0;
  }
  .feature__body {
    grid-column: 2;
    padding: 0 clamp(2rem, 4vw, 4rem) 0 0;
  }
  .feature__media {
    grid-column: 3;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }
  .feature__media img {
    aspect-ratio: 5 / 4;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }
}

/* ==========================================================================
   Selection controls — one language: rings and rules expand, nothing scales
   ========================================================================== */
.swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--c-ink);
  border-radius: 50%;
  opacity: 0;
  transition: inset 0.35s var(--ease-out), opacity 0.3s var(--ease-out);
}
.swatch:is(:hover, :focus-visible)::after { inset: -4px; opacity: 0.45; }
.swatch[aria-pressed="true"]::after { inset: -5px; opacity: 1; }

.size-option { box-shadow: 0 0 0 0 transparent; }
.size-option:is(:hover, :focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-ink) 10%, transparent); }

.product-gallery__thumbs button { position: relative; }
.product-gallery__thumbs button::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--c-accent-deep);
  transition: right 0.4s var(--ease-out);
}
.product-gallery__thumbs button:is(:hover, :focus-visible)::after { right: 0; }
.product-gallery__thumbs button.is-active::after { right: 0; }

/* Prices line up as a column of figures. */
.product-info__price, .product-card__price { font-variant-numeric: tabular-nums; }

/* On touch there is no hover to leave — don't let wipes stick. */
@media (hover: none) {
  .btn:hover::before { transform: scaleY(0); }
  .product-card:hover .product-card__link::after { right: 100%; }
  .swatch:hover::after { inset: 0; opacity: 0; }
  .swatch[aria-pressed="true"]:hover::after { inset: -5px; opacity: 1; }
  .size-option:hover { box-shadow: none; }
  .product-gallery__thumbs button:hover::after { right: 100%; }
  .product-gallery__thumbs button.is-active:hover::after { right: 0; }
  .text-link:hover::after { transform: scaleX(1); }
}

/* ==========================================================================
   Gallery (galerija.html)
   ========================================================================== */
/* Bento grid — a fixed base row height with some tiles spanning 2
   columns and/or 2 rows, so the photos read with real hierarchy
   (a few large moments, the rest small) instead of a uniform wall.
   grid-auto-flow: dense backfills gaps left by the bigger tiles, so
   size classes can be assigned per-photo without hand-placing rows. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 46vw;
  grid-auto-flow: dense;
  gap: 0.75rem;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 20vw; gap: 1rem; } }
@media (min-width: 960px) { .gallery-grid { grid-auto-rows: 15vw; } }
@media (min-width: 1400px) { .gallery-grid { grid-auto-rows: 210px; } }
.gallery-grid__item {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-card);
}
.gallery-grid__item--big { grid-column: span 2; grid-row: span 2; }
.gallery-grid__item--wide { grid-column: span 2; }
.gallery-grid__item--tall { grid-row: span 2; }
.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.gallery-grid__item:hover img, .gallery-grid__item:focus-visible img { transform: scale(1.035); }

/* Lightbox — same inert/is-open/overlay-click contract as .nav-drawer in
   main.js, so it plugs into the exact same keyboard/focus handling. */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 15, 10, 0.88);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
  z-index: 200;
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }
.lightbox {
  position: fixed; inset: 0;
  z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__frame { position: relative; max-width: min(90vw, 1100px); max-height: 90vh; }
.lightbox__frame img {
  display: block; max-width: 100%; max-height: 90vh; width: auto;
  border-radius: var(--radius-md); box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transition: opacity 0.32s var(--ease-out), transform 0.32s var(--ease-out);
}
/* Toggled by main.js right before/after swapping .src, so moving to
   the next photo reads as a soft crossfade instead of a hard cut. */
.lightbox__frame img.is-switching { opacity: 0; transform: scale(0.97); }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: fixed;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(20,15,10,0.5);
  color: var(--c-cream);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(20,15,10,0.8); }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { width: 40px; height: 40px; }
  .lightbox__prev { left: 0.5rem; }
  .lightbox__next { right: 0.5rem; }
  .lightbox__close { top: 0.5rem; right: 0.5rem; }
}

/* ==========================================================================
   Legal pages (Privacy Policy, Terms & Conditions)
   ========================================================================== */
/* Lobotomized-owl spacing: every element gets margin-top from whatever
   precedes it, so h2/h3/p/ul can mix freely without per-instance inline
   overrides (see the split__body / accordion-panel inconsistency this
   replaced — those used ad hoc 0.75rem/1rem margins scattered per page). */
.legal-content > * + * { margin-top: 1rem; }
.legal-content h2 { margin-top: var(--space-lg); font-size: 1.4rem; }
.legal-content h3 { margin-top: var(--space-md); font-size: 1.05rem; }
.legal-content p { color: var(--c-ink-soft); }
.legal-content ul { display: flex; flex-direction: column; gap: 0.5rem; color: var(--c-ink-soft); }
.legal-content li { padding-left: 1.4em; position: relative; }
.legal-content li::before { content: '—'; position: absolute; left: 0; color: var(--c-accent-deep); }
.legal-content strong { color: var(--c-ink); }
.legal-content .legal-meta { color: var(--c-ink-faint); font-size: 0.88rem; }
.legal-content .legal-placeholder { color: var(--c-accent-deep); font-weight: 600; }
