/* ==========================================================================
   LATINCIGARS — LatinCigars Collection
   Premium cigars. Delivered to the world.
   ========================================================================== */

/* ---------- Fonts (self-hosted, relative paths) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/cormorant-garamond-latin-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../assets/fonts/jost-latin-200-normal.woff2') format('woff2');
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../assets/fonts/jost-latin-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../assets/fonts/jost-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../assets/fonts/jost-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --black:      #0a0a0a;
  --charcoal:   #1a1a1a;
  --graphite:   #2d2d2d;
  --ivory:      #f5f0e8;
  --gold:       #c9a84c;
  --gold-dim:   #8f7532;
  --ember:      #b85c1a;

  --ivory-70: rgba(245, 240, 232, .7);
  --ivory-50: rgba(245, 240, 232, .5);
  --ivory-35: rgba(245, 240, 232, .35);
  --gold-15:  rgba(201, 168, 76, .15);
  --gold-30:  rgba(201, 168, 76, .3);

  --serif: 'Cormorant Garamond', 'Didot', 'Bodoni MT', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', 'Futura', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(1.5rem, 5vw, 7rem);
  --stack:  clamp(6rem, 14vh, 11rem);
  --maxw: 1560px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}
body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(.95rem, .55vw + .82rem, 1.075rem);
  line-height: 1.75;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, dt { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* Keyboard focus — gold, always visible */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--gold); color: var(--black); }

/* ---------- Typography primitives ---------- */
.brandmark {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: .68rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.eyebrow::before {
  content: '';
  width: clamp(28px, 4vw, 62px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  flex: none;
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.4vw, 4.35rem);
  line-height: 1.08;
  letter-spacing: -.005em;
  color: var(--ivory);
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--gold); }
.lede {
  font-weight: 200;
  font-size: clamp(1.02rem, .8vw + .85rem, 1.32rem);
  line-height: 1.72;
  color: var(--ivory-70);
  max-width: 54ch;
}
.muted { color: var(--ivory-50); }
.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--gold-30), transparent 62%);
  margin: 0;
}

/* ---------- Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  position: relative;
  padding-block: var(--stack);
}
/* Clear the fixed header on anchor jumps that bypass the Lenis offset. */
[id] { scroll-margin-top: 5.5rem; }
.hero-track { scroll-margin-top: 0; }
.section--tint { background: var(--charcoal); }
.section--tint::before,
.section--tint::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 12vh;
  pointer-events: none;
}
.section--tint::before { top: 0;    background: linear-gradient(to bottom, var(--black), transparent); }
.section--tint::after  { bottom: 0; background: linear-gradient(to top,    var(--black), transparent); }

/* Cinematic grain + tobacco-leaf texture, fixed over everything */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  will-change: transform;
  animation: grainShift 7s steps(6) infinite;
}
@keyframes grainShift {
  0%   { transform: translate3d(0, 0, 0); }
  16%  { transform: translate3d(-3%, 2%, 0); }
  33%  { transform: translate3d(2%, -3%, 0); }
  50%  { transform: translate3d(-2%, -2%, 0); }
  66%  { transform: translate3d(3%, 1%, 0); }
  83%  { transform: translate3d(-1%, 3%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
body.perf-lite .grain { animation: none; opacity: .22; }

.leaf-wash {
  position: absolute;
  inset: 0;
  background-image: url('../assets/textures/leaf-texture.webp');
  background-size: cover;
  background-position: center;
  opacity: .12;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* ==========================================================================
   LOADER
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  gap: 2.6rem;
  background: var(--black);
  transition: opacity .9s var(--ease), visibility .9s;
}
.loader[data-done='true'] { opacity: 0; visibility: hidden; }
/* Without JS there is nothing to wait for — never trap the page behind it. */
.no-js .loader { display: none; }
.loader__brand {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.15rem, 3.4vw, 2rem);
  letter-spacing: .58em;
  text-indent: .29em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}
.loader__bar {
  width: min(260px, 54vw);
  height: 1px;
  background: var(--graphite);
  overflow: hidden;
  margin-inline: auto;
}
.loader__fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width .35s linear;
}
.loader__pct {
  font-size: .62rem;
  letter-spacing: .4em;
  color: var(--ivory-35);
  text-align: center;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem var(--gutter);
  transition: background .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav[data-solid='true'] {
  background: rgba(10, 10, 10, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--graphite);
}
.nav__brand {
  font-family: var(--serif);
  font-size: clamp(.85rem, 1.5vw, 1.02rem);
  font-weight: 400;
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 1.4vw, 1.1rem);
  flex: none;
}

/* Language switch — one control reading EN / ES, active side in gold */
.langswitch {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .62rem .85rem;
  background: transparent;
  border: 1px solid var(--graphite);
  color: var(--ivory-35);
  font-size: .66rem;
  font-weight: 400;
  letter-spacing: .16em;
  cursor: pointer;
  transition: border-color .4s var(--ease);
  white-space: nowrap;
}
.langswitch:hover, .langswitch:focus-visible { border-color: var(--gold-30); }
.langswitch__opt { transition: color .4s var(--ease); }
.langswitch__opt.is-on { color: var(--gold); }
.langswitch__sep { color: var(--graphite); }

/* Skip link — off screen until it takes focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: .9rem 1.4rem;
  background: var(--gold);
  color: var(--black);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.nav__links {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.4rem);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ivory-70);
}
.nav__links a { position: relative; padding-block: .3rem; transition: color .35s var(--ease); }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .4s var(--ease);
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--ivory); }
.nav__links a:hover::after, .nav__links a:focus-visible::after { width: 100%; }
@media (max-width: 900px) { .nav__links { display: none; } }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding: 1.02rem 2.05rem;
  border: 1px solid var(--gold-30);
  background: transparent;
  color: var(--gold);
  font-size: .69rem;
  font-weight: 400;
  letter-spacing: .27em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease);
  z-index: -1;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover, .btn:focus-visible { color: var(--black); border-color: var(--gold); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn__arrow { transition: transform .55s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--compact { padding: .68rem 1.15rem; font-size: .64rem; letter-spacing: .18em; }
@media (max-width: 560px) { .btn--compact { display: none; } }

.btn--solid { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn--solid::before { background: var(--ivory); }
.btn--solid:hover, .btn--solid:focus-visible { color: var(--black); }

/* ==========================================================================
   HERO — scroll-scrubbed video
   ========================================================================== */
.hero-track {
  position: relative;
  height: 520vh;           /* scroll runway for the full sequence */
}
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--black);
  display: grid;
  place-items: center;
  isolation: isolate;
}

/* Text sits UNDER the video. The video is blended with `lighten`, so the
   film's pure-black background lets the type read through, while the lit
   cigar, ember and smoke composite OVER it — real occlusion, one decode. */
/* Pinned to the stage edges — the parent is a centring grid, so without
   explicit insets this would sit at its static position and hang off-frame. */
.hero__copy {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  padding-inline: var(--gutter);
  text-align: center;
  pointer-events: none;
}
/* Sized so all eleven letters plus their tracking clear the viewport at
   every breakpoint — the stage clips, so overflow here reads as broken. */
.hero__brand {
  font-family: var(--serif);
  font-weight: 300;
  /* Leaves headroom for the 1.06 push-in: the stage clips, so the wordmark
     has to still fit the viewport at its largest. */
  font-size: clamp(1.6rem, 7vw, 8.1rem);
  line-height: .96;
  letter-spacing: .18em;
  /* Half the tracking: letter-spacing leaves a trailing gap after the last
     glyph, which throws centred text off by exactly half of it. */
  text-indent: .09em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.hero__collection {
  margin-top: clamp(1rem, 2.4vw, 1.9rem);
  font-family: var(--sans);
  /* 300 rather than 200: at this tracking a hairline weight disappears
     against the lit wrapper. */
  font-weight: 300;
  font-size: clamp(.72rem, 1.5vw, 1.02rem);
  letter-spacing: .52em;
  text-indent: .26em;
  text-transform: uppercase;
  color: var(--ivory);
}
.hero__tagline {
  margin-top: clamp(1.6rem, 4vw, 3rem);
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.02rem, 2.3vw, 1.9rem);
  letter-spacing: .04em;
  color: var(--ivory);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Sits INSIDE the blend group, so it darkens the film before `lighten`
   composites it over the type. That is what lets gold letters survive the
   gold band. GSAP lifts it away as the sequence takes over. */
.hero__filmscrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(125% 54% at 50% 50%,
    rgba(10, 10, 10, .74) 0%,
    rgba(10, 10, 10, .60) 36%,
    rgba(10, 10, 10, .20) 68%,
    rgba(10, 10, 10, 0) 88%);
}

/* Legibility floor: an exact repeat of the wordmark riding above the film.
   Where the frame is dark the base type already reads and this adds nothing
   visible; where the ember or the band would swallow it, this carries it. */
.hero__ghost {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  opacity: .92;
  pointer-events: none;
}
.hero__ghost .hero__brand,
.hero__ghost .hero__collection,
.hero__ghost .hero__tagline {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, .55),
    0 2px 26px rgba(0, 0, 0, .85),
    0 0 64px rgba(0, 0, 0, .7);
}
.hero__video,
.hero__still {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__still { position: absolute; inset: 0; transition: opacity .9s var(--ease); }

@supports (mix-blend-mode: lighten) {
  .hero__media { mix-blend-mode: lighten; }
}
/* Without blend support the base type would be buried. Lift it above the
   film and drop the ghost, which would otherwise print the words twice. */
@supports not (mix-blend-mode: lighten) {
  .hero__copy { z-index: 6; }
  .hero__ghost { display: none; }
  .hero__copy .hero__brand,
  .hero__copy .hero__collection,
  .hero__copy .hero__tagline { text-shadow: 0 2px 30px rgba(0, 0, 0, .9); }
}

/* Vignette + bottom fade into the next section */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(120% 78% at 50% 42%, transparent 42%, rgba(10,10,10,.55) 100%),
    linear-gradient(to bottom, rgba(10,10,10,.55) 0%, transparent 22%, transparent 72%, var(--black) 100%);
}

.hero__scrollcue {
  position: absolute;
  z-index: 5;
  bottom: clamp(1.6rem, 4vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: .85rem;
  font-size: .58rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--ivory-35);
  pointer-events: none;
}
.hero__scrollcue span { text-indent: .2em; }
.hero__scrollline {
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  transform-origin: top;
  animation: cueDrop 2.6s var(--ease) infinite;
}
@keyframes cueDrop {
  0%, 100% { transform: scaleY(.35); opacity: .35; }
  45%      { transform: scaleY(1);   opacity: 1; }
}

/* ==========================================================================
   SECTION 1 — Value proposition
   ========================================================================== */
.intro__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 940px) {
  .intro__grid { grid-template-columns: 1.15fr .85fr; }
}
.stats {
  display: grid;
  gap: 0;
  margin-top: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--graphite);
}
@media (min-width: 800px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  padding: clamp(1.9rem, 3.4vw, 2.9rem) 0;
  border-bottom: 1px solid var(--graphite);
  position: relative;
}
@media (min-width: 800px) {
  .stat { padding-inline: clamp(1.4rem, 2.6vw, 2.6rem); border-bottom: 0; }
  .stat:first-child { padding-left: 0; }
  .stat:last-child  { padding-right: 0; }
  .stat + .stat { border-left: 1px solid var(--graphite); }
}
.stat__num {
  font-family: var(--serif);
  /* Sized for a phrase now that the figures are written out in full. */
  font-size: clamp(1.5rem, 2.1vw, 1.95rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--gold);
  display: block;
  text-wrap: balance;
}
.stat__label {
  margin-top: .8rem;
  font-size: .82rem;
  font-weight: 200;
  line-height: 1.6;
  color: var(--ivory-70);
  max-width: 30ch;
}

/* ==========================================================================
   FIGURES  +  CIGAR COMPONENTS
   ========================================================================== */
.figure {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.figure--pano { aspect-ratio: 21 / 9; }
.figure__frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold-15);
  pointer-events: none;
  z-index: 2;
}

.components {
  display: grid;
  gap: 0;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  /* Borders sit on the cards rather than showing through a 1px grid gap:
     with five items an incomplete last row would otherwise render as a
     slab of bare graphite. */
  border-top: 1px solid var(--graphite);
  border-left: 1px solid var(--graphite);
}
@media (min-width: 640px)  { .components { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .components { grid-template-columns: repeat(5, 1fr); } }
.component {
  background: var(--black);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  border-right: 1px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
  transition: background .5s var(--ease);
}
.component:hover { background: var(--charcoal); }
.component__idx {
  font-family: var(--serif);
  font-size: .9rem;
  color: var(--gold-dim);
  letter-spacing: .2em;
}
.component__name {
  margin-top: .9rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ivory);
}
.component__desc {
  margin-top: .55rem;
  font-size: .84rem;
  font-weight: 200;
  color: var(--ivory-50);
  line-height: 1.65;
}

/* ==========================================================================
   SECTION 4 — Anatomy
   ========================================================================== */
.anatomy {
  position: relative;
  margin-top: clamp(3rem, 7vw, 5rem);
}
.anatomy__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--black);
  overflow: hidden;
}
.anatomy__stage img { width: 100%; height: 100%; object-fit: cover; }
.anatomy__pin {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
}
.anatomy__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(201, 168, 76, .16);
  margin-inline: auto;
}
.anatomy__stem {
  width: 1px;
  height: clamp(28px, 6vw, 62px);
  background: linear-gradient(to bottom, var(--gold), var(--gold-30));
  margin-inline: auto;
}
.anatomy__pin--up   .anatomy__stem { background: linear-gradient(to top, var(--gold), var(--gold-30)); }
.anatomy__label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(11.5rem, 22vw);
  text-align: center;
}
.anatomy__pin--up   .anatomy__label { bottom: calc(100% + .5rem); }
.anatomy__pin--down .anatomy__label { top: calc(100% + .5rem); }
.anatomy__term {
  font-size: .72rem;
  /* Less tracking: at .3em the words sprawled into their neighbours. */
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .95), 0 0 22px rgba(0, 0, 0, .8);
}
.anatomy__note {
  margin-top: .4rem;
  font-size: .78rem;
  font-weight: 300;
  line-height: 1.45;
  color: var(--ivory-70);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .95), 0 0 22px rgba(0, 0, 0, .8);
  /* Evens the two lines instead of stranding a single word underneath. */
  text-wrap: balance;
}
/* The five cards below name every part, so on phones the photo stands
   alone rather than carrying labels that would overlap at this width. */
.anatomy__pins { display: none; }
@media (min-width: 900px) { .anatomy__pins { display: block; } }


/* ==========================================================================
   BRANDS — auto-scrolling marquee
   Two rows drifting in opposite directions. Each row holds the same track
   twice, so translating it by exactly -50% loops seamlessly, on the GPU,
   with no JavaScript per frame.
   ========================================================================== */
.brandstrip {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  gap: clamp(.75rem, 1.6vw, 1.4rem);
  width: 100%;
  overflow: hidden;
  /* Items fade in and out at the edges instead of popping */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.brandstrip__row {
  display: flex;
  width: max-content;
  animation: brandmarquee 52s linear infinite;
  will-change: transform;
}
.brandstrip__row[data-dir='right'] {
  animation-direction: reverse;
  animation-duration: 66s;     /* different pace keeps the rows from syncing */
}
@keyframes brandmarquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Let people actually read it */
.brandstrip:hover .brandstrip__row,
.brandstrip:focus-within .brandstrip__row { animation-play-state: paused; }

.brandstrip__track { display: flex; flex: none; }

.brandstrip__item {
  flex: none;
  display: grid;
  place-items: center;
  padding-inline: clamp(1.3rem, 3.2vw, 3.2rem);
  height: clamp(4rem, 6.5vw, 5.6rem);
  border-left: 1px solid var(--graphite);
}

.brandstrip__word {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(.98rem, 1.45vw, 1.42rem);
  letter-spacing: .2em;
  text-indent: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ivory-50);
  transition: color .45s var(--ease);
}
.brandstrip__item:hover .brandstrip__word { color: var(--gold); }

/* Official logo files, once dropped into assets/brands/, get the same
   treatment: flattened to one tone, tinted to the house ivory, sized by
   height so any aspect ratio sits on the same optical baseline. */
.brandstrip__logo {
  height: clamp(1.4rem, 2.5vw, 2.2rem);
  width: auto;
  opacity: .5;
  filter: brightness(0) invert(1);
  transition: opacity .45s var(--ease);
}
.brandstrip__item:hover .brandstrip__logo { opacity: 1; }

/* No drift: show every brand at once, wrapped and centred. */
@media (prefers-reduced-motion: reduce) {
  .brandstrip {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .brandstrip__row { animation: none; width: 100%; }
  .brandstrip__row > .brandstrip__track[aria-hidden='true'] { display: none; }
  .brandstrip__track { flex-wrap: wrap; justify-content: center; width: 100%; }
}

/* ==========================================================================
   SPLIT LAYOUT — two even columns, used by the contact section
   ========================================================================== */
.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.form {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.2rem);
}
@media (min-width: 760px) { .form { grid-template-columns: repeat(2, 1fr); } }
.form__group { display: grid; gap: .7rem; }
.form__group--full { grid-column: 1 / -1; }
.form__label {
  font-size: .64rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ivory-50);
}
.form__label .req { color: var(--gold); }
.form__control {
  width: 100%;
  padding: .95rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--graphite);
  color: var(--ivory);
  font-weight: 300;
  transition: border-color .45s var(--ease);
  border-radius: 0;
}
.form__control::placeholder { color: rgba(245,240,232,.22); }
.form__control:hover { border-bottom-color: var(--gold-30); }
.form__control:focus { outline: none; border-bottom-color: var(--gold); }
.form__control:focus-visible { outline: none; }
select.form__control {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 9px) center, calc(100% - 4px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.6rem;
}
select.form__control option { background: var(--charcoal); color: var(--ivory); }
textarea.form__control { resize: vertical; min-height: 7rem; }
.form__control[aria-invalid='true'] { border-bottom-color: var(--ember); }
.form__error {
  font-size: .7rem;
  color: var(--ember);
  min-height: 1.1em;
  letter-spacing: .04em;
}
.form__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: .8rem;
}
.form__legal { font-size: .72rem; color: var(--ivory-35); max-width: 34ch; }

/* Direct contact details, for people who would rather not fill in a form */
.contactcard {
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
  border-top: 1px solid var(--graphite);
  max-width: 34rem;
}
.contactcard__row {
  display: grid;
  gap: .2rem 2rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--graphite);
}
@media (min-width: 520px) { .contactcard__row { grid-template-columns: 8.5rem 1fr; } }
.contactcard__k {
  font-size: .64rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.contactcard__v {
  color: var(--ivory);
  font-weight: 300;
  font-size: clamp(.98rem, .5vw + .86rem, 1.1rem);
  overflow-wrap: anywhere;
}
.contactcard__link { position: relative; transition: color .4s var(--ease); }
.contactcard__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.contactcard__link:hover,
.contactcard__link:focus-visible { color: var(--gold); }
.contactcard__link:hover::after,
.contactcard__link:focus-visible::after { transform: scaleX(1); }


/* Honeypot: reachable by bots, invisible and untabbable for people. */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__senderror {
  flex-basis: 100%;
  font-size: .8rem;
  color: var(--ember);
  min-height: 1.2em;
}
.form__senderror a { color: var(--gold); text-decoration: underline; }
.btn[aria-busy='true'] { opacity: .55; pointer-events: none; }

/* Confirmation overlay */
.confirm {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(10, 10, 10, .93);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  /* Closing: stay visible for the fade, then hide. Opening: become visible
     immediately — a focusable dialog must not wait on a transition. */
  transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.confirm[data-open='true'] {
  opacity: 1;
  visibility: visible;
  transition: opacity .6s var(--ease), visibility 0s linear 0s;
}
.confirm__card {
  max-width: 34rem;
  text-align: center;
  border: 1px solid var(--gold-30);
  background: var(--charcoal);
  padding: clamp(2.4rem, 6vw, 4rem);
  transform: translateY(18px);
  transition: transform .7s var(--ease);
}
.confirm[data-open='true'] .confirm__card { transform: translateY(0); }
.confirm__seal {
  width: 54px; height: 54px;
  margin: 0 auto 1.8rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
}
.confirm__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--ivory);
}
.confirm__text { margin-top: 1.1rem; color: var(--ivory-70); font-weight: 200; }
.confirm__close { margin-top: 2.2rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--graphite);
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
}
.footer__top {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 860px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: .32em;
  text-indent: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer__col h4 {
  font-size: .64rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ivory-50);
  font-weight: 400;
  margin-bottom: 1.1rem;
}
.footer__col li + li { margin-top: .6rem; }
.footer__col a, .footer__col span { color: var(--ivory-70); font-size: .9rem; font-weight: 200; transition: color .4s var(--ease); }
.footer__col a:hover, .footer__col a:focus-visible { color: var(--gold); }
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--graphite);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--ivory-35);
  letter-spacing: .1em;
}
/* The trading-status statement. Quieter than the health warning above it,
   but present on every page. */
.footer__note {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: .72rem;
  line-height: 1.6;
  color: var(--ivory-50);
  text-align: center;
  max-width: 76ch;
  margin-inline: auto;
}
.footer__warning {
  margin-top: 1.6rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--graphite);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ivory-50);
  text-align: center;
}

/* ==========================================================================
   SCROLL REVEALS  (GSAP adds .is-in; CSS is the no-JS safety net)
   ========================================================================== */
.reveal { opacity: 0; transform: translate3d(0, 26px, 0); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease), transform 1.15s var(--ease);
}
.no-js .reveal, .no-scroll-fx .reveal { opacity: 1; transform: none; }


/* ==========================================================================
   CATALOGUE PAGE
   ========================================================================== */
/* No hero on this page, so the first section has to clear the fixed header. */
body.is-subpage .subhead { padding-top: clamp(8rem, 16vh, 12rem); }


/* Multi-column keeps sixteen very uneven lists from leaving ragged holes. */
.catalogue { column-gap: clamp(2rem, 4vw, 4.5rem); }
@media (min-width: 680px)  { .catalogue { column-count: 2; } }
@media (min-width: 1080px) { .catalogue { column-count: 3; } }

.cat__brand {
  break-inside: avoid-column;
  -webkit-column-break-inside: avoid;
  /* Padding, not margin: a trailing margin escapes the multicol box and lets
     the next element ride up over the last column. */
  padding-top: 1.3rem;
  padding-bottom: clamp(2.4rem, 4vw, 3.4rem);
  border-top: 1px solid var(--graphite);
}
.cat__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.1;
  color: var(--ivory);
}
.cat__list { margin-top: 1.1rem; }
.cat__vitola {
  font-size: .93rem;
  font-weight: 200;
  line-height: 1.5;
  color: var(--ivory-70);
  padding: .3rem 0;
}

/* ==========================================================================
   TOUCH
   Small text links are fine to click with a mouse but are under the 24px
   WCAG target size with a thumb — pad them out where there is no hover.
   ========================================================================== */
@media (hover: none) {
  .footer__col a,
  .footer__col span { display: inline-block; padding-block: .5rem; }
  .contactcard__link { display: inline-block; padding-block: .5rem; }
  .contactcard__link::after { display: none; }
  .nav__brand { display: inline-block; padding-block: .45rem; }
  .nav__links a { padding-block: .7rem; }
}

/* Five-plus screens of runway is a lot of thumb on a phone. */
@media (max-width: 820px) {
  .hero-track { height: 420vh; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .12s !important;
    scroll-behavior: auto !important;
  }
  .hero-track { height: auto; }
  .hero-stage { position: relative; height: 100vh; height: 100svh; }
  .hero__scrollline { animation: none; }
  .grain { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Applied by JS when the user prefers reduced motion */
.rm .hero-track { height: auto; }
.rm .hero-stage { position: relative; }
.rm .hero__scrollcue { display: none; }
