/* =========================================================================
   SAPIENS TEQUILA — BEBIDA DE SABIOS
   The Agave Evolution · sapienstequila.com
   -------------------------------------------------------------------------
   Design system built from the official brand assets:
   label paper (ivory), engraved navy ink, wordmark gold, agave blue-green,
   volcanic earth and the terracotta of the Ahumado.
   Motifs: the serpent "S" and the bat (bat-friendly agave farms).
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. FONTS  (self-hosted variable fonts — no external requests)
   ------------------------------------------------------------------------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-vf-latin.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-vf-latin-ext.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-vf-latin-italic.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo-vf-latin.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo-vf-latin-ext.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* -------------------------------------------------------------------------
   2. TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Surfaces — luminous, never black-dominant */
  --paper:        #FAF6EC;
  --paper-warm:   #F6F0E1;
  --ivory:        #F2EBDA;
  --sand:         #E6DAC1;
  --sand-deep:    #D4C4A4;

  /* Ink */
  --ink:          #232B3E;
  --ink-soft:     #55607A;
  --ink-faint:    #8A93A6;
  --navy:         #2C3650;

  /* Brand accents */
  --gold:         #B8893B;
  --gold-bright:  #C9A459;
  --gold-light:   #E0C486;
  --amber:        #DFA845;
  --agave:        #6F8C7E;
  --agave-deep:   #3E574F;
  --sky:          #9CBACB;
  --terracotta:   #B4653F;
  --volcanic:     #453F39;

  /* Per-expression accent (overridden on product pages) */
  --accent:       var(--gold);
  --accent-soft:  var(--gold-light);

  /* Type */
  --display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:    'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Rhythm */
  --gutter:  clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4.5rem, 11vw, 10rem);
  --maxw:    1320px;
  --maxw-text: 62ch;

  /* Motion */
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --dur:       .55s;

  --radius:    2px;
  --shadow-sm: 0 1px 2px rgba(35,43,62,.06), 0 4px 14px rgba(35,43,62,.05);
  --shadow-md: 0 12px 40px rgba(35,43,62,.12);
  --shadow-lg: 0 30px 90px rgba(35,43,62,.18);
}

/* -------------------------------------------------------------------------
   3. RESET / BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.7;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--sand-deep); margin: 0; }
::selection { background: var(--gold-light); color: var(--ink); }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 999;
  background: var(--navy); color: var(--paper);
  padding: .75rem 1.25rem; border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* -------------------------------------------------------------------------
   4. TYPOGRAPHY
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 0, 'WONK' 1, 'opsz' 60;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 6rem); }
h2, .h2 { font-size: clamp(2rem, 1.4rem + 2.9vw, 4rem); }
h3, .h3 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2.1rem); line-height: 1.18; }
h4, .h4 { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.3; }

p { margin: 0 0 1.15em; max-width: var(--maxw-text); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.1rem, 1rem + .55vw, 1.4rem);
  line-height: 1.62;
  color: var(--ink-soft);
  font-weight: 350;
}
.serif-italic { font-family: var(--display); font-style: italic; font-weight: 300; }

/* Eyebrow — small caps label with a serpent tick */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ''; width: 1.75rem; height: 1px;
  background: currentColor; opacity: .6;
}
.eyebrow.is-centered { justify-content: center; }
.eyebrow.is-centered::after {
  content: ''; width: 1.75rem; height: 1px;
  background: currentColor; opacity: .6;
}
.eyebrow.on-dark { color: var(--gold-light); }

.quote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 3rem);
  line-height: 1.28;
  letter-spacing: -.02em;
  max-width: 22ch;
}
.quote-attr {
  display: block; margin-top: 1.5rem;
  font-family: var(--sans); font-style: normal;
  font-size: .74rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-faint);
}

/* Data pairs (specs) */
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li {
  display: grid;
  grid-template-columns: minmax(9rem, 34%) 1fr;
  gap: .5rem 1.5rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(35,43,62,.1);
  font-size: .95rem;
}
.spec-list dt, .spec-list .k {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; padding-top: .28em;
}
.spec-list .v { color: var(--ink); }
@media (max-width: 560px) {
  .spec-list li { grid-template-columns: 1fr; gap: .15rem; }
}

/* -------------------------------------------------------------------------
   5. LAYOUT
   ------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 880px; }
.wrap-wide   { max-width: 1600px; }
/* overflow:hidden keeps the bleeding serpent watermarks from widening the page */
.section { padding-block: var(--section); position: relative; overflow: hidden; }
.section-sm { padding-block: clamp(3rem, 7vw, 6rem); position: relative; overflow: hidden; }
.center { text-align: center; }
.center p, .center .lead { margin-inline: auto; }

.grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* Editorial split: image + text */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.split.is-offset { grid-template-columns: 1.05fr .95fr; }
.split .split-text { max-width: 40rem; }
.split.is-reverse .split-media { order: 2; }
@media (max-width: 900px) {
  .split, .split.is-offset { grid-template-columns: 1fr; }
  .split.is-reverse .split-media { order: 0; }
}

/* Surfaces */
.surface-ivory   { background: var(--ivory); }
.surface-sand    { background: var(--sand); }
.surface-navy    { background: var(--navy); color: var(--paper-warm); }
.surface-navy p, .surface-navy .lead { color: rgba(250,246,236,.78); }
.surface-agave   { background: var(--agave-deep); color: var(--paper-warm); }
.surface-agave p, .surface-agave .lead { color: rgba(250,246,236,.78); }

/* Paper grain — very subtle, evokes the label stock */
.grain::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .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='.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .18 0 0 0 0 .24 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------------
   6. BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: 1.05rem 2.1rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--btn-bg);
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-gold    { --btn-bg: var(--gold); --btn-fg: #fff; }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); border-color: rgba(35,43,62,.28); }
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ghost   { --btn-bg: transparent; --btn-fg: var(--paper); border-color: rgba(250,246,236,.4); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-sm { padding: .8rem 1.5rem; font-size: .68rem; }

/* Text link with a gold underline that draws in */
.link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink);
  padding-bottom: .35rem;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .4s var(--ease-out), color .3s var(--ease);
}
.link:hover { background-size: 100% 1px; color: var(--gold); }
.link.on-dark { color: var(--paper-warm); }
.link.on-dark:hover { color: var(--gold-light); background-image: linear-gradient(var(--gold-light), var(--gold-light)); }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.center .btn-row { justify-content: center; }

/* -------------------------------------------------------------------------
   7. AGE GATE
   ------------------------------------------------------------------------- */
.age-gate {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--ivory);
  padding: var(--gutter);
  text-align: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
.age-gate[hidden] { display: none; }
.age-gate.is-closing { opacity: 0; visibility: hidden; }
.age-gate::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(184,137,59,.12), transparent 62%);
}
.age-gate-inner { max-width: 34rem; position: relative; z-index: 1; }
.age-gate .age-mark { width: clamp(3.4rem, 8vw, 4.6rem); margin: 0 auto 2rem; opacity: .95; }
.age-gate .age-logo { width: clamp(15rem, 42vw, 22rem); margin: 0 auto 1.4rem; }
.age-gate .age-tag {
  font-size: .68rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2.4rem;
}
.age-gate h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); }
.age-gate p { margin-inline: auto; }
.age-gate .btn-row { justify-content: center; margin-top: 2rem; }
.age-note {
  margin-top: 2.5rem; font-size: .76rem; line-height: 1.65;
  color: var(--ink-faint); max-width: 30rem; margin-inline: auto;
}
.age-note a { text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------------------------------------------------
   8. HEADER / NAV
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding-block: 1.15rem;
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease),
              padding .45s var(--ease), border-color .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .wrap {
  max-width: var(--maxw-wide, 1600px);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.site-header.is-stuck {
  background: rgba(250,246,236,.92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: rgba(35,43,62,.1);
  padding-block: .7rem;
}
.site-header.is-hidden { transform: translateY(-105%); }
.site-header { transition-property: background-color, box-shadow, padding, border-color, transform; }

.brand { display: flex; align-items: center; gap: .8rem; flex: 0 0 auto; }
.brand img { width: clamp(9rem, 15vw, 12.5rem); transition: width .45s var(--ease); }
.site-header.is-stuck .brand img { width: clamp(8rem, 12vw, 10rem); }

/* On hero pages the header starts light-on-image (until stuck, or the ivory drawer opens) */
.site-header.on-media:not(.is-stuck):not(.nav-open) { color: var(--paper); }
.site-header.on-media:not(.is-stuck):not(.nav-open) .brand img { filter: brightness(0) invert(1); }
.site-header.on-media:not(.is-stuck):not(.nav-open) .nav-link { color: rgba(250,246,236,.9); }
.site-header.on-media:not(.is-stuck):not(.nav-open) .lang-switch { border-color: rgba(250,246,236,.4); color: var(--paper); }
.site-header.on-media:not(.is-stuck):not(.nav-open) .burger span { background: var(--paper); }
.site-header.nav-open { z-index: 895; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); }
.nav-link {
  position: relative;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase;
  padding-block: .4rem;
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-link[aria-current="page"] { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: .8rem; }

.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(35,43,62,.22);
  border-radius: 999px; overflow: hidden;
  font-size: .64rem; letter-spacing: .12em; font-weight: 600;
}
.lang-switch button {
  padding: .42rem .72rem;
  color: inherit; opacity: .55;
  transition: background-color .3s var(--ease), opacity .3s var(--ease), color .3s var(--ease);
}
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: #fff; opacity: 1; }

.burger { display: none; width: 2.4rem; height: 2.4rem; position: relative; }
.burger span {
  position: absolute; left: .35rem; width: 1.7rem; height: 1.5px;
  background: var(--ink); transition: transform .4s var(--ease-out), opacity .3s var(--ease);
}
.burger span:nth-child(1) { top: .85rem; }
.burger span:nth-child(2) { top: 1.45rem; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(.3rem) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-.3rem) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 890;
  background: var(--ivory);
  padding: 7rem var(--gutter) 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateY(-100%);
  transition: transform .6s var(--ease-out);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid rgba(35,43,62,.1); }
.mobile-nav a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1rem 0;
  font-family: var(--display); font-size: 1.55rem; letter-spacing: -.01em;
}
.mobile-nav a .idx {
  font-family: var(--sans); font-size: .62rem; letter-spacing: .2em;
  color: var(--gold); transform: translateY(-.35rem);
}
.mobile-nav-foot { padding-top: 2rem; font-size: .74rem; color: var(--ink-faint); }

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
}

/* -------------------------------------------------------------------------
   9. HERO
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: end;
  overflow: hidden;
  color: var(--paper);
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: heroDrift 22s var(--ease) forwards;
}
@keyframes heroDrift { to { transform: scale(1); } }
/* Scrim: keeps the headline legible over any photograph or film frame
   without turning the page into a dark site. Tune the alphas, not the layout. */
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,25,36,.46) 0%, rgba(20,25,36,.10) 30%, rgba(20,25,36,.80) 100%),
    linear-gradient(90deg, rgba(20,25,36,.62) 0%, rgba(20,25,36,.30) 42%, transparent 72%);
}
.hero-inner { padding-block: clamp(4rem, 12vh, 9rem); position: relative; z-index: 1; }
.hero h1 {
  color: var(--paper);
  max-width: 15ch;
  font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.8rem);
  text-shadow: 0 2px 40px rgba(15,20,30,.35);
}
.hero h1 em { font-style: italic; font-weight: 300; color: var(--gold-light); }
.hero .lead { color: rgba(250,246,236,.86); max-width: 42ch; }
.hero .btn-row { margin-top: 2.2rem; }
.hero-tagline {
  font-family: var(--sans);
  font-size: .72rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.3rem;
}

/* Page hero (interior pages) — lighter, editorial */
.page-hero {
  position: relative;
  padding-top: clamp(8rem, 18vh, 12rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.page-hero.has-media { color: var(--paper); min-height: 58svh; display: grid; align-items: end; }
.page-hero.has-media .page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero.has-media .page-hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  /* portrait sources crop to a band; bias it upward so the subject survives */
  object-position: center 32%;
}
.page-hero.has-media .page-hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,25,36,.5), rgba(20,25,36,.14) 38%, rgba(20,25,36,.78)),
    linear-gradient(90deg, rgba(20,25,36,.5), rgba(20,25,36,.18) 48%, transparent 76%);
}
.page-hero.has-media h1 { color: var(--paper); }
.page-hero.has-media .lead { color: rgba(250,246,236,.85); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { max-width: 46ch; }

/* Scroll cue — the serpent S descending */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.75rem;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font-size: .6rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(250,246,236,.7);
  z-index: 2;
}
.scroll-cue img { width: 1.6rem; opacity: .85; animation: cueFloat 2.8s var(--ease) infinite; }
@keyframes cueFloat {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50%      { transform: translateY(7px); opacity: 1; }
}

/* -------------------------------------------------------------------------
   10. MOTIFS — serpent S divider, bat rule, marquee
   ------------------------------------------------------------------------- */
.s-divider {
  display: flex; align-items: center; gap: 1.4rem;
  margin-block: clamp(2.5rem, 6vw, 4.5rem);
}
.s-divider::before, .s-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sand-deep), transparent);
}
.s-divider img { width: 2.1rem; opacity: .75; }

/* Bat rule — bats are on every label; the farms are bat-friendly */
.bat-rule {
  display: flex; align-items: center; justify-content: center; gap: 1.2rem;
  color: var(--ink-faint);
}
.bat-rule svg { width: 1.4rem; opacity: .5; }

.watermark-s {
  position: absolute; pointer-events: none; user-select: none;
  width: clamp(16rem, 40vw, 34rem);
  opacity: .035;
  z-index: 0;
}
.watermark-s.tr { top: -4rem; right: -6rem; }
.watermark-s.bl { bottom: -5rem; left: -7rem; transform: rotate(180deg); }
.section > .wrap { position: relative; z-index: 1; }

/* Running marquee of brand truths */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid rgba(35,43,62,.12);
  padding-block: 1.15rem;
  background: var(--paper-warm);
}
.marquee-track {
  display: inline-flex; gap: 3.5rem; align-items: center;
  animation: marquee 42s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 3.5rem;
}
.marquee span::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------------------
   11. FIGURES / MEDIA
   ------------------------------------------------------------------------- */
.figure { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.figure:hover img { transform: scale(1.035); }
.figure figcaption {
  margin-top: .9rem; font-size: .72rem; letter-spacing: .1em;
  color: var(--ink-faint); text-transform: uppercase;
}
.ratio-4-5  { aspect-ratio: 4/5; }
.ratio-3-4  { aspect-ratio: 3/4; }
.ratio-1-1  { aspect-ratio: 1/1; }
.ratio-16-9 { aspect-ratio: 16/9; }
.ratio-21-9 { aspect-ratio: 21/9; }
@media (max-width: 640px) { .ratio-21-9 { aspect-ratio: 4/3; } }

/* -------------------------------------------------------------------------
   12b. INTERACTIVE LABEL MAP
   The engraved illustration with hotspots. Dots are real <button>s; the copy
   lives in the DOM (hidden) so i18n translates it like everything else.
   ------------------------------------------------------------------------- */
.illu-map {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  text-align: left;
}
@media (max-width: 860px) { .illu-map { grid-template-columns: 1fr; } }

.illu-stage { position: relative; }
.illu-stage > img { width: 100%; height: auto; }

.illu-dot {
  position: absolute;
  width: 2.4rem; height: 2.4rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold);
}
.illu-dot::before {                       /* the ring */
  content: ''; position: absolute; inset: 0;
  border: 1px solid currentColor; border-radius: 50%;
  opacity: .55;
  transition: transform .45s var(--ease-out), opacity .3s var(--ease);
}
.illu-dot::after {                        /* the core */
  content: ''; width: .55rem; height: .55rem;
  border-radius: 50%; background: currentColor;
  transition: transform .35s var(--ease-out);
}
.illu-dot:hover::before { transform: scale(1.18); opacity: 1; }
.illu-dot:hover::after  { transform: scale(1.25); }
.illu-dot[aria-selected="true"] { color: var(--navy); }
.illu-dot[aria-selected="true"]::before {
  background: var(--gold); border-color: var(--gold);
  opacity: 1; transform: scale(1.1);
}
.illu-dot[aria-selected="true"]::after { background: var(--paper); transform: scale(1.15); }

/* a slow pulse invites the first click, then stops once anything is chosen */
.illu-stage:not(.is-touched) .illu-dot::before { animation: dotPulse 3.4s var(--ease) infinite; }
.illu-stage:not(.is-touched) .illu-dot:nth-of-type(2)::before { animation-delay: .5s; }
.illu-stage:not(.is-touched) .illu-dot:nth-of-type(3)::before { animation-delay: 1s; }
.illu-stage:not(.is-touched) .illu-dot:nth-of-type(4)::before { animation-delay: 1.5s; }
.illu-stage:not(.is-touched) .illu-dot:nth-of-type(5)::before { animation-delay: 2s; }
@keyframes dotPulse {
  0%, 70%, 100% { transform: scale(1); opacity: .55; }
  35%           { transform: scale(1.35); opacity: .15; }
}

.illu-panel {
  border-left: 2px solid var(--gold);
  padding-left: clamp(1.25rem, 3vw, 2rem);
  min-height: 11rem;
}
@media (max-width: 860px) {
  .illu-panel { border-left: 0; border-top: 2px solid var(--gold); padding: 1.5rem 0 0; }
}
.illu-panel .illu-index {
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: .6rem;
}
.illu-panel h3 { font-size: clamp(1.4rem, 1.2rem + .9vw, 2rem); margin-bottom: .6rem; }
.illu-panel p { color: var(--ink-soft); font-size: .98rem; }
.illu-info[hidden] { display: none; }
.illu-info { animation: illuIn .5s var(--ease-out); }
@keyframes illuIn { from { opacity: 0; transform: translateY(8px); } }

/* Stand-in for an expression whose packshot does not exist yet */
.soon-mark {
  width: min(18rem, 62%);
  margin: auto;
  opacity: .82;
  filter: drop-shadow(0 18px 30px rgba(184,137,59,.28));
  animation: soonFloat 7s var(--ease) infinite;
}
@keyframes soonFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.product-bottle .soon-mark { width: min(20rem, 60%); }

/* Video placeholder frame */
.video-frame {
  position: relative; aspect-ratio: 16/9;
  background: var(--navy); border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: center; text-align: center; color: var(--paper-warm);
}
.video-frame video, .video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-frame .video-note {
  position: relative; z-index: 2; padding: 2rem;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
}
.video-play {
  position: relative; z-index: 2;
  width: 5rem; height: 5rem; border-radius: 50%;
  border: 1px solid rgba(250,246,236,.55);
  display: grid; place-items: center;
  transition: transform .4s var(--ease-out), background-color .4s var(--ease);
}
.video-play:hover { transform: scale(1.08); background: rgba(250,246,236,.14); }

/* -------------------------------------------------------------------------
   12. PRODUCT CARDS & PORTFOLIO
   ------------------------------------------------------------------------- */
.product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper-warm);
  border: 1px solid rgba(35,43,62,.09);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s var(--ease);
}
/* Full-bleed photograph at the top of the card */
.pc-shot { aspect-ratio: 3/4; overflow: hidden; background: var(--sand); }
.pc-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.product-card:hover .pc-shot img { transform: scale(1.045); }
.pc-shot.is-soon {
  display: grid; place-items: center;
  background: linear-gradient(160deg, #F4EAD4, #E8D5AE 55%, #DCC49B);
}
.pc-shot.is-soon .soon-mark {
  width: 38%; height: auto; margin: 0;
  object-fit: contain;
  opacity: .9;
  filter: none;
}
.pc-body {
  display: flex; flex-direction: column; flex: 1;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.product-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease-out);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(35,43,62,.16); }
.product-card:hover::before { transform: scaleX(1); }
.product-card h3 { margin-bottom: .3rem; }
.product-card .pc-sub {
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem; font-weight: 600;
}
.product-card p { font-size: .95rem; color: var(--ink-soft); flex: 1; }
.product-card .link { margin-top: 1.4rem; }
.product-card.is-soon { background: var(--ivory); }
.product-card.is-soon .pc-media { opacity: .9; }

.badge-soon {
  position: absolute; top: 1.25rem; right: 1.25rem; z-index: 2;
  padding: .35rem .75rem; border-radius: 999px;
  background: var(--gold); color: #fff;
  font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
}

/* Product hero (individual expression pages) */
.product-hero {
  position: relative;
  padding-top: clamp(7.5rem, 16vh, 11rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.product-hero .split { align-items: center; }
.product-bottle {
  position: relative; display: grid; place-items: center;
  min-height: clamp(24rem, 52vh, 40rem);
}
.product-bottle img {
  max-height: clamp(24rem, 52vh, 40rem); width: auto;
  filter: drop-shadow(0 40px 60px rgba(35,43,62,.22));
}
.product-bottle::before {
  content: ''; position: absolute; z-index: -1;
  width: 72%; aspect-ratio: 1/1; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  opacity: .38;
}
.product-meta {
  display: flex; flex-wrap: wrap; gap: 1.75rem;
  padding-top: 1.75rem; margin-top: 1.75rem;
  border-top: 1px solid rgba(35,43,62,.14);
}
.product-meta div span {
  display: block; font-size: .62rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: .25rem;
}
.product-meta div strong { font-family: var(--display); font-size: 1.25rem; font-weight: 400; }

/* Tasting notes */
.tasting {
  display: grid; gap: 1px;
  background: rgba(35,43,62,.12);
  border: 1px solid rgba(35,43,62,.12);
  border-radius: var(--radius); overflow: hidden;
}
.tasting-item { background: var(--paper); padding: clamp(1.5rem, 3vw, 2.25rem); }
.tasting-item h4 {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .8rem;
}
.tasting-item h4::before {
  content: ''; width: 1.4rem; height: 1px; background: currentColor;
}
.tasting-item p { font-size: .98rem; color: var(--ink-soft); }
@media (min-width: 760px) { .tasting { grid-template-columns: repeat(3, 1fr); } }

/* Pairings */
.pairings { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.pairings li {
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem 0; border-bottom: 1px solid rgba(35,43,62,.1);
  font-size: .98rem;
}
/* The bullet is the label's bat, drawn as a mask so it inherits --accent */
.pairings li::before,
.bat-bullet {
  content: ''; flex: 0 0 auto;
  width: 1.3rem; height: .5rem;
  background: var(--accent); opacity: .85;
  -webkit-mask: var(--bat) center/contain no-repeat;
  mask: var(--bat) center/contain no-repeat;
}
:root {
  --bat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 24'%3E%3Cpath d='M32 4c-1.6 0-2.6 1.2-3.1 2.6-1.2-1.9-3-3.4-5.3-4.3-3.5-1.4-7.6-1-10.9.7.9 1.3 1.2 2.9.9 4.5C10.6 6.6 7.3 6.9 4.6 8.6 3 9.6 1.6 11 .6 12.7c2.5-.6 5-.3 7.2.9-1.3.7-2.4 1.7-3.2 3 3.6-1 7.2-.3 10.2 1.7 2.4 1.6 4.3 3.8 6.6 5.4 2.2 1.5 5.1 1.9 7.4.4 1.4-.9 2.3-2.4 3.2-3.8.9 1.4 1.8 2.9 3.2 3.8 2.3 1.5 5.2 1.1 7.4-.4 2.3-1.6 4.2-3.8 6.6-5.4 3-2 6.6-2.7 10.2-1.7-.8-1.3-1.9-2.3-3.2-3 2.2-1.2 4.7-1.5 7.2-.9-1-1.7-2.4-3.1-4-4.1-2.7-1.7-6-2-9-1.1-.3-1.6 0-3.2.9-4.5-3.3-1.7-7.4-2.1-10.9-.7-2.3.9-4.1 2.4-5.3 4.3C34.6 5.2 33.6 4 32 4z'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------------
   13. PROCESS TIMELINE
   ------------------------------------------------------------------------- */
.process-steps { counter-reset: step; display: grid; gap: 0; }
.process-step {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid rgba(35,43,62,.13);
  position: relative;
}
.process-step:last-child { border-bottom: 1px solid rgba(35,43,62,.13); }
.process-step .step-n {
  counter-increment: step;
  font-family: var(--display); font-size: 2rem; font-weight: 300;
  color: var(--gold); line-height: 1;
}
.process-step .step-n::before { content: '0' counter(step); }
.process-step h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); margin-bottom: .4rem; }
.process-step p { font-size: .98rem; color: var(--ink-soft); }
.process-step .step-data {
  margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .5rem;
}
.process-step .step-data em {
  font-style: normal; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .35rem .75rem; border: 1px solid rgba(35,43,62,.18); border-radius: 999px;
  color: var(--ink-soft);
}

/* Each step carries its own photograph on the right */
.process-step.has-shot { grid-template-columns: 4.5rem minmax(0,1fr) minmax(0, 20rem); }
.process-step .step-shot {
  aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius);
  background: var(--sand); align-self: start;
}
.process-step .step-shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.process-step:hover .step-shot img { transform: scale(1.05); }

@media (max-width: 980px) {
  .process-step.has-shot { grid-template-columns: 4.5rem minmax(0,1fr) minmax(0, 13rem); }
}
@media (max-width: 720px) {
  .process-step, .process-step.has-shot { grid-template-columns: 1fr; gap: 1rem; }
  .process-step .step-n { font-size: 1.4rem; }
  .process-step .step-shot { aspect-ratio: 16/9; order: 3; }
}

/* -------------------------------------------------------------------------
   13c. THE BLANCO SERIES — method configurator
   Five stages of choices; the profile panel recomputes on every change.
   ------------------------------------------------------------------------- */
.lab {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 940px) { .lab { grid-template-columns: 1fr; } }

.lab-stages { display: grid; gap: clamp(1.25rem, 2.5vw, 1.9rem); }

.lab-stage { border-top: 1px solid rgba(35,43,62,.14); padding-top: 1.1rem; }
.lab-stage > header {
  display: flex; align-items: baseline; gap: .75rem; margin-bottom: .9rem;
}
.lab-stage .stage-n {
  font-family: var(--sans); font-size: .62rem; font-weight: 700;
  letter-spacing: .2em; color: var(--gold);
}
.lab-stage h3 { font-size: 1.15rem; margin: 0; }

.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt {
  --opt-fg: var(--ink-soft);
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .6rem 1rem .6rem .75rem;
  border: 1px solid rgba(35,43,62,.2);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--opt-fg);
  transition: border-color .3s var(--ease), background-color .3s var(--ease),
              color .3s var(--ease), transform .3s var(--ease-out);
}
.opt:hover { transform: translateY(-1px); border-color: var(--gold); color: var(--ink); }
.opt svg { width: 1.5rem; height: 1.1rem; flex: 0 0 auto; opacity: .75; }
.opt[aria-pressed="true"] {
  background: var(--navy); border-color: var(--navy); color: var(--paper);
}
.opt[aria-pressed="true"] svg { opacity: 1; }

.opt-note {
  margin-top: .7rem; font-size: .84rem; line-height: 1.55; color: var(--ink-soft);
  min-height: 2.6em;
}
.opt-note b { font-weight: 600; color: var(--ink); }

/* Profile panel */
.profile {
  position: sticky; top: 6.5rem;
  background: var(--paper-warm);
  border: 1px solid rgba(35,43,62,.12);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
@media (max-width: 940px) { .profile { position: static; } }
.profile h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); margin-bottom: .2rem; }
.profile .profile-sub {
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 1.5rem;
}

.axis { margin-bottom: 1.1rem; }
.axis-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .74rem; letter-spacing: .1em; margin-bottom: .4rem;
}
.axis-head span:last-child { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.bar { height: 5px; background: rgba(35,43,62,.1); border-radius: 999px; overflow: hidden; }
.bar > i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--axis-c, var(--gold));
  transition: width .7s var(--ease-out);
}
.axis:nth-child(1) { --axis-c: #B8893B; }
.axis:nth-child(2) { --axis-c: #7A6A54; }
.axis:nth-child(3) { --axis-c: #6F8C7E; }
.axis:nth-child(4) { --axis-c: #B4653F; }

.profile-verdict {
  margin-top: 1.75rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(35,43,62,.12);
  font-size: .95rem; color: var(--ink-soft);
}
.profile-verdict[hidden] { display: none; }
.profile-time {
  margin-top: 1rem; font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint);
}

/* Pull quote — the thesis */
.pull-quote { position: relative; max-width: 40rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.pull-quote .pull-mark {
  position: absolute; left: -.12em; top: -.42em;
  font-family: var(--display); font-size: clamp(6rem, 14vw, 11rem);
  line-height: 1; color: var(--gold); opacity: .22; pointer-events: none;
}
.pull-quote blockquote {
  position: relative; margin: 0;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.35rem, 1rem + 1.9vw, 2.5rem);
  line-height: 1.28; letter-spacing: -.015em;
  text-wrap: balance;
}
.thesis-cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 62rem; margin-left: auto;
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid rgba(35,43,62,.16);
}
@media (max-width: 760px) { .thesis-cols { grid-template-columns: 1fr; } }

/* Method cards — hovering one swaps the photograph beside them */
.method {
  display: grid; grid-template-columns: 3.75rem 1fr; gap: 1.25rem;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(35,43,62,.12);
  width: 100%; text-align: left;
  transition: opacity .4s var(--ease);
}
.method:last-child { border-bottom: 1px solid rgba(35,43,62,.12); }
.method svg { width: 3rem; height: 2.4rem; color: var(--gold); transition: transform .45s var(--ease-out); }
.method h4 { margin-bottom: .3rem; }
.method p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.surface-navy .method, .surface-agave .method { border-color: rgba(250,246,236,.2); }
.surface-navy .method p, .surface-agave .method p { color: rgba(250,246,236,.72); }
.surface-navy .method svg, .surface-agave .method svg { color: var(--gold-light); }

button.method { background: none; border-left: 0; border-right: 0; cursor: pointer; }
.methods.is-armed .method[aria-selected="false"] { opacity: .48; }
.method[aria-selected="true"] svg { transform: scale(1.08); }
.method[aria-selected="true"] h4 { color: var(--gold); }
.surface-navy .method[aria-selected="true"] h4,
.surface-agave .method[aria-selected="true"] h4 { color: var(--gold-light); }

/* The viewer that the methods drive */
.method-viewer { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.method-viewer img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity .6s var(--ease), transform 1.2s var(--ease-out);
}
.method-viewer img[data-shown] { opacity: 1; transform: none; }
.method-viewer figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(transparent, rgba(20,25,36,.72));
  color: var(--paper);
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
}
@media (max-width: 900px) { .method-viewer { aspect-ratio: 16/10; } }

/* -------------------------------------------------------------------------
   13b. POINT ICONS  (What Sapiens is)
   ------------------------------------------------------------------------- */
.point-icon {
  width: 2.75rem; height: 2.75rem;
  color: var(--gold-light);
  margin-bottom: 1.1rem;
}
.surface-agave .point-icon, .surface-navy .point-icon { color: var(--gold-light); }
.point { max-width: 26rem; }

/* Official award medallions */
.medal-img {
  width: clamp(7.5rem, 14vw, 10.5rem);
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(120,90,30,.28));
  transition: transform .5s var(--ease-out);
}
.medal:hover .medal-img, .split:hover .medal-img { transform: rotate(-4deg) scale(1.04); }

/* Stat row */
.stats { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(4, 1fr); }
.stat { border-top: 1px solid rgba(35,43,62,.18); padding-top: 1.25rem; }
.surface-navy .stat, .surface-agave .stat { border-top-color: rgba(250,246,236,.28); }
.stat strong {
  display: block; font-family: var(--display); font-weight: 300;
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); line-height: 1; color: var(--gold);
  margin-bottom: .5rem;
}
.surface-navy .stat strong, .surface-agave .stat strong { color: var(--gold-light); }
.stat span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.surface-navy .stat span, .surface-agave .stat span { color: rgba(250,246,236,.7); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------------------------------------------------
   14. AWARDS
   ------------------------------------------------------------------------- */
.medal {
  display: grid; place-items: center; text-align: center; gap: 1rem;
}
.medal-disc {
  width: clamp(7.5rem, 15vw, 10.5rem); aspect-ratio: 1/1; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 32% 28%, #F0DCA8, #C9A459 46%, #A87F35 78%, #8E6A2B);
  color: var(--navy);
  box-shadow: 0 14px 34px rgba(168,127,53,.28), inset 0 0 0 4px rgba(255,255,255,.22);
  position: relative;
}
.medal-disc strong {
  font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 500; line-height: 1;
}
.medal-disc em {
  display: block; font-style: normal; font-size: .58rem;
  letter-spacing: .22em; text-transform: uppercase; margin-top: .2rem;
}
.medal h4 { margin-bottom: .2rem; }
.medal p { font-size: .82rem; color: var(--ink-soft); margin: 0; }

/* -------------------------------------------------------------------------
   15. FORMS
   ------------------------------------------------------------------------- */
.form { display: grid; gap: 1.4rem; }
.form-row { display: grid; gap: 1.4rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: .45rem; }
.field label {
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-soft);
}
.field label .req { color: var(--terracotta); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .95rem 1.1rem;
  background: var(--paper);
  border: 1px solid rgba(35,43,62,.2);
  border-radius: var(--radius);
  font-size: .98rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2355607A' stroke-width='1.4' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1rem center; padding-right: 2.6rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,137,59,.16);
}
.field input:invalid:not(:placeholder-shown) { border-color: var(--terracotta); }

.checkbox {
  display: flex; align-items: flex-start; gap: .8rem;
  font-size: .82rem; line-height: 1.6; color: var(--ink-soft);
}
.checkbox input { width: 1.05rem; height: 1.05rem; margin-top: .25rem; accent-color: var(--gold); flex: 0 0 auto; }
.checkbox a { text-decoration: underline; text-underline-offset: 3px; }

.form-status {
  padding: 1rem 1.25rem; border-radius: var(--radius);
  font-size: .9rem; display: none;
}
.form-status.is-ok    { display: block; background: rgba(111,140,126,.16); border: 1px solid var(--agave); }
.form-status.is-error { display: block; background: rgba(180,101,63,.12); border: 1px solid var(--terracotta); }

/* -------------------------------------------------------------------------
   16. CARDS / LISTS (press, markets, contact channels)
   ------------------------------------------------------------------------- */
.card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper-warm);
  border: 1px solid rgba(35,43,62,.1);
  border-radius: var(--radius);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.card h3 { font-size: 1.25rem; }
.card p { font-size: .95rem; color: var(--ink-soft); }
.card .card-icon { width: 2rem; color: var(--gold); margin-bottom: 1.1rem; }

.market-list { list-style: none; margin: 0; padding: 0; }
.market-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding: 1.1rem 0; border-bottom: 1px solid rgba(35,43,62,.11);
}
.market-list .m-name { font-family: var(--display); font-size: 1.2rem; }
.market-list .m-status {
  font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint); white-space: nowrap;
}
.market-list .m-status.is-live { color: var(--agave); }

.faq details {
  border-bottom: 1px solid rgba(35,43,62,.12);
  padding: 1.25rem 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  font-family: var(--display); font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .9rem; color: var(--ink-soft); font-size: .96rem; }

/* Downloads */
.download-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.download-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.1rem 0; border-bottom: 1px solid rgba(35,43,62,.12);
  transition: padding-left .35s var(--ease-out), color .3s var(--ease);
}
.download-list a:hover { padding-left: .5rem; color: var(--gold); }
.download-list .dl-meta { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }

/* -------------------------------------------------------------------------
   17. FOOTER
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy); color: rgba(250,246,236,.72);
  padding-block: clamp(3.5rem, 8vw, 6rem) 2rem;
  position: relative; overflow: hidden;
}
.site-footer a { color: rgba(250,246,236,.72); transition: color .3s var(--ease); }
.site-footer a:hover { color: var(--gold-light); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand img { width: 12rem; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 1.25rem; }
.footer-brand p { font-size: .88rem; max-width: 30ch; }
.footer-col h4 {
  font-family: var(--sans); font-size: .64rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-col li { font-size: .88rem; }
.footer-bottom {
  margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.75rem;
  border-top: 1px solid rgba(250,246,236,.16);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
  font-size: .74rem; color: rgba(250,246,236,.5);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.responsibly {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-light);
}
.social { display: flex; gap: 1rem; }
.social a { width: 2.3rem; height: 2.3rem; border: 1px solid rgba(250,246,236,.28); border-radius: 50%;
  display: grid; place-items: center; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.social a:hover { background: rgba(250,246,236,.12); border-color: rgba(250,246,236,.5); }
.social svg { width: 1rem; }

/* -------------------------------------------------------------------------
   18. MICROINTERACTIONS — scroll reveal
   ------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="right"] { transform: translateX(-28px); }
[data-reveal="scale"] { transform: scale(.97); }

/* Line-by-line display reveal for hero headlines */
.reveal-lines span { display: block; overflow: hidden; }
.reveal-lines span > i {
  display: block; font-style: inherit;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal-lines.is-in span > i { transform: none; }

/* Loading veil */
.veil {
  position: fixed; inset: 0; z-index: 950;
  background: var(--ivory);
  display: grid; place-items: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
.veil.is-gone { opacity: 0; visibility: hidden; }
.veil img { width: 3.5rem; animation: veilPulse 1.6s var(--ease) infinite; }
@keyframes veilPulse { 0%,100% { opacity: .35; transform: scale(.94);} 50% { opacity: 1; transform: scale(1);} }

/* Progress bar */
.read-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 950;
  background: var(--gold); width: 0;
  transition: width .1s linear;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .reveal-lines span > i { transform: none; }
}

/* -------------------------------------------------------------------------
   19. PRINT
   ------------------------------------------------------------------------- */
@media print {
  .site-header, .mobile-nav, .age-gate, .veil, .scroll-cue, .marquee, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
}

/* Hint above the method list */
.method-hint {
  margin-top: 1.75rem; margin-bottom: .25rem;
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint);
}
.method-hint.on-dark { color: rgba(250,246,236,.5); }
@media (hover: none) { .method-hint::after { content: ''; } }

/* -------------------------------------------------------------------------
   13d. APPELLATION MAP  (schematic — see README)
   ------------------------------------------------------------------------- */
.do-map { width: 100%; height: auto; overflow: visible; }
.do-country { fill: none; stroke: var(--ink); stroke-width: 1.6; opacity: .42; stroke-linejoin: round; }
.do-state   { fill: var(--agave); fill-opacity: .3; stroke: var(--agave-deep); stroke-width: 1.2; }
.do-state.is-jalisco { fill: var(--gold); fill-opacity: .42; stroke: var(--gold); stroke-width: 1.8; }
.do-zone {
  fill: var(--navy); fill-opacity: .82; stroke: var(--paper); stroke-width: 1.5;
}
.do-zone.is-altos { fill: var(--terracotta); }
.do-city { fill: var(--ink); }
.do-leader { stroke: var(--ink-faint); stroke-width: 1; stroke-dasharray: 3 3; fill: none; }
.do-label {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: .16em; fill: var(--gold); text-transform: uppercase;
}
.do-label.sm { font-size: 12px; font-weight: 500; letter-spacing: .1em;
  fill: var(--agave-deep); text-transform: none; }
.do-label.zone { font-size: 13px; fill: var(--ink); }
.do-label.city { font-size: 11px; font-weight: 400; letter-spacing: .06em;
  fill: var(--ink-faint); text-transform: none; }

.map-legend {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem;
  margin-top: 1.75rem; font-size: .78rem; color: var(--ink-soft);
}
.map-legend span { display: inline-flex; align-items: center; gap: .6rem; }
.map-legend i {
  width: .9rem; height: .9rem; border-radius: 3px; flex: 0 0 auto;
  background: var(--agave); opacity: .35; border: 1px solid var(--agave-deep);
}
.map-legend i.jal { background: var(--gold); opacity: .5; border-color: var(--gold); }
.map-legend i.val { background: var(--navy); opacity: 1; border: 0; border-radius: 50%; }
.map-legend i.alt { background: var(--terracotta); opacity: 1; border: 0; border-radius: 50%; }
.map-note { margin-top: 1rem; font-size: .74rem; color: var(--ink-faint); }

/* Route chains — the method sequence of each expression in the series */
.route-chain {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .45rem; margin: 1.1rem 0 1.25rem;
}
.route-chain svg { width: 2.3rem; height: 1.75rem; flex: 0 0 auto; color: var(--gold-light); }
.route-chain .arr { width: .85rem; height: .85rem; color: currentColor; opacity: .35; }
.route-chain .pair { display: inline-flex; align-items: center; gap: .1rem; }
.route-chain .pair::after {
  content: '+'; font-size: .7rem; opacity: .5; margin: 0 .05rem;
  order: 1; align-self: center;
}
.route-chain .pair svg:last-of-type { order: 2; }

/* Denser scrim for heroes whose photograph is bright or busy */
.page-hero.has-media.is-dense .page-hero-media::after {
  background:
    linear-gradient(180deg, rgba(18,23,33,.72), rgba(18,23,33,.34) 40%, rgba(18,23,33,.88)),
    linear-gradient(90deg, rgba(18,23,33,.68), rgba(18,23,33,.34) 55%, rgba(18,23,33,.1));
}
/* inside a card the chain must survive on one line */
.card .route-chain { gap: .3rem; }
.card .route-chain svg { width: 1.95rem; height: 1.5rem; }
.card .route-chain .arr { width: .7rem; height: .7rem; }

/* Blend options carry two icons */
.opt.is-blend svg:nth-of-type(2) { margin-left: -.35rem; }
.opt.is-blend { padding-left: .6rem; }

/* "Load Sapiens Blanco" bar above the configurator */
.preset-bar {
  display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.75rem);
  padding: 1rem clamp(1.1rem, 2.5vw, 1.75rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--paper-warm);
  border: 1px solid rgba(184,137,59,.35);
  border-radius: var(--radius);
}
.preset-bar > img { width: 2.6rem; height: auto; flex: 0 0 auto; }
.preset-bar > div { flex: 1; min-width: 0; }
.preset-bar .preset-kicker {
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin: 0 0 .2rem;
}
.preset-bar .preset-copy { font-size: .92rem; color: var(--ink-soft); margin: 0; max-width: 46ch; }
.preset-bar .btn { flex: 0 0 auto; }
@media (max-width: 680px) {
  .preset-bar { flex-wrap: wrap; }
  .preset-bar .btn { width: 100%; }
}

/* The panel note that appears with the preset */
.preset-note {
  margin-top: 1.5rem; padding: 1.25rem;
  background: rgba(184,137,59,.1);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius);
}
.preset-note[hidden] { display: none; }
.preset-note .preset-note-t {
  font-family: var(--display); font-size: 1.15rem; margin-bottom: .4rem;
}
.preset-note p { font-size: .9rem; color: var(--ink-soft); }
.preset-note .link { margin-top: .9rem; }
.lab.is-preset .opt[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); }
