/* ==========================================================================
   Ot Gorata — "From the forest. With a sense of place."
   Built on the visual brand guidelines (brand/GUIDELINES.md):
   an ivory canvas, forest-green type, olive support, beige depth,
   gold only as punctuation. Premium and approachable.
   ========================================================================== */

:root {
  /* Brand palette */
  --forest: #123a2c;
  --forest-2: #1c4b3a;
  --olive: #697d50;
  --olive-light: #a7b48c;
  --olive-soft: #e3e6d6;
  --ivory: #f4efe5;
  --ivory-2: #faf7f1;
  --beige: #ded0b6;
  --beige-soft: #ebe2d1;
  --gold: #b28a45;
  --champagne: #d4b66e;

  /* Text & lines */
  --ink: #18241e;
  --ink-soft: #46524b;
  --muted: #76807a;
  --line: rgba(18, 58, 44, 0.12);
  --line-strong: rgba(18, 58, 44, 0.24);
  --danger: #9a3a35;

  /* Shape & type */
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 28px 60px -34px rgba(18, 58, 44, 0.45);
  --shadow-sm: 0 10px 26px -16px rgba(18, 58, 44, 0.4);
  --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Source Sans Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--olive); }
::selection { background: var(--olive-light); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--forest);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
em, .italic { font-style: italic; }
h1 em, h2 em { font-weight: 400; color: var(--olive); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { max-width: 660px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cyr-text { font-style: normal; }

/* Eyebrow: small olive capitals with a fine gold rule */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ''; width: 32px; height: 1.5px; background: var(--gold); }
.center .eyebrow::before, .section-head.center .eyebrow::before { display: none; }

/* The single gold divider (brand motif) */
.gold-rule { width: 72px; height: 2px; background: var(--gold); border: 0; margin: 20px 0 24px; }
.center .gold-rule, .gold-rule.center { margin-left: auto; margin-right: auto; }

/* Buttons: precise rectangles ------------------------------------------- */
.btn {
  --bg: var(--forest);
  --fg: var(--ivory);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.9em 1.6em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--bg);
  background: var(--bg);
  color: var(--fg);
  font: 600 0.98rem/1.2 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { color: var(--fg); background: var(--forest-2); border-color: var(--forest-2); box-shadow: var(--shadow-sm); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ghost { --bg: transparent; --fg: var(--forest); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.btn-light { --bg: var(--ivory); --fg: var(--forest); }
.btn-light:hover { background: #fff; color: var(--forest); border-color: #fff; }
.btn-accent { --bg: var(--gold); --fg: #fff; }
.btn-accent:hover { background: #9c7838; border-color: #9c7838; color: #fff; }
.btn-sm { padding: 0.6em 1.1em; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-google { --bg: #fff; --fg: var(--ink); border-color: var(--line-strong); }
.btn-google:hover { background: #fff; color: var(--ink); border-color: var(--forest); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-link { font-weight: 600; color: var(--forest); text-decoration: none; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; }
.text-link:hover { color: var(--olive); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 229, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 92px; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand-logo { height: 58px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 1rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: 6px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--gold); transition: right 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--forest); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-account { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 0.98rem; font-weight: 500; color: var(--forest); }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--olive-soft); display: inline-grid; place-items: center; font-weight: 700; color: var(--forest); font-size: 0.85rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--forest); }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 5px 0; transition: transform 0.3s ease, opacity 0.3s ease; }

.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 2px; gap: 2px; }
.lang-switch a { text-decoration: none; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; padding: 6px 10px; border-radius: 3px; color: var(--ink-soft); line-height: 1; }
.lang-switch a:hover { color: var(--forest); background: var(--beige-soft); }
.lang-switch a.active { background: var(--forest); color: var(--ivory); }

@media (max-width: 960px) {
  .nav { height: 72px; }
  .brand-logo { height: 46px; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: 24px var(--gutter) 32px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    box-shadow: var(--shadow);
  }
  .nav-open .nav-menu { display: flex; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 14px; }
  .nav-links a { font-size: 1.25rem; font-family: var(--serif); font-weight: 600; color: var(--forest); }
  .nav-actions { flex-wrap: wrap; }
  .lang-switch { order: -1; }
}
@media (min-width: 961px) { .nav-menu { display: flex; align-items: center; gap: 36px; } }

/* Flash & errors ----------------------------------------------------------- */
.flash-wrap { position: relative; z-index: 5; }
.flash { margin: 18px 0 0; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ivory-2); font-size: 0.98rem; display: flex; gap: 12px; align-items: flex-start; }
.flash::before { content: ''; flex: 0 0 8px; height: 8px; border-radius: 50%; margin-top: 8px; background: var(--olive); }
.flash-success { background: var(--olive-soft); border-color: #cdd3bb; }
.flash-error { background: #f6e6e3; border-color: #e6c5bf; }
.flash-error::before { background: var(--danger); }
.flash-info { background: #f3ead6; border-color: var(--beige); }
.flash-info::before { background: var(--gold); }
.errors { margin: 0 0 24px; padding: 16px 20px; border-radius: var(--radius); background: #f6e6e3; border: 1px solid #e6c5bf; color: #6e2621; font-size: 0.96rem; }
.errors ul { margin: 0; padding-left: 18px; }

/* Hero ------------------------------------------------------------------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 0.45em; }
.hero .lead { margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: clamp(32px, 5vw, 52px); padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-meta div { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.hero-meta strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.9rem; color: var(--forest); line-height: 1.15; }
.hero-art {
  position: relative;
  aspect-ratio: 5 / 5.6;
  border-radius: 220px 220px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-art > svg.forest, .hero-art > img.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero-jars { position: absolute; left: 0; right: 0; bottom: 6%; display: flex; justify-content: center; align-items: flex-end; }
.hero-jars .jar-wrap { width: 34%; margin: 0 -3%; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.18)); animation: float 7s ease-in-out infinite; }
.hero-jars .jar-wrap:nth-child(2) { width: 40%; z-index: 2; animation-delay: -2s; }
.hero-jars .jar-wrap:nth-child(3) { animation-delay: -4s; }
.hero-tag {
  position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-style: italic; color: var(--forest); font-size: clamp(1rem, 1.6vw, 1.2rem);
  background: rgba(244, 239, 229, 0.88); padding: 8px 18px; border-radius: var(--radius-sm); white-space: nowrap;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-jars .jar-wrap { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; width: 100%; margin: 0 auto; }
}
:lang(bg) .hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
:lang(bg) .page-hero h1 { max-width: 20ch; }

/* Strip ------------------------------------------------------------------ */
.strip { overflow: hidden; background: var(--beige); }
.strip-track { display: flex; gap: 44px; padding: 17px 0; width: max-content; animation: marquee 44s linear infinite; }
.strip-track span { font-family: var(--serif); font-size: 1.12rem; font-style: italic; color: var(--forest); display: inline-flex; align-items: center; gap: 44px; white-space: nowrap; }
.strip-track span::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* Name / meaning section -------------------------------------------------- */
.meaning { text-align: center; }
.meaning .meaning-logo { width: min(340px, 72%); height: auto; margin: 0 auto 8px; }
.meaning .cyr { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 1.9vw, 1.35rem); color: var(--gold); margin: 6px 0 22px; }
.meaning p { max-width: 640px; margin: 0 auto; font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--ink-soft); }

/* Grids & product cards --------------------------------------------------- */
.grid { display: grid; gap: clamp(18px, 2.5vw, 32px); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.product-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.product-card:hover { color: inherit; }
.product-card .visual {
  position: relative;
  aspect-ratio: 4 / 4.3;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent, var(--olive)) 11%, var(--ivory-2));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-card .visual::before {
  content: '';
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent, var(--olive)) 15%, var(--ivory-2));
  top: 15%;
}
.product-card .visual .jar-wrap { width: 52%; position: relative; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.product-card:hover .visual .jar-wrap { transform: translateY(-6px) rotate(-2deg); }
.product-card .visual .product-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 20px 2px 0; }
.product-card .cat { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); font-weight: 700; }
.product-card h3 { margin: 6px 0 8px; }
.product-card p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 12px; }
.product-card .meta { font-size: 0.9rem; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--radius-sm); background: var(--ivory-2); color: var(--forest); border: 1px solid var(--line);
}
.visual .badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.badge-soon { background: var(--forest); color: var(--ivory); border-color: var(--forest); }

/* Split & panels ----------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.panel { background: var(--beige-soft); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.panel-logo { width: 150px; height: auto; margin-bottom: 22px; }
.soon-list { display: grid; gap: 12px; margin: 28px 0; }
.soon-item { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--ivory-2); border: 1px solid var(--line); text-decoration: none; }
.soon-item:hover { border-color: var(--olive-light); color: inherit; }
.soon-item .mini { width: 56px; flex: 0 0 56px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 14%, var(--ivory-2)); padding: 6px; }
.soon-item strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--forest); }
.soon-item span { font-size: 0.9rem; color: var(--muted); }

/* Values ------------------------------------------------------------------ */
.value { padding: 26px 0 0; border-top: 1px solid var(--line-strong); }
.value svg { width: 34px; height: 34px; color: var(--olive); margin-bottom: 16px; }
.value h4 { font-size: 1.25rem; margin-bottom: 8px; }
.value p { color: var(--ink-soft); font-size: 0.98rem; }

/* Dark band: premium expression — deep green, champagne accents ---------- */
.band { background: var(--forest); color: var(--ivory); position: relative; overflow: hidden; }
.band h2, .band h3, .band h4 { color: var(--ivory); }
.band h2 em { color: var(--champagne); }
.band .lead, .band p { color: rgba(244, 239, 229, 0.8); }
.band .eyebrow { color: var(--champagne); }
.band .eyebrow::before { background: var(--champagne); }
.band .btn-ghost { --fg: var(--ivory); border-color: rgba(244, 239, 229, 0.38); }
.band .btn-ghost:hover { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }
.band-mark { position: absolute; right: -70px; bottom: -110px; width: 460px; opacity: 0.08; pointer-events: none; --logo-top: var(--olive-light); --logo-bottom: var(--olive-light); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 44px 0; counter-reset: step; position: relative; }
.step { border-top: 1px solid rgba(212, 182, 110, 0.45); padding-top: 22px; }
.step::before { counter-increment: step; content: '0' counter(step); font-family: var(--serif); font-style: italic; color: var(--champagne); font-size: 1.1rem; display: block; margin-bottom: 10px; }
.step h4 { margin-bottom: 6px; font-size: 1.3rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .band-mark { width: 300px; right: -90px; bottom: -80px; } }

/* Page header ------------------------------------------------------------ */
.page-hero { padding: clamp(48px, 8vw, 92px) 0 clamp(32px, 5vw, 52px); }
.page-hero h1 { max-width: 17ch; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.chip { padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); transition: all 0.2s ease; }
.chip:hover { border-color: var(--forest); color: var(--forest); }
.chip.active { background: var(--forest); border-color: var(--forest); color: var(--ivory); }

/* Product detail ---------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 8vw, 100px); }
.pdp .visual { aspect-ratio: 1 / 1.06; position: sticky; top: 108px; }
.pdp .visual .jar-wrap { width: 46%; }
.pdp h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.specs { margin: 30px 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.specs dt { color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px; }
.specs dd { margin: 0; }
.trade-box { background: var(--beige-soft); border-radius: var(--radius); padding: 26px; margin-top: 28px; }
.trade-box .price { font-family: var(--serif); font-weight: 600; font-size: 1.85rem; color: var(--forest); }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } .pdp .visual { position: relative; top: 0; } }

/* Story & origin ---------------------------------------------------------- */
.story-quote { font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.3; font-weight: 400; font-style: italic; color: var(--forest); max-width: 26ch; }
.story-art { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.story-art svg, .story-art img { width: 100%; height: 100%; object-fit: cover; }
.timeline { display: grid; border-left: 1px solid var(--line-strong); margin-left: 8px; }
.timeline div { padding: 0 0 30px 30px; position: relative; }
.timeline div::before { content: ''; position: absolute; left: -6px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--gold); }
.timeline strong { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; color: var(--forest); display: block; }
.origin { background: var(--beige-soft); border-radius: var(--radius); padding: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.origin h2 { margin-bottom: 0.3em; }
.coords { display: grid; gap: 14px; }
.coords div { font-family: var(--sans); font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--forest); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 14px; }
.coords div::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
@media (max-width: 760px) { .origin { grid-template-columns: 1fr; } }

/* Farm photos ------------------------------------------------------------- */
/* A light, shared grade keeps phone photos from different days looking like one set. */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--beige-soft); filter: saturate(0.9) contrast(0.97); box-shadow: var(--shadow-sm); }
.photo figcaption { font-family: var(--serif); font-style: italic; font-size: 0.98rem; color: var(--ink-soft); margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--gold); }
.photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 32px); }
.photo-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.photo-row-4 .photo img { aspect-ratio: 3 / 4; }
.photo-wide { margin-bottom: clamp(24px, 4vw, 40px); }
.photo-wide img { aspect-ratio: 21 / 9; object-position: center 62%; }
.product-card .visual .product-photo { filter: saturate(0.9) contrast(0.97); }
@media (max-width: 960px) { .photo-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .photo-row { grid-template-columns: 1fr; }
  .photo-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .photo-row-4 figcaption { font-size: 0.88rem; }
  .photo-wide img { aspect-ratio: 4 / 3; }
}

/* Forms ------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .label { font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.01em; }
.field .hint { font-size: 0.84rem; color: var(--muted); }
input[type='text'], input[type='email'], input[type='password'], input[type='tel'], input[type='date'], input[type='number'], input[type='url'], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fffdf9;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 4px rgba(105, 125, 80, 0.16); }
input[type='color'] { width: 64px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fffdf9; padding: 4px; }
textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.96rem; color: var(--ink-soft); }
.check input { margin-top: 5px; accent-color: var(--forest); width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--forest); margin-bottom: 14px; padding: 0; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.88rem; margin: 6px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Auth -------------------------------------------------------------------- */
.auth-wrap { min-height: calc(100vh - 92px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--forest); color: var(--ivory); padding: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.auth-side h2 { color: var(--ivory); max-width: 14ch; }
.auth-side p { color: rgba(244, 239, 229, 0.8); max-width: 40ch; }
.auth-side .forest { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-side > *:not(.forest) { position: relative; }
.auth-main { display: grid; place-items: center; padding: clamp(40px, 6vw, 80px) var(--gutter); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* Account / admin layout --------------------------------------------------- */
.dash { display: grid; grid-template-columns: 230px 1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 100px); align-items: start; }
.dash-nav { position: sticky; top: 108px; display: grid; gap: 2px; }
.dash-nav .label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 700; color: var(--olive); margin: 14px 12px 6px; }
.dash-nav a { text-decoration: none; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.98rem; font-weight: 500; color: var(--ink-soft); display: flex; justify-content: space-between; }
.dash-nav a:hover { background: var(--beige-soft); color: var(--forest); }
.dash-nav a.active { background: var(--forest); color: var(--ivory); }
.dash-main h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-head h1 { margin: 0; }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .dash-nav .label { display: none; }
  .dash-nav a { white-space: nowrap; border: 1px solid var(--line); }
}
.card { background: var(--ivory-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.card + .card { margin-top: 20px; }
.grid > .card + .card { margin-top: 0; }
.grid:has(> .card) { align-items: start; }
.card h3 { margin-bottom: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h3 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--ivory-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; border-top: 2px solid var(--gold); }
.stat strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 2.2rem; color: var(--forest); line-height: 1.1; }
.stat span { font-size: 0.9rem; color: var(--muted); }
.notice { padding: 18px 20px; border-radius: var(--radius); background: #f3ead6; border: 1px solid var(--beige); display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h3 { color: var(--forest); }
dl.details { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 0; font-size: 0.98rem; }
dl.details dt { color: var(--muted); }
dl.details dd { margin: 0; overflow-wrap: anywhere; }

/* Tables ------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory-2); }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--olive); font-weight: 700; background: var(--beige-soft); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(167, 180, 140, 0.1); }
td.num, th.num { text-align: right; white-space: nowrap; }
tfoot td { font-weight: 700; background: var(--beige-soft); color: var(--forest); }
.pill { display: inline-block; padding: 4px 9px; border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 700; background: var(--olive-soft); color: var(--forest); white-space: nowrap; }
.pill-submitted, .pill-new, .pill-pending { background: #f3e5c4; color: #6f5114; }
.pill-confirmed, .pill-in_production { background: #e1e8ec; color: #2b4a5c; }
.pill-shipped { background: #e7e2ee; color: #4a3d6b; }
.pill-delivered, .pill-paid, .pill-handled, .pill-available { background: var(--olive-soft); color: #2f4a26; }
.pill-cancelled, .pill-refunded, .pill-hidden { background: #ebe9e4; color: #6b6b66; }
.pill-coming_soon { background: var(--forest); color: var(--ivory); }
.pill-unpaid { background: #f3e1de; color: #7a2a24; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; margin-right: 8px; border: 1px solid var(--line); }

/* Order form -------------------------------------------------------------- */
.order-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.order-summary { position: sticky; top: 108px; border-top: 2px solid var(--gold); }
.order-summary .total { font-family: var(--serif); font-weight: 600; font-size: 2.2rem; color: var(--forest); line-height: 1.1; }
.order-lines { list-style: none; padding: 0; margin: 0 0 16px; font-size: 0.94rem; }
.order-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
@media (max-width: 960px) { .order-layout { grid-template-columns: 1fr; } .order-summary { position: static; } }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-item .mini { width: 64px; border-radius: var(--radius-sm); padding: 6px; background: color-mix(in srgb, var(--accent) 14%, var(--ivory-2)); }
.line-item strong { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--forest); display: block; }
.line-item .info { font-size: 0.9rem; color: var(--muted); }
.qty { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; background: #fffdf9; }
.qty button { width: 38px; height: 40px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--forest); }
.qty button:hover { background: var(--beige-soft); }
.qty input { width: 52px; border: 0; text-align: center; padding: 8px 0; border-radius: 0; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { box-shadow: none; }
.line-item.disabled { opacity: 0.55; }
@media (max-width: 520px) { .line-item { grid-template-columns: 48px 1fr; } .line-item .mini { width: 48px; } .line-item .qty-col { grid-column: 1 / -1; justify-self: end; } }
.timeline-status { display: flex; margin: 8px 0 24px; flex-wrap: wrap; }
.timeline-status span { flex: 1; min-width: 90px; font-size: 0.82rem; color: var(--muted); padding-top: 12px; border-top: 3px solid var(--line); margin-right: 4px; }
.timeline-status span.done { border-top-color: var(--olive); color: var(--forest); font-weight: 700; }

/* Prose ------------------------------------------------------------------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose p, .prose li { color: var(--ink-soft); }

/* Footer: deep green, champagne accents, light logo ----------------------- */
.site-footer { background: var(--forest); color: rgba(244, 239, 229, 0.78); padding: clamp(56px, 8vw, 92px) 0 32px; }
.site-footer a { text-decoration: none; color: rgba(244, 239, 229, 0.78); }
.site-footer a:hover { color: var(--ivory); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-grid h5 { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--champagne); margin: 0 0 16px; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.98rem; }
.footer-brand .brand-logo { height: 62px; }
.footer-brand p { margin-top: 20px; max-width: 34ch; font-size: 0.98rem; }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.site-footer .newsletter input { background: rgba(244, 239, 229, 0.08); border-color: rgba(244, 239, 229, 0.22); color: var(--ivory); padding: 11px 14px; }
.newsletter input::placeholder { color: rgba(244, 239, 229, 0.5); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(212, 182, 110, 0.35); margin-top: 56px; padding-top: 24px; font-size: 0.88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand, .footer-news { grid-column: 1 / -1; } }
@media (max-width: 480px) { .newsletter { flex-direction: column; } }

/* Brand mark (inline, recolourable) ---------------------------------------- */
.brand-mark { display: block; height: auto; flex: none; }
.brand-mark-top { fill: var(--logo-top, #123a2c); }
.brand-mark-bottom { fill: var(--logo-bottom, #697d50); }

/* Error ------------------------------------------------------------------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-page .error-mark { width: 56px; margin: 0 auto 8px; }
.error-page .code { font-family: var(--serif); font-size: clamp(5rem, 14vw, 8.5rem); color: var(--olive-light); line-height: 1; font-weight: 400; }

/* Reveal on scroll --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* Quote request ------------------------------------------------------------ */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.quote-aside { position: sticky; top: 112px; }
.quote-form-card { order: 0; }
@media (max-width: 960px) { .quote-layout { grid-template-columns: 1fr; } .quote-aside { position: static; } }
legend { display: flex; align-items: center; gap: 12px; }
.legend-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); font-family: var(--sans); font-size: 0.9rem; font-weight: 700; }
.quote-form-card .form > fieldset + fieldset { padding-top: 26px; border-top: 1px solid var(--line); }
.quote-products { display: grid; gap: 10px; }
.quote-product { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fffdf9; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.quote-product:hover, .quote-product:focus-within { border-color: var(--olive-light); background: #fff; }
.quote-product .mini { width: 52px; border-radius: var(--radius-sm); padding: 4px; background: color-mix(in srgb, var(--accent) 14%, var(--ivory-2)); }
.qp-info strong { display: block; font-family: var(--serif); font-weight: 600; color: var(--forest); font-size: 1.05rem; }
.qp-info span { font-size: 0.86rem; color: var(--muted); }
.qp-qty { display: flex; align-items: center; gap: 8px; }
.qp-qty input { width: 84px; text-align: right; }
@media (max-width: 520px) { .quote-product { grid-template-columns: 44px 1fr; } .qp-qty { grid-column: 1 / -1; justify-content: flex-end; } }
.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 0.95rem; cursor: pointer; background: #fffdf9; transition: all 0.2s ease; }
.choice:hover span { border-color: var(--forest); }
.choice input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.choice input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 2px; }
.quote-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--radius); background: var(--ivory-2); border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.quote-cta p { margin: 0; color: var(--ink-soft); }

/* Animated quote demo (played by main.js) */
.quote-demo { margin: 0; }
.qd-window { position: relative; background: #fffdf9; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.qd-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--beige-soft); border-bottom: 1px solid var(--line); }
.qd-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--beige); }
.qd-bar em { margin-left: 8px; font-style: normal; font-size: 0.78rem; font-weight: 600; color: var(--olive); letter-spacing: 0.04em; }
.qd-body { padding: 18px; display: grid; gap: 14px; }
.qd-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.qd-field { display: grid; gap: 5px; }
.qd-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.qd-input { display: flex; align-items: center; min-height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 0.95rem; color: var(--ink); background: #fff; transition: border-color 0.2s ease, box-shadow 0.2s ease; overflow: hidden; white-space: nowrap; }
.qd-input.is-active { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(105, 125, 80, 0.15); }
.qd-caret { width: 1.5px; height: 18px; background: var(--forest); margin-left: 1px; opacity: 0; }
.qd-input.is-active .qd-caret { opacity: 1; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.qd-products { display: grid; gap: 6px; }
.qd-product { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.92rem; transition: border-color 0.3s ease, background 0.3s ease; }
.qd-product.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, #fff); }
.qd-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.qd-name { color: var(--forest); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qd-qty { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 0.88rem; }
.qd-qty span { display: inline-block; min-width: 2ch; text-align: right; font-weight: 700; color: var(--forest); }
.qd-btn { justify-self: start; display: inline-block; padding: 10px 18px; border-radius: var(--radius-sm); background: var(--forest); color: var(--ivory); font-weight: 600; font-size: 0.92rem; transition: transform 0.15s ease, background 0.2s ease; }
.qd-btn.is-pressed { transform: scale(0.95); background: var(--forest-2); }
.qd-done { position: absolute; inset: 41px 0 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 24px; background: rgba(255, 253, 249, 0.97); color: var(--forest); opacity: 0; transform: translateY(8px); transition: opacity 0.45s ease, transform 0.45s ease; pointer-events: none; }
.qd-done.is-visible { opacity: 1; transform: none; }
.qd-done strong { font-family: var(--serif); font-size: 1.35rem; }
.qd-done span { color: var(--ink-soft); max-width: 28ch; }
.qd-steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 4px; }
.qd-steps li { display: flex; gap: 14px; align-items: baseline; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--muted); transition: background 0.3s ease, color 0.3s ease; }
.qd-steps li span { font-family: var(--serif); font-style: italic; color: var(--gold); }
.qd-steps li.is-active { background: var(--beige-soft); color: var(--forest); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .qd-input.is-active .qd-caret { animation: none; } }

/* Nature motion ------------------------------------------------------------- */
/* Layered forest: drifts with scroll (--sy) and follows the pointer (--mx, --my). */
[data-scene] .forest .layer {
  transform-box: view-box;
  transform-origin: 50% 100%;
  transform: translate3d(calc(var(--mx, 0) * var(--dm, 0) * 1.6px), calc(var(--sy, 0) * var(--ds, 0) * 0.35px + var(--my, 0) * var(--dm, 0) * 0.8px), 0) scale(1.08);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
[data-scene] .hero-jars { transform: translate3d(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -6px), 0) rotate(calc(var(--mx, 0) * -1.5deg)); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-scene] .hero-tag { transform: translate3d(calc(-50% + var(--mx, 0) * 8px), calc(var(--my, 0) * 4px), 0); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* Leaves drifting down through the hero scene */
.leaves { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.leaf { position: absolute; top: -8%; width: 22px; animation: leaf-fall linear infinite; opacity: 0; }
.leaf svg { width: 100%; height: auto; fill: currentColor; animation: leaf-sway ease-in-out infinite alternate; }
.leaf-1 { left: 12%; color: #697d50; animation-duration: 15s; animation-delay: -2s; }
.leaf-2 { left: 34%; color: #b28a45; width: 16px; animation-duration: 19s; animation-delay: -9s; }
.leaf-3 { left: 58%; color: #123a2c; width: 18px; animation-duration: 17s; animation-delay: -5s; }
.leaf-4 { left: 76%; color: #a7b48c; width: 24px; animation-duration: 21s; animation-delay: -13s; }
.leaf-5 { left: 88%; color: #697d50; width: 14px; animation-duration: 16s; animation-delay: -7s; }
.leaf-6 { left: 22%; color: #d4b66e; width: 15px; animation-duration: 23s; animation-delay: -17s; }
.leaf svg { animation-duration: 3.2s; }
.leaf-2 svg, .leaf-5 svg { animation-duration: 2.6s; }
@keyframes leaf-fall {
  0% { top: -8%; opacity: 0; transform: translateX(0) rotate(0deg); }
  8% { opacity: 0.85; }
  85% { opacity: 0.85; }
  100% { top: 92%; opacity: 0; transform: translateX(60px) rotate(220deg); }
}
@keyframes leaf-sway { from { transform: translateX(-10px) rotate(-18deg); } to { transform: translateX(10px) rotate(18deg); } }

/* Faint leaf motifs that float at their own speed while scrolling */
.has-motifs { position: relative; overflow: hidden; }
.has-motifs > .container { position: relative; z-index: 1; }
.motif { position: absolute; pointer-events: none; opacity: 0.07; transform: translate3d(0, var(--py, 0px), 0) rotate(var(--rot, 0deg)); transition: transform 0.25s linear; --logo-top: var(--olive); --logo-bottom: var(--olive); }
.motif .brand-mark { width: 100%; }
.motif-a { width: 220px; left: -60px; top: 12%; --rot: -18deg; }
.motif-b { width: 160px; right: -30px; bottom: 6%; --rot: 24deg; opacity: 0.06; }
.motif-c { width: 260px; right: -80px; top: -20px; --rot: 12deg; opacity: 0.05; }
.motif-d { width: 240px; right: 4%; top: 10%; --rot: -10deg; opacity: 0.07; }
@media (max-width: 760px) { .motif { opacity: 0.045; } .motif-a { width: 150px; } .motif-c, .motif-d { width: 170px; } }
/* Line-art berries, blossoms and twigs (partials/fruit-motif) */
/* Placed by partials/motif-scatter, which sets --s (size), --o (opacity), --rot and position. */
.motif-fruit { color: var(--olive); width: calc(var(--s, 170) * 1px); opacity: var(--o, 0.13); }
.motif-fruit svg { display: block; width: 100%; height: auto; }
.motif-fruit.fm-gold { color: var(--gold); opacity: calc(var(--o, 0.13) * 1.2); }
.motif-fruit.fm-near svg { stroke-width: 1.6px; }
.band .motif-fruit { color: var(--ivory); }
@media (max-width: 760px) {
  .motif-fruit { width: calc(var(--s, 170) * 0.55px); opacity: calc(var(--o, 0.13) * 0.75); }
  .motif-fruit.fm-extra { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .leaf { display: none; }
  [data-scene] .forest .layer, [data-scene] .hero-jars, [data-scene] .hero-tag, .motif { transition: none; }
}

/* Badges: availability + sourcing -------------------------------------------- */
.visual .badge-source { left: auto; right: 14px; }
.badge-on_request { background: var(--ivory-2); color: var(--forest); border-color: var(--gold); }
.badge-out_of_season { background: var(--beige); color: var(--forest); border-color: var(--beige); }
.badge-coming_soon { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.badge-organic { background: var(--olive); color: #fff; border-color: var(--olive); }
.badge-wild { background: var(--ivory-2); color: var(--forest); border-color: var(--olive-light); }
.pill-on_request { background: #f3e5c4; color: #6f5114; }
.pill-out_of_season { background: var(--beige); color: var(--forest); }
.pill-contacted { background: #e1e8ec; color: #2b4a5c; }
.pill-quoted { background: #e7e2ee; color: #4a3d6b; }
.pill-won { background: var(--olive-soft); color: #2f4a26; }
.pill-lost { background: #ebe9e4; color: #6b6b66; }

/* Natural & organic ------------------------------------------------------------ */
.natural-card { background: var(--ivory-2); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.natural-card .badge { margin-bottom: 16px; }
.natural-card h3 { margin-bottom: 10px; }
.natural-card p { color: var(--ink-soft); }
.natural-card p:last-child { margin-bottom: 0; }

/* Notify me form on light panels */
.notify-form { gap: 10px; }
.trade-box .newsletter input { background: #fffdf9; color: var(--ink); border-color: var(--line-strong); }
.trade-box .newsletter input::placeholder { color: var(--muted); }
.hero-jars { z-index: 2; }

/* Recipes ------------------------------------------------------------------------ */
.recipe-signup { background: var(--forest); color: var(--ivory); }
.recipe-signup-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.recipe-signup p { margin: 0; display: flex; align-items: center; gap: 12px; color: rgba(244, 239, 229, 0.85); font-size: 0.98rem; }
.recipe-signup p svg { color: var(--champagne); flex: none; }
.recipe-signup strong { color: var(--ivory); font-weight: 600; }
.recipe-signup .newsletter { margin: 0; }
.recipe-signup .newsletter input { background: rgba(244, 239, 229, 0.1); border-color: rgba(244, 239, 229, 0.25); color: var(--ivory); padding: 9px 14px; min-width: 240px; }
.recipe-signup .newsletter input::placeholder { color: rgba(244, 239, 229, 0.55); }
@media (max-width: 640px) { .recipe-signup .newsletter { width: 100%; } .recipe-signup .newsletter input { min-width: 0; flex: 1; } }
.recipe-card .visual .badge { background: var(--ivory-2); }
.recipe-mark { width: 38%; opacity: 0.85; position: relative; }

.recipe-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(32px, 5vw, 60px); padding-bottom: clamp(32px, 5vw, 56px); }
.recipe-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.recipe-visual .visual { aspect-ratio: 4 / 3.4; }
.recipe-visual .visual .jar-wrap { width: 34%; }
.recipe-meta { display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.recipe-meta div { padding: 14px 22px 14px 0; margin-right: 22px; border-right: 1px solid var(--line); }
.recipe-meta div:last-child { border-right: 0; }
.recipe-meta dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive); }
.recipe-meta dd { margin: 2px 0 0; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--forest); }
.recipe-body { padding-bottom: clamp(48px, 7vw, 88px); }
.recipe-intro { max-width: 70ch; font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 36px; }
.recipe-columns { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.recipe-ingredients { background: var(--beige-soft); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); position: sticky; top: 112px; }
.recipe-ingredients h2, .recipe-steps h2 { font-size: 1.6rem; }
.recipe-ingredients ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.recipe-ingredients li { display: flex; gap: 12px; align-items: baseline; line-height: 1.45; }
.recipe-ingredients li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; transform: translateY(-2px); }
.recipe-steps ol { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 20px; }
.recipe-steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; line-height: 1.6; }
.recipe-steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); font-family: var(--serif); font-weight: 600; }
.recipe-tip { margin-top: 30px; padding: 18px 20px; border-left: 3px solid var(--gold); background: var(--ivory-2); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-soft); }
.recipe-tip strong { color: var(--forest); }
@media (max-width: 860px) { .recipe-hero, .recipe-columns { grid-template-columns: 1fr; } .recipe-ingredients { position: static; } }
