/* ==========================================================================
   STORMFELL — Waterproof Jacket product site (Light editorial theme)
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Color — light editorial */
  --bg:        #FFFFFF;
  --bg-2:      #FAF8F4;
  --bg-3:      #F2EEE6;
  --bg-card:   #FFFFFF;
  --bg-dark:   #0A0E13;
  --fg:        #0A0E13;
  --fg-muted:  #5A554E;
  --fg-dim:    #9A938A;
  --accent:    #45779C;
  --accent-2:  #3A4A5A;
  --line:      rgba(10, 14, 19, 0.10);
  --line-2:    rgba(10, 14, 19, 0.18);

  /* Type */
  --font-display: 'Playfair Display', system-ui, sans-serif;
  --font-body:    'Playfair Display', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Menlo', monospace;

  /* Rhythm */
  --container: 1400px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(80px, 10vw, 160px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}
.display em { font-style: normal; color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 400; }
.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 52ch;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section--muted { background: var(--bg-2); }
.section--sand { background: var(--bg-3); }
.row { display: flex; gap: clamp(24px, 4vw, 64px); }
.grid { display: grid; gap: clamp(20px, 2.5vw, 40px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "→";
  font-family: var(--font-body);
  font-size: 14px;
  transition: transform 0.4s var(--ease);
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn:hover::after { transform: translateX(4px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn--accent:hover { background: transparent; color: var(--accent); }
.btn--ghost { border-color: var(--line-2); }
.btn--light { border-color: rgba(255,255,255,0.6); color: #FFFFFF; }
.btn--light:hover { background: #FFFFFF; color: var(--bg-dark); }

/* ---------- Grain overlay (subtle, light) ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  mix-blend-mode: multiply;
  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.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s var(--ease);
  mix-blend-mode: difference;
}
.cursor.is-hover { width: 40px; height: 40px; opacity: 0.5; }
@media (hover: none) { .cursor { display: none; } }

/* ==========================================================================
   PAGE HEADER (sub-pages)
   ========================================================================== */
.page-head {
  padding-top: clamp(140px, 18vw, 220px);
  padding-bottom: clamp(48px, 7vw, 100px);
  border-bottom: 1px solid var(--line);
}
.page-head__inner { max-width: 900px; }
.page-head__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 20px 0 24px;
}
.page-head__title em { font-style: italic; color: var(--accent); }
.page-head__sub {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--fg-muted);
  max-width: 56ch;
  line-height: 1.6;
}

/* Breadcrumbs */
.crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 32px;
}
.crumb a { color: var(--fg-muted); transition: color 0.3s var(--ease); }
.crumb a:hover { color: var(--accent); }
.crumb .sep { color: var(--fg-dim); }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 24px;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  color: #FFFFFF;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: 16px;
  border-bottom-color: var(--line);
  color: var(--fg);
}
/* Nav on inner (light) pages: starts light, then stays light */
.nav.nav--light {
  color: var(--fg);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.nav--light.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  line-height: 0;
}
.logo img { display: block; height: 80px; width: auto; }
/* Logo image swap
   - Home page (.nav WITHOUT .nav--light): top = logo.png, scrolled = logo-light.png
   - Inner pages (.nav WITH .nav--light): always logo-light.png (no swap) */
.logo .logo__img--light { display: none; }

/* Home only: swap on scroll */
.nav:not(.nav--light).is-scrolled .logo .logo__img--default { display: none; }
.nav:not(.nav--light).is-scrolled .logo .logo__img--light   { display: block; }

/* Inner pages: force light logo always */
.nav.nav--light .logo .logo__img--default { display: none; }
.nav.nav--light .logo .logo__img--light   { display: block; }
.logo span { color: var(--accent); font-style: normal; }
.nav.is-scrolled .logo, .nav.nav--light .logo { color: var(--fg); }
.nav__menu {
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.8;
  position: relative;
  padding-block: 4px;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { opacity: 1; color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 24px; }
.nav__burger {
  display: none;
  width: 32px; height: 24px;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav__burger span:nth-child(1) { top: 4px; }
.nav__burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav__burger span:nth-child(3) { bottom: 4px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   HERO CAROUSEL (dark feature, full bleed)
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero__track {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.hero__slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-dark);
  opacity: 0;
  transition: opacity 1.2s var(--ease-soft);
  pointer-events: none;
  overflow: hidden;
}
.hero__slide.is-active { opacity: 1; pointer-events: auto; }
.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-dark);
  transform: scale(1.08);
  transition: transform 8s linear;
}
.hero__slide.is-active .hero__img { transform: scale(1); }

/* gradient masks */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(10,14,19,0.55) 0%, rgba(10,14,19,0) 22%, rgba(10,14,19,0) 55%, rgba(10,14,19,0.92) 100%),
    linear-gradient(90deg, rgba(10,14,19,0.65) 0%, rgba(10,14,19,0.15) 45%, rgba(10,14,19,0) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(80px, 12vh, 140px);
  color: #FFFFFF;
}
.hero__inner { max-width: 900px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 24px 0 28px;
  color: #FFFFFF;
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__title span { display: block; }
.hero__sub {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 44ch;
  margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* slide index meta */
.hero__meta {
  position: absolute;
  bottom: clamp(80px, 12vh, 140px);
  right: var(--gutter);
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 32px;
  color: #FFFFFF;
}
.hero__counter {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.6);
}
.hero__counter strong { color: #FFFFFF; font-weight: 500; }
.hero__counter .sep { color: rgba(255,255,255,0.35); margin: 0 8px; }

/* controls */
.hero__arrows {
  position: absolute;
  z-index: 4;
  right: var(--gutter);
  bottom: clamp(80px, 12vh, 140px);
  display: flex;
  gap: 1px;
}
.hero__arrow {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  backdrop-filter: blur(6px);
}
.hero__arrow:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.hero__arrow svg { width: 18px; height: 18px; }

.hero__dots {
  position: absolute;
  z-index: 4;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.hero__dot {
  width: 32px; height: 2px;
  background: rgba(255,255,255,0.25);
  position: relative;
  overflow: hidden;
}
.hero__dot.is-active { background: rgba(255,255,255,0.2); }
.hero__dot.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  animation: dotFill 5s linear forwards;
}
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* scroll cue */
.hero__cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

/* ==========================================================================
   MARQUEE STRIP
   ========================================================================== */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-dark);
  color: #FFFFFF;
  overflow: hidden;
  padding-block: 18px;
}
.marquee__track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.marquee__track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee__track span::after { content: "✦"; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   HIGHLIGHT (single product focus)
   ========================================================================== */
.highlight { background: var(--bg); }
.highlight__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.highlight__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-3);
}
.highlight__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.highlight__media:hover img { transform: scale(1.04); }
.highlight__tag {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--accent);
  color: #FFFFFF;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}
.highlight__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 20px 0 24px;
}
.highlight__title em { font-style: italic; color: var(--accent); }
.highlight__desc {
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 48ch;
}
.highlight__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  color: var(--fg-muted);
  background: var(--bg-2);
}
.highlight__price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 36px;
}
.highlight__price-now {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
}
.highlight__price-was {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg-dim);
  text-decoration: line-through;
}

/* ==========================================================================
   TECH FEATURES
   ========================================================================== */
.tech { background: var(--bg-2); border-block: 1px solid var(--line); }
.tech__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.tech__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.tech__title em { font-style: italic; color: var(--accent); }
.tech__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tech__card {
  background: var(--bg);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: background 0.4s var(--ease);
  position: relative;
}
.tech__card:hover { background: var(--bg-2); }
.tech__icon {
  width: 48px; height: 48px;
  color: var(--accent);
}
.tech__icon svg { width: 100%; height: 100%; }
.tech__value {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}
.tech__value sup {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 400;
  margin-left: 4px;
  vertical-align: top;
  top: 0.5em;
}
.tech__name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.tech__desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ==========================================================================
   COLLECTION (product grid)
   ========================================================================== */
.collection__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.collection__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.collection__title em { font-style: italic; color: var(--accent); }
.collection__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}
.product {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.product__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-3);
}
.product__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
  filter: grayscale(0.1);
}
.product:hover .product__media img { transform: scale(1.06); filter: grayscale(0); }
.product__num {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  background: rgba(255,255,255,0.85);
  padding: 4px 10px;
}
.product__view {
  position: absolute;
  bottom: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 14px;
  background: var(--bg-dark);
  color: #FFFFFF;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.product:hover .product__view { opacity: 1; transform: translateY(0); }
.product__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.product__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.product__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 6px;
}
.product__price {
  font-family: var(--font-mono);
  font-size: 14px;
  white-space: nowrap;
}
.product__swatches { display: flex; gap: 8px; margin-top: 4px; }
.swatch {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
}

/* ==========================================================================
   SPECS
   ========================================================================== */
.specs { background: var(--bg-2); border-block: 1px solid var(--line); }
.specs__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.specs__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 20px;
}
.specs__title em { font-style: italic; color: var(--accent); }
.specs__table { width: 100%; }
.specs__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.specs__row:first-child { border-top: 1px solid var(--line); }
.specs__key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.specs__val {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  position: relative;
  text-align: center;
  padding-block: clamp(100px, 14vw, 200px);
  overflow: hidden;
  background: var(--bg-dark);
  color: #FFFFFF;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255,107,26,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(58,74,90,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 24px 0 32px;
  color: #FFFFFF;
}
.cta__title em { font-style: italic; color: var(--accent); }
.cta__sub {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 auto 40px;
}
.cta__actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-dark);
  color: #FFFFFF;
  padding-top: clamp(64px, 8vw, 100px);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand .logo { font-size: 32px; margin-bottom: 20px; color: #FFFFFF; }
.footer__brand p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.7; max-width: 32ch; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  margin-bottom: 22px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s var(--ease);
}
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 32px;
  flex-wrap: wrap;
}
.footer__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.footer__socials { display: flex; gap: 18px; }
.footer__socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.3s var(--ease);
}
.footer__socials a:hover { border-color: var(--accent); color: var(--accent); }
.footer__socials svg { width: 16px; height: 16px; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ==========================================================================
   MOBILE MENU OVERLAY
   ========================================================================== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }
.menu-overlay a {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 8vw, 72px);
  line-height: 1.1;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-muted);
  transition: color 0.3s var(--ease), padding-left 0.4s var(--ease);
}
.menu-overlay a:hover { color: var(--accent); padding-left: 12px; }

/* ==========================================================================
   PRODUCTS LISTING PAGE
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(40px, 5vw, 64px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.filter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--fg-muted);
  transition: all 0.3s var(--ease);
}
.filter:hover { border-color: var(--fg); color: var(--fg); }
.filter.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 48px) clamp(20px, 2.5vw, 36px);
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.detail { padding-top: clamp(120px, 14vw, 180px); }
.detail__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.detail__gallery { position: sticky; top: 120px; }
.detail__main-img {
  aspect-ratio: 4 / 5;
  background: var(--bg-3);
  overflow: hidden;
  position: relative;
}
.detail__main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.detail__thumb {
  aspect-ratio: 1;
  background: var(--bg-3);
  overflow: hidden;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s var(--ease);
}
.detail__thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail__thumb.is-active { border-color: var(--accent); }
.detail__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1;
  margin: 16px 0 20px;
}
.detail__name em { font-style: italic; color: var(--accent); }
.detail__cat {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.detail__desc {
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 28px 0;
  max-width: 50ch;
}
.detail__price {
  font-family: var(--font-display);
  font-size: 36px;
  margin-bottom: 32px;
}
.detail__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.detail__specs {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 32px;
}
.detail__specs h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.detail__specs .specs__row { padding: 18px 0; }

/* Rich-text description block (full-width below gallery) */
.detail__description {
  margin-top: clamp(60px, 8vw, 100px);
  padding-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--line);
}
.detail__description-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

/* Rich text content (rte) — used for product descriptions authored in the admin */
.rte { color: var(--fg); font-size: 16px; line-height: 1.7; }
.rte > * + * { margin-top: 18px; }
.rte h2 { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.2; margin-top: 32px; margin-bottom: 4px; }
.rte h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.3; margin-top: 28px; margin-bottom: 4px; }
.rte h4 { font-family: var(--font-display); font-weight: 500; font-size: 16px; margin-top: 24px; margin-bottom: 4px; }
.rte p { margin: 0; }
.rte strong, .rte b { font-weight: 600; color: var(--fg); }
.rte em, .rte i { font-style: italic; }
.rte ul, .rte ol { padding-left: 24px; }
.rte li { margin-top: 8px; }
.rte li:first-child { margin-top: 0; }
.rte a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rte a:hover { color: var(--fg); }
.rte img { max-width: 100%; height: auto; display: block; margin: 24px auto; border: 1px solid var(--line); }
.rte blockquote { border-left: 2px solid var(--accent); padding: 4px 0 4px 20px; color: var(--fg-muted); font-style: italic; }
.rte hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.rte table { width: 100%; border-collapse: collapse; }
.rte th, .rte td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: 14px; }
.rte th { background: var(--bg-2); font-weight: 600; }
.rte figure { margin: 24px 0; }
.rte figcaption { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); margin-top: 8px; }

.related { background: var(--bg-2); border-top: 1px solid var(--line); }

/* ==========================================================================
   TECHNOLOGY PAGE
   ========================================================================== */
.tech-hero { padding-top: clamp(140px, 18vw, 220px); padding-bottom: clamp(60px, 8vw, 100px); border-bottom: 1px solid var(--line); background: var(--bg); }
.tech-story { background: var(--bg); }
.tech-story__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.tech-story__media {
  aspect-ratio: 4 / 5;
  background: var(--bg-3);
  overflow: hidden;
}
.tech-story__media img { width: 100%; height: 100%; object-fit: cover; }
.tech-story__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
}
.tech-story__title em { font-style: italic; color: var(--accent); }
.tech-story__text { color: var(--fg-muted); font-size: 16px; line-height: 1.7; }
.tech-story__text + .tech-story__text { margin-top: 16px; }

.layer-diagram {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.layer {
  background: var(--bg);
  padding: clamp(28px, 3vw, 40px);
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 32px;
  align-items: center;
  transition: background 0.3s var(--ease);
}
.layer:hover { background: var(--bg-2); }
.layer__num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.layer__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}
.layer__desc { color: var(--fg-muted); font-size: 14px; line-height: 1.6; }

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.about-hero { padding-top: clamp(140px, 18vw, 220px); padding-bottom: clamp(60px, 8vw, 100px); }
.about-hero__img {
  margin-top: clamp(40px, 6vw, 80px);
  aspect-ratio: 21 / 9;
  background: var(--bg-3);
  overflow: hidden;
}
.about-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: clamp(32px, 4vw, 56px);
  text-align: left;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__num sup { font-family: var(--font-mono); font-size: 14px; color: var(--accent); margin-left: 4px; vertical-align: top; top: 0.3em; }
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 16px;
}


/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-grid {max-width: 970px;margin: 0 auto;
}
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--fg);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}
.field textarea { min-height: 140px; resize: vertical; }
.contact-info { display: flex; flex-direction: column; gap: 36px; }
.contact-block h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.contact-block p, .contact-block a {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--fg);
}
.contact-block a { transition: color 0.3s var(--ease); }
.contact-block a:hover { color: var(--accent); }

/* ==========================================================================
   ALERTS (form feedback)
   ========================================================================== */
.alert {
  padding: 16px 20px;
  border: 1px solid var(--line);
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.5;
}
.alert ul { margin-top: 6px; padding-left: 18px; }
.alert--success {
  background: #F0F7EE;
  border-color: #B6D8A8;
  color: #2A5E1F;
}
.alert--error {
  background: #FCF1EE;
  border-color: #E5B7AC;
  color: #8B2114;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .tech__grid { grid-template-columns: repeat(2, 1fr); }
  .collection__grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .nav__menu { display: none; }
  .nav__burger { display: block; }
  .hero__meta { display: none; }
  .highlight__grid, .specs__grid, .tech-story__grid, .detail__grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail__gallery { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .timeline__item { grid-template-columns: 100px 1fr; gap: 24px; }
  .layer { grid-template-columns: 60px 1fr; }
  .layer__desc { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --section-y: clamp(56px, 12vw, 80px); }
  .tech__head, .collection__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .tech__grid { grid-template-columns: 1fr; }
  .collection__grid, .products-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .hero__arrows { display: none; }
  .specs__row { grid-template-columns: 1fr; gap: 6px; }
  .stats { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(40px, 14vw, 64px); }
  .filter { font-size: 10px; padding: 8px 14px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero__slide.is-active .hero__img { transform: none; }
}
