/* ============================================================
   Gold Nuts 777 — warm heritage earth
   Tokens, base, components, sections, motion, responsive
   ============================================================ */

:root {
  /* This design is art-directed with its own light + dark sections. Opt out of browser
     auto-dark (Chrome Auto Dark Theme, forced-dark) so light text over dark hero/chapter
     images is never inverted to black. */
  color-scheme: only light;

  /* palette (OKLCH) — earthy: cocoa ink, terracotta + ochre, deep-cocoa darks */
  --bg: oklch(0.967 0.008 70);          /* warm off-white, low chroma (not cream-beige) */
  --surface: oklch(0.935 0.014 64);     /* warm clay panel */
  --surface-2: oklch(0.905 0.018 60);   /* deeper clay */
  --ink: oklch(0.235 0.022 52);         /* deep cocoa-espresso, primary text */
  --ink-soft: oklch(0.42 0.03 52);      /* warm brown, secondary text (AA on --bg) */
  --line: oklch(0.86 0.018 60);         /* warm hairline */
  --line-soft: oklch(0.90 0.012 62);
  --terra: oklch(0.555 0.135 42);       /* terracotta / burnt sienna — primary accent */
  --terra-deep: oklch(0.47 0.12 40);
  --ochre: oklch(0.66 0.12 72);         /* golden ochre — gold-nuts nod */
  --ochre-bright: oklch(0.80 0.13 80);  /* accent on dark */
  --cocoa: oklch(0.235 0.03 48);        /* drenched dark chapter bg */
  --cocoa-2: oklch(0.285 0.034 46);
  --paper-on-dark: oklch(0.93 0.02 78);
  --paper-on-dark-soft: oklch(0.79 0.03 70);

  /* type */
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* rhythm */
  --shell: 1240px;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* z-scale */
  --z-sticky: 50;
  --z-header: 100;
  --z-lightbox: 200;

  --radius: 8px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }

/* Lenis integration — stops native scroll from fighting the smooth-scroll engine */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  font-family: var(--font-text);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 2px; }

/* ---------- layout primitives ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }

/* ---------- type system ---------- */
.display-1, .display-2, .hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink);
}
.display-1 { font-size: clamp(2.5rem, 1.7rem + 4vw, 4.6rem); }
.display-2 { font-size: clamp(1.9rem, 1.4rem + 2.5vw, 3.2rem); }
.lede {
  font-size: clamp(1.12rem, 1.04rem + 0.5vw, 1.4rem);
  line-height: 1.5; color: var(--ink); max-width: 60ch; text-wrap: pretty;
}
p { max-width: 68ch; text-wrap: pretty; color: var(--ink-soft); }
.section-head { max-width: 64ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lede { margin-top: 1.1rem; }

/* kicker — terracotta label with a leading rule, sentence case (not a tracked-caps eyebrow) */
.kicker {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.005em;
  color: var(--terra); margin-bottom: 1.1rem; max-width: none;
}
.kicker::before { content: ""; width: 1.9rem; height: 2px; background: var(--terra); border-radius: 2px; }
.on-dark { color: var(--paper-on-dark) !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 0.96rem;
  border: 1px solid transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn-primary { background: var(--terra); color: oklch(0.97 0.02 80); }
.btn-primary:hover { background: var(--terra-deep); transform: translateY(-2px); }
.btn-ghost { border-color: color-mix(in oklch, var(--ink) 30%, transparent); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: color-mix(in oklch, var(--ink) 6%, transparent); transform: translateY(-2px); }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed; top: 0.6rem; left: 0.6rem; z-index: 300;
  background: var(--ink); color: var(--paper-on-dark); padding: 0.6rem 1rem; border-radius: 3px;
  transform: translateY(-150%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding-block: clamp(1rem, 2vw, 1.5rem);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; }
.wordmark {
  font-family: var(--font-display); font-weight: 400; font-size: 1.5rem;
  letter-spacing: -0.005em; display: inline-flex; align-items: baseline; gap: 0.32em;
  color: var(--paper-on-dark); transition: color .4s var(--ease);
}
.wordmark-num { font-size: 0.7em; color: var(--ochre-bright); }
.primary-nav { margin-left: auto; display: flex; gap: clamp(1rem, 2vw, 2.1rem); }
.primary-nav a {
  font-size: 0.95rem; font-weight: 500; color: var(--paper-on-dark);
  position: relative; padding-block: 0.3rem; transition: color .35s var(--ease);
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--ochre-bright); transition: width .35s var(--ease);
}
.primary-nav a:hover::after { width: 100%; }
.header-cta { padding: 0.6rem 1.25rem; }
.site-header:not(.is-scrolled) .header-cta { background: var(--ochre-bright); color: oklch(0.26 0.04 50); }
.site-header:not(.is-scrolled) .header-cta:hover { background: oklch(0.86 0.11 82); }

.site-header.is-scrolled {
  background: color-mix(in oklch, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px oklch(0.24 0.04 50 / 0.6);
  padding-block: 0.7rem;
}
.site-header.is-scrolled .wordmark, .site-header.is-scrolled .primary-nav a { color: var(--ink); }
.site-header.is-scrolled .header-cta { background: var(--terra); color: oklch(0.97 0.02 80); }
.site-header.is-scrolled .header-cta:hover { background: var(--terra-deep); }
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }

.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0.5rem; margin-left: auto; min-width: 44px; min-height: 44px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--paper-on-dark); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem var(--pad-x) 1.6rem;
  background: var(--bg); border-top: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 0.7rem 0; font-size: 1.1rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.mobile-nav .btn { margin-top: 0.8rem; border-bottom: 0; }

/* ---------- language switcher ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--paper-on-dark) 38%, transparent);
  transition: border-color .4s var(--ease);
}
.lang-btn {
  padding: 0.34rem 0.6rem; border-radius: 999px; line-height: 1;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--paper-on-dark);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.lang-btn:hover { color: var(--ochre-bright); }
.lang-btn.is-active { background: var(--ochre-bright); color: oklch(0.26 0.04 50); }
.lang-btn.is-active:hover { color: oklch(0.26 0.04 50); }
/* over the light scrolled header, mirror the nav's ink treatment */
.site-header.is-scrolled .lang-switch { border-color: var(--line); }
.site-header.is-scrolled .lang-btn { color: var(--ink-soft); }
.site-header.is-scrolled .lang-btn:hover { color: var(--terra); }
.site-header.is-scrolled .lang-btn.is-active { background: var(--terra); color: oklch(0.97 0.02 80); }

/* per-language typography — the Latin display/body faces carry no Georgian glyphs, so
   Georgian uses Noto Georgian (loaded on demand by i18n.js). Russian Cyrillic falls back
   per-glyph to Georgia / system fonts, which render it cleanly. */
html[lang="ka"] {
  --font-display: "Noto Serif Georgian", "Young Serif", Georgia, serif;
  --font-text: "Noto Sans Georgian", "Hanken Grotesk", system-ui, sans-serif;
}
/* the wordmark is always the Latin brand mark — keep it on the display face in every language */
.wordmark { font-family: "Young Serif", Georgia, "Times New Roman", serif; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding-block: clamp(6rem, 14vh, 9rem) clamp(2.5rem, 8vh, 4.5rem);
  overflow: hidden; isolation: isolate; background: var(--cocoa);
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, oklch(0.09 0.02 45 / 0.9) 0%, oklch(0.11 0.02 45 / 0.42) 32%, transparent 62%),
    linear-gradient(90deg, oklch(0.09 0.02 45 / 0.5) 0%, transparent 52%);
}
.hero-content { position: relative; max-width: 42rem; text-align: left; }
.hero-place {
  color: var(--ochre-bright); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 0.82rem; margin-bottom: 1.4rem; max-width: none;
}
.hero-title {
  color: var(--paper-on-dark);
  font-size: clamp(2.5rem, 1.9rem + 2.6vw, 4.1rem);
  max-width: 20ch; text-wrap: pretty; text-shadow: 0 2px 40px oklch(0.16 0.03 45 / 0.5);
}
.hero-lead {
  color: var(--paper-on-dark); opacity: 0.95;
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.32rem); line-height: 1.55;
  max-width: 46ch; margin-top: 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero .btn-ghost { border-color: color-mix(in oklch, var(--paper-on-dark) 55%, transparent); color: var(--paper-on-dark); }
.hero .btn-ghost:hover { border-color: var(--paper-on-dark); background: color-mix(in oklch, var(--paper-on-dark) 12%, transparent); }
.hero-scroll { position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0; z-index: 1; width: 1px; height: 56px; display: grid; place-items: center; }
.hero-scroll-line { position: relative; width: 1px; height: 100%; background: color-mix(in oklch, var(--paper-on-dark) 35%, transparent); overflow: hidden; }
.hero-scroll-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--ochre-bright); animation: scrollcue 2.2s var(--ease) infinite; }
@keyframes scrollcue { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* hero gallery controls */
.hero-arrow {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 3;
  width: 3rem; height: 3rem; display: grid; place-items: center;
  border-radius: 50%; color: var(--paper-on-dark);
  background: oklch(0.12 0.02 45 / 0.32);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid color-mix(in oklch, var(--paper-on-dark) 22%, transparent);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.hero-arrow:hover { background: oklch(0.12 0.02 45 / 0.6); border-color: color-mix(in oklch, var(--paper-on-dark) 45%, transparent); }
.hero-arrow--prev { left: clamp(0.75rem, 2vw, 1.5rem); }
.hero-arrow--next { right: clamp(0.75rem, 2vw, 1.5rem); }
.hero-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-dots { position: absolute; left: 50%; bottom: clamp(1.1rem, 3vh, 1.9rem); translate: -50% 0; z-index: 3; display: flex; gap: 0.55rem; }
.hero-dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: color-mix(in oklch, var(--paper-on-dark) 42%, transparent);
  transition: background .3s var(--ease), width .3s var(--ease);
}
.hero-dot:hover { background: color-mix(in oklch, var(--paper-on-dark) 70%, transparent); }
.hero-dot.is-active { width: 28px; border-radius: 5px; background: var(--ochre-bright); }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* ============================================================
   ORIGIN
   ============================================================ */
.origin-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.origin-copy p + p { margin-top: 1.1rem; }
.origin-copy .lede { margin-top: 1.2rem; }
.origin-facts { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.origin-facts dt { font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }
.origin-facts dd { font-family: var(--font-display); font-size: 1.5rem; margin-top: 0.25rem; color: var(--terra); }

.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-tall { aspect-ratio: 4 / 3; }
.frame-wide { aspect-ratio: 3 / 2; }
.frame-portrait { aspect-ratio: 3 / 4; }
.frame.fill { aspect-ratio: 4 / 5; }

/* fill the column: on wide screens the capacity/quality images stretch to the text height */
@media (min-width: 881px) {
  .capacity-grid, .quality-grid { align-items: stretch; }
  .capacity-figure, .quality-figure { position: relative; min-height: 22rem; }
  .capacity-figure .frame.fill, .quality-figure .frame.fill { position: absolute; inset: 0; }
}
figure figcaption { margin-top: 0.9rem; font-size: 0.88rem; color: var(--ink-soft); }

/* ============================================================
   FIGURES BAND
   ============================================================ */
.figures-section { padding-block: clamp(3rem, 6vw, 5rem); background: var(--surface); border-block: 1px solid var(--line); }
.figures-lead { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); color: var(--ink); max-width: 40ch; line-height: 1.18; margin-bottom: 2.6rem; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.figure { display: flex; flex-direction: column; gap: 0.4rem; padding-top: 1.4rem; border-top: 2px solid var(--terra); }
.figure-num { font-family: var(--font-display); font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.7rem); line-height: 0.95; letter-spacing: -0.01em; display: inline; color: var(--ink); }
.figure-unit { font-family: var(--font-display); font-size: 1.4rem; color: var(--terra); margin-left: 0.1em; }
.figure-label { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.5rem; max-width: 22ch; }

/* ============================================================
   DARK CHAPTER (control)
   ============================================================ */
.chapter { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(34rem, 78vh, 50rem); display: flex; align-items: center; padding-block: clamp(5rem, 12vw, 9rem); }
.chapter-media { position: absolute; inset: 0; z-index: -2; }
.chapter-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.chapter-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, oklch(0.1 0.02 45 / 0.82) 0%, oklch(0.11 0.02 45 / 0.55) 46%, oklch(0.12 0.025 45 / 0.12) 100%); }
.chapter-content { max-width: 44rem; }
.chapter-content p { color: var(--paper-on-dark-soft); }
.chapter-content .display-2 { margin-bottom: 1.5rem; }
.chapter-content .kicker { color: var(--ochre-bright); }
.chapter-content .kicker::before { background: var(--ochre-bright); }
.chapter-sign { margin-top: 1.6rem; font-family: var(--font-display); font-size: 1.3rem; color: var(--ochre-bright) !important; }

/* ============================================================
   PROCESS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.6rem, 3vw, 2.6rem) clamp(2rem, 5vw, 4.5rem); }
.step { display: flex; gap: 1.3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.step-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--terra); min-width: 1.8em; }
.step-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; margin-bottom: 0.4rem; }
.step-body p { color: var(--ink-soft); }
.process-figure { margin-top: clamp(3rem, 6vw, 5rem); }

/* ============================================================
   PRODUCTS
   ============================================================ */
.product-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.4rem); margin-bottom: clamp(2.4rem, 4vw, 3.5rem); }
.product-feature { display: flex; flex-direction: column; }
.frame-feature { aspect-ratio: 5 / 4; }
.feature-body { padding-top: 1.3rem; }
.feature-body h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.feature-body p { color: var(--ink-soft); margin-top: 0.4rem; }
.feature-body .product-spec { color: var(--terra); font-weight: 600; font-size: 0.92rem; margin-top: 0.85rem; white-space: normal; text-align: left; }

.product-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.product { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); transition: padding-left .4s var(--ease); }
.product:hover { padding-left: 0.6rem; }
.product-main h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.75rem); }
.product-main p { color: var(--ink-soft); margin-top: 0.3rem; font-size: 0.98rem; }
.product-spec { color: var(--terra); font-weight: 600; font-size: 0.9rem; white-space: nowrap; text-align: right; flex-shrink: 0; }

/* ============================================================
   CAPACITY (drenched dark)
   ============================================================ */
.capacity { background: var(--cocoa); color: var(--paper-on-dark); }
.capacity-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: stretch; }
.capacity .kicker { color: var(--ochre-bright); }
.capacity .kicker::before { background: var(--ochre-bright); }
.capacity .display-2, .capacity .lede { color: var(--paper-on-dark); }
.capacity-copy p { color: var(--paper-on-dark-soft); }
.capacity-copy .lede { margin-top: 1.1rem; }
.capacity-copy p + p { margin-top: 1.1rem; }
.capacity-points { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.capacity-points li { position: relative; padding-left: 1.7rem; color: var(--paper-on-dark); }
.capacity-points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.8rem; height: 2px; background: var(--ochre-bright); border-radius: 2px; }
.capacity-figure .frame { background: var(--cocoa-2); }

/* ============================================================
   QUALITY
   ============================================================ */
.quality-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); align-items: stretch; }
.quality-copy .lede { margin-top: 1.1rem; }
.quality-copy p + p { margin-top: 1.1rem; }
.quality-marks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.4rem; margin-top: 2.2rem; }
.quality-marks li { padding-top: 0.9rem; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery .section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 18vw, 230px); gap: clamp(0.6rem, 1.2vw, 1rem); grid-auto-flow: dense; padding-inline: var(--pad-x); max-width: 1600px; margin-inline: auto; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, oklch(0.20 0.04 45 / 0.22), transparent 50%); opacity: 0; transition: opacity .4s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after { opacity: 1; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ============================================================
   SHOWCASE CAROUSEL (auto marquee)
   ============================================================ */
.showcase { padding-block: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.showcase .section-head { margin-bottom: clamp(1.5rem, 3vw, 2.4rem); }
.marquee {
  position: relative; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee img {
  height: clamp(200px, 26vw, 320px); width: auto; flex: 0 0 auto;
  margin-right: clamp(0.6rem, 1.4vw, 1rem); border-radius: var(--radius);
  object-fit: cover; background: var(--surface-2);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: clamp(2.2rem, 5vw, 4.5rem); align-items: start; }
.contact-copy .lede { margin-top: 1.1rem; margin-bottom: 2.6rem; }
.quote-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1.4rem; }
.contact-copy, .contact-details, .origin-copy, .capacity-copy, .quality-copy { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; max-width: 100%;
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 0.8rem 0.9rem; color: var(--ink); transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px color-mix(in oklch, var(--terra) 18%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in oklch, var(--ink-soft) 70%, transparent); }
.form-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.4rem; }
.form-note { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }

.detail-card { background: var(--cocoa); color: var(--paper-on-dark); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); }
.detail-card h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; }
.detail-tagline { color: var(--paper-on-dark-soft); margin-top: 0.4rem; margin-bottom: 1.6rem; font-size: 0.96rem; }
.detail-list > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.5rem 1rem; padding: 0.7rem 0; border-top: 1px solid color-mix(in oklch, var(--paper-on-dark) 16%, transparent); }
.detail-list dt { color: var(--paper-on-dark-soft); font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 0.1rem; }
.detail-list dd { color: var(--paper-on-dark); font-weight: 500; overflow-wrap: anywhere; }
.detail-list dd a { display: inline-block; padding: 0.25rem 0; }
.detail-list a:hover { color: var(--ochre-bright); }
.price-note { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid color-mix(in oklch, var(--paper-on-dark) 16%, transparent); color: var(--paper-on-dark-soft); font-size: 0.92rem; max-width: none; }
.price-note strong { color: var(--ochre-bright); font-family: var(--font-display); font-size: 1.1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--cocoa); color: var(--paper-on-dark); padding-top: clamp(3.5rem, 6vw, 5rem); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand .wordmark { color: var(--paper-on-dark); font-size: 1.7rem; }
.footer-brand p { color: var(--paper-on-dark-soft); margin-top: 1rem; max-width: 34ch; }
.footer-nav { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-nav a { color: var(--paper-on-dark-soft); width: fit-content; padding-block: 0.45rem; transition: color .3s var(--ease); }
.footer-nav a:hover { color: var(--ochre-bright); }
.footer-meta p { color: var(--paper-on-dark-soft); margin: 0 0 0.5rem; }
.footer-base { padding-block: 1.6rem; border-top: 1px solid color-mix(in oklch, var(--paper-on-dark) 14%, transparent); }
.footer-base p { color: var(--paper-on-dark-soft); font-size: 0.86rem; margin: 0; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: oklch(0.18 0.03 45 / 0.9); backdrop-filter: blur(4px); }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 30px 80px -20px oklch(0.12 0.02 45 / 0.7); }
.lightbox-close { position: fixed; top: 1.2rem; right: 1.4rem; z-index: 1; width: 2.8rem; height: 2.8rem; border-radius: 50%; font-size: 1.6rem; line-height: 1; background: oklch(0.24 0.03 48 / 0.7); color: var(--paper-on-dark); display: grid; place-items: center; transition: background .3s var(--ease); }
.lightbox-close:hover { background: var(--terra); }

/* ============================================================
   MOTION — reveal system
   ============================================================ */
.anim [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.anim .hero [data-hero] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hero.is-ready [data-hero] { opacity: 1; transform: none; }
.reveal-off [data-reveal], .reveal-off .hero [data-hero] { opacity: 1 !important; transform: none !important; transition: none !important; }

.hero [data-hero="1"] { transition-delay: 0.15s; }
.hero [data-hero="2"] { transition-delay: 0.28s; }
.hero [data-hero="3"] { transition-delay: 0.44s; }
.hero [data-hero="4"] { transition-delay: 0.58s; }
.hero [data-hero="5"] { transition-delay: 0.8s; }
.steps .step:nth-child(2).is-in, .products-list .product:nth-child(2).is-in, .figures .figure:nth-child(2).is-in { transition-delay: 0.07s; }
.steps .step:nth-child(3).is-in, .products-list .product:nth-child(3).is-in, .figures .figure:nth-child(3).is-in { transition-delay: 0.14s; }
.steps .step:nth-child(4).is-in, .products-list .product:nth-child(4).is-in, .figures .figure:nth-child(4).is-in { transition-delay: 0.21s; }
.steps .step:nth-child(5).is-in, .products-list .product:nth-child(5).is-in { transition-delay: 0.28s; }
.steps .step:nth-child(6).is-in { transition-delay: 0.35s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .products-layout { grid-template-columns: 1fr; }
  .products-figure { position: static; max-width: 30rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  .primary-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: 0.5rem; }
  /* keep the language switch visible on mobile, pushed to the right beside the menu button */
  .lang-switch { margin-left: auto; }
  .origin-grid, .capacity-grid, .quality-grid, .contact-grid { grid-template-columns: 1fr; }
  .capacity-figure { order: 2; }
  .figures { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .steps { grid-template-columns: 1fr; }
  .product-features { grid-template-columns: 1fr; }
  .product-feature { max-width: 34rem; }
  .quote-form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  /* show full images (natural aspect, no crop) for the content figures on smaller screens */
  .origin-figure .frame, .capacity-figure .frame, .quality-figure .frame, .process-figure .frame { aspect-ratio: auto; }
  .origin-figure .frame img, .capacity-figure .frame img, .quality-figure .frame img, .process-figure .frame img { position: static; height: auto; }
  .origin-figure, .quality-figure, .capacity-figure, .process-figure { max-width: 34rem; margin-inline: auto; }
}
@media (max-width: 560px) {
  .figures { grid-template-columns: 1fr; }
  .header-inner { gap: 0.7rem; }
  .lang-btn { padding: 0.3rem 0.45rem; font-size: 0.72rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(130px, 38vw, 180px); }
  .g-wide { grid-column: span 2; }
  .g-tall { grid-row: span 1; }
  .product { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .product-spec { text-align: left; }
  .footer-inner { grid-template-columns: 1fr; }
  /* mobile hero: full-screen vertical photo, copy overlaid in the dark lower area */
  .hero { display: flex; min-height: 100svh; align-items: flex-end; background: var(--cocoa); overflow: hidden; padding: 0; }
  .hero-media { position: absolute; inset: 0; }
  .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
  .hero-scrim { display: block; background: linear-gradient(to bottom, oklch(0.13 0.03 45 / 0) 26%, oklch(0.14 0.03 45 / 0.5) 54%, oklch(0.1 0.02 45 / 0.97) 100%); }
  .hero-scroll { display: none; }
  .hero-content { position: relative; max-width: 100%; margin: 0; padding: 0 var(--pad-x) clamp(2.5rem, 9vw, 3.5rem); }
  .hero-lead { display: none; }
  .hero-place { margin-bottom: 0.9rem; }
  .hero-title { font-size: clamp(2.3rem, 5.5vw + 1rem, 3.1rem); max-width: 15ch; margin-bottom: 0.4rem; }
  .hero-actions { margin-top: 1.6rem; }
  /* control chapter mobile: full-screen image with copy overlaid (like the hero) */
  .chapter { display: flex; min-height: 100svh; align-items: flex-end; background: var(--cocoa); overflow: hidden; padding: 0; }
  .chapter-media { position: absolute; inset: 0; }
  .chapter-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
  .chapter-scrim { display: block; background: linear-gradient(to bottom, oklch(0.1 0.02 45 / 0) 18%, oklch(0.11 0.02 45 / 0.55) 46%, oklch(0.09 0.018 45 / 0.97) 100%); }
  .chapter-content { position: relative; max-width: 100%; padding: 0 var(--pad-x) clamp(2.5rem, 9vw, 3.5rem); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html, html:not(.lenis) { scroll-behavior: auto !important; }
  .anim [data-reveal], .anim .hero [data-hero] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-media { inset: 0; }
  .hero-media img { height: 100%; }
  .hero-scroll-line::after { animation: none; }
  .gallery-item img, .btn, .product { transition: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
