/* =========================================================================
   THE GUNNERY — 2027
   Cinematic, scroll-driven design system layered on Bootstrap 5.
   ========================================================================= */

:root {
  --g-ink: #000;
  --g-ink-2: #0d0f10;
  --g-ink-3: #161a1c;
  --g-line-dark: rgba(255, 255, 255, .12);
  --g-paper: #f5f5f7;
  --g-white: #fff;
  --g-text: #1d1d1f;
  --g-text-inv: #f5f5f7;
  --g-muted: #6e6e73;
  --g-muted-inv: #a1a1a6;
  --g-red: #ef2436;
  --g-red-2: #ff4757;
  --g-gold: #f0a65a;
  --g-radius: 28px;
  --g-radius-sm: 18px;
  --g-nav-h: 60px;
  --g-ease: cubic-bezier(.22, .61, .36, 1);
  --g-ease-out: cubic-bezier(.16, 1, .3, 1);
  --g-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --bs-body-font-family: var(--g-font);
  --bs-link-color-rgb: 239, 36, 54;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--g-font);
  background: var(--g-ink);
  color: var(--g-text-inv);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -.011em;
  overflow-x: clip;
}
body.g-light { background: var(--g-paper); color: var(--g-text); }
img { max-width: 100%; }
a { text-decoration: none; }
::selection { background: var(--g-red); color: #fff; }

/* ---------- Type scale ---------------------------------------------------- */
.g-eyebrow {
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--g-red);
}
.g-display {
  font-size: clamp(3rem, 9vw, 8.5rem); font-weight: 700; line-height: .95; letter-spacing: -.045em;
}
.g-h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; }
.g-h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }
.g-h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 650; line-height: 1.15; letter-spacing: -.02em; }
.g-lead { font-size: clamp(1.1rem, 1.7vw, 1.5rem); line-height: 1.45; font-weight: 500; color: var(--g-muted-inv); letter-spacing: -.015em; }
.g-light .g-lead, .g-section-light .g-lead { color: var(--g-muted); }
.g-gradient-text {
  background: linear-gradient(100deg, #fff 0%, var(--g-grad-mid, #ffd9b0) 45%, var(--g-gold) 70%, var(--g-grad-end, var(--g-red-2)) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.g-muted { color: var(--g-muted-inv); }
.g-light .g-muted, .g-section-light .g-muted { color: var(--g-muted); }

/* ---------- Buttons ------------------------------------------------------- */
.g-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 980px; font-weight: 600; font-size: 1rem;
  border: 0; cursor: pointer; transition: transform .35s var(--g-ease-out), background .25s, color .25s, box-shadow .35s;
  white-space: nowrap;
}
.g-btn:hover { transform: translateY(-2px); }
.g-btn:active { transform: scale(.97); }
.g-btn-primary { background: var(--g-red); color: #fff; box-shadow: 0 10px 30px -10px rgba(239, 36, 54, .7); }
.g-btn-primary:hover { background: var(--g-red-2); color: #fff; box-shadow: 0 16px 40px -12px rgba(239, 36, 54, .85); }
.g-btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.g-btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.g-btn-dark { background: var(--g-text); color: #fff; }
.g-btn-dark:hover { background: #000; color: #fff; }
.g-link-arrow { color: var(--g-red); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.g-link-arrow i { transition: transform .3s var(--g-ease-out); font-size: .8em; }
.g-link-arrow:hover { color: var(--g-red-2); }
.g-link-arrow:hover i { transform: translateX(4px); }

/* ---------- Navigation (frosted glass) ------------------------------------ */
.g-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--g-nav-h);
  background: rgba(0, 0, 0, .55);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s;
}
.g-nav.is-scrolled { background: rgba(10, 10, 12, .78); border-bottom-color: var(--g-line-dark); }
.g-nav-inner { max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.g-nav-actions { justify-self: end; }
.g-nav-logo { display: flex; align-items: center; height: 100%; flex-shrink: 0; }
.g-nav-logo img { height: 38px; width: auto; display: block; transition: opacity .25s, transform .4s var(--g-ease-out); }
.g-nav-logo:hover img { opacity: .85; transform: scale(1.03); }
@media (max-width: 575.98px) { .g-nav-logo img { height: 32px; } }
.g-nav-links { display: flex; align-items: center; gap: 1.75rem; margin: 0 auto; list-style: none; padding: 0; height: 100%; }
.g-nav-links > li { height: 100%; display: flex; align-items: center; }
.g-nav-links a { color: rgba(255, 255, 255, .82); font-size: .8125rem; font-weight: 500; letter-spacing: 0; transition: color .2s; }
.g-nav-links a:hover, .g-nav-links a.active { color: #fff; }
.g-nav-actions { display: flex; gap: 1.1rem; align-items: center; }
.g-nav-actions a, .g-nav-actions button { color: rgba(255, 255, 255, .82); background: none; border: 0; padding: 0; font-size: .95rem; }
.g-nav-actions a:hover, .g-nav-actions button:hover { color: #fff; }
.g-nav-burger { display: none !important; }

/* mega menu */
.g-mega {
  position: fixed; left: 0; right: 0; top: var(--g-nav-h);
  background: rgba(14, 14, 16, .985);
  backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--g-line-dark);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--g-ease), transform .45s var(--g-ease-out), visibility 0s .35s;
}
.g-mega-trigger { display: inline-flex; align-items: center; gap: .35rem; }
.g-mega-trigger::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--g-ease-out); opacity: .7; }
.g-has-mega.is-open .g-mega-trigger { color: #fff; }
.g-has-mega.is-open .g-mega-trigger::after { transform: translateY(1px) rotate(-135deg); }
/* dropdowns open on click only (no hover) */
.g-has-mega.is-open .g-mega { opacity: 1; visibility: visible; transform: none; transition-delay: .08s, .08s, 0s; }
.g-mega-inner { max-width: 1040px; margin: 0 auto; padding: 2.5rem 22px 3rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2rem 2.5rem; }
.g-mega h6 { font-size: .75rem; color: var(--g-muted-inv); font-weight: 500; margin-bottom: .75rem; }
.g-mega-cat { font-size: 1.35rem !important; font-weight: 650; color: #fff !important; letter-spacing: -.02em !important; display: block; margin-bottom: .6rem; }
.g-mega-sub { display: block; font-size: .85rem !important; padding: .2rem 0; color: rgba(255, 255, 255, .7) !important; }
.g-mega-sub:hover { color: #fff !important; }

/* brands mega menu */
.g-brands-panel { max-width: 1040px; margin: 0 auto; padding: 2rem 22px 2.5rem; }
.g-brands-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.g-brands-head h6 { font-size: 1.35rem; font-weight: 650; color: #fff; letter-spacing: -.02em; }
.g-brands-total { font-size: .8rem; color: var(--g-muted-inv); }
.g-input-dark .g-input { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); min-width: 260px; }
.g-input-dark .g-input::placeholder { color: var(--g-muted-inv); }
.g-input-dark .g-input:focus { box-shadow: inset 0 0 0 2px var(--g-red); }
.g-input-dark i { color: var(--g-muted-inv); }
.g-brand-grid { columns: 4 190px; column-gap: 2.5rem; max-height: min(58vh, 520px); overflow-y: auto; overscroll-behavior: contain; padding-right: .5rem; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.g-brand-link { display: flex !important; justify-content: space-between; align-items: baseline; gap: .75rem; break-inside: avoid; padding: .32rem 0 !important; font-size: .9rem !important; color: rgba(255, 255, 255, .78) !important; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.g-brand-link small { color: var(--g-muted-inv); font-size: .72rem; font-variant-numeric: tabular-nums; }
.g-brand-link:hover { color: #fff !important; }
.g-brand-link:hover small { color: var(--g-red); }
.g-brand-link.is-hidden { display: none !important; }
.g-brand-none { color: var(--g-muted-inv); margin: 1rem 0 0; }

/* search overlay */
.g-search {
  position: fixed; inset: 0; z-index: 1100; background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 18vh;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
}
.g-search.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.g-search form { width: min(720px, 90vw); transform: translateY(16px) scale(.98); transition: transform .5s var(--g-ease-out); }
.g-search.is-open form { transform: none; }
.g-search input {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid rgba(255, 255, 255, .25);
  color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 600; letter-spacing: -.03em; padding: .5rem 0; outline: none;
}
.g-search input:focus { border-bottom-color: var(--g-red); }
.g-search-hint { color: var(--g-muted-inv); margin-top: 1rem; font-size: .9rem; }
.g-search-close { position: absolute; top: 18px; right: 22px; color: #fff; background: none; border: 0; font-size: 1.4rem; }

/* mobile drawer */
.g-drawer { display: none; }
@media (max-width: 991.98px) {
  .g-nav-links { display: none; }
  .g-nav-burger { display: inline-block !important; }
  .g-nav-inner { grid-template-columns: 1fr auto; }
  .g-nav-spacer { display: none; }
  .g-drawer {
    display: block; position: fixed; inset: var(--g-nav-h) 0 0 0; z-index: 999; background: rgba(0, 0, 0, .96);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow-y: auto; padding: 1.5rem 2rem 4rem;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .35s, transform .45s var(--g-ease-out), visibility 0s .35s;
  }
  .g-drawer.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .g-drawer a { display: block; color: #fff; font-size: 1.75rem; font-weight: 400; letter-spacing: -.03em; padding: .45rem 0; }
  .g-drawer-group summary { list-style: none; color: #fff; font-size: 1.75rem; font-weight: 400; letter-spacing: -.03em; padding: .45rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .g-drawer-group summary::-webkit-details-marker { display: none; }
  .g-drawer-group summary::after { content: "+"; font-weight: 300; color: var(--g-muted-inv); }
  .g-drawer-group[open] summary::after { content: "\2212"; }
  .g-drawer a.g-drawer-sub { font-size: 1rem; font-weight: 500; color: var(--g-muted-inv); padding: .2rem 0 .2rem 1rem; }
}

/* ---------- Sections ------------------------------------------------------ */
.g-section { padding: clamp(5rem, 12vw, 10rem) 0; position: relative; }
.g-section-tight { padding: clamp(3rem, 7vw, 6rem) 0; }
.g-section-light { background: var(--g-paper); color: var(--g-text); }
.g-section-white { background: #fff; color: var(--g-text); }
.g-container { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.g-container-wide { max-width: 1480px; margin: 0 auto; padding: 0 22px; }

/* ---------- Hero: pinned, scroll-scrubbed --------------------------------- */
.g-hero { height: 240vh; position: relative; background: #000; }
.g-hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.g-hero-media { position: absolute; inset: 0; will-change: transform; transform: scale(calc(1.18 - var(--p, 0) * .18)); transform-origin: 50% 40%; }
.g-hero-media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(calc(.85 - var(--p, 0) * .55)) saturate(1.05); }
.g-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 100%, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, .35) 100%);
}
.g-hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 22px; }
.g-hero-a {
  opacity: calc(1 - var(--p, 0) * 2.6);
  transform: translateY(calc(var(--p, 0) * -120px)) scale(calc(1 - var(--p, 0) * .12));
  filter: blur(calc(var(--p, 0) * 18px));
}
.g-hero-b {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 22px;
  opacity: clamp(0, calc((var(--p, 0) - .38) * 3.2), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--p, 0) - .38) * 3.2), 1)) * 60px));
  pointer-events: none;
}
.g-hero.is-b .g-hero-b { pointer-events: auto; }
.g-hero-a .g-eyebrow { color: #fff; opacity: .85; margin-bottom: 1.25rem; }
.g-hero-logo { display: block; margin: 0 auto clamp(.5rem, 2vh, 1.5rem); width: auto; height: auto; max-width: min(723px, 86vw); max-height: min(395px, 40vh); filter: drop-shadow(0 10px 40px rgba(0, 0, 0, .45)); }
.g-hero-a .g-display { font-size: clamp(2.8rem, min(8vw, 11vh), 8.5rem); }
.g-hero-a .g-eyebrow span { color: var(--g-red); }
.g-hero-scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7);
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .6rem;
  opacity: calc(1 - var(--p, 0) * 6);
}
.g-hero-scroll::after { content: ""; width: 1px; height: 46px; background: linear-gradient(#fff, transparent); animation: g-drip 2.2s var(--g-ease) infinite; transform-origin: top; }
@keyframes g-drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* crosshair reticle that tightens on scroll */
.g-reticle { position: absolute; left: 50%; top: 50%; width: min(70vmin, 640px); aspect-ratio: 1; transform: translate(-50%, -50%) scale(calc(1.6 - var(--p, 0) * .7)) rotate(calc(var(--p, 0) * 45deg)); opacity: calc(.08 + var(--p, 0) * .25); pointer-events: none; }
.g-reticle circle, .g-reticle line { stroke: #fff; stroke-width: .6; fill: none; vector-effect: non-scaling-stroke; }
.g-reticle .dot { fill: var(--g-red); stroke: none; }

/* ---------- Scrub text: words light up as you scroll ---------------------- */
.g-scrub { height: 220vh; position: relative; }
.g-scrub-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.g-scrub-text { font-size: clamp(2rem, 5.2vw, 4.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; max-width: 1100px; }
.g-scrub-text .w { color: rgba(255, 255, 255, .14); transition: color .25s linear; }
.g-scrub-text .w.on { color: #fff; }
.g-scrub-text .w.accent.on { color: var(--g-red); }


/* manifesto as a quote from Peter */
.g-quote-mark { display: block; font-size: clamp(5rem, 11vw, 9rem); line-height: .6; height: .45em; font-weight: 800; color: var(--g-red); margin-bottom: .25rem; font-family: Georgia, "Times New Roman", serif; }
.g-quote-by { display: flex; align-items: center; gap: 1rem; margin-top: clamp(1.75rem, 4vh, 2.75rem); opacity: 0; transform: translateY(16px); transition: opacity .9s var(--g-ease), transform 1.1s var(--g-ease-out); }
.g-scrub.is-done .g-quote-by { opacity: 1; transform: none; }
.g-quote-line { width: 48px; height: 2px; background: var(--g-red); flex-shrink: 0; }
.g-quote-by strong { display: block; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; color: #fff; }
.g-quote-role { display: block; font-size: .95rem; color: var(--g-muted-inv); margin-top: .15rem; }
.g-quote .g-scrub-stage { padding-top: var(--g-nav-h); }
.g-quote .g-scrub-text { font-size: clamp(1.7rem, min(4.2vw, 5.6vh), 4.2rem); line-height: 1.12; }
.g-quote .g-quote-mark { font-size: clamp(4rem, min(9vw, 12vh), 8rem); }
@media (prefers-reduced-motion: reduce) { .g-quote-by { opacity: 1; transform: none; } }

/* ---------- Stats --------------------------------------------------------- */
.g-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--g-line-dark); border-radius: var(--g-radius); overflow: hidden; }
.g-stat { background: var(--g-ink-2); padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.g-stat-num { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.g-stat-label { color: var(--g-muted-inv); margin-top: .75rem; font-weight: 500; }
@media (max-width: 767.98px) { .g-stats { grid-template-columns: 1fr; } }

/* ---------- Category bento ------------------------------------------------ */
.g-bento { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(300px, auto); gap: 16px; }
.g-tile {
  grid-column: span 4; position: relative; overflow: hidden; border-radius: var(--g-radius);
  background: var(--g-ink-3); color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.5rem, 2.6vw, 2.25rem); isolation: isolate; min-height: 320px;
  transition: transform .6s var(--g-ease-out);
}
.g-tile:nth-child(6n+1) { grid-column: span 8; grid-row: span 2; min-height: 560px; }
.g-tile-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.04); transition: transform 1.4s var(--g-ease-out), filter .6s; filter: brightness(.55) saturate(1.05); }
.g-tile:nth-child(6n+1) .g-tile-bg { background-image: url(/assets/images/discover/hunting.webp); }
.g-tile:nth-child(6n+2) .g-tile-bg { background-image: url(/assets/images/discover/long-range.webp); }
.g-tile:nth-child(6n+3) .g-tile-bg { background-image: url(/assets/images/discover/practical.webp); }
.g-tile:nth-child(6n+4) .g-tile-bg { background-image: url(/assets/images/gunnery-range-golden-hour.webp); }
.g-tile:nth-child(6n+5) .g-tile-bg { background-image: url(/assets/images/discover/new-shooting.webp); }
.g-tile:nth-child(6n+6) .g-tile-bg { background-image: url(/assets/images/gunnery-hero-hunting-range.webp); }
.g-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .85) 100%); }
.g-tile:hover .g-tile-bg { transform: scale(1.1); filter: brightness(.7) saturate(1.1); }
.g-tile-index { position: absolute; top: clamp(1.5rem, 2.6vw, 2.25rem); left: clamp(1.5rem, 2.6vw, 2.25rem); font-size: .8rem; letter-spacing: .14em; color: rgba(255, 255, 255, .7); font-weight: 600; }
.g-tile-count { position: absolute; top: clamp(1.25rem, 2.4vw, 2rem); right: clamp(1.25rem, 2.4vw, 2rem); background: rgba(255, 255, 255, .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 980px; padding: .35rem .8rem; font-size: .8rem; font-weight: 600; }
.g-tile h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.035em; margin: 0 0 .4rem; line-height: 1.02; }
.g-tile:nth-child(6n+1) h3 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.g-tile p { color: rgba(255, 255, 255, .78); margin: 0 0 1rem; max-width: 46ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-chips { display: flex; flex-wrap: wrap; gap: .4rem; max-height: 4.6rem; overflow: hidden; }
.g-chip { font-size: .78rem; font-weight: 500; padding: .35rem .75rem; border-radius: 980px; background: rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .25s; position: relative; z-index: 2; }
.g-chip:hover { background: var(--g-red); color: #fff; }
.g-tile-link { position: absolute; inset: 0; z-index: 1; }
.g-tile-go { position: absolute; right: clamp(1.5rem, 2.6vw, 2.25rem); bottom: clamp(1.5rem, 2.6vw, 2.25rem); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; transform: scale(.6); opacity: 0; transition: transform .5s var(--g-ease-out), opacity .3s; z-index: 2; pointer-events: none; }
.g-tile:hover .g-tile-go { transform: none; opacity: 1; }
@media (max-width: 991.98px) {
  .g-tile, .g-tile:nth-child(n) { grid-column: span 12; grid-row: auto; min-height: 340px; }
  .g-tile:nth-child(6n+1) { min-height: 440px; }
}


/* category tiles: full-picture product slideshow + optional own photo (/assets/images/categories/<slug>.webp) */
.g-tile { --tp: clamp(1.5rem, 2.6vw, 2.25rem); }
.g-tile-stage { position: relative; z-index: 0; flex: 0 0 0; height: 0; margin: 0; opacity: 0; transition: opacity .6s;
  border-radius: calc(var(--g-radius) - 10px); overflow: hidden; isolation: isolate;
  background: #fff; }
/* every product photo fills the panel; only the active one is visible */
.g-shot { position: absolute; inset: 0; width: 100%; height: 100%; padding: 3.6rem 9% 2.4rem; object-fit: contain;
  opacity: 0; transition: opacity 1.2s ease-in-out; will-change: opacity, transform; backface-visibility: hidden; }
.g-shot.is-active, .g-shot.is-leaving { animation: g-kenburns 7s linear forwards; }
.g-shot.is-active { opacity: 1; }
.g-shot.is-leaving { opacity: 0; animation-play-state: paused; }
@keyframes g-kenburns { from { transform: scale(1) translateZ(0); } to { transform: scale(1.045) translateZ(0); } }
.g-tile:nth-child(6n+1) .g-shot { padding: 4.5rem 12% 3rem; }
.g-tile.has-shots:not(.has-photo) { min-height: 460px; background: var(--g-ink-3); }
.g-tile.has-shots:not(.has-photo) .g-tile-stage { opacity: 1; flex: 1 1 auto; height: auto; min-height: 200px; margin: calc(12px - var(--tp)) calc(12px - var(--tp)) 1.4rem; }
.g-tile.has-shots:not(.has-photo):nth-child(6n+1) .g-tile-stage { min-height: 380px; }
.g-tile.has-photo .g-tile-stage { display: none; }
.g-tile.has-shots:not(.has-photo) .g-tile-bg, .g-tile.has-shots:not(.has-photo)::before { display: none; }
.g-tile.has-shots:not(.has-photo) .g-tile-count { background: rgba(17, 19, 21, .82); color: #fff; }
@media (max-width: 991.98px) {
  .g-tile.has-shots:not(.has-photo), .g-tile.has-shots:not(.has-photo):nth-child(6n+1) { min-height: 500px; }
}
.g-tile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; filter: brightness(.6) saturate(1.05); transition: opacity .6s, transform 1.4s var(--g-ease-out); }
.g-tile.has-photo .g-tile-photo { opacity: 1; }
.g-tile.has-photo:hover .g-tile-photo { transform: scale(1.08); }
.g-tile.has-photo .g-tile-bg { display: none; }
@media (max-width: 991.98px) {
  .g-tile.has-shots:not(.has-photo), .g-tile.has-shots:not(.has-photo):nth-child(6n+1) { min-height: 480px; }
  .g-tile-stage, .g-tile:nth-child(6n+1) .g-tile-stage { --st: 12%; --sh: 40%; }
}

/* ---------- Sticky story (pinned media, scrolling chapters) --------------- */
.g-story { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 6rem); }
.g-story-media { position: sticky; top: calc(var(--g-nav-h) + 6vh); height: calc(100vh - var(--g-nav-h) - 12vh); border-radius: var(--g-radius); overflow: hidden; background: #111; }
.g-story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1s var(--g-ease), transform 1.6s var(--g-ease-out); }
.g-story-media img.is-active { opacity: 1; transform: scale(1); }
.g-story-progress { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; gap: 6px; z-index: 2; }
.g-story-progress span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.g-story-progress span::after { content: ""; display: block; height: 100%; width: 0; background: #fff; transition: width .8s var(--g-ease-out); }
.g-story-progress span.is-done::after { width: 100%; }
.g-chapter { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .6s var(--g-ease); }
.g-chapter.is-active { opacity: 1; }
.g-chapter .g-num { font-size: .85rem; font-weight: 600; letter-spacing: .14em; color: var(--g-gold); margin-bottom: 1rem; }
.g-chapter h3 { font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.03; margin-bottom: 1.25rem; }
.g-chapter p { font-size: 1.2rem; line-height: 1.55; color: var(--g-muted-inv); max-width: 34ch; }
.g-chapter-img { display: none; }
@media (max-width: 991.98px) {
  .g-story { grid-template-columns: 1fr; }
  .g-story-media { display: none; }
  .g-chapter { min-height: auto; opacity: 1; padding: 2rem 0; }
  .g-chapter-img { display: block; border-radius: var(--g-radius-sm); aspect-ratio: 16/10; object-fit: cover; width: 100%; margin-bottom: 1.5rem; }
}

/* ---------- Product rail (horizontal snap) -------------------------------- */
.g-rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.g-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 22%); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: max(22px, calc((100vw - 1200px) / 2 + 22px));
  padding: 1rem max(22px, calc((100vw - 1200px) / 2 + 22px)) 2.5rem; scrollbar-width: none;
}
.g-rail::-webkit-scrollbar { display: none; }
.g-rail > * { scroll-snap-align: start; }
.g-rail-btns { display: flex; gap: .6rem; }
.g-round-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .08); color: var(--g-text); display: grid; place-items: center; transition: background .25s, transform .3s var(--g-ease-out); }
.g-round-btn:hover { background: rgba(0, 0, 0, .16); transform: scale(1.06); }
@media (max-width: 767.98px) { .g-rail { grid-auto-columns: 78%; } }

/* ---------- Product cards (Apple-store style) ----------------------------- */
.g-card {
  background: #fff; border-radius: var(--g-radius-sm); overflow: hidden; color: var(--g-text);
  display: flex; flex-direction: column; height: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
  transition: transform .6s var(--g-ease-out), box-shadow .6s var(--g-ease-out);
}
.g-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .22); color: var(--g-text); }
.g-card-media { aspect-ratio: 4/3; background: linear-gradient(180deg, #fafafa, #f0f0f2); display: grid; place-items: center; padding: 1.5rem; position: relative; overflow: hidden; }
.g-card-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .9s var(--g-ease-out); }
.g-card:hover .g-card-media img { transform: scale(1.06); }
.g-card-body { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.g-card-brand { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--g-red); }
.g-card-title { font-size: 1.05rem; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-card-meta { font-size: .85rem; color: var(--g-muted); }
.g-card-foot { margin-top: auto; padding-top: .9rem; display: flex; justify-content: flex-start; align-items: center; gap: .5rem; }
.g-card-cta { font-size: .85rem; font-weight: 600; color: var(--g-red); }
.g-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: .35rem; flex-wrap: wrap; }
.g-badge { font-size: .68rem; font-weight: 600; letter-spacing: .04em; padding: .3rem .6rem; border-radius: 980px; background: rgba(29, 29, 31, .86); color: #fff; backdrop-filter: blur(8px); }
.g-badge-red { background: var(--g-red); }
.g-badge-light { background: rgba(255, 255, 255, .9); color: var(--g-text); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.g-stock { font-size: .78rem; font-weight: 500; color: var(--g-muted); display: inline-flex; align-items: center; gap: .35rem; }
.g-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34c759; }

/* skeletons */
.g-skel { border-radius: var(--g-radius-sm); background: linear-gradient(90deg, #ececee 0%, #f6f6f8 40%, #ececee 80%); background-size: 200% 100%; animation: g-shimmer 1.4s infinite linear; min-height: 340px; }
@keyframes g-shimmer { to { background-position: -200% 0; } }

/* ---------- Brand marquee ------------------------------------------------- */
.g-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.g-marquee-track { display: flex; width: max-content; animation: g-marquee 60s linear infinite; }
.g-marquee:hover .g-marquee-track { animation-play-state: paused; }
.g-marquee-item { font-size: clamp(2rem, 4.5vw, 3.8rem); font-weight: 700; letter-spacing: -.04em; color: rgba(255, 255, 255, .22); padding: 0 2.2rem; white-space: nowrap; transition: color .3s; display: flex; align-items: center; gap: 2.2rem; }
.g-marquee-item::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--g-red); opacity: .8; }
.g-marquee-item:hover { color: #fff; }
@keyframes g-marquee { to { transform: translateX(-50%); } }

/* ---------- Full-bleed parallax CTA --------------------------------------- */
.g-cinema { position: relative; min-height: 110vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.g-cinema-bg { position: absolute; inset: -15% 0; z-index: -1; will-change: transform; }
.g-cinema-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5); }
.g-cinema::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #000 0%, transparent 25%, transparent 70%, #000 100%); }
.g-notice { border-radius: var(--g-radius-sm); background: rgba(255, 255, 255, .08); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); padding: 1.5rem 1.75rem; max-width: 640px; }
.g-notice i { color: var(--g-gold); }

/* ---------- Footer -------------------------------------------------------- */
.g-footer { background: var(--g-ink-2); color: var(--g-muted-inv); font-size: .85rem; padding: 4.5rem 0 2.5rem; border-top: 1px solid var(--g-line-dark); }
.g-footer h6 { color: #fff; font-size: .8rem; font-weight: 600; margin-bottom: 1rem; }
.g-footer a { color: var(--g-muted-inv); display: block; padding: .2rem 0; transition: color .2s; }
.g-footer a:hover { color: #fff; }
.g-footer-logo { height: 110px; width: auto; margin-bottom: 1.25rem; }
.g-footer-note { font-size: .72rem; line-height: 1.5; opacity: .7; margin-top: 1rem; }
.g-footer-base { margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--g-line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.g-footer-base img { height: 28px; width: auto; opacity: .75; display: inline-block; vertical-align: middle; }
.g-credit { display: inline-flex; align-items: center; gap: .75rem; }
.g-credit-badge { display: inline-flex; align-items: center; background: #f5f5f7; border-radius: 10px; padding: .35rem .7rem; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 4px 14px rgba(0,0,0,.35); }
.g-footer-base .g-credit-badge img { height: 40px; opacity: 1; }

/* ---------- Shop ---------------------------------------------------------- */
.g-shop-hero { padding: calc(var(--g-nav-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(2rem, 4vw, 3rem); background: var(--g-paper); color: var(--g-text); }
.g-crumbs { font-size: .85rem; color: var(--g-muted); display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.g-crumbs a { color: var(--g-muted); }
.g-crumbs a:hover { color: var(--g-red); }
.g-filterbar {
  position: sticky; top: var(--g-nav-h); z-index: 50; background: rgba(245, 245, 247, .82);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06); padding: .85rem 0;
}
.g-filterbar .g-container { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.g-pills { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; flex: 1 1 400px; min-width: 0; padding: 2px; }
.g-pills::-webkit-scrollbar { display: none; }
.g-pill { white-space: nowrap; font-size: .85rem; font-weight: 500; padding: .5rem 1rem; border-radius: 980px; background: #fff; color: var(--g-text); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: background .2s, color .2s, box-shadow .2s; }
.g-pill:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); color: var(--g-text); }
.g-pill.active { background: var(--g-text); color: #fff; box-shadow: none; }
.g-select, .g-input {
  appearance: none; -webkit-appearance: none; border: 0; border-radius: 980px; background: #fff; color: var(--g-text);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); padding: .55rem 2.2rem .55rem 1rem; font-size: .85rem; font-weight: 500; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231d1d1f' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.g-input { background-image: none; padding: .55rem 1rem .55rem 2.3rem; min-width: 220px; }
.g-input-wrap { position: relative; }
.g-input-wrap i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--g-muted); font-size: .8rem; }
.g-select:focus, .g-input:focus { box-shadow: inset 0 0 0 2px var(--g-red); }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.g-shop-body { background: var(--g-paper); }
.g-results { padding: 2.5rem 0 6rem; background: var(--g-paper); color: var(--g-text); min-height: 60vh; }
.g-more { display: flex; justify-content: center; align-items: center; padding-top: 3rem; min-height: 80px; }
.g-more-trigger { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.g-loader { display: flex; gap: 8px; }
.g-loader span { width: 9px; height: 9px; border-radius: 50%; background: var(--g-text); animation: g-bounce 1s var(--g-ease) infinite; }
.g-loader span:nth-child(2) { animation-delay: .15s; background: var(--g-muted); }
.g-loader span:nth-child(3) { animation-delay: .3s; background: var(--g-red); }
@keyframes g-bounce { 0%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-10px); opacity: 1; } }
.g-empty { text-align: center; padding: 6rem 1rem; }
.g-empty i { font-size: 2.5rem; color: var(--g-red); margin-bottom: 1.25rem; }


/* shop: wrapping category/subcategory filters + sticky bar summary */
.g-filters { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.g-filter-set { display: flex; flex-wrap: wrap; gap: .55rem; }
.g-fchip { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1.1rem; border-radius: 980px; background: #fff; color: var(--g-text);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); font-size: .92rem; font-weight: 500; transition: box-shadow .2s, transform .3s var(--g-ease-out), background .2s, color .2s; }
.g-fchip small { font-size: .75rem; font-weight: 500; color: var(--g-muted); font-variant-numeric: tabular-nums; }
.g-fchip:hover { color: var(--g-text); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4); transform: translateY(-1px); }
.g-fchip.is-active { background: var(--g-text); color: #fff; box-shadow: none; }
.g-fchip.is-active small { color: rgba(255, 255, 255, .6); }
.g-filterbar .g-container { justify-content: space-between; }
.g-shop-body, .g-filterbar { color: var(--g-text); }
.g-active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; min-width: 0; }
.g-bar-title { font-size: 1.05rem; font-weight: 650; letter-spacing: -.02em; }
.g-bar-count { font-size: .85rem; color: var(--g-muted); }
.g-xchip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 980px; background: rgba(239, 36, 54, .1); color: var(--g-red); font-size: .82rem; font-weight: 600; }
.g-xchip i { font-size: .7rem; }
.g-xchip:hover { background: var(--g-red); color: #fff; }

/* ---------- Product detail ------------------------------------------------ */
.g-pdp { padding: calc(var(--g-nav-h) + 2.5rem) 0 5rem; background: #fff; color: var(--g-text); }
.g-pdp-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.g-pdp-stage { position: sticky; top: calc(var(--g-nav-h) + 1.5rem); }
.g-pdp-main { aspect-ratio: 1/1; border-radius: var(--g-radius); background: radial-gradient(80% 80% at 50% 40%, #fff 0%, #f2f2f4 100%); display: grid; place-items: center; padding: clamp(1.5rem, 5vw, 4rem); overflow: hidden; cursor: zoom-in; }
.g-pdp-main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .8s var(--g-ease-out); }
.g-pdp-main.is-zoom img { transform: scale(1.8); cursor: zoom-out; }
.g-thumbs { display: flex; gap: .6rem; margin-top: 1rem; overflow-x: auto; scrollbar-width: none; }
.g-thumb { flex: 0 0 76px; height: 76px; border-radius: 14px; background: #f5f5f7; padding: .4rem; border: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); transition: box-shadow .2s; }
.g-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.g-thumb.active { box-shadow: inset 0 0 0 2px var(--g-text); }
.g-pdp h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin: .5rem 0 1rem; }
.g-specs { border-top: 1px solid rgba(0, 0, 0, .1); margin-top: 2rem; }
.g-spec { display: flex; justify-content: space-between; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid rgba(0, 0, 0, .08); font-size: .95rem; }
.g-spec span:first-child { color: var(--g-muted); }
.g-spec span:last-child { font-weight: 500; text-align: right; }
.g-pricing-note { background: var(--g-paper); border-radius: var(--g-radius-sm); padding: 1.25rem 1.5rem; margin: 1.75rem 0; display: flex; gap: 1rem; align-items: center; }
.g-pricing-note i { color: var(--g-red); font-size: 1.25rem; }
.g-prose { font-size: 1.05rem; line-height: 1.7; color: #333; }
.g-prose img { height: auto; border-radius: 12px; }
.g-prose table { width: 100%; font-size: .95rem; }
.g-prose td, .g-prose th { padding: .5rem; border-bottom: 1px solid #eee; }
.g-pre { white-space: pre-line; }
.g-tabs { display: flex; gap: .5rem; margin-bottom: 2rem; }
.g-form .form-control { border-radius: 14px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); padding: .9rem 1.1rem; font-size: 1rem; }
.g-form .form-control:focus { box-shadow: inset 0 0 0 2px var(--g-red); }
.g-form label { font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.g-form .invalid-feedback { display: block; }
@media (max-width: 991.98px) {
  .g-pdp-grid { grid-template-columns: 1fr; }
  .g-pdp-stage { position: static; }
}


/* ---------- Ranges ------------------------------------------------------- */
.g-hero.g-hero-short { height: 170vh; }
.g-range-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g-range-card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--g-radius); min-height: clamp(380px, 52vh, 560px); padding: clamp(1.75rem, 3vw, 2.75rem); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.g-range-card:hover { color: #fff; }
.g-range-card-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; filter: brightness(.55); transform: scale(1.04); transition: transform 1.4s var(--g-ease-out), filter .6s; }
.g-range-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .85)); }
.g-range-card:hover .g-range-card-bg { transform: scale(1.1); filter: brightness(.7); }
.g-range-card h2, .g-range-card h3 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: .5rem 0 .6rem; }
.g-range-card p { color: rgba(255, 255, 255, .8); font-size: 1.1rem; margin-bottom: 1.25rem; max-width: 32ch; }
.g-range-tag { position: absolute; top: clamp(1.5rem, 2.6vw, 2.25rem); left: clamp(1.75rem, 3vw, 2.75rem); font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -.025em; line-height: 1; color: #fff; display: flex; align-items: center; gap: .6rem; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.g-range-tag::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--g-red); box-shadow: 0 0 0 .14em rgba(239, 36, 54, .3); flex-shrink: 0; }
.g-range-card .g-range-stat { position: absolute; top: clamp(1.25rem, 2.4vw, 2rem); right: clamp(1.5rem, 2.6vw, 2.25rem); font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.g-range-card .g-range-stat small { font-size: .4em; color: var(--g-gold); margin-left: .15em; letter-spacing: 0; }
@media (max-width: 767.98px) { .g-range-pick { grid-template-columns: 1fr; } }

.g-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.g-feature-flip .g-feature-media { order: 2; }
.g-feature-media { border-radius: var(--g-radius); overflow: hidden; aspect-ratio: 4/5; }
.g-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.g-ticks { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--g-line-dark); }
.g-ticks li { padding: 1rem 0 1rem 2rem; border-bottom: 1px solid var(--g-line-dark); position: relative; font-weight: 500; }
.g-ticks li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2px solid var(--g-red); box-shadow: inset 0 0 0 3px var(--g-ink), inset 0 0 0 7px var(--g-red); }
@media (max-width: 991.98px) { .g-feature { grid-template-columns: 1fr; } .g-feature-flip .g-feature-media { order: 0; } .g-feature-media { aspect-ratio: 16/11; } }

.g-range-card-wide { min-height: clamp(320px, 42vh, 460px); }
.g-range-title { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.025em; color: #fff; display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.g-range-title::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--g-red); box-shadow: 0 0 0 .14em rgba(239, 36, 54, .3); }
.g-crumbs-dark, .g-crumbs-dark a { color: rgba(255, 255, 255, .7); }
.g-crumbs-dark a:hover { color: #fff; }

/* packages */
.g-packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.g-pkg { position: relative; display: flex; flex-direction: column; border-radius: var(--g-radius); padding: clamp(1.75rem, 3vw, 2.5rem); background: var(--g-ink-3); box-shadow: inset 0 0 0 1px var(--g-line-dark); transition: transform .6s var(--g-ease-out), box-shadow .4s; }
.g-pkg:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.g-pkg-featured { background: linear-gradient(160deg, #2a1416 0%, var(--g-ink-3) 55%); box-shadow: inset 0 0 0 1px rgba(239, 36, 54, .55); }
.g-pkg-flag { position: absolute; top: -12px; left: clamp(1.75rem, 3vw, 2.5rem); background: var(--g-red); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 980px; }
.g-pkg-name { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 700; letter-spacing: -.03em; margin: .25rem 0 .6rem; }
.g-pkg-desc { color: var(--g-muted-inv); margin-bottom: 1.5rem; }
.g-pkg-list { list-style: none; padding: 0; margin: 0 0 2rem; border-top: 1px solid var(--g-line-dark); }
.g-pkg-list li { padding: .8rem 0 .8rem 1.75rem; border-bottom: 1px solid var(--g-line-dark); position: relative; font-size: .95rem; }
.g-pkg-list li::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; color: var(--g-red); font-size: .8rem; top: 1rem; }
.g-pkg-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.g-pkg-price { font-weight: 600; color: var(--g-gold); }
@media (max-width: 991.98px) { .g-packages { grid-template-columns: 1fr; gap: 28px; } }


.g-packages-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-packages-4 .g-pkg { padding: clamp(1.5rem, 2vw, 2rem); }
.g-packages-4 .g-pkg-name { font-size: clamp(1.45rem, 1.9vw, 1.75rem); min-height: 2.15em; display: flex; align-items: flex-end; }
.g-packages-4 .g-pkg-desc { min-height: 3em; }
@media (max-width: 1199.98px) { .g-packages-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .g-packages-4 { grid-template-columns: 1fr; } .g-packages-4 .g-pkg-name, .g-packages-4 .g-pkg-desc { min-height: 0; } }
.g-pkg-cost { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .75rem; }
.g-pkg-amt { font-size: clamp(2.2rem, 3vw, 2.8rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; background: linear-gradient(180deg, #fff 20%, var(--g-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-pkg-per { color: var(--g-muted-inv); font-size: .9rem; }
.g-pkg-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.g-pkg-meta span { font-size: .75rem; color: var(--g-muted-inv); background: rgba(255, 255, 255, .06); border-radius: 980px; padding: .3rem .65rem; }
.g-pkg-meta b { color: #fff; font-weight: 600; }
.g-cof { width: 100%; border-collapse: collapse; font-size: .85rem; margin-bottom: 1.25rem; font-variant-numeric: tabular-nums; }
.g-cof thead th { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--g-muted-inv); padding: 0 .4rem .5rem 0; text-align: left; border-bottom: 1px solid var(--g-line-dark); }
.g-cof tbody th, .g-cof td { padding: .6rem .4rem .6rem 0; border-bottom: 1px solid var(--g-line-dark); vertical-align: middle; }
.g-cof tbody th { font-weight: 600; color: #fff; white-space: nowrap; }
.g-cof td:nth-child(2) { color: #fff; width: 3.5em; }
.g-cof td:last-child { width: 40%; padding-right: 0; }
.g-cof-dist { display: block; color: var(--g-muted-inv); font-size: .78rem; white-space: nowrap; }
.g-cof-bar { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); margin-top: .3rem; overflow: hidden; }
.g-cof-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--g-gold), var(--g-red)); border-radius: 3px; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--g-ease-out) .25s; }
.is-in .g-cof-bar i, html:not(.g-js) .g-cof-bar i { transform: scaleX(1); }
.g-pkg-extras { margin-bottom: 1.5rem; border-top: 0; }
.g-pkg-extras li { font-size: .88rem; }
.g-pkg-extras li span { display: block; color: var(--g-muted-inv); font-size: .8rem; font-weight: 400; }
.g-pkg .g-pkg-foot { margin-top: auto; }
.g-pkg-hero { margin-top: 16px; overflow: hidden; isolation: isolate; padding: clamp(2rem, 4vw, 3.5rem); box-shadow: inset 0 0 0 1px rgba(240, 166, 90, .45); background: #0b0b0c; }
.g-pkg-hero:hover { transform: none; }
.g-pkg-hero-bg { position: absolute; inset: 0; z-index: -1; }
.g-pkg-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.g-pkg-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 11, 12, .97) 30%, rgba(11, 11, 12, .82) 60%, rgba(11, 11, 12, .9)); }
.g-pkg-hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.g-pkg-hero .g-pkg-flag { position: static; display: inline-block; margin-bottom: 1rem; background: linear-gradient(90deg, var(--g-gold), var(--g-red)); }
.g-pkg-name-xl { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.02; }
.g-pkg-hero .g-pkg-amt { font-size: clamp(3rem, 5vw, 4.2rem); }
.g-pkg-hero .g-cof { font-size: .95rem; }
.g-pkg-hero .g-pkg-extras { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
@media (max-width: 991.98px) { .g-pkg-hero-grid { grid-template-columns: 1fr; } .g-pkg-hero .g-pkg-extras { grid-template-columns: 1fr; } }

/* 1.8 km — number grows and the distance line draws as you scroll */
.g-distance { height: 260vh; position: relative; background: #000; }
.g-distance-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.g-distance-bg { position: absolute; inset: 0; }
.g-distance-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.25 - var(--p, 0) * .25)); filter: brightness(calc(.15 + var(--p, 0) * .3)) saturate(1.1); }
.g-distance-copy { position: relative; text-align: center; padding: 0 22px; }
.g-distance-num { font-size: clamp(7rem, 26vw, 24rem); font-weight: 800; letter-spacing: -.07em; line-height: .85; margin: 1rem 0 1.5rem;
  transform: scale(calc(.45 + min(var(--p, 0) * 1.6, 1) * .55)); transform-origin: 50% 60%;
  background: linear-gradient(180deg, #fff 30%, var(--g-gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-distance-num span { font-size: .28em; letter-spacing: -.02em; margin-left: .08em; }
.g-distance-sub { font-size: clamp(1.3rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -.02em; opacity: clamp(0, calc((var(--p, 0) - .3) * 3), 1); transform: translateY(calc((1 - clamp(0, calc((var(--p, 0) - .3) * 3), 1)) * 30px)); }
.g-distance-line { position: absolute; left: 8vw; right: 8vw; bottom: 10vh; height: 2px; background: rgba(255, 255, 255, .15); }
.g-distance-line span { position: absolute; left: 0; top: 0; bottom: 0; width: calc(min(var(--p, 0) * 1.4, 1) * 100%); background: linear-gradient(90deg, var(--g-gold), var(--g-red)); }
.g-distance-line span::after { content: ""; position: absolute; right: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--g-red); box-shadow: 0 0 20px var(--g-red); }
.g-distance-line em { position: absolute; top: 14px; font-style: normal; font-size: .75rem; letter-spacing: .14em; color: var(--g-muted-inv); }
.g-distance-line em:last-of-type { right: 0; }
@media (prefers-reduced-motion: reduce) { .g-distance { height: auto; } .g-distance-stage { position: relative; } .g-distance-num { transform: none; } .g-distance-sub { opacity: 1; transform: none; } .g-distance-line span { width: 100%; } }


/* projectile flying along the 1.8 km line */
.g-distance-line { --g-run: min(var(--p, 0) * 1.4, 1); }
.g-distance-line .g-distance-fill { width: calc(62px + (100% - 62px) * var(--g-run)); }
.g-distance-line .g-distance-fill::after { display: none; }
.g-bullet { position: absolute; bottom: 7px; left: calc(62px + (100% - 62px) * var(--g-run)); transform: translateX(-100%); display: flex; flex-direction: column; align-items: flex-end; will-change: left; }
.g-bullet svg { display: block; filter: drop-shadow(0 0 6px rgba(255, 170, 90, .55)); }
.g-bullet::before { content: ""; position: absolute; right: 54px; bottom: 7px; width: min(220px, 30vw); height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255, 196, 140, .15) 40%, rgba(255, 214, 170, .85)); opacity: calc(var(--g-run) * 8); }
.g-bullet::after { content: ""; position: absolute; right: 54px; bottom: 4px; width: min(120px, 16vw); height: 8px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 170, 90, .25), transparent); filter: blur(2px); opacity: calc(var(--g-run) * 8); }
.g-distance-readout { font-size: .8rem; font-weight: 600; letter-spacing: .08em; color: var(--g-gold); margin-bottom: .45rem; margin-right: -6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-tick { position: absolute; top: -4px; width: 1px; height: 10px; background: rgba(255, 255, 255, .28); }
.g-tick-label { position: absolute; top: 14px; transform: translateX(-50%); font-size: .7rem; letter-spacing: .12em; color: rgba(255, 255, 255, .35); }
.g-target { position: absolute; right: -9px; top: -8px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 7px rgba(255, 255, 255, .45); }
.g-distance-line.is-hit .g-target { border-color: var(--g-red); box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 7px var(--g-red), 0 0 24px var(--g-red); animation: g-hit .9s var(--g-ease-out); }
.g-distance-line.is-hit .g-bullet { opacity: 0; transition: opacity .2s; }
.g-distance-line.is-hit .g-distance-readout { opacity: 0; }
@keyframes g-hit { 0% { transform: scale(1); } 30% { transform: scale(1.9); } 100% { transform: scale(1); } }
@media (max-width: 575.98px) { .g-tick-label { display: none; } }


/* product page: back link + floating close (returns to the exact spot in the previous list) */
.g-backbar { margin-bottom: .75rem; }
.g-back { display: inline-flex; align-items: center; gap: .55rem; font-size: .95rem; font-weight: 600; color: var(--g-text); padding: .45rem .9rem .45rem .7rem; margin-left: -.7rem; border-radius: 980px; transition: background .2s; }
.g-back:hover { background: var(--g-paper); color: var(--g-text); }
.g-back i { transition: transform .3s var(--g-ease-out); }
.g-back:hover i { transform: translateX(-3px); }
.g-close { position: fixed; top: calc(var(--g-nav-h) + 16px); right: 22px; z-index: 900; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(29, 29, 31, .78); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .4); transition: transform .35s var(--g-ease-out), background .2s; }
.g-close:hover { background: var(--g-red); color: #fff; transform: rotate(90deg); }
@media (max-width: 575.98px) { .g-close { top: calc(var(--g-nav-h) + 10px); right: 12px; width: 40px; height: 40px; } }


/* clothing size options */
.g-sizes { margin: 1.5rem 0 .5rem; }
.g-sizes-head { font-size: .9rem; color: var(--g-muted); margin-bottom: .65rem; }
.g-sizes-head strong { color: var(--g-text); margin-left: .25rem; }
.g-size-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.g-size { min-width: 3.2rem; padding: .7rem .9rem; border-radius: 14px; text-align: center; font-weight: 600; font-size: .95rem; color: var(--g-text);
  background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); transition: box-shadow .2s, background .2s, color .2s, transform .25s var(--g-ease-out); }
.g-size:hover { color: var(--g-text); box-shadow: inset 0 0 0 1.5px var(--g-text); transform: translateY(-1px); }
.g-size.is-active { background: var(--g-text); color: #fff; box-shadow: none; cursor: default; transform: none; }
.g-card-sizes { font-size: .8rem; font-weight: 600; color: var(--g-muted); letter-spacing: .02em; }


/* ---------- Rotating looks (one per visit; chosen in layouts/main.ejs) ---------- */
html[data-look="golden"]      { --g-gold: #f0a65a; --g-grad-mid: #ffd9b0; --g-grad-end: #ff4757; }
html[data-look="longrange"]   { --g-gold: #e9b44c; --g-grad-mid: #fff0c2; --g-grad-end: #e8743b; }
html[data-look="firstlight"]  { --g-gold: #e0874a; --g-grad-mid: #ffd2b8; --g-grad-end: #ef2436; }
html[data-look="competition"] { --g-gold: #8ab8de; --g-grad-mid: #dbeaf7; --g-grad-end: #ef2436; }
html[data-look="range"]       { --g-gold: #d9b26f; --g-grad-mid: #f6e7c8; --g-grad-end: #c8663b; }
html[data-look="competition"] .g-hero-media img { filter: brightness(calc(.8 - var(--p, 0) * .5)) saturate(.85) contrast(1.05); }
html[data-look="competition"] .g-reticle .dot { fill: #8ab8de; }

/* ---------- Reveal-on-scroll --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--g-ease), transform 1.3s var(--g-ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity 1.1s var(--g-ease), transform 1.4s var(--g-ease-out); transition-delay: var(--d, 0s); }
.reveal-scale.is-in { opacity: 1; transform: none; }
html:not(.g-js) .reveal, html:not(.g-js) .reveal-scale { opacity: 1; transform: none; }

[v-cloak], .g-cloak { visibility: hidden; }
.dmx-loaded .g-cloak, html.g-ready .g-cloak { visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-scale { opacity: 1; transform: none; }
  .g-hero { height: 100vh; }
  .g-scrub { height: auto; }
  .g-scrub-stage { position: static; height: auto; padding: 8rem 0; }
  .g-scrub-text .w { color: #fff; }
}
