/* ============================================================
   Cambridge Audio Japan - Complete Stylesheet
   Production-quality CSS reproducing Cambridge Audio's design
   ============================================================ */

/* ------------------------------------------------------------
   1. FONT FACE DECLARATIONS
   ------------------------------------------------------------ */

@font-face {
  font-family: 'Sohne';
  src: url('../fonts/sohne-light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sohne';
  src: url('../fonts/sohne-light-italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Sohne';
  src: url('../fonts/sohne-book.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sohne';
  src: url('../fonts/sohne-book-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Sohne';
  src: url('../fonts/sohne-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sohne';
  src: url('../fonts/sohne-bold-italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Sohne Wide';
  src: url('../fonts/sohne-wide-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sohne Mono';
  src: url('../fonts/sohne-mono-light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tiempos Headline';
  src: url('../fonts/tiempos-headline-light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tiempos Headline';
  src: url('../fonts/tiempos-headline-light-italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* ------------------------------------------------------------
   2. CSS CUSTOM PROPERTIES (Design Tokens)
   ------------------------------------------------------------ */

:root {
  /* Colors */
  --color-primary: #000000;
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-light: #f5f5f5;
  --color-bg-warm: #f0ece4;
  --color-bg-dark: #000000;
  --color-text: #000000;
  --color-text-muted: #666666;
  --color-text-light: #999999;
  --color-text-inverse: #ffffff;
  --color-border: #e0e0e0;
  --color-border-dark: #333333;
  --color-overlay: rgba(0, 0, 0, 0.4);
  --color-overlay-light: rgba(0, 0, 0, 0.06);

  /* Brand accent (Cambridge Audio teal) */
  --color-teal: #00857c;
  --color-teal-dark: #006b63;

  /* Typography - Font Families */
  --font-sans: 'Sohne', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --font-sans-wide: 'Sohne Wide', 'Sohne', -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  --font-serif: 'Tiempos Headline', Georgia, 'Hiragino Mincho ProN',
    'Yu Mincho', serif;
  --font-mono: 'Sohne Mono', 'SF Mono', 'Fira Code', monospace;

  /* Typography - Font Sizes (fluid / clamp) */
  --text-xs: clamp(0.6875rem, 0.65rem + 0.15vw, 0.75rem);
  --text-sm: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
  --text-base: clamp(0.875rem, 0.825rem + 0.2vw, 1rem);
  --text-md: clamp(1rem, 0.925rem + 0.3vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --text-2xl: clamp(1.5rem, 1.15rem + 1.4vw, 2.5rem);
  --text-3xl: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --text-4xl: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 1.5rem + 6vw, 7rem);
  --text-hero-lg: clamp(3.5rem, 1rem + 8vw, 9rem);

  /* Font Weights */
  --weight-light: 300;
  --weight-book: 400;
  --weight-bold: 700;

  /* Line Heights */
  --leading-tight: 1.05;
  --leading-snug: 1.15;
  --leading-normal: 1.7;
  --leading-relaxed: 1.7;
  --leading-loose: 1.9;
  --leading-jp: 1.8;

  /* Letter Spacing */
  --tracking-tight: -0.03em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
  --tracking-jp: 0.04em;

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-section: clamp(3rem, 2rem + 4vw, 7rem);

  /* Layout */
  --container-max: 1440px;
  --container-wide: 1280px;
  --container-content: 1080px;
  --container-narrow: 720px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 3rem);
  --header-height: 64px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --radius-round: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
  --ease-out: cubic-bezier(0, 0, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;

  /* Z-Index Scale */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 500;
  --z-overlay: 900;
  --z-modal: 1000;
  --z-toast: 1100;
}

/* ------------------------------------------------------------
   3. RESET & BASE STYLES
   ------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-weight: var(--weight-book);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
}

@supports (overflow: clip) {
  html { overflow-x: clip; }
  body { overflow-x: clip; }
}

/* Japanese text optimization */
:lang(ja) {
  line-height: var(--leading-jp);
  letter-spacing: var(--tracking-jp);
  word-break: break-all;
  overflow-wrap: break-word;
}

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

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

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
}

p + p {
  margin-top: 1em;
}

::selection {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ------------------------------------------------------------
   4. LAYOUT & CONTAINER
   ------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--content {
  max-width: var(--container-content);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.full-bleed {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
}

/* Section spacing */
.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.section--sm {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section--lg {
  padding-top: var(--space-5xl);
  padding-bottom: var(--space-5xl);
}

.section--no-top {
  padding-top: 0;
}

.section--no-bottom {
  padding-bottom: 0;
}

/* Background variants */
.bg-white {
  background-color: var(--color-white);
}
.bg-light {
  background-color: var(--color-bg-light);
}
.bg-warm {
  background-color: var(--color-bg-warm);
}
.bg-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

/* ------------------------------------------------------------
   5. TYPOGRAPHY
   ------------------------------------------------------------ */

/* Heading scales */
.heading-hero {
  font-family: var(--font-sans-wide);
  font-weight: var(--weight-bold);
  font-size: var(--text-hero-lg);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
}

.heading-hero--serif {
  font-family: var(--font-serif);
  font-weight: var(--weight-light);
  font-size: var(--text-hero);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-normal);
  text-transform: none;
}

.heading-1 {
  font-family: var(--font-sans-wide);
  font-weight: var(--weight-bold);
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.heading-2 {
  font-family: var(--font-serif);
  font-weight: var(--weight-light);
  font-size: var(--text-3xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-normal);
}

.heading-3 {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
}

.heading-4 {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}

.heading-5 {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
}

/* Section label (e.g., "ENGINEERING", "PRODUCTS") */
.section-label {
  font-family: var(--font-sans-wide);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-lg);
}

/* Editorial / serif styling */
.text-serif {
  font-family: var(--font-serif);
  font-weight: var(--weight-light);
}

.text-serif-italic {
  font-family: var(--font-serif);
  font-weight: var(--weight-light);
  font-style: italic;
}

/* Body text sizes */
.text-body {
  font-size: var(--text-base);
}
.text-body-lg {
  font-size: var(--text-md);
}
.text-body-xl {
  font-size: var(--text-lg);
}
.text-body-sm {
  font-size: var(--text-sm);
}
.text-body-xs {
  font-size: var(--text-xs);
}

/* Mono */
.text-mono {
  font-family: var(--font-mono);
  font-weight: var(--weight-light);
  font-size: var(--text-sm);
}

/* Muted text */
.text-muted {
  color: var(--color-text-muted);
}
.text-light {
  color: var(--color-text-light);
}
.text-inverse {
  color: var(--color-text-inverse);
}

/* Text utilities */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-left {
  text-align: left;
}
.text-uppercase {
  text-transform: uppercase;
}
.text-balance {
  text-wrap: balance;
}

/* Lead paragraph */
.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  max-width: 48ch;
}

.lead--wide {
  max-width: 64ch;
}

/* Prose (for longer content) */
.prose {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  max-width: 65ch;
}

.prose p + p {
  margin-top: 1.5em;
}

.prose h2,
.prose h3 {
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.prose ul,
.prose ol {
  padding-left: 1.5em;
  margin-top: 1em;
  margin-bottom: 1em;
}

.prose li {
  list-style: disc;
  margin-bottom: 0.5em;
}

/* Japanese-specific typography */
.text-jp {
  font-feature-settings: 'palt' 1;
  line-height: var(--leading-jp);
  letter-spacing: var(--tracking-jp);
}

.text-jp-tight {
  font-feature-settings: 'palt' 1;
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-normal);
}

/* ------------------------------------------------------------
   6. HEADER & NAVIGATION
   ------------------------------------------------------------ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background-color: var(--color-white);
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-normal) var(--ease-default),
    background-color var(--duration-normal) var(--ease-default),
    box-shadow var(--duration-normal) var(--ease-default);
}

.header--scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header--transparent {
  background-color: transparent;
  color: var(--color-white);
}

.header--transparent.header--scrolled {
  background-color: var(--color-white);
  color: var(--color-text);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Logo */
.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  z-index: calc(var(--z-header) + 1);
}

.header__logo img,
.header__logo svg {
  height: 20px;
  width: auto;
}

@media (min-width: 1024px) {
  .header__logo img,
  .header__logo svg {
    height: 24px;
  }
}

/* Desktop Navigation */
.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    height: 100%;
  }
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: var(--text-sm);
  font-weight: var(--weight-book);
  letter-spacing: var(--tracking-wide);
  cursor: pointer;
  transition: opacity var(--duration-fast) var(--ease-default);
}

.nav__item:hover {
  opacity: 0.6;
}

.nav__item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
}

.nav__item:hover::after,
.nav__item--active::after {
  transform: scaleX(1);
}

/* Header actions (region + search) */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: calc(var(--z-header) + 1);
}

.header__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  transition: background-color var(--duration-fast) var(--ease-default);
}

.header__action-btn:hover {
  background-color: var(--color-overlay-light);
}

.header__action-btn svg {
  width: 20px;
  height: 20px;
}

/* Region selector */
.region-selector {
  display: none;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  cursor: pointer;
}

@media (min-width: 768px) {
  .region-selector {
    display: flex;
  }
}

.region-selector__flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: calc(var(--z-header) + 2);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle__bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: currentColor;
  transition: transform var(--duration-normal) var(--ease-default),
    opacity var(--duration-fast) var(--ease-default);
}

.menu-toggle__bar::before,
.menu-toggle__bar::after {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: currentColor;
  transition: transform var(--duration-normal) var(--ease-default);
}

.menu-toggle__bar::before {
  transform: translateY(-6px);
}

.menu-toggle__bar::after {
  transform: translateY(4.5px);
}

/* Menu open state */
.menu-toggle--open .menu-toggle__bar {
  background-color: transparent;
}

.menu-toggle--open .menu-toggle__bar::before {
  transform: translateY(0) rotate(45deg);
}

.menu-toggle--open .menu-toggle__bar::after {
  transform: translateY(-1.5px) rotate(-45deg);
}

/* Mobile Navigation Panel */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-overlay);
  background-color: var(--color-white);
  padding-top: var(--header-height);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
}

.mobile-nav--open {
  transform: translateX(0);
}

.mobile-nav__list {
  padding: var(--space-xl) var(--gutter);
}

.mobile-nav__item {
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
}

.mobile-nav__link svg {
  width: 20px;
  height: 20px;
  opacity: 0.4;
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--duration-normal) var(--ease-default),
    visibility var(--duration-normal) var(--ease-default),
    transform var(--duration-normal) var(--ease-out);
  z-index: var(--z-dropdown);
}

.nav__item:hover .mega-menu,
.mega-menu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--gutter);
}

.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.mega-menu__card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: background-color var(--duration-fast) var(--ease-default);
}

.mega-menu__card:hover {
  background-color: var(--color-border);
}

.mega-menu__card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin-bottom: var(--space-md);
}

.mega-menu__card-name {
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2xs);
}

.mega-menu__card-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Spacer to push content below fixed header */
.header-spacer {
  height: var(--header-height);
}

/* ------------------------------------------------------------
   7. HERO SECTION
   ------------------------------------------------------------ */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero--short {
  min-height: 60vh;
  min-height: 60svh;
}

.hero--medium {
  min-height: 75vh;
  min-height: 75svh;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0) 70%
  );
  z-index: 1;
}

.hero__overlay--full {
  background: var(--color-overlay);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-3xl) var(--gutter) var(--space-3xl);
  max-width: var(--container-max);
  margin: 0 auto;
  color: var(--color-white);
}

@media (min-width: 768px) {
  .hero__content {
    padding-bottom: var(--space-4xl);
  }
}

@media (min-width: 1024px) {
  .hero__content {
    padding-bottom: var(--space-5xl);
  }
}

.hero__label {
  font-family: var(--font-sans-wide);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-lg);
  opacity: 0.8;
}

.hero__title {
  font-family: var(--font-sans-wide);
  font-weight: var(--weight-bold);
  font-size: var(--text-hero-lg);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  max-width: 12ch;
  margin-bottom: var(--space-lg);
}

.hero__title--serif {
  font-family: var(--font-serif);
  font-weight: var(--weight-light);
  font-size: var(--text-hero);
  text-transform: none;
  letter-spacing: var(--tracking-normal);
  max-width: 18ch;
}

.hero__subtitle {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  max-width: 45ch;
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ------------------------------------------------------------
   8. BUTTONS & PILL BUTTONS
   ------------------------------------------------------------ */

/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-default);
  white-space: nowrap;
  text-decoration: none;
}

/* Pill - black filled */
.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: #333333;
  border-color: #333333;
}

/* Pill - white filled */
.btn--white {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn--white:hover {
  background-color: var(--color-bg-light);
  border-color: var(--color-bg-light);
}

/* Pill - outline black */
.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Pill - outline white */
.btn--outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* Button sizes */
.btn--sm {
  padding: 10px 18px;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 18px 32px;
  font-size: var(--text-base);
}

/* Button with arrow icon */
.btn__arrow {
  display: inline-flex;
  transition: transform var(--duration-normal) var(--ease-out);
  font-size: 1.1em;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Icon-only button */
.btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
  border-radius: var(--radius-round);
}

.btn--icon-sm {
  width: 36px;
  height: 36px;
}

/* Link style button */
.btn--link {
  padding: 0;
  border: none;
  border-radius: 0;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  position: relative;
}

.btn--link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-out);
}

.btn--link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ------------------------------------------------------------
   9. PRODUCT CARD & CAROUSEL
   ------------------------------------------------------------ */

/* Carousel container */
.carousel {
  position: relative;
}

.carousel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 var(--gutter);
  max-width: var(--container-max);
  margin: 0 auto var(--space-xl);
}

.carousel__title {
  font-family: var(--font-serif);
  font-weight: var(--weight-light);
  font-size: var(--text-3xl);
  line-height: var(--leading-snug);
}

.carousel__controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.carousel__counter {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-right: var(--space-sm);
}

.carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-round);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
}

.carousel__btn:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.carousel__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel__btn:disabled:hover {
  background: var(--color-white);
  border-color: var(--color-border);
  color: inherit;
}

.carousel__btn svg {
  width: 18px;
  height: 18px;
}

/* Carousel track - horizontal scroll */
.carousel__track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 var(--gutter);
  scroll-padding-left: var(--gutter);
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .carousel__track {
    gap: var(--space-lg);
  }
}

/* Carousel dots */
.carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-round);
  background-color: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
}

.carousel__dot--active {
  background-color: var(--color-primary);
  width: 24px;
  border-radius: 4px;
}

/* Product Card */
.product-card {
  flex: 0 0 auto;
  width: 280px;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  transition: transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-default);
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .product-card {
    width: 320px;
    padding: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .product-card {
    width: 360px;
  }
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card__header {
  margin-bottom: var(--space-sm);
}

.product-card__name {
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  line-height: var(--leading-snug);
}

.product-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.product-card__image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) 0;
  min-height: 180px;
}

.product-card__image img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  transition: transform var(--duration-slow) var(--ease-out);
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-md);
}

.product-card__price {
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
}

.product-card__badge {
  font-family: var(--font-sans-wide);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Product card - dark variant */
.product-card--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

/* Product card - large featured */
.product-card--featured {
  width: 100%;
  max-width: 100%;
  flex-direction: row;
  gap: var(--space-2xl);
  padding: var(--space-2xl);
}

@media (max-width: 767px) {
  .product-card--featured {
    flex-direction: column;
  }
}

.product-card--featured .product-card__image {
  flex: 1;
  min-height: 280px;
}

.product-card--featured .product-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ------------------------------------------------------------
   10. FEATURE / SPLIT CONTENT SECTIONS
   ------------------------------------------------------------ */

/* Split layout: 2 columns */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

@media (min-width: 768px) {
  .split--reverse .split__media {
    order: -1;
  }
}

.split__content {
  padding: var(--space-xl) 0;
}

@media (min-width: 768px) {
  .split__content {
    padding: var(--space-3xl) 0;
  }
}

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.split__media img,
.split__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

@media (min-width: 768px) {
  .split__media img,
  .split__media video {
    aspect-ratio: auto;
    min-height: 400px;
  }
}

.split__label {
  font-family: var(--font-sans-wide);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
}

.split__title {
  font-family: var(--font-serif);
  font-weight: var(--weight-light);
  font-size: var(--text-3xl);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-lg);
}

.split__text {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  max-width: 50ch;
}

/* Full-width media split (image takes half viewport) */
.split--full {
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 1024px) {
  .split--full {
    grid-template-columns: 1fr 1fr;
  }

  .split--full .split__media {
    border-radius: 0;
  }

  .split--full .split__media img,
  .split--full .split__media video {
    height: 100%;
    min-height: 500px;
  }

  .split--full .split__content {
    padding: var(--space-4xl) var(--space-3xl);
  }
}

/* 3-column feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  position: relative;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-lg);
}

.feature-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.feature-card__title {
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.feature-card__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* Numbered feature list */
.feature-numbered {
  counter-reset: feature;
}

.feature-numbered__item {
  counter-increment: feature;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-numbered__item::before {
  content: counter(feature, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-top: 4px;
}

/* ------------------------------------------------------------
   11. FULL-WIDTH DARK PRODUCT SECTIONS
   ------------------------------------------------------------ */

.showcase {
  position: relative;
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  overflow: hidden;
}

.showcase__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-section) var(--gutter);
}

.showcase__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .showcase__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.showcase__label {
  font-family: var(--font-sans-wide);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  opacity: 0.6;
  margin-bottom: var(--space-md);
}

.showcase__title {
  font-family: var(--font-serif);
  font-weight: var(--weight-light);
  font-size: var(--text-3xl);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-lg);
}

.showcase__text {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  opacity: 0.8;
  margin-bottom: var(--space-xl);
  max-width: 50ch;
}

.showcase__image {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.showcase__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Dark section product card grid */
.showcase__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.showcase-card {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: background-color var(--duration-normal) var(--ease-default),
    border-color var(--duration-normal) var(--ease-default);
  cursor: pointer;
}

.showcase-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.showcase-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin-bottom: var(--space-lg);
}

.showcase-card__name {
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  margin-bottom: var(--space-2xs);
}

.showcase-card__desc {
  font-size: var(--text-sm);
  opacity: 0.6;
}

/* ------------------------------------------------------------
   12. QUOTE / TESTIMONIAL CAROUSEL
   ------------------------------------------------------------ */

.quote-section {
  text-align: center;
  padding: var(--space-section) var(--gutter);
  max-width: var(--container-content);
  margin: 0 auto;
}

.quote-carousel {
  position: relative;
}

.quote-slide {
  display: none;
}

.quote-slide--active {
  display: block;
}

.quote__text {
  font-family: var(--font-serif);
  font-weight: var(--weight-light);
  font-style: italic;
  font-size: var(--text-2xl);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2xl);
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

.quote__attribution {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.quote__logo {
  height: 24px;
  width: auto;
  opacity: 0.5;
}

.quote__source {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.quote__author {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Quote carousel navigation */
.quote-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

/* Star ratings (for reviews) */
.stars {
  display: flex;
  gap: 2px;
  color: var(--color-primary);
}

.stars svg {
  width: 16px;
  height: 16px;
}

/* ------------------------------------------------------------
   13. NEWSLETTER & FORMS
   ------------------------------------------------------------ */

.newsletter {
  max-width: var(--container-narrow);
  margin: 0 auto;
  text-align: center;
}

.newsletter__title {
  font-family: var(--font-serif);
  font-weight: var(--weight-light);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.newsletter__text {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  max-width: 45ch;
  margin-left: auto;
  margin-right: auto;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 480px;
  margin: 0 auto;
}

.newsletter__input-group {
  display: flex;
  gap: var(--space-sm);
}

@media (max-width: 479px) {
  .newsletter__input-group {
    flex-direction: column;
  }
}

/* Form inputs */
.input {
  width: 100%;
  padding: 14px 18px;
  font-size: var(--text-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background-color: var(--color-white);
  transition: border-color var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-fast) var(--ease-default);
}

.input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
  outline: none;
}

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

/* Dark variant */
.input--dark {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.input--dark::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input--dark:focus {
  border-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Checkbox */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  text-align: left;
  cursor: pointer;
}

.checkbox__input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  position: relative;
}

.checkbox__input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.checkbox__input:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.checkbox__label a {
  text-decoration: underline;
  color: var(--color-text);
}

/* Select dropdown */
.select {
  position: relative;
}

.select select {
  width: 100%;
  padding: 14px 40px 14px 18px;
  font-size: var(--text-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background-color: var(--color-white);
  cursor: pointer;
}

.select::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--color-text);
  border-bottom: 1.5px solid var(--color-text);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

/* ------------------------------------------------------------
   14. FOOTER
   ------------------------------------------------------------ */

.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-2xl);
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer__column-title {
  font-family: var(--font-sans-wide);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--text-sm);
  opacity: 0.7;
  transition: opacity var(--duration-fast) var(--ease-default);
  display: inline-block;
}

.footer__link:hover {
  opacity: 1;
}

/* Footer bottom bar */
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border-dark);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__logo {
  height: 20px;
  width: auto;
  opacity: 0.7;
}

.footer__copyright {
  font-size: var(--text-xs);
  opacity: 0.4;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__legal a {
  font-size: var(--text-xs);
  opacity: 0.4;
  transition: opacity var(--duration-fast) var(--ease-default);
}

.footer__legal a:hover {
  opacity: 0.8;
}

/* Footer social icons */
.footer__social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

@media (min-width: 768px) {
  .footer__social {
    margin-top: 0;
  }
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.6;
  transition: opacity var(--duration-fast) var(--ease-default),
    border-color var(--duration-fast) var(--ease-default);
}

.footer__social-link:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.5);
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
}

/* ------------------------------------------------------------
   15. SEARCH OVERLAY
   ------------------------------------------------------------ */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-default),
    visibility var(--duration-normal) var(--ease-default);
}

.search-overlay--open {
  opacity: 1;
  visibility: visible;
}

.search-overlay__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--gutter);
  border-bottom: 1px solid var(--color-border);
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
}

.search-overlay__input {
  flex: 1;
  border: none;
  font-size: var(--text-xl);
  padding: var(--space-md) 0;
  background: transparent;
}

.search-overlay__input:focus {
  outline: none;
}

.search-overlay__close {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.search-overlay__results {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-xl) var(--gutter);
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   16. BREADCRUMB
   ------------------------------------------------------------ */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.breadcrumb__separator {
  opacity: 0.4;
}

.breadcrumb__link {
  transition: color var(--duration-fast) var(--ease-default);
}

.breadcrumb__link:hover {
  color: var(--color-text);
}

.breadcrumb__current {
  color: var(--color-text);
  font-weight: var(--weight-bold);
}

/* ------------------------------------------------------------
   17. PRODUCT DETAIL PAGE
   ------------------------------------------------------------ */

/* Product gallery */
.product-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .product-gallery {
    grid-template-columns: 80px 1fr;
    gap: var(--space-lg);
  }
}

.product-gallery__thumbs {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
}

@media (min-width: 768px) {
  .product-gallery__thumbs {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: auto;
  }
}

.product-gallery__thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-default);
}

.product-gallery__thumb--active {
  border-color: var(--color-primary);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__main {
  position: relative;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery__main img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

/* Product info */
.product-info {
  padding: var(--space-xl) 0;
}

.product-info__series {
  font-family: var(--font-sans-wide);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.product-info__name {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-md);
}

.product-info__price {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-lg);
}

.product-info__price-tax {
  font-size: var(--text-sm);
  font-weight: var(--weight-book);
  color: var(--color-text-muted);
}

.product-info__desc {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  max-width: 55ch;
}

/* Color selector */
.color-selector {
  margin-bottom: var(--space-xl);
}

.color-selector__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-sm);
}

.color-selector__options {
  display: flex;
  gap: var(--space-sm);
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-round);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: border-color var(--duration-fast) var(--ease-default);
}

.color-swatch--active {
  border-color: var(--color-primary);
}

.color-swatch::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: var(--radius-round);
  background: inherit;
}

/* Specs table */
.specs {
  border-top: 1px solid var(--color-border);
}

.specs__row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.specs__label {
  color: var(--color-text-muted);
  font-weight: var(--weight-book);
}

.specs__value {
  font-weight: var(--weight-bold);
}

/* ------------------------------------------------------------
   18. CATEGORY / COLLECTION PAGE
   ------------------------------------------------------------ */

/* Category hero */
.category-hero {
  position: relative;
  padding: var(--space-4xl) var(--gutter) var(--space-2xl);
  text-align: center;
  background-color: var(--color-bg-light);
}

.category-hero__title {
  font-family: var(--font-sans-wide);
  font-weight: var(--weight-bold);
  font-size: var(--text-4xl);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.category-hero__desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 45ch;
  margin: 0 auto;
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex-shrink: 0;
  padding: 8px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-book);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--color-primary);
}

.filter-pill--active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1440px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-grid .product-card {
  width: 100%;
}

/* ------------------------------------------------------------
   19. ABOUT / ENGINEERING SECTION
   ------------------------------------------------------------ */

.engineering-banner {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  overflow: hidden;
}

.engineering-banner__bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
}

.engineering-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.engineering-banner__content {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) var(--gutter);
  max-width: var(--container-content);
}

.engineering-banner__label {
  font-family: var(--font-sans-wide);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  opacity: 0.5;
  margin-bottom: var(--space-lg);
}

.engineering-banner__title {
  font-family: var(--font-serif);
  font-weight: var(--weight-light);
  font-size: var(--text-hero);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-xl);
}

.engineering-banner__text {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  opacity: 0.7;
  max-width: 50ch;
  margin: 0 auto;
}

/* Timeline / history */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--color-border);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-3xl);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-2xl) - 4px);
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: var(--radius-round);
  background-color: var(--color-primary);
}

.timeline__year {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.timeline__title {
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.timeline__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ------------------------------------------------------------
   20. AWARDS & PRESS LOGOS
   ------------------------------------------------------------ */

.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  padding: var(--space-2xl) var(--gutter);
}

.logo-strip__item {
  height: 30px;
  width: auto;
  opacity: 0.3;
  filter: grayscale(100%);
  transition: opacity var(--duration-normal) var(--ease-default),
    filter var(--duration-normal) var(--ease-default);
}

.logo-strip__item:hover {
  opacity: 0.7;
  filter: grayscale(0%);
}

@media (min-width: 768px) {
  .logo-strip__item {
    height: 36px;
  }
}

/* Award badges */
.award-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
}

.award-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.award-badge__icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.award-badge__text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: 120px;
}

/* ------------------------------------------------------------
   21. COOKIE BANNER & NOTIFICATIONS
   ------------------------------------------------------------ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-toast);
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
  padding: var(--space-lg) var(--gutter);
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-out);
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-banner__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 60ch;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: var(--z-toast);
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-size: var(--text-sm);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.toast--visible {
  transform: translateY(0);
  opacity: 1;
}

/* ------------------------------------------------------------
   22. ANIMATIONS & TRANSITIONS
   ------------------------------------------------------------ */

/* Fade in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slower) var(--ease-out),
    transform var(--duration-slower) var(--ease-out);
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slower) var(--ease-out),
    transform var(--duration-slower) var(--ease-out);
}

.stagger--visible > *:nth-child(1) {
  transition-delay: 0ms;
}
.stagger--visible > *:nth-child(2) {
  transition-delay: 100ms;
}
.stagger--visible > *:nth-child(3) {
  transition-delay: 200ms;
}
.stagger--visible > *:nth-child(4) {
  transition-delay: 300ms;
}
.stagger--visible > *:nth-child(5) {
  transition-delay: 400ms;
}
.stagger--visible > *:nth-child(6) {
  transition-delay: 500ms;
}

.stagger--visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Slide in from left */
.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-slower) var(--ease-out),
    transform var(--duration-slower) var(--ease-out);
}

.slide-left--visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from right */
.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration-slower) var(--ease-out),
    transform var(--duration-slower) var(--ease-out);
}

.slide-right--visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up */
.scale-up {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--duration-slower) var(--ease-out),
    transform var(--duration-slower) var(--ease-out);
}

.scale-up--visible {
  opacity: 1;
  transform: scale(1);
}

/* Parallax hint (applied via JS) */
.parallax {
  will-change: transform;
}

/* Smooth image reveal */
.image-reveal {
  position: relative;
  overflow: hidden;
}

.image-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-bg-warm);
  transform-origin: right;
  transition: transform 0.8s var(--ease-out);
}

.image-reveal--visible::after {
  transform: scaleX(0);
}

/* Generic animate-on-scroll fallback */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slower) var(--ease-out),
    transform var(--duration-slower) var(--ease-out);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   23. UTILITY CLASSES
   ------------------------------------------------------------ */

/* Display */
.d-none {
  display: none;
}
.d-block {
  display: block;
}
.d-flex {
  display: flex;
}
.d-grid {
  display: grid;
}
.d-inline-flex {
  display: inline-flex;
}

/* Flexbox utilities */
.flex-wrap {
  flex-wrap: wrap;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-end {
  justify-content: flex-end;
}
.gap-xs {
  gap: var(--space-xs);
}
.gap-sm {
  gap: var(--space-sm);
}
.gap-md {
  gap: var(--space-md);
}
.gap-lg {
  gap: var(--space-lg);
}
.gap-xl {
  gap: var(--space-xl);
}
.gap-2xl {
  gap: var(--space-2xl);
}

/* Spacing */
.mt-xs {
  margin-top: var(--space-xs);
}
.mt-sm {
  margin-top: var(--space-sm);
}
.mt-md {
  margin-top: var(--space-md);
}
.mt-lg {
  margin-top: var(--space-lg);
}
.mt-xl {
  margin-top: var(--space-xl);
}
.mt-2xl {
  margin-top: var(--space-2xl);
}
.mt-3xl {
  margin-top: var(--space-3xl);
}
.mt-section {
  margin-top: var(--space-section);
}

.mb-xs {
  margin-bottom: var(--space-xs);
}
.mb-sm {
  margin-bottom: var(--space-sm);
}
.mb-md {
  margin-bottom: var(--space-md);
}
.mb-lg {
  margin-bottom: var(--space-lg);
}
.mb-xl {
  margin-bottom: var(--space-xl);
}
.mb-2xl {
  margin-bottom: var(--space-2xl);
}
.mb-3xl {
  margin-bottom: var(--space-3xl);
}
.mb-section {
  margin-bottom: var(--space-section);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.pt-xs {
  padding-top: var(--space-xs);
}
.pt-sm {
  padding-top: var(--space-sm);
}
.pt-md {
  padding-top: var(--space-md);
}
.pt-lg {
  padding-top: var(--space-lg);
}
.pt-xl {
  padding-top: var(--space-xl);
}
.pt-2xl {
  padding-top: var(--space-2xl);
}

.pb-xs {
  padding-bottom: var(--space-xs);
}
.pb-sm {
  padding-bottom: var(--space-sm);
}
.pb-md {
  padding-bottom: var(--space-md);
}
.pb-lg {
  padding-bottom: var(--space-lg);
}
.pb-xl {
  padding-bottom: var(--space-xl);
}
.pb-2xl {
  padding-bottom: var(--space-2xl);
}

.px-gutter {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Width */
.w-full {
  width: 100%;
}
.max-w-content {
  max-width: var(--container-content);
}
.max-w-narrow {
  max-width: var(--container-narrow);
}

/* Position */
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.sticky {
  position: sticky;
}
.overflow-hidden {
  overflow: hidden;
}

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

/* Responsive visibility */
.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: block;
  }

  .hide-tablet {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hide-desktop-down {
    display: block;
  }

  .hide-desktop {
    display: none;
  }
}

.show-mobile {
  display: block;
}

@media (min-width: 768px) {
  .show-mobile {
    display: none;
  }
}

/* Aspect ratios */
.aspect-square {
  aspect-ratio: 1;
}
.aspect-video {
  aspect-ratio: 16 / 9;
}
.aspect-4-3 {
  aspect-ratio: 4 / 3;
}
.aspect-3-2 {
  aspect-ratio: 3 / 2;
}

/* Object fit */
.object-cover {
  object-fit: cover;
}
.object-contain {
  object-fit: contain;
}

/* Border */
.border-top {
  border-top: 1px solid var(--color-border);
}
.border-bottom {
  border-bottom: 1px solid var(--color-border);
}

/* Rounded */
.rounded {
  border-radius: var(--radius-md);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.rounded-xl {
  border-radius: var(--radius-xl);
}
.rounded-full {
  border-radius: var(--radius-round);
}

/* Cursor */
.cursor-pointer {
  cursor: pointer;
}

/* Transition */
.transition {
  transition: all var(--duration-normal) var(--ease-default);
}

/* Truncate */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------------------------------
   24. LOADING & SKELETON STATES
   ------------------------------------------------------------ */

.skeleton {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-sm);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.skeleton--text {
  height: 1em;
  width: 80%;
  margin-bottom: 0.5em;
}

.skeleton--heading {
  height: 2em;
  width: 60%;
  margin-bottom: 1em;
}

.skeleton--image {
  width: 100%;
  aspect-ratio: 4 / 3;
}

/* Loading spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: var(--radius-round);
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Page loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 10);
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--duration-slow) var(--ease-default);
}

.page-loader--hidden {
  opacity: 0;
  pointer-events: none;
}

/* ------------------------------------------------------------
   25. SUPPORT / ARTICLE PAGES
   ------------------------------------------------------------ */

.article {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-3xl) var(--gutter);
}

.article__header {
  margin-bottom: var(--space-2xl);
}

.article__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.article__title {
  font-family: var(--font-serif);
  font-weight: var(--weight-light);
  font-size: var(--text-3xl);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-lg);
}

.article__body {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

.article__body p {
  margin-bottom: 1.5em;
}

.article__body h2 {
  font-size: var(--text-xl);
  margin-top: 2.5em;
  margin-bottom: 0.75em;
}

.article__body h3 {
  font-size: var(--text-lg);
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.article__body img {
  border-radius: var(--radius-lg);
  margin: var(--space-2xl) 0;
}

.article__body blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-lg);
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-lg);
  margin: var(--space-2xl) 0;
  color: var(--color-text-muted);
}

.article__body ul,
.article__body ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.article__body li {
  list-style: disc;
  margin-bottom: 0.5em;
}

/* ------------------------------------------------------------
   26. TABS
   ------------------------------------------------------------ */

.tabs {
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-xl);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex-shrink: 0;
  padding: var(--space-md) 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--duration-fast) var(--ease-default),
    border-color var(--duration-fast) var(--ease-default);
  cursor: pointer;
  white-space: nowrap;
}

.tab:hover {
  color: var(--color-text);
}

.tab--active {
  color: var(--color-text);
  border-bottom-color: var(--color-primary);
}

.tab-panel {
  display: none;
  padding: var(--space-xl) 0;
}

.tab-panel--active {
  display: block;
}

/* ------------------------------------------------------------
   27. ACCORDION / FAQ
   ------------------------------------------------------------ */

.accordion {
  border-top: 1px solid var(--color-border);
}

.accordion__item {
  border-bottom: 1px solid var(--color-border);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  text-align: left;
  cursor: pointer;
}

.accordion__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  margin-left: var(--space-md);
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  background-color: var(--color-text);
  transition: transform var(--duration-normal) var(--ease-default);
}

.accordion__icon::before {
  transform: translate(-50%, -50%);
}

.accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion__item--open .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-default);
}

.accordion__item--open .accordion__content {
  max-height: 500px;
}

.accordion__body {
  padding-bottom: var(--space-xl);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------
   28. MODAL
   ------------------------------------------------------------ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-default),
    visibility var(--duration-normal) var(--ease-default);
}

.modal-overlay--open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--duration-normal) var(--ease-out);
}

.modal-overlay--open .modal {
  transform: translateY(0) scale(1);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.modal__title {
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
}

.modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-round);
  transition: background-color var(--duration-fast) var(--ease-default);
}

.modal__close:hover {
  background-color: var(--color-bg-light);
}

.modal__body {
  padding: var(--space-xl);
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--color-border);
}

/* ------------------------------------------------------------
   29. VIDEO PLAYER
   ------------------------------------------------------------ */

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-bg-dark);
}

.video-wrapper video,
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-spring),
    background-color var(--duration-fast) var(--ease-default);
  z-index: 2;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--color-white);
}

.video-play-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

/* ------------------------------------------------------------
   30. PRINT STYLES
   ------------------------------------------------------------ */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .header,
  .footer,
  .cookie-banner,
  .carousel__controls,
  .btn,
  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }

  .header-spacer {
    height: 0;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* ------------------------------------------------------------
   31. REDUCED MOTION
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in,
  .slide-left,
  .slide-right,
  .scale-up,
  .stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------
   32. HIGH CONTRAST MODE
   ------------------------------------------------------------ */

@media (prefers-contrast: high) {
  :root {
    --color-text-muted: #333333;
    --color-text-light: #555555;
    --color-border: #666666;
  }

  .btn--outline {
    border-width: 2px;
  }

  .nav__item::after {
    height: 3px;
  }
}

/* ------------------------------------------------------------
   33. DARK MODE SUPPORT
   ------------------------------------------------------------ */

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #111111;
    --color-bg-light: #1a1a1a;
    --color-bg-warm: #1c1a17;
    --color-text: #f0f0f0;
    --color-text-muted: #999999;
    --color-text-light: #777777;
    --color-border: #333333;
    --color-overlay-light: rgba(255, 255, 255, 0.06);
  }

  .header {
    background-color: var(--color-bg);
  }

  .header--scrolled {
    border-bottom-color: var(--color-border);
  }

  .mega-menu {
    background-color: var(--color-bg);
  }

  .mobile-nav {
    background-color: var(--color-bg);
  }

  .product-card {
    background-color: var(--color-bg-light);
  }

  .input {
    background-color: var(--color-bg-light);
    border-color: var(--color-border);
  }

  .carousel__btn {
    background-color: var(--color-bg-light);
    border-color: var(--color-border);
  }

  .cookie-banner {
    background-color: var(--color-bg);
  }

  .modal {
    background-color: var(--color-bg);
  }

  .search-overlay {
    background-color: var(--color-bg);
  }

  .filter-pill {
    border-color: var(--color-border);
  }

  .skeleton {
    background-color: var(--color-bg-light);
  }

  img {
    opacity: 0.9;
  }
}

/* Skip Navigation Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-family: var(--font-sans);
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 8px;
}

/* ============================================================
 * Shared site header (dash convention)
 * 用途: .site-header クラスを使う全 HTML (root + products + manuals)
 * 背景: 既存ルート 14 ページはインライン style で重複定義していたが、
 *       products 配下 49 件と manuals 配下 22 件が未定義で崩れていた。
 *       ここに集約してすべて同じ表示になるようにする。
 *       .site-header 子孫セレクタに統一 specificity=20 することで、
 *       既存ルート HTML のインライン style specificity=10 と
 *       style.css の dead な .header BEM ルールのどちらとも衝突しない。
 * ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f5f5f5;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  height: var(--header-height);
  transition: box-shadow 0.2s ease, border-bottom-color 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.site-header .header-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .header-logo a {
  display: flex;
  align-items: center;
}

.site-header .header-logo img {
  height: 20px;
  width: auto;
}

.site-header .header-logo .logo-text {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.site-header .header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header .header-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
  text-decoration: none;
  color: var(--color-text);
}

.site-header .header-nav a:hover {
  color: #00857c;
}

.site-header .header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #00857c;
}

.site-header .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header .region-selector {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.site-header .search-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.site-header .search-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-text);
}

/* ===== Header right-side controls: EN language link + search trigger ===== */
.site-header .lang-toggle,
.site-header .search-toggle {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
  /* iOS hit-test essentials (mirrors .menu-toggle / .hamburger-button). */
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  -webkit-appearance: none;
  appearance: none;
  -webkit-user-select: none;
  user-select: none;
}

.site-header .lang-toggle:hover,
.site-header .lang-toggle:focus-visible,
.site-header .search-toggle:hover,
.site-header .search-toggle:focus-visible {
  color: var(--color-teal);
}

.site-header .search-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  /* On mobile the hamburger owns the right side; collapse EN + search
     into the overlay menu (handled inline in the nav). */
  .site-header .lang-toggle,
  .site-header .search-toggle {
    display: none;
  }
}

/* Legacy contact-cta removed; rules retained as no-op anchors so existing
   pages referring to .header-nav__contact-mobile from older inline state
   stay deterministic until the next deploy. */
.header-nav__contact-mobile,
.primary-nav__contact-mobile {
  display: none;
}
@media (max-width: 768px) {
  .header-nav.is-open .header-nav__contact-mobile,
  .primary-nav.is-open .primary-nav__contact-mobile {
    /* Use the same flex/alignment as the rest of the overlay links —
       color is inherited from `.header-nav.is-open a` (#1a1a1a) and
       `.primary-nav.is-open .nav-link` (#1a1a1a) so the contact item
       reads as a normal menu item, not a separate accent. */
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

/* ===== Search modal (Pagefind) ===== */
.search-modal[hidden] {
  display: none !important;
}
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(60px, 10vh, 120px) 16px 16px;
}
.search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.search-modal__card {
  /* Liquid-glass card: backdrop-filter blur + SVG displacement.
     Inner shadow + transparency are split across ::before / ::after so
     the body content sits cleanly above both effect layers. */
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 120px);
  border-radius: 28px;
  isolation: isolate;
  box-shadow: 0 0 21px -8px rgba(255, 255, 255, 0.3);
  padding: 32px 32px 24px;
  overflow-y: auto;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.search-modal__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 28px;
  box-shadow: inset 0 0 14px -4px rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0);
  pointer-events: none;
}
.search-modal__card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 28px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  filter: url(#glass-distortion);
  -webkit-filter: url(#glass-distortion);
  isolation: isolate;
  pointer-events: none;
}
.search-modal__card > * {
  position: relative;
  z-index: 10;
}
/* SVG filter wrapper — hidden but reachable for `url(#glass-distortion)` */
.glass-filter-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.search-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.15);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.search-modal__close:hover {
  opacity: 1;
}
.search-modal__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
}
/* Pagefind Default UI overrides — tuned for the liquid-glass card so text
   reads against the blurred translucent backdrop. */
.search-modal .pagefind-ui {
  --pagefind-ui-primary: var(--color-teal, #00857c);
  --pagefind-ui-text: #fff;
  --pagefind-ui-background: transparent;
  --pagefind-ui-border: rgba(255, 255, 255, 0.25);
  --pagefind-ui-tag: rgba(255, 255, 255, 0.12);
  --pagefind-ui-tag: var(--color-bg-light, #f5f5f5);
  --pagefind-ui-border-radius: 8px;
  --pagefind-ui-font: var(--font-sans);
}

/* Lock body scroll while modal open (toggled by JS adding .search-open) */
body.search-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .search-modal__card {
    padding: 24px 16px 16px;
    max-height: calc(100vh - 80px);
  }
}

.site-header .menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: auto;
  height: auto;
  /* iOS Safari hit-testing essentials.
     Without `touch-action: manipulation` iOS adds a 300ms click delay
     and sometimes drops the first tap. Without the appearance reset
     iOS may decorate the button in ways that intercept the touch.
     min-width/height of 44px meets Apple HIG so the tap is forgiving.
     position/z-index are set in the mobile media query below so the
     button stays clickable on top of the .header-nav.is-open overlay. */
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  -webkit-appearance: none;
  appearance: none;
  -webkit-user-select: none;
  user-select: none;
  min-width: 44px;
  min-height: 44px;
}

.site-header .menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* When the menu is open the JS flips aria-expanded="true"; rotate the
   bars into an X so the user sees a familiar "close" affordance. */
.site-header .menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header .menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.site-header .menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .site-header .header-nav {
    display: none;
  }
  .site-header .menu-toggle {
    display: block;
  }
}

/* ============================================================
 * Shared site footer (dash convention)
 * 用途: .site-footer 系クラスを使う全 HTML
 * 背景: root 14 ページはインライン style で定義済みだが、
 *       products 配下 48 件と manuals 配下 22 件が未定義で崩れていた。
 *       header と同じパターン。
 *       .site-footer 子孫セレクタに統一して既存インラインと衝突させない。
 * 注意: CSS コメント内にスラッシュとアスタリスク連続を書かない
 *       （過去 style.css で早期クローズされた事故あり）。
 * ============================================================ */
.site-footer {
  background: #000;
  color: #fff;
  padding: 64px 0 32px;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 32px;
}

.site-footer .footer-col h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  color: #fff;
}

.site-footer .footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
  transition: color 0.2s;
  text-decoration: none;
}

.site-footer .footer-col a:hover {
  color: #fff;
}

.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.site-footer .footer-bottom-links {
  display: flex;
  gap: 20px;
}

.site-footer .footer-bottom-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
  text-decoration: none;
}

.site-footer .footer-bottom-links a:hover {
  color: #fff;
}

.site-footer .footer-importer {
  color: rgba(255, 255, 255, 0.85);
  margin-left: 0.25em;
}

.site-footer .footer-importer__link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.site-footer .footer-importer__link:hover,
.site-footer .footer-importer__link:focus-visible {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
 * Utility classes (Phase 2 part 2)
 * 用途: inline style="..." 属性を排除し style-src 'unsafe-inline' を削除
 * 2026-04-24: 180 個の inline style をこれらのクラスに置換
 * ============================================================ */

/* Hidden-by-default elements that JS reveals.
   JS sets el.style.display='block' to show — inline style always beats class. */
.logo-text { display: none; }

/* Quote carousel slides — show only .is-active */
.pp-quote__slide { display: none; }
.pp-quote__slide.is-active { display: block; }
/* Use BOTH classes (.pp-quote__source.pp-quote__source-slide) so specificity (0,2,0)
   beats product-page.css `.pp-quote__source { display:flex }` (0,1,0, loaded later) —
   otherwise every inactive logo stays visible (all stacked). Active uses flex so the
   justify-content:center keeps the logo centred (display:block left-aligns the <img>). */
.pp-quote__source.pp-quote__source-slide { display: none; }
.pp-quote__source.pp-quote__source-slide.is-active { display: flex; justify-content: center; }

/* Grid layout utilities */
.u-grid-3col-max {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
}

.u-grid-3col {
  grid-template-columns: repeat(3, 1fr);
}

.u-grid-2col {
  grid-template-columns: 1fr 1fr;
}

.u-grid-2col-flush {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* Spacing utilities */
.u-mt-32 { margin-top: 32px; }
.u-mt-8 { margin-top: 8px; }

/* Visibility utilities */
.u-hidden { display: none !important; }

/* Mobile menu overlay (was injected at runtime by js/main.js — moved to keep CSP strict). */
@media (max-width: 768px) {
  .header-nav.is-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    padding: 80px 24px 24px;
    gap: 0;
    overflow-y: auto;
  }
  .header-nav.is-open a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    color: #1a1a1a;
    border-bottom: 1px solid #eee;
  }
  .header-nav.is-open a:last-child {
    border-bottom: none;
  }
  .site-header .menu-toggle,
  .site-header .mobile-menu-toggle,
  .site-header .hamburger-button {
    position: relative;
    z-index: 10000;
    /* Promote to its own composited layer so iOS WebKit dispatches
       touch events to this button rather than the fixed-header
       ancestor's painted layer. Without this, the index.html
       hamburger sat inside the .site-header composited layer and
       physical taps fell through. */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  /* iOS Safari: prevent the inner bars from intercepting touch and
     swallowing the click event before it reaches the <button>. */
  .site-header .menu-toggle > span,
  .site-header .menu-toggle > svg,
  .site-header .mobile-menu-toggle > span,
  .site-header .mobile-menu-toggle > svg,
  .site-header .hamburger-button > span,
  .site-header .hamburger-button > svg {
    pointer-events: none;
  }
}

/* Image card utility — 3:2 ratio cover with rounded corners */
.u-img-3x2 {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 16px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Caption text utility */
.u-caption-centered {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 720px;
}

/* Teal accents */
.u-link-teal {
  color: #00857c;
  text-decoration: underline;
}

.u-btn-teal-outline {
  background: transparent;
  color: #00857c;
  border: 1px solid #00857c;
  margin-left: 8px;
}
