/* COLD-AF Production Stylesheet — Modern Web Platform Baseline & Zero External Compilers */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;
  accent-color: var(--brand-yellow);
  --brand-yellow: #e1b309;
  --brand-yellow-bright: #f5c71a;
  --brand-black: #000000;
  --brand-surface: #121212;
  --brand-charcoal: #222222;
  --brand-border: #2e2e2e;
  --text-white: #ffffff;
  --text-muted: #d1d5db;
  --text-dim: #9ca3af;
  --status-error: #ff6b6b;
  --status-error-bg: #261010;
  --status-valid: #4ade80;
  --scrollbar-thumb: #a1a8b3;
  --scrollbar-track: #121212;
  --font-heading: "Figtree", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Cross-Document View Transitions & Smooth Anchor Scrolling (Reduced-Motion Safe) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  html {
    scroll-behavior: smooth;
  }
}

/* Note: Root font-size is intentionally NOT set on :root or html so <meta name="text-scale" content="scale">
   and user browser font-size preferences scale 1rem natively. */
html {
  background-color: var(--brand-black);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.5;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: auto;
  -webkit-font-smoothing: antialiased;
}

@supports not (scrollbar-color: auto) {
  html::-webkit-scrollbar,
  .spec-table-wrap::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }

  html::-webkit-scrollbar-thumb,
  .spec-table-wrap::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
  }

  html::-webkit-scrollbar-track,
  .spec-table-wrap::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }
}

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

body {
  background-color: var(--brand-black);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size-adjust: from-font;
  line-height: 1.5;
  text-align: start;
  overflow-wrap: break-word;
  overflow-x: clip;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
}

/* Accessible Visually Hidden & Skip Link Utilities */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 200;
  background-color: var(--brand-yellow);
  color: var(--brand-black);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  padding: 0.65rem 1.15rem;
  border: 2px solid var(--brand-black);
}

/* High-Contrast Keyboard Focus Indicators (>= 3:1 Non-Text Contrast) */
:where(a:any-link, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid var(--brand-yellow-bright);
  outline-offset: 3px;
}

.announcement-bar a:focus-visible,
.bg-yellow :where(a:any-link, button):focus-visible {
  outline-color: var(--brand-black);
}

/* Typography & Modern Line Wrapping */
h1, h2, h3, h4, th {
  text-wrap: balance;
}

p, li, blockquote {
  text-wrap: pretty;
}

.font-heading {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size-adjust: cap-height from-font;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.font-mono {
  font-family: var(--font-mono);
}

.gritty-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Below-the-Fold Rendering Deferral (Paired with Intrinsic Placeholder Size) */
.deferred-section {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 560px;
}

/* Layout Containers */
.container-xl {
  max-inline-size: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container-lg {
  max-inline-size: 60rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container-md {
  max-inline-size: 48rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--brand-yellow);
  color: var(--brand-black);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.45rem 1rem;
  position: relative;
  z-index: 60;
}

.announcement-bar a:hover {
  text-decoration: underline;
}

/* Sticky Navigation */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--brand-border);
}

.nav-inner {
  max-inline-size: 80rem;
  margin-inline: auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.brand-logo-img {
  block-size: 2.35rem;
  inline-size: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .brand-logo-link:hover .brand-logo-img {
    transform: scale(1.04);
  }
}

.nav-links {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-block-end: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: var(--brand-yellow);
}

/* Non-color cue (underline border + weight + color) for current page */
.nav-link[aria-current="page"],
.nav-link.active {
  color: var(--brand-yellow);
  border-block-end-color: var(--brand-yellow);
  font-weight: 800;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 2.75rem;
  min-block-size: 2.75rem;
  background: transparent;
  border: 1px solid var(--brand-border);
  color: var(--text-white);
  padding: 0.45rem 0.65rem;
  font-size: 1.15rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.mobile-menu-btn:hover {
  border-color: var(--brand-yellow);
  color: var(--brand-yellow);
}

@media (min-width: 53.75em) {
  .nav-links {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }
}

/* Native Modal Dialog Scroll Containment */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

/* Top-Layer Swipeable Mobile Navigation Drawer (CSS Scroll Snap + Scroll-Driven Backdrop) */
.nav-drawer {
  --drawer-width: min(21rem, 82dvw, calc(100dvw - 1.5rem));
  --drawer-backdrop: 0;
  inset: 0;
  inline-size: auto;
  block-size: auto;
  max-inline-size: none;
  max-block-size: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.nav-drawer::backdrop {
  background: #000000;
  opacity: calc(var(--drawer-backdrop) * 0.72);
}

.nav-drawer-scroller {
  position: relative;
  display: grid;
  grid-template-columns: var(--drawer-width) 100%;
  overflow-x: scroll;
  overscroll-behavior: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.nav-drawer-scroller::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .nav-drawer-scroller {
    scroll-behavior: smooth;
  }
}

.nav-drawer-scroller::after {
  content: "";
  scroll-snap-align: end;
  scroll-initial-target: nearest;
}

.nav-drawer-sheet {
  display: grid;
  grid-template-rows: auto 1fr;
  block-size: 100svh;
  background-color: var(--brand-surface);
  color: var(--text-white);
  border-inline-end: 2px solid var(--brand-yellow);
  padding: 1.25rem 1.5rem 2rem;
  overflow-y: auto;
  scroll-snap-align: start;
  scrollbar-width: none;
}

.nav-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block-end: 1rem;
  margin-block-end: 1.25rem;
  border-block-end: 1px solid var(--brand-border);
}

.nav-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 2.75rem;
  min-block-size: 2.75rem;
  background: transparent;
  border: 1px solid var(--brand-border);
  color: var(--text-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.nav-drawer-close:hover {
  border-color: var(--brand-yellow);
  color: var(--brand-yellow);
}

.nav-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-drawer-list a {
  display: inline-block;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: 1.3rem;
  text-transform: uppercase;
  padding-block: 0.35rem;
  color: var(--text-white);
  transition: color 0.2s ease;
}

.nav-drawer-list a:hover {
  color: var(--brand-yellow);
}

.nav-drawer-list a[aria-current="page"] {
  color: var(--brand-yellow);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.nav-drawer-cta {
  margin-block-start: 0.75rem;
  color: var(--brand-yellow) !important;
}

@supports (animation-timeline: scroll()) {
  @property --drawer-backdrop {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
  }

  .nav-drawer {
    timeline-scope: --drawer-fade;
    animation: fade-drawer-backdrop linear both;
    animation-timeline: --drawer-fade;
  }

  .nav-drawer-scroller {
    scroll-timeline: --drawer-fade x;
  }

  @keyframes fade-drawer-backdrop {
    0% { --drawer-backdrop: 1; }
    100% { --drawer-backdrop: 0; }
  }
}

/* Buttons (Content-Driven Block Size for Text Zoom / WCAG 1.4.12) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-block-size: 2.75rem;
  background-color: var(--brand-yellow);
  color: var(--brand-black);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  padding: 0.85rem 1.85rem;
  font-size: 1.125rem;
  border: 2px solid var(--brand-yellow);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--brand-yellow-bright);
  border-color: var(--brand-yellow-bright);
}

@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover {
    transform: translateY(-2px);
  }
}

.btn-sm {
  min-block-size: 2.5rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-block-size: 2.75rem;
  background-color: rgba(0, 0, 0, 0.65);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  padding: 0.85rem 1.75rem;
  font-size: 1.125rem;
  border: 2px solid var(--text-white);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--brand-yellow);
  color: var(--brand-yellow);
}

@media (prefers-reduced-motion: no-preference) {
  .btn-outline:hover {
    transform: translateY(-2px);
  }
}

/* Hero Section (Open Asymmetric Woodland Editorial Layout) */
.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #050505;
  overflow: hidden;
  border-block-end: 4px solid var(--brand-yellow);
}

@media (min-width: 53.75em) {
  .hero-section {
    min-block-size: clamp(35rem, 84svh, 52rem);
    flex-direction: row;
    align-items: center;
  }
}

.hero-media {
  position: relative;
  inline-size: 100%;
  aspect-ratio: 4 / 3;
  z-index: 0;
}

@media (min-width: 53.75em) {
  .hero-media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }
}

.hero-media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 82% 18%;
}

@media (min-width: 53.75em) {
  .hero-media img {
    object-position: center 24%;
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    #050505 0%,
    rgba(5, 5, 5, 0.55) 22%,
    rgba(5, 5, 5, 0) 52%
  );
}

@media (min-width: 53.75em) {
  .hero-scrim {
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.94) 0%,
        rgba(0, 0, 0, 0.78) 38%,
        rgba(0, 0, 0, 0.18) 64%,
        rgba(0, 0, 0, 0.05) 100%
      ),
      linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 26%);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  inline-size: 100%;
  margin-block-start: -1.25rem;
  padding: 0 1.5rem 2.75rem;
}

@media (min-width: 53.75em) {
  .hero-content {
    margin-block-start: 0;
    padding: 5rem 1.5rem;
  }
}

.hero-copy {
  max-inline-size: 35rem;
  text-align: start;
}

.hero-copy .hero-sub {
  margin: 0 0 1.85rem;
  max-inline-size: 32rem;
}

.cta-row-left {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.85rem;
}

.eyebrow-badge {
  display: inline-block;
  background-color: rgba(225, 179, 9, 0.14);
  border: 1px solid var(--brand-yellow);
  color: var(--brand-yellow);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  margin-block-end: 1rem;
}

/* Fluid Typography: rem + vw with max <= 2.5x min for WCAG 1.4.4 200% Text Zoom */
.hero-title {
  font-size: clamp(2.25rem, 1.5rem + 4vw, 4.5rem);
  text-transform: uppercase;
  margin-block-end: 0.75rem;
}

.hero-sub {
  font-size: clamp(1rem, 0.85rem + 1vw, 1.25rem);
  color: var(--text-muted);
  max-inline-size: 36rem;
  margin: 0 auto 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* Spec Strip */
.spec-strip {
  background-color: var(--brand-surface);
  border-block-end: 1px solid var(--brand-border);
  padding-block: 1.1rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  text-align: center;
}

@media (min-width: 48em) {
  .spec-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.spec-item {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.spec-item span {
  color: var(--brand-yellow);
  margin-inline-end: 0.35rem;
}

/* Sections */
.section-pad {
  padding-block: 5.5rem;
  position: relative;
}

.bg-black-solid { background-color: var(--brand-black); }
.bg-surface { background-color: var(--brand-surface); }
.bg-charcoal { background-color: var(--brand-charcoal); }
.bg-yellow { background-color: var(--brand-yellow); color: var(--brand-black); }

.section-heading {
  font-size: clamp(2.1rem, 1.4rem + 3.5vw, 4.25rem);
  text-transform: uppercase;
  margin-block-end: 0.75rem;
}

.journal-heading {
  font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.6rem);
  text-transform: uppercase;
  margin-block-end: 0.5rem;
}

.article-hero-title {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  text-transform: uppercase;
  margin-block-end: 0.75rem;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-inline-size: 42rem;
}

.bg-yellow .section-lead {
  color: #1f1f1f;
  font-weight: 700;
}

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.text-yellow { color: var(--brand-yellow); }
.text-white { color: var(--text-white); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.uppercase { text-transform: uppercase; }

/* Acronym Grid (C.O.L.D.) */
.acronym-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-block: 2rem;
}

@media (min-width: 40em) {
  .acronym-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.acronym-box {
  background-color: var(--brand-black);
  border: 1px solid var(--brand-border);
  border-block-start: 3px solid var(--brand-yellow);
  padding: 1rem;
  text-align: center;
}

.acronym-letter {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: 2.25rem;
  color: var(--brand-yellow);
  display: block;
}

.acronym-word {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-white);
}

/* Product Drop Grid */
.drop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-block-start: 3rem;
}

@media (min-width: 42.5em) {
  .drop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 67.5em) {
  .drop-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .product-card {
    grid-column: span 2;
  }

  .product-card-wide {
    grid-column: span 3;
  }

  .product-card-wide .product-media {
    aspect-ratio: 1 / 1;
  }

  .product-card-wide .product-media .img-primary {
    object-position: center 18%;
  }
}

.product-card {
  background-color: var(--brand-surface);
  border: 2px solid var(--brand-border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
  position: relative;
}

.product-card:hover {
  border-color: var(--brand-yellow);
}

@media (prefers-reduced-motion: no-preference) {
  .product-card:hover {
    transform: translateY(-4px);
  }
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: #0b0b0b;
  overflow: hidden;
}

.product-media img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.product-media .img-primary {
  object-fit: cover;
  opacity: 1;
}

.product-media .img-hover {
  object-fit: contain;
  padding: 0.85rem;
  background-color: #ffffff;
  opacity: 0;
}

.product-card:hover .product-media .img-primary {
  opacity: 0;
}

.product-card:hover .product-media .img-hover {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .product-card:hover .product-media .img-hover {
    transform: scale(1.02);
  }
}

.product-badge {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 10;
  background-color: var(--brand-black);
  color: var(--brand-yellow);
  border: 1px solid var(--brand-yellow);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
}

.product-badge.waitlist {
  background-color: var(--brand-yellow);
  color: var(--brand-black);
}

.product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.product-title {
  font-size: 1.35rem;
  text-transform: uppercase;
}

.product-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block-start: 0.85rem;
  margin-block-start: 0.5rem;
  border-block-start: 1px solid var(--brand-border);
}

.product-price {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--brand-yellow);
}

.product-cta {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-white);
}

.product-card:hover .product-cta {
  color: var(--brand-yellow);
}

/* Trail Cards Grid */
.trail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-block-start: 3rem;
}

@media (min-width: 43.75em) {
  .trail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .trail-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trail-card {
  background-color: var(--brand-black);
  color: var(--text-white);
  padding: 1.85rem;
  border: 3px solid var(--brand-black);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.trail-card:hover {
  border-color: var(--text-white);
}

@media (prefers-reduced-motion: no-preference) {
  .trail-card:hover {
    transform: translateY(-3px);
  }
}

.trail-card-dark {
  background-color: var(--brand-surface);
  border: 2px solid var(--brand-border);
  border-block-start: 4px solid var(--brand-yellow);
}

.trail-card-dark:hover {
  border-color: var(--brand-yellow);
}

.grit-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background-color: rgba(225, 179, 9, 0.15);
  color: var(--brand-yellow);
  border: 1px solid rgba(225, 179, 9, 0.45);
  padding: 0.2rem 0.55rem;
  margin-block-end: 0.6rem;
}

/* Trailhead & Car-Park Culture Gallery */
.vibe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 36em) {
  .vibe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .vibe-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.vibe-tile {
  position: relative;
  display: block;
  inline-size: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 2px solid var(--brand-border);
  cursor: pointer;
  padding: 0;
  text-align: start;
  background-color: var(--brand-black);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.vibe-tile:hover {
  border-color: var(--brand-yellow);
}

@media (prefers-reduced-motion: no-preference) {
  .vibe-tile:hover {
    transform: translateY(-3px);
  }
}

.vibe-tile img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .vibe-tile:hover img {
    transform: scale(1.04);
  }
}

.vibe-tile .lookbook-caption {
  padding: 2.25rem 1rem 1rem;
}

.vibe-tile .lookbook-title {
  font-size: 1.05rem;
}

/* Journal Callout */
.journal-banner {
  background-color: var(--brand-surface);
  border: 2px solid var(--brand-border);
  border-inline-start: 6px solid var(--brand-yellow);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 51.25em) {
  .journal-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Newsletter Form (Interaction-Deferred Validation + Autofill + Inline Transparency) */
.newsletter-form {
  max-inline-size: 38rem;
  margin: 2rem auto 0;
  text-align: start;
}

.newsletter-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.newsletter-label {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-white);
}

.newsletter-hint {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-block-end: 0.25rem;
}

.newsletter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 40em) {
  .newsletter-row {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .newsletter-submit {
    grid-column: 2;
    grid-row: 1;
  }

  .newsletter-error {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.newsletter-input {
  inline-size: 100%;
  min-block-size: 3.15rem;
  background-color: var(--brand-surface);
  border: 2px solid var(--text-white);
  color: var(--text-white);
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.newsletter-input::placeholder {
  color: var(--text-dim);
}

.newsletter-input:focus-visible {
  border-color: var(--brand-yellow);
  outline: 3px solid var(--brand-yellow-bright);
  outline-offset: 3px;
}

/* Non-color inset ring + legible dark fill on browser autofill without layout shift */
.newsletter-input:is(:autofill, :-webkit-autofill) {
  box-shadow:
    inset 0 0 0 2px var(--brand-yellow),
    inset 0 0 0 100vmax var(--brand-surface);
  border-color: var(--brand-yellow);
  -webkit-text-fill-color: var(--text-white);
  caret-color: var(--text-white);
}

/* Validate only after user interaction (:user-invalid + WeakMap fallback) */
.newsletter-input:is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--status-error);
  background-color: var(--status-error-bg);
}

.newsletter-input:not([type="range"]):is(:user-valid, .user-valid-fallback) {
  border-color: var(--status-valid);
}

.newsletter-error {
  display: none;
  align-items: center;
  gap: 0.45rem;
  color: var(--status-error);
  font-size: 0.875rem;
  font-weight: 700;
}

.newsletter-input:is(:user-invalid, .user-invalid-fallback) + .newsletter-error {
  display: flex;
}

.hidden {
  display: none !important;
}

/* Subpage Headers & Semantic Breadcrumbs */
.page-hero {
  position: relative;
  padding: 4.25rem 1.5rem 3.75rem;
  background-color: var(--brand-surface);
  border-block-end: 4px solid var(--brand-yellow);
  overflow: hidden;
}

.breadcrumb {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-block-end: 1.25rem;
}

.breadcrumb > ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.breadcrumb > ol > li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Empty alt text after `/` hides decorative divider from screen readers (with single-value fallback) */
.breadcrumb > ol > li + li::before {
  content: "/";
  content: "/" / "";
  color: var(--text-dim);
}

.breadcrumb > ol > li > a {
  position: relative;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.breadcrumb > ol > li > a:hover {
  color: var(--brand-yellow);
}

.breadcrumb > ol > li > a:focus-visible {
  z-index: 1;
}

.breadcrumb > ol > li > a[aria-current="page"] {
  color: var(--brand-yellow);
  font-weight: 800;
  text-decoration: none;
}

/* Trail Detail Components */
.trail-main {
  max-inline-size: 58rem;
  margin-inline: auto;
  padding: 3.5rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 3.25rem;
}

.map-card {
  background-color: var(--brand-surface);
  border: 2px solid var(--brand-yellow);
  padding: 1.75rem;
}

.map-link {
  display: block;
  position: relative;
  border: 3px solid var(--brand-yellow);
  overflow: hidden;
  margin-block-end: 1.75rem;
}

.map-link img {
  inline-size: 100%;
  block-size: auto;
  filter: grayscale(35%);
  transition: filter 0.45s ease, transform 0.45s ease;
}

.map-link:hover img {
  filter: grayscale(0%);
}

@media (prefers-reduced-motion: no-preference) {
  .map-link:hover img {
    transform: scale(1.02);
  }
}

.map-hover-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.map-link:hover .map-hover-badge,
.map-link:focus-visible .map-hover-badge {
  opacity: 1;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 43.75em) {
  .two-col-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.three-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 48em) {
  .three-col-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.line-box {
  border-inline-start: 3px solid var(--brand-yellow);
  padding-inline-start: 1rem;
}

.grit-box {
  background-color: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-inline-start: 8px solid var(--brand-yellow);
  padding: 2rem;
  position: relative;
}

.kit-card {
  background-color: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-block-start: 4px solid var(--brand-yellow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.log-box {
  background-color: #0b0b0b;
  border: 1px solid var(--brand-border);
  padding: 1.75rem;
}

/* Responsive Sticky & Container-Query Adaptive Data Tables */
.spec-table-wrap {
  overflow: auto;
  max-inline-size: 100%;
  container-type: inline-size;
  border: 2px solid var(--brand-yellow);
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: auto;
}

.spec-table {
  inline-size: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: start;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.spec-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}

.spec-table thead tr {
  background-color: var(--brand-yellow);
  color: var(--brand-black);
  text-transform: uppercase;
}

.spec-table thead th {
  background-color: var(--brand-yellow);
  color: var(--brand-black);
  font-weight: 800;
}

.spec-table th,
.spec-table td {
  padding: 0.95rem 1.1rem;
  border-block-end: 1px solid var(--brand-border);
  vertical-align: top;
}

.spec-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background-color: #0b0b0b;
  color: var(--brand-yellow);
  font-weight: 700;
}

@container (width < 34rem) {
  .spec-table,
  .spec-table thead,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td {
    display: block;
  }

  .spec-table thead {
    display: none;
  }

  .spec-table tbody tr {
    border-block-end: 2px solid var(--brand-yellow);
    padding-block-end: 0.35rem;
  }

  .spec-table tbody tr:last-child {
    border-block-end: 0;
  }

  .spec-table tbody th {
    position: sticky;
    inset-block-start: 0;
    inset-inline-start: auto;
    z-index: 2;
    background-color: var(--brand-surface);
    border-block-end: 1px solid var(--brand-border);
    padding: 0.75rem 1rem;
  }

  .spec-table td {
    padding: 0.55rem 1rem;
    border-block-end: 1px solid rgba(255, 255, 255, 0.06);
  }

  .spec-table tbody tr td:last-child {
    border-block-end: 0;
  }

  .spec-table td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--text-dim);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-inline-end: 0.35rem;
  }
}

.faq-box {
  background-color: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-block-start: 4px solid var(--brand-yellow);
  padding: 2rem;
}

.prose-stack {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  color: var(--text-muted);
  font-size: 1.075rem;
  line-height: 1.75;
}

.prose-stack p,
.prose-stack li {
  max-inline-size: 68ch;
}

.prose-stack h2 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  color: var(--text-white);
  text-transform: uppercase;
  font-size: 1.75rem;
  margin-block-start: 1.25rem;
}

.prose-stack ul {
  list-style: disc;
  padding-inline-start: 1.5rem;
}

.prose-stack ol {
  list-style: decimal;
  padding-inline-start: 1.5rem;
}

.prose-stack li + li {
  margin-block-start: 0.45rem;
}

.prose-stack strong {
  color: var(--text-white);
}

/* Footer */
.site-footer {
  background-color: #070707;
  border-block-start: 1px solid var(--brand-border);
  padding-block: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

@media (min-width: 51.25em) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-yellow);
  margin-block-end: 0.9rem;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.footer-list a {
  display: inline-block;
  padding-block: 0.15rem;
}

.footer-list a:hover {
  color: var(--brand-yellow);
}

.footer-bottom {
  margin-block-start: 2.75rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--brand-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.825rem;
  color: var(--text-dim);
}

/* Native Top-Layer Modal Lightbox (@starting-style + Discrete overlay Transitions) */
.lightbox {
  position: fixed;
  margin: auto;
  inline-size: fit-content;
  max-inline-size: min(94dvw, 72rem);
  max-block-size: 92dvh;
  padding: 3.25rem 1.25rem 1.25rem;
  background-color: var(--brand-surface);
  color: var(--text-white);
  border: 2px solid var(--brand-border);
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: ease-out;
  /* Separate declaration after transition properties so older browsers do not drop transition */
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  .lightbox {
    transform: scale(0.94);
  }
}

/* Scoped to [open] so closed <dialog> stays display: none */
.lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.lightbox[open]:where(:not([data-closing])) {
  opacity: 1;

  @starting-style {
    opacity: 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    transform: scale(1);

    @starting-style {
      transform: scale(0.94);
    }
  }
}

.lightbox::backdrop {
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(4px);
  transition-property: background-color, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

.lightbox[open]:where(:not([data-closing]))::backdrop {
  background-color: rgba(0, 0, 0, 0.88);

  @starting-style {
    background-color: rgba(0, 0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox::backdrop {
    transition-duration: 0.1s;
  }
}

.lightbox-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.lightbox img {
  max-inline-size: min(88dvw, 66rem);
  max-block-size: 74dvh;
  inline-size: auto;
  block-size: auto;
  object-fit: contain;
  border: 1px solid var(--brand-border);
}

.lightbox-caption {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-yellow);
  text-align: center;
  max-inline-size: 48rem;
}

.lightbox-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 2.75rem;
  min-block-size: 2.75rem;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid var(--brand-border);
  color: var(--text-white);
  font-size: 1.75rem;
  line-height: 1;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

.lightbox-btn:hover {
  border-color: var(--brand-yellow);
  color: var(--brand-yellow);
}

.lightbox-close {
  inset-block-start: -2.65rem;
  inset-inline-end: 0;
}

.lightbox-prev {
  inset-inline-start: 0.5rem;
  inset-block-start: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  inset-inline-end: 0.5rem;
  inset-block-start: 50%;
  transform: translateY(-50%);
}

/* Woodland Trail Shoot Lookbook */
.lookbook-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-block-end: 2.5rem;
}

.lookbook-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 42.5em) {
  .lookbook-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .lookbook-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.lookbook-card {
  position: relative;
  display: block;
  inline-size: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 2px solid var(--brand-border);
  background-color: var(--brand-black);
  cursor: pointer;
  padding: 0;
  text-align: start;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

@media (min-width: 64em) {
  .lookbook-card {
    grid-column: span 2;
  }
}

.lookbook-wide {
  aspect-ratio: 16 / 9;
}

@media (min-width: 42.5em) and (max-width: 63.9375em) {
  .lookbook-wide {
    grid-column: span 2;
  }
}

@media (min-width: 64em) {
  .lookbook-wide {
    grid-column: span 3;
    aspect-ratio: 16 / 9;
  }
}

.lookbook-card:hover {
  border-color: var(--brand-yellow);
}

@media (prefers-reduced-motion: no-preference) {
  .lookbook-card:hover {
    transform: translateY(-3px);
  }
}

.lookbook-card img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .lookbook-card:hover img {
    transform: scale(1.04);
  }
}

.lookbook-caption {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 2.5rem 1.25rem 1.15rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.48) 58%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  pointer-events: none;
}

.lookbook-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-yellow);
}

.lookbook-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--text-white);
}

/* Editorial Figures & Journal Thumbnails */
.journal-thumb {
  inline-size: 100%;
  max-inline-size: 21rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 2px solid var(--brand-border);
  flex-shrink: 0;
}

.editorial-figure {
  margin-block: 2rem;
  background-color: var(--brand-surface);
  border: 2px solid var(--brand-border);
  border-block-start: 4px solid var(--brand-yellow);
  overflow: hidden;
}

.two-col-grid .editorial-figure {
  margin-block: 0;
  display: flex;
  flex-direction: column;
}

.editorial-figure img {
  inline-size: 100%;
  block-size: auto;
  object-fit: cover;
}

.two-col-grid .editorial-figure img {
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  object-position: center 20%;
}

.two-col-grid .editorial-figure:first-child img {
  object-position: 74% 20%;
}

.editorial-caption {
  padding: 0.85rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border-block-start: 1px solid var(--brand-border);
  flex: 1;
}

/* Coarse Pointer Touch Target Reinforcement */
@media (pointer: coarse) {
  .footer-list a,
  .breadcrumb > ol > li > a {
    padding-block: 0.25rem;
  }
}

/* Windows High Contrast / Forced Colors Mode Support */
@media (forced-colors: active) {
  .btn-primary,
  .btn-outline,
  .mobile-menu-btn,
  .nav-drawer-close,
  .lightbox-btn {
    border: 2px solid ButtonText;
  }

  .product-card,
  .lookbook-card,
  .vibe-tile,
  .trail-card,
  .kit-card,
  .faq-box,
  .grit-box,
  .journal-banner,
  .eyebrow-badge,
  .grit-pill,
  .product-badge,
  .lightbox {
    border: 1px solid CanvasText;
  }

  .nav-link[aria-current="page"],
  .breadcrumb > ol > li > a[aria-current="page"] {
    text-decoration: underline;
    border-block-end-color: Highlight;
  }
}
