/* =====================================================================
   ALTERO — editorial & refined
   Hand-written CSS (no framework runtime) for fast loads on any device.
   Palette: deep navy ink + warm cream paper + refined gold accent.
   ===================================================================== */

:root {
  /* Colour — dark theme: layered near-black, warm white + gold type */
  --paper:      #0B0B0E;   /* page base */
  --paper-2:    rgba(246, 241, 232, 0.035);  /* alternate bands, lets the bg glow through */
  --ink:        #F6F1E8;   /* primary text */
  --ink-2:      rgba(246, 241, 232, 0.88);
  --ink-soft:   rgba(246, 241, 232, 0.72);
  --muted:      rgba(246, 241, 232, 0.58);
  --gold:       #D9B978;
  --gold-deep:  #C9A24A;
  --line:       rgba(246, 241, 232, 0.18);
  --line-soft:  rgba(246, 241, 232, 0.09);
  --white:      #16161C;   /* card surface */
  --surface-2:  #1D1D25;   /* raised surface */

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius:    14px;
  --radius-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:  280ms;

  /* Z-scale */
  --z-nav: 50;
  --z-menu: 40;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

/* Non-flat black: warm gold glows over a vertical shift, fixed so it drifts
   subtly as you scroll. Purely decorative and cheap (no repaint on scroll). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(70% 45% at 12% -8%,  rgba(201, 162, 74, 0.13), transparent 62%),
    radial-gradient(55% 40% at 96% 10%,  rgba(201, 162, 74, 0.08), transparent 66%),
    radial-gradient(75% 45% at 50% 108%, rgba(160, 140, 100, 0.10), transparent 62%),
    linear-gradient(180deg, #0B0B0E 0%, #111117 42%, #0C0C10 78%, #0B0B0E 100%);
}
/* Fine grain so large dark areas never look like flat fill */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

img, svg, figure { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

::selection { background: var(--gold); color: #0B0B0E; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2.5px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-deep); margin-bottom: 18px;
}
.nowrap { white-space: nowrap; }
/* At display sizes the city list is wider than a phone screen, so let it wrap
   there — otherwise the last city is clipped by the page's overflow guard. */
@media (max-width: 760px) { .hero__title .nowrap { white-space: normal; } }
/* The hero eyebrow is the longest one — slightly tighter so it holds one line. */
.hero .eyebrow { letter-spacing: 0.13em; }

.section__title {
  font-family: var(--serif); font-weight: 600; line-height: 1.08;
  font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3.1rem);
  letter-spacing: -0.01em; color: var(--ink);
}
.section__lede { color: var(--ink-soft); max-width: 60ch; margin-top: 18px; font-size: 1.075rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  letter-spacing: 0.01em; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 120ms var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--paper); box-shadow: 0 8px 22px -12px rgba(0,0,0,0.9); }
.btn--primary:hover { background: var(--gold-deep); box-shadow: 0 12px 26px -10px rgba(138,106,51,0.6); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(246,241,232,0.06); }
.btn--block { width: 100%; }

/* =====================================================================
   NAVBAR
   ===================================================================== */
.nav {
  position: fixed; inset: 16px 16px auto 16px; z-index: var(--z-nav);
  max-width: calc(var(--container) + 48px); margin-inline: auto;
  background: rgba(18, 18, 24, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border: 1px solid var(--line-soft); border-radius: 999px;
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav.is-scrolled { box-shadow: 0 14px 40px -20px rgba(0,0,0,0.85); background: rgba(16,16,21,0.92); }
.nav__inner { display: flex; align-items: center; gap: 20px; padding: 10px 12px 10px 20px; }

.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
  letter-spacing: -0.01em; white-space: nowrap;
}
/* If you add an image logo, this keeps it the right height in the pill navbar. */
.nav__brand img { height: 30px; width: auto; }
@media (max-width: 400px) { .nav__brand { font-size: 1.1rem; } }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: 0.95rem; font-weight: 500; color: var(--ink-2); position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold-deep); transition: width var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: 11px 20px; font-size: 0.92rem; }

.nav__toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; background: none; border: 0; /* 44px min touch target */
}
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--dur), opacity var(--dur); }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; gap: 6px; padding: 8px 16px 18px; }
.nav__mobile a { padding: 12px 8px; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.nav__mobile a:last-child { border: 0; margin-top: 8px; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; margin-left: auto; }
  .nav.is-open { border-radius: 22px; }
  .nav.is-open .nav__mobile { display: flex; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; padding: 168px 0 90px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 65% at 88% 2%, rgba(201,162,74,0.16), transparent 62%),
    radial-gradient(45% 55% at 2% 98%, rgba(201,162,74,0.06), transparent 58%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero__title {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.04;
  font-size: clamp(2.4rem, 1.2rem + 4.6vw, 4.05rem); color: var(--ink); margin-bottom: 22px;
}
.hero__title em { font-style: italic; color: var(--gold-deep); }
.hero__lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__stats { display: flex; gap: 38px; margin-top: 46px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__stats dt { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--ink); line-height: 1; }
.hero__stats dd { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 6px; }

.hero__media { position: relative; }
.hero__badge {
  position: absolute; left: -18px; bottom: 26px; background: var(--white);
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 14px 18px; box-shadow: 0 18px 40px -22px rgba(0,0,0,0.85);
}
.hero__badge-k { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-deep); font-weight: 700; }
.hero__badge-v { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin-top: 2px; }

/* Image placeholders (reserve space → zero layout shift) */
.media-frame {
  position: relative; width: 100%; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(246,241,232,0.035) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #191920, #101015);
  border: 1px solid var(--line-soft);
  display: grid; place-items: center;
}
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 4 / 3; }
.media-frame__label {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  border: 1px dashed var(--line); padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,0.35);
}
/* A confirmed photo covers the placeholder label (see hydrateImages in main.js). */
.media-frame.has-img .media-frame__label { display: none; }
.media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 880px) {
  .hero { padding: 132px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { max-width: 460px; }
  .hero__stats { gap: 28px; }
}

/* =====================================================================
   MARQUEE (brands + clients) — pure CSS, transform-only so it stays
   smooth on low-end phones. Pauses on hover/focus; disabled entirely
   under prefers-reduced-motion, where it becomes a swipeable row.
   ===================================================================== */
.strip { padding: 32px 0 36px; border-block: 1px solid var(--line-soft); background: var(--paper-2); }
.strip__label { text-align: center; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }

.marquee {
  overflow: hidden;
  /* fade the edges so logos slide in and out softly */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex; width: max-content;
  --marquee-shift: -50%;  /* JS sets this to exactly one group width */
  animation: marquee-scroll 40s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

/* Each group carries its own trailing gap so the wrap point is invisible. */
.marquee__group { display: flex; align-items: center; gap: 56px; padding-right: 56px; }

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(var(--marquee-shift), 0, 0); }
}

/* Fixed width keeps the loop exact whether the item shows text or a logo. */
.marquee__item { display: grid; place-items: center; flex: none; width: 180px; height: 56px; }
.marquee__item span { font-family: var(--serif); font-size: 1.3rem; color: var(--ink-2); opacity: 0.8; white-space: nowrap; }
/* The name is swapped out only once JS confirms the logo actually loaded. */
.marquee__item.has-img span { display: none; }
.marquee__item img {
  max-height: 100%; width: auto; max-width: 100%; object-fit: contain;
  filter: grayscale(1); opacity: 0.72; transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.marquee__item:hover img { filter: grayscale(0); opacity: 1; }

/* Client chips — width follows the name, never wraps */
.marquee--tiles .marquee__group { gap: 14px; padding-right: 14px; }
.marquee__item--tile {
  width: auto; height: 58px; padding: 0 26px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line-soft);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.marquee__item--tile:hover { border-color: var(--line); box-shadow: 0 18px 36px -26px rgba(0,0,0,0.85); }
.marquee__item--tile span {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--ink-2);
  white-space: nowrap; opacity: 1;
}
.marquee__item--tile img { max-height: 30px; max-width: none; width: auto; }
@media (max-width: 620px) {
  .marquee__item--tile { height: 50px; padding: 0 20px; }
  .marquee__item--tile span { font-size: 0.88rem; }
  .marquee:not(.marquee--tiles) .marquee__item { width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .marquee__track { animation: none; }
  .marquee__group[aria-hidden="true"] { display: none; }
}

/* =====================================================================
   SECTIONS (shared)
   ===================================================================== */
.section { padding: clamp(64px, 5vw, 104px) 0; }
.section__head { max-width: 720px; margin-bottom: 52px; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }
.section__note { font-size: 0.9rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section__note { white-space: normal; }
}

/* Cards layout */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* Segment cards — photo on top, copy beneath */
.seg-card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.seg-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(0,0,0,0.8); border-color: var(--line); }

.seg-card__media {
  position: relative; aspect-ratio: 3 / 2; display: grid; place-items: center; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(246,241,232,0.03) 0 10px, transparent 10px 20px),
    linear-gradient(140deg, #191920, #0F0F14);
}
.seg-card__media span {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  border: 1px dashed var(--line); padding: 7px 13px; border-radius: 999px; background: rgba(0,0,0,0.35);
}
.seg-card__media.has-img span { display: none; }
.seg-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms var(--ease);
}
.seg-card:hover .seg-card__media img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .seg-card:hover .seg-card__media img { transform: none; } }

.seg-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.seg-card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 12px; }
.seg-card p { color: var(--ink-soft); }
.seg-card__list { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft); display: grid; gap: 9px; }
.seg-card__list li { position: relative; padding-left: 22px; font-size: 0.95rem; color: var(--ink-2); }
.seg-card__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* =====================================================================
   PRODUCTS
   ===================================================================== */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1040px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 420px)  { .prod-grid { grid-template-columns: 1fr; } }

.prod-card {
  position: relative; cursor: pointer;
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 360ms var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* Grows over its neighbours instead of pushing them — the grid never reflows.
   Specificity note: the scroll-reveal rule `.js .reveal.is-in` also sets
   `transform`, so these must outrank it or the card would never scale. */
.prod-card:hover,
.prod-card:focus-visible,
.js .prod-card.reveal:hover,
.js .prod-card.reveal:focus-visible {
  transform: scale(1.055); z-index: 10;
  box-shadow: 0 34px 70px -28px rgba(0,0,0,0.95);
  border-color: var(--gold-deep);
}

.prod-card__details {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 22px 20px 20px;
  background: linear-gradient(to top, rgba(9,9,12,0.97) 62%, rgba(9,9,12,0.86) 85%, rgba(9,9,12,0));
  transform: translateY(101%); opacity: 0; pointer-events: none;
  transition: transform 380ms var(--ease), opacity 300ms var(--ease);
}
.prod-card:hover .prod-card__details,
.prod-card:focus-visible .prod-card__details { transform: none; opacity: 1; pointer-events: auto; }
.prod-card__details p { font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); }

.prod-card__specs {
  display: grid; grid-template-columns: auto 1fr; gap: 5px 14px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
}
.prod-card__specs dt { color: var(--muted); }
.prod-card__specs dd { color: var(--ink-2); text-align: right; }

@media (prefers-reduced-motion: reduce) {
  .prod-card:hover, .js .prod-card.reveal:hover { transform: none; }
  .prod-card__details { transition: opacity 200ms linear; }
}

/* Touch screens have no hover, so the panel stops being an overlay and simply
   sits in the card under the name — always readable, nothing to discover. */
@media (hover: none), (max-width: 760px) {
  .prod-card__details {
    position: static; transform: none; opacity: 1; pointer-events: auto;
    background: none; padding: 0 18px 18px; transition: none;
  }
  .prod-card__details p { display: none; }   /* keep mobile cards compact */
  .prod-card__specs { margin-top: 0; }
  /* No hover state to grow into on touch. */
  .prod-card:hover, .js .prod-card.reveal:hover { transform: none; box-shadow: none; }
}
.prod-card__media {
  position: relative; aspect-ratio: 3 / 4;  /* matches the product photography */
  background:
    repeating-linear-gradient(45deg, rgba(246,241,232,0.03) 0 10px, transparent 10px 20px),
    linear-gradient(140deg, #191920, #0F0F14);
  display: grid; place-items: center;
}
.prod-card__media span { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
/* Real photo sits on top of the placeholder label; if it 404s the label shows through. */
.prod-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms var(--ease);
}
.prod-card:hover .prod-card__media img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .prod-card:hover .prod-card__media img { transform: none; } }
.prod-card__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2; /* stays above the photo */
  background: var(--ink); color: var(--paper);
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; padding: 5px 10px; border-radius: 999px;
}
.prod-card__tag--soon { background: var(--gold-deep); }
.prod-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }

/* Text-only card (e.g. "New SKUs") — no photo area, content centred instead. */
.prod-card--text {
  background: var(--paper-2); border-style: dashed; border-color: var(--line);
  justify-content: center; text-align: center;
}
.prod-card--text:hover { transform: none; box-shadow: none; border-color: var(--gold); }
.prod-card--text .prod-card__body { padding: 32px 24px; gap: 6px; justify-content: center; flex: 1; }
.prod-card__tag--inline {
  position: static; align-self: center; margin-bottom: 12px;
}
.prod-card__brand { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.prod-card__name { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; line-height: 1.2; }
.prod-card__meta { font-size: 0.9rem; color: var(--muted); margin-top: 2px; }
.prod-card__variants { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.prod-card__variants span { font-size: 0.74rem; color: var(--ink-2); background: var(--paper-2); border-radius: 999px; padding: 4px 10px; }

.products__cta {
  margin-top: 48px; text-align: center; padding: 40px 24px; border: 1px dashed var(--line);
  border-radius: var(--radius); background: var(--paper-2);
}
.products__cta p { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); margin-bottom: 18px; }

/* =====================================================================
   SOURCING / 15 COUNTRIES
   ===================================================================== */
.sourcing .section__title em { font-style: italic; color: var(--gold-deep); }
.sourcing__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .sourcing__grid { grid-template-columns: 1fr; gap: 40px; } }

.sourcing__media { position: relative; }
.media-frame--map { aspect-ratio: 4 / 3; }

/* Compact by default; hover / focus / tap expands it to name the countries. */
.sourcing__badge {
  position: absolute; left: 20px; bottom: 20px; max-width: 190px; cursor: pointer;
  background: rgba(14,14,18,0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 20px; box-shadow: 0 18px 40px -22px rgba(0,0,0,0.9);
  transition: max-width 420ms var(--ease), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.sourcing__badge:hover, .sourcing__badge:focus-visible {
  max-width: min(420px, calc(100% - 40px));
  border-color: var(--gold-deep);
  box-shadow: 0 26px 56px -24px rgba(0,0,0,0.95);
}
.sourcing__badge-k { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); font-weight: 700; }
.sourcing__badge-v { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--ink); }
.sourcing__badge-list {
  font-size: 0.86rem; line-height: 1.5; color: var(--ink-soft);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 420ms var(--ease), opacity 300ms var(--ease), margin-top 420ms var(--ease);
}
.sourcing__badge:hover .sourcing__badge-list,
.sourcing__badge:focus-visible .sourcing__badge-list { max-height: 9em; opacity: 1; margin-top: 10px; }
@media (max-width: 640px) {
  .sourcing__badge { left: 14px; bottom: 14px; padding: 10px 14px; max-width: 170px; }
  .sourcing__badge-v { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sourcing__badge, .sourcing__badge-list { transition: opacity 200ms linear; }
}

.sourcing__points { display: grid; gap: 20px; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.sourcing__points h3 { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; margin-bottom: 5px; }
.sourcing__points p { color: var(--ink-soft); font-size: 0.95rem; }

/* =====================================================================
   CLIENTS
   ===================================================================== */
.clients { padding-bottom: clamp(56px, 4vw, 88px); }
.section__head--center { text-align: center; margin-inline: auto; }

/* =====================================================================
   CERTIFICATIONS
   ===================================================================== */
.certs { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.certs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .certs__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .certs__grid { grid-template-columns: 1fr; } }

.cert-card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 26px 24px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cert-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -30px rgba(0,0,0,0.8); }
/* Certification marks sit on a white tile — the official logos are drawn for
   light backgrounds and would otherwise disappear into the dark card. */
.cert-card__logo {
  width: 72px; height: 72px; border-radius: 14px; display: grid; place-items: center;
  background: #FFFFFF; padding: 10px; margin-bottom: 20px;
  box-shadow: 0 8px 20px -12px rgba(0,0,0,0.9);
}
.cert-card__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cert-card h3 { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; margin-bottom: 8px; }
.cert-card p { font-size: 0.94rem; color: var(--ink-soft); }

/* =====================================================================
   WHATSAPP FLOATING BUTTON
   ===================================================================== */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px;
  background: #1FA855; color: #fff; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 14px 32px -12px rgba(31,168,85,0.65);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.wa:hover { background: #17904A; box-shadow: 0 18px 38px -12px rgba(31,168,85,0.8); }
.wa svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 620px) {
  /* Icon-only on small screens so it never covers content */
  .wa { padding: 0; width: 54px; height: 54px; justify-content: center; right: 14px; bottom: 14px; }
  .wa__label { display: none; }
}

/* =====================================================================
   ABOUT
   ===================================================================== */
.about__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.about__copy p { color: var(--ink-soft); margin-top: 16px; }
.about__copy .section__title { margin-bottom: 8px; }
.about__points { margin-top: 30px; display: grid; gap: 16px; }
.about__points li { padding-left: 0; color: var(--ink-soft); }
.about__points li span { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; gap: 36px; } .about__media { max-width: 520px; } }

/* =====================================================================
   FAQ — native <details>, so it works with zero JS and is crawlable
   ===================================================================== */
.faq__list { display: grid; gap: 12px; max-width: 860px; }
.faq__item {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.faq__item:hover { border-color: var(--line); }
.faq__item[open] { border-color: var(--gold-deep); }

.faq__item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 56px 20px 24px; min-height: 44px;
  font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
/* Plus sign that rotates into a minus */
.faq__item summary::after,
.faq__item summary::before {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 14px; height: 2px; background: var(--gold); border-radius: 2px;
  transition: transform var(--dur) var(--ease);
}
.faq__item summary::before { transform: translateY(-50%) rotate(90deg); }
.faq__item summary::after  { transform: translateY(-50%); }
.faq__item[open] summary::before { transform: translateY(-50%) rotate(0deg); }

.faq__item p { padding: 0 24px 22px; color: var(--ink-soft); max-width: 70ch; }
.faq__item a { color: var(--gold); border-bottom: 1px solid transparent; transition: border-color var(--dur); }
.faq__item a:hover { border-color: var(--gold); }

@media (max-width: 560px) {
  .faq__item summary { font-size: 1.02rem; padding: 18px 48px 18px 18px; }
  .faq__item p { padding: 0 18px 18px; }
}

/* =====================================================================
   FORMS
   ===================================================================== */
.card-form {
  background: var(--white); color: var(--ink); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 30px; box-shadow: 0 30px 60px -40px rgba(0,0,0,0.85);
}
.form__title { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; margin-bottom: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-deep); background: var(--white);
  box-shadow: 0 0 0 4px rgba(176,137,76,0.16);
}
.field select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A8A29A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.card-form .btn { margin-top: 6px; }
.form__status { margin-top: 14px; font-size: 0.92rem; min-height: 1.2em; }
.form__status.is-ok { color: #6FD3A2; }
.form__status.is-err { color: #F1876C; }
/* honeypot */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact__intro p { color: var(--ink-soft); margin-top: 16px; }
.contact__details { margin-top: 30px; display: grid; gap: 14px; }
.contact__details li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.contact__details li:last-child { border-bottom: 0; }
.contact__k { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; }
.contact__details a {
  font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid transparent; align-self: flex-start;
  min-height: 44px; display: inline-flex; align-items: center; /* 44px min touch target */
  transition: border-color var(--dur), color var(--dur);
}
.contact__details a:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; gap: 36px; } }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-top: 60px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer__brand p { color: var(--ink-soft); margin-top: 16px; max-width: 38ch; font-size: 0.96rem; }
.footer__nav h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 16px; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; color: var(--ink-2); transition: color var(--dur); }
.footer__nav a:hover { color: var(--gold-deep); }
.footer__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 22px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted);
}
.footer__top { color: var(--ink-2); transition: color var(--dur); }
.footer__top:hover { color: var(--gold-deep); }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } .footer__bar { flex-direction: column; } }

/* =====================================================================
   SCROLL REVEAL (transform + opacity only → GPU friendly)
   ===================================================================== */
/* Only hide when JS is confirmed running (see inline script in <head>) —
   without JS the content renders normally rather than staying invisible. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: 90ms; }
.reveal[data-reveal-delay="2"] { transition-delay: 180ms; }
.reveal[data-reveal-delay="3"] { transition-delay: 270ms; }
.reveal[data-reveal-delay="4"] { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .seg-card, .prod-card { transition: none !important; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
