/* ============================================
   ALPINWOOD — Premium Alpine Design System
   Bento UI + Natural Luxury
   ============================================ */

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

:root {
  /* --- Brand Palette --- */
  /* Primary: deep alpine green */
  --primary: #2D3E33;
  --primary-light: #3A5244;
  --primary-dark: #1F2D24;
  --primary-muted: #4A6354;

  /* Secondary: warm olive */
  --secondary: #5D5E52;
  --secondary-light: #74756A;
  --secondary-dark: #474840;
  --secondary-muted: #8A8B80;

  /* Tertiary: steel blue */
  --tertiary: #7692A6;
  --tertiary-light: #9AB2C3;
  --tertiary-dark: #5A7A90;
  --tertiary-muted: #B0C4D2;

  /* Neutral: warm white */
  --neutral: #F9F8F6;
  --neutral-warm: #F0EEEA;
  --neutral-cool: #E8E6E2;
  --neutral-dark: #D5D3CF;

  /* Semantic aliases (backward compat) */
  --walnut: #5D5E52;
  --walnut-light: #74756A;
  --oak: #A8A598;
  --oak-light: #C2BFB4;
  --graphite: #2D3E33;
  --graphite-soft: #3A5244;
  --stone: #5D5E52;
  --stone-light: #8A8B80;
  --milk: #F0EEEA;
  --smoke: #F9F8F6;
  --snow: #FFFFFF;
  --pine: #2D3E33;
  --pine-light: #3A5244;
  --ice: #7692A6;
  --ice-light: #9AB2C3;
  --cream: #EEEDEA;

  /* --- Surfaces --- */
  --surface-primary: #F9F8F6;
  --surface-card: rgba(255, 255, 255, 0.72);
  --surface-glass: rgba(255, 255, 255, 0.45);
  --surface-dark: #2D3E33;
  --surface-dark-card: rgba(45, 62, 51, 0.9);

  /* --- Typography --- */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* --- Radius --- */
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-xl: 40px;

  /* --- Shadows --- */
  --shadow-sm: 0 2px 8px rgba(45, 62, 51, 0.06);
  --shadow-md: 0 8px 32px rgba(45, 62, 51, 0.08);
  --shadow-lg: 0 16px 48px rgba(45, 62, 51, 0.1);
  --shadow-xl: 0 24px 64px rgba(45, 62, 51, 0.12);
  --shadow-glow: 0 0 40px rgba(118, 146, 166, 0.15);

  /* --- Layout --- */
  --container: 1400px;
  --gap: clamp(12px, 1.5vw, 20px);
  --section-gap: clamp(48px, 6vw, 80px);

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.5s;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--graphite);
  background: var(--surface-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--graphite);
}

h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }

.overline {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--tertiary-dark);
}

.text-lg { font-size: clamp(1.05rem, 1.2vw, 1.2rem); line-height: 1.7; color: var(--stone); }
.text-sm { font-size: 0.85rem; line-height: 1.6; color: var(--stone); }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--graphite);
  color: var(--snow);
}
.btn-primary:hover {
  background: var(--walnut);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--graphite);
  border: 1.5px solid rgba(45, 45, 45, 0.2);
}
.btn-outline:hover {
  border-color: var(--graphite);
  background: rgba(45, 45, 45, 0.04);
}

.btn-glass {
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--graphite);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.65);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--primary);
  color: var(--snow);
}
.btn-accent:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(45, 62, 51, 0.3);
}

.btn-warm {
  background: var(--secondary);
  color: var(--snow);
}
.btn-warm:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
}

.btn-tertiary {
  background: var(--tertiary);
  color: var(--snow);
}
.btn-tertiary:hover {
  background: var(--tertiary-dark);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--snow);
  color: var(--graphite);
}
.btn-light:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn .arrow {
  transition: transform 0.3s var(--ease-out);
  font-size: 1.1em;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================
   HEADER
   ============================================ */

/* --- Liquid Glass Header --- */
.header {
  position: fixed;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 40px);
  max-width: var(--container);
  padding: 0 32px;
  border-radius: 100px;
  background: rgba(30, 35, 32, 0.45);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 -1px 0 rgba(0, 0, 0, 0.1) inset;
  transition: all 0.5s var(--ease-out);
}

.header--top {
  background: rgba(30, 35, 32, 0.35);
  border-color: rgba(255, 255, 255, 0.06);
}

.header--scrolled {
  background: rgba(30, 35, 32, 0.65);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  top: 10px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 100%;
  margin: 0;
}

.logo {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--snow);
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header--top .logo { color: var(--snow); }
.header--scrolled .logo { color: var(--snow); }

.logo-icon {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: var(--snow);
  stroke-width: 1.5;
}

.logo span {
  margin-left: -0.18em;
  font-weight: 300;
  opacity: 0.5;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  transition: color 0.3s;
}
.header--top .nav a { color: rgba(255,255,255,0.6); }
.header--top .nav a:hover { color: var(--snow); }
.header--scrolled .nav a { color: rgba(255,255,255,0.6); }
.header--scrolled .nav a:hover { color: var(--snow); }

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--snow);
  transition: width 0.4s var(--ease-out);
}
.nav a:hover::after { width: 100%; }

.header-cta .btn {
  padding: 8px 20px;
  font-size: 0.62rem;
  border-radius: 100px;
}
.header-cta .btn-outline {
  color: var(--snow);
  border-color: rgba(255,255,255,0.2);
}
.header-cta .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}
.header--top .header-cta .btn-outline {
  color: var(--snow);
  border-color: rgba(255,255,255,0.2);
}
.header--top .header-cta .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}
/* Filled CTA in header */
.header-cta .btn-accent {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--snow);
  border-radius: 100px;
  backdrop-filter: blur(8px);
}
.header-cta .btn-accent:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.3);
  transform: none;
  box-shadow: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 22px;
  cursor: pointer;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--snow);
  transition: all 0.3s var(--ease-out);
  border-radius: 1px;
}
.header--top .nav-toggle span { background: var(--snow); }
.header--scrolled .nav-toggle span { background: var(--snow); }

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-dark);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(45, 62, 51, 0.6) 0%,
    rgba(45, 62, 51, 0.2) 50%,
    rgba(31, 45, 36, 0.45) 100%
  );
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-text .overline {
  color: var(--oak-light);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s var(--ease-out) 0.4s forwards;
}

.hero-text h1 {
  color: var(--snow);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s var(--ease-out) 0.6s forwards;
}

.hero-text .hero-sub {
  color: rgba(255,255,255,0.6);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s var(--ease-out) 0.8s forwards;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s var(--ease-out) 1s forwards;
}

/* Hero mini bento */
.hero-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: var(--gap);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--ease-out) 1.1s forwards;
}

.hero-chip {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--snow);
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
}
.hero-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-chip .chip-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--oak-light);
  margin-bottom: 4px;
}
.hero-chip .chip-value {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
}

.hero-chip--wide { grid-column: 1 / -1; }

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scroll .scroll-line {
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.hero-scroll .scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; width: 100%; height: 100%;
  background: rgba(255,255,255,0.5);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SECTIONS
   ============================================ */

.section { padding: var(--section-gap) 0; }

.section-header {
  max-width: 640px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-header.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-header .overline { margin-bottom: 14px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--stone); font-size: 1rem; line-height: 1.7; }

/* ============================================
   BENTO GRID SYSTEM
   ============================================ */

.bento {
  display: grid;
  gap: var(--gap);
}

.bento-card {
  position: relative;
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease-out);
}

.bento-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(118, 146, 166, 0.2);
}

.bento-card-inner {
  padding: clamp(24px, 3vw, 40px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Dark card variant */
.bento-card--dark {
  background: var(--surface-dark-card);
  backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,0.06);
}
.bento-card--dark:hover {
  border-color: rgba(255,255,255,0.12);
}
.bento-card--dark .overline { color: var(--oak); }
.bento-card--dark h3,
.bento-card--dark h4 { color: var(--snow); }
.bento-card--dark p { color: rgba(255,255,255,0.55); }

/* Glass variant */
.bento-card--glass {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Image card */
.bento-card--image {
  padding: 0;
}
.bento-card--image .card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease-out);
}
.bento-card--image:hover .card-bg {
  transform: scale(1.04);
}
.bento-card--image .card-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.bento-card--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45,45,45,0.7) 0%, rgba(45,45,45,0.1) 50%, transparent);
  z-index: 1;
  pointer-events: none;
}
.bento-card--image .bento-card-inner {
  position: relative;
  z-index: 2;
  justify-content: flex-end;
  min-height: 100%;
}

/* Placeholder textures — brand palette */
.texture-walnut { background: linear-gradient(145deg, #74756A, #474840); }
.texture-oak { background: linear-gradient(145deg, #C2BFB4, #A8A598); }
.texture-stone { background: linear-gradient(145deg, #8A8B80, #5D5E52); }
.texture-pine { background: linear-gradient(145deg, #3A5244, #1F2D24); }
.texture-ice { background: linear-gradient(145deg, #9AB2C3, #5A7A90); }
.texture-graphite { background: linear-gradient(145deg, #3A5244, #2D3E33); }
.texture-cream { background: linear-gradient(145deg, #EEEDEA, #D5D3CF); }
.texture-warm { background: linear-gradient(145deg, #A8A598, #74756A); }

.placeholder-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   TYPES — Bento Block
   ============================================ */

.types-bento {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 420px;
}

.type-card .card-bg {
  border-radius: var(--radius-lg);
}

.type-card .bento-card-inner {
  padding: clamp(28px, 3vw, 40px);
}

.type-card .type-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.type-card .type-icon svg {
  width: 24px; height: 24px;
  stroke: var(--oak-light);
  fill: none;
  stroke-width: 1.5;
}

.type-card h3 {
  color: var(--snow);
  margin-bottom: 10px;
}
.type-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.type-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oak-light);
  transition: gap 0.3s var(--ease-out);
}
.type-card:hover .card-link { gap: 14px; }

/* ============================================
   COLLECTIONS — Bento Block
   ============================================ */

.collections-bento {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
}

/* Collection card sizes */
.col-card--lg { grid-column: span 2; grid-row: span 2; }
.col-card--md { grid-column: span 2; }
.col-card--sm { grid-column: span 1; }
.col-card--tall { grid-row: span 2; }

.col-card .bento-card-inner {
  padding: clamp(24px, 2.5vw, 36px);
}

.col-card .card-type {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: var(--snow);
  border-radius: 8px;
  margin-bottom: 12px;
}

.col-card h3 {
  color: var(--snow);
  margin-bottom: 8px;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}
.col-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(32px, 4vw, 48px);
  flex-wrap: wrap;
}

.filter-pill {
  padding: 10px 22px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1.5px solid var(--cream);
  background: transparent;
  color: var(--stone);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-pill.active {
  background: var(--primary);
  color: var(--snow);
  border-color: var(--primary);
}

/* ============================================
   ADVANTAGES — Bento Block
   ============================================ */

.advantages-bento {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
}

.adv-card { grid-column: span 1; }
.adv-card--wide { grid-column: span 2; }
.adv-card--feature { grid-column: span 2; grid-row: span 2; }

.adv-card .adv-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.3s;
}
.adv-card:hover .adv-icon {
  background: var(--primary);
}
.adv-card .adv-icon svg {
  width: 24px; height: 24px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.5;
  transition: stroke 0.3s;
}
.adv-card:hover .adv-icon svg { stroke: var(--snow); }

.adv-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}
.adv-card p {
  color: var(--stone);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Feature card with image */
.adv-card--feature .bento-card-inner {
  justify-content: flex-end;
}
.adv-card--feature h3 {
  color: var(--snow);
  margin-bottom: 8px;
}
.adv-card--feature p {
  color: rgba(255,255,255,0.6);
}

/* ============================================
   GALLERY / INSPIRATION — Bento Block
   ============================================ */

.gallery-bento {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
}
.gal-item--lg { grid-column: span 2; grid-row: span 2; }
.gal-item--md { grid-column: span 2; }
.gal-item--sm { grid-column: span 1; }

.gal-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gal-item .gal-bg {
  position: absolute; inset: 0;
  transition: transform 0.7s var(--ease-out);
}
.gal-item:hover .gal-bg { transform: scale(1.05); }
.gal-item::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.4s;
  z-index: 1;
}
.gal-item:hover::after { background: rgba(45,45,45,0.15); }

.gal-item .gal-label {
  position: absolute;
  bottom: 20px; left: 24px;
  z-index: 2;
  color: var(--snow);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--ease-out);
}
.gal-item:hover .gal-label {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   CTA
   ============================================ */

.cta-section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  border-radius: var(--radius-xl);
  margin: 0 clamp(20px, 4vw, 60px);
}
.cta-section .container {
  position: relative; z-index: 2;
  text-align: center;
}
.cta-section .overline { color: var(--oak-light); margin-bottom: 16px; }
.cta-section h2 { color: var(--snow); margin-bottom: 16px; max-width: 700px; margin-left: auto; margin-right: auto; }
.cta-section p { color: rgba(255,255,255,0.55); font-size: 1.05rem; max-width: 480px; margin: 0 auto 36px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.45);
  padding: 80px 0 36px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: -32px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  color: var(--snow);
  margin-bottom: 16px;
  display: inline-block;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 300px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--snow);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--oak-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

/* ============================================
   MODAL
   ============================================ */

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(45, 45, 45, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: var(--snow);
  width: 92%;
  max-width: 500px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.4s var(--ease-out);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--cream);
  font-size: 1.1rem;
  color: var(--stone);
  cursor: pointer;
  transition: all 0.3s;
}
.modal-close:hover { background: var(--primary); color: var(--snow); }

.modal h3 { margin-bottom: 6px; }
.modal > p { color: var(--stone); font-size: 0.88rem; margin-bottom: 24px; }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--cream);
  border-radius: var(--radius-sm);
  background: var(--smoke);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--graphite);
  outline: none;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); }
.form-group textarea { min-height: 72px; resize: vertical; }

.modal .btn { width: 100%; margin-top: 6px; }

/* ============================================
   PAGE HERO (Collection / Inner pages)
   ============================================ */

.page-hero {
  position: relative;
  height: 55vh;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 48px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.page-hero .hero-bg {
  position: absolute; inset: 0;
}
.page-hero .hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(31,45,36,0.8) 0%, rgba(31,45,36,0.4) 40%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.45); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--snow); }

.page-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin-right: auto;
}

.page-hero-content .type-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--primary);
  color: var(--snow);
  border-radius: 10px;
  margin-bottom: 14px;
}

.page-hero-content h1 {
  color: var(--snow);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  margin-bottom: 12px;
}
.page-hero-content p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ============================================
   COLLECTION PAGE — Intro bento
   ============================================ */

/* Tight spacing variant */
.section--tight { padding: clamp(20px, 3vw, 32px) 0; }
.showcase-section--tight { padding: 0 0 clamp(16px, 2vw, 24px) 0; }
.showcase-section--tight .showcase-title { margin-bottom: clamp(16px, 2vw, 24px); }

.collection-intro-bento {
  grid-template-columns: 1.2fr 0.8fr;
  grid-auto-rows: auto;
}
.collection-intro-bento .bento-card {
  cursor: default;
}
.collection-intro-bento .bento-card:hover {
  box-shadow: none;
  transform: none;
  border-color: rgba(255,255,255,0.6);
}

.feature-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.feature-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: transparent;
  border-radius: 0;
  border-bottom: 0.5px solid var(--neutral-cool);
  border-right: 0.5px solid var(--neutral-cool);
  font-size: 0.82rem;
  color: var(--graphite);
}
/* Убираем правую границу у правой колонки */
.feature-chip:nth-child(2n) { border-right: none; }
/* Убираем нижнюю границу у последней строки */
.feature-chip:nth-last-child(-n+2) { border-bottom: none; }
/* Если нечётное количество — последний элемент тоже без нижней */
.feature-chip:last-child { border-bottom: none; }
.feature-chip svg {
  width: 18px; height: 18px;
  stroke: var(--primary);
  fill: none; stroke-width: 1.8;
  flex-shrink: 0;
}

/* ============================================
   PRODUCT CARDS (in collection)
   ============================================ */

/* --- Product cards — Apple style dark --- */
.products-bento {
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  background: var(--graphite);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease-out);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  position: relative;
}
.product-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  transform: translateY(-4px);
}

/* Text on top */
.product-card .card-body {
  padding: clamp(20px, 2.5vw, 28px);
  padding-bottom: 0;
  position: relative;
  z-index: 2;
}
.product-card .sku {
  font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 8px;
}
.product-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--snow);
  margin-bottom: 10px;
  line-height: 1.3;
}
.product-card .type-label {
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px; font-weight: 600;
}
.product-card .spec-tags {
  display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 0;
}
.spec-tag {
  padding: 3px 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.5);
}

/* Image on bottom, grows to fill */
.product-card .card-image {
  flex: 1;
  overflow: hidden;
  position: relative;
  margin-top: auto;
  min-height: 180px;
}
.product-card .card-image .card-bg {
  position: absolute; inset: 0;
  transition: transform 0.6s var(--ease-out);
}
.product-card:hover .card-image .card-bg { transform: scale(1.06); }

.product-card .status-badge {
  position: absolute;
  top: 14px; right: 14px;
  padding: 4px 10px;
  font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 20px;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.badge-stock { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.1); }
.badge-order { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.08); }

/* Plus button bottom-right */
.product-card::after {
  content: '+';
  position: absolute;
  bottom: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 300;
  z-index: 3;
  transition: all 0.3s var(--ease-out);
}
.product-card:hover::after {
  background: rgba(255,255,255,0.2);
  color: var(--snow);
}

/* ============================================
   SHOWCASE SLIDER — Apple style
   ============================================ */

.showcase-section {
  padding: var(--section-gap) 0;
  background: var(--surface-primary);
  overflow: hidden;
}

.showcase-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: clamp(32px, 4vw, 48px);
}

.showcase-wrap {
  position: relative;
  overflow: hidden;
  padding-left: max(clamp(20px, 4vw, 60px), calc((100vw - var(--container)) / 2 + clamp(20px, 4vw, 60px)));
  padding-right: 0;
}

.showcase-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
  padding-right: clamp(20px, 4vw, 60px);
}
.showcase-track::-webkit-scrollbar { display: none; }

/* Card */
.sc-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 260px;
  aspect-ratio: 9 / 16;
  height: auto;
  background: var(--graphite);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  transition: all 0.5s var(--ease-out);
  cursor: pointer;
}
.sc-card:hover {
  transform: none;
  box-shadow: none;
}

/* Top text */
.sc-top {
  padding: clamp(22px, 2.5vw, 30px);
  padding-bottom: 0;
  position: relative;
  z-index: 2;
}

.sc-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: 10px;
}

.sc-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 500;
  color: var(--snow);
  line-height: 1.3;
}

/* Visual fills remaining space */
.sc-visual {
  flex: 1;
  position: relative;
  margin-top: 20px;
  overflow: hidden;
}
.sc-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease-out);
}
.sc-card:hover .sc-bg {
  transform: none;
}

/* Plus button */
.sc-plus {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1;
  padding-bottom: 2px;
  z-index: 3;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sc-card:hover .sc-plus {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
}

/* Navigation arrows */
.showcase-nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 28px;
}

.sc-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--neutral-dark);
  background: transparent;
  color: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.sc-arrow:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(45,62,51,0.04);
}

/* Responsive */
@media (max-width: 1100px) {
  .sc-card {
    flex: 0 0 calc(50% - 10px);
    min-width: 220px;
  }
}
@media (max-width: 768px) {
  .sc-card {
    flex: 0 0 75%;
    min-width: 220px;
  }
  .showcase-wrap {
    padding: 0 20px;
  }
}

/* ============================================
   PRODUCT PAGE
   ============================================ */

.product-top { padding-top: 110px; }

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.product-gallery { position: sticky; top: 96px; }

.gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 10px;
}
.gallery-main .card-bg {
  width: 100%; height: 100%;
}

.gallery-thumbs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.gallery-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.45;
  border: 2px solid transparent;
  transition: all 0.3s;
}
.gallery-thumb.active,
.gallery-thumb:hover { opacity: 1; border-color: var(--primary); }

.product-info .sku {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--stone-light); margin-bottom: 8px;
}
.product-info .type-badge {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--cream); color: var(--primary);
  border-radius: 10px; margin-bottom: 14px;
}
.product-info h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 14px;
}
.product-info .description {
  color: var(--stone); font-size: 1rem; line-height: 1.7; margin-bottom: 28px;
}
.product-info .status-line {
  display: flex; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 0.85rem;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.status-dot--green { background: var(--primary); }
.status-dot--amber { background: var(--oak); }

.specs-table { width: 100%; margin-bottom: 32px; }
.spec-row {
  display: flex; justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--cream);
  font-size: 0.88rem;
}
.spec-row .label { color: var(--stone); }
.spec-row .value { font-weight: 600; color: var(--graphite); }

.product-actions {
  display: flex; gap: 10px; margin-bottom: 24px;
}
.product-actions .btn {
  flex: 1;
  border-radius: var(--radius-sm);
}

.product-note {
  padding: 18px 20px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--stone);
  line-height: 1.6;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.4s; }
.reveal-d6 { transition-delay: 0.48s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-bento { display: none; }
  .types-bento { grid-template-columns: 1fr; grid-template-rows: 320px 320px 320px; }
  .collections-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .col-card--lg { grid-column: span 2; grid-row: span 1; }
  .col-card--tall { grid-row: span 1; }
  .advantages-bento { grid-template-columns: repeat(2, 1fr); }
  .adv-card--feature { grid-column: span 2; grid-row: span 1; }
  .gallery-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gal-item--lg { grid-column: span 2; }
  .products-bento { grid-template-columns: repeat(2, 1fr); }
  .product-card { min-height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .collection-intro-bento { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
}
@media (max-width: 768px) {
  .hero { min-height: 600px; }
  .hero-text h1 { font-size: 2.4rem; }
  .hero-buttons { flex-direction: row; flex-wrap: wrap; }
  .hero-buttons .btn { flex: 1; min-width: 140px; justify-content: center; }
  .types-bento { grid-template-rows: 280px 280px 280px; }
  .collections-bento { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .col-card--lg, .col-card--md { grid-column: span 1; }
  .advantages-bento { grid-template-columns: 1fr; }
  .adv-card--wide, .adv-card--feature { grid-column: span 1; }
  .gallery-bento { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gal-item--lg, .gal-item--md { grid-column: span 1; grid-row: span 1; }
  .products-bento { grid-template-columns: 1fr 1fr; }
  .product-card { min-height: 360px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .product-actions { flex-direction: column; }
  .feature-chips { grid-template-columns: 1fr; }
  .cta-bg { margin: 0; border-radius: 0; }
}

/* Mobile nav */
/* Mobile nav fullscreen */
.nav.nav--open {
  display: flex;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--primary-dark);
  z-index: 1050;
  padding: 80px 40px;
  overflow-y: auto;
}
.nav.nav--open a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--snow) !important;
}
.nav-cta-mobile { display: none; }
.nav.nav--open .nav-cta-mobile {
  display: inline-flex;
  margin-top: 16px;
  padding: 14px 32px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 0.8rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.nav.nav--open a:hover {
  opacity: 1;
}
.nav.nav--open a::after { display: none; }

/* Burger becomes X when open */
.nav-toggle.active {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  width: 32px;
}
.nav-toggle.active span {
  background: var(--snow) !important;
  height: 2px;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   V2 — REFERENCE LAYOUT OVERRIDES
   ============================================ */

/* --- Hero V2 (photo background, centered) --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-dark);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img, .hero-bg > div { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(31,45,36,0.3) 0%, rgba(31,45,36,0.15) 40%, rgba(31,45,36,0.5) 100%);
}
.hero .container { position: relative; z-index: 2; }

.hero-content-v2 {
  max-width: 720px;
  padding-top: 80px;
}
.hero-content-v2 h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 400;
  color: var(--snow);
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero-content-v2 h1 em {
  font-style: italic;
}
.hero-content-v2 .hero-sub {
  color: rgba(255,255,255,0.6);
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}
.hero-buttons {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px;
}
.btn-outline-light {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--snow);
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: all var(--duration) var(--ease-out);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* Hero chips row */
.hero-chips {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.h-chip {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}
.h-chip:hover { color: var(--snow); }
.h-chip svg { opacity: 0.6; transition: opacity 0.3s; }
.h-chip:hover svg { opacity: 1; }

/* --- Types: wide plank strips --- */
.type-planks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plank-card {
  position: relative;
  height: clamp(140px, 18vw, 200px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(20px, 3vw, 32px);
  cursor: pointer;
  transition: all 0.5s var(--ease-out);
}
.plank-card:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-xl);
}

.plank-bg {
  position: absolute; inset: 0;
  transition: transform 0.7s var(--ease-out);
}
.plank-card:hover .plank-bg {
  transform: scale(1.04);
}

.plank-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--graphite);
  letter-spacing: -0.01em;
}
.plank-title--light { color: var(--snow); }

.plank-arrow {
  position: absolute;
  top: clamp(16px, 2vw, 24px);
  right: clamp(16px, 2vw, 24px);
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--snow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-out);
}
.plank-arrow--light {
  background: var(--snow);
  color: var(--graphite);
}
.plank-card:hover .plank-arrow {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .plank-card { height: 120px; }
  .plank-arrow { width: 36px; height: 36px; }
  .plank-arrow svg { width: 14px; height: 14px; }
}

/* ============================================
   COLLECTIONS PAGE — grid & cards
   ============================================ */

.cols-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.cols-page-header h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  margin-bottom: 0;
}
.cols-count {
  text-align: right;
  flex-shrink: 0;
}
.cols-count-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--primary);
  line-height: 1;
}
.cols-count-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

/* Bento collections grid (auto) */
.bento-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: var(--gap);
}

/* Bento fixed layout — 6 cards */
.bento-fixed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 320px 280px 320px;
  grid-template-areas:
    "a a b"
    "c d d"
    "e e f";
  gap: var(--gap);
}
.bf-a { grid-area: a; }
.bf-b { grid-area: b; }
.bf-c { grid-area: c; }
.bf-d { grid-area: d; }
.bf-e { grid-area: e; }
.bf-f { grid-area: f; }

.bc-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: all 0.5s var(--ease-out);
}
.bc-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px) scale(1.01);
}

/* Size variants */
.bc-wide { grid-column: span 2; }
.bc-tall { grid-row: span 2; }

/* bf-card inherits bc-card styles */
.bf-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: all 0.5s var(--ease-out);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
}
.bf-card:hover {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.15), var(--shadow-xl);
  transform: translateY(-4px) scale(1.005);
}

/* BG */
.bc-bg,
.bf-card .bc-bg {
  position: absolute; inset: 0;
  transition: transform 0.7s var(--ease-out);
}
.bc-card:hover .bc-bg,
.bf-card:hover .bc-bg { transform: scale(1.06); }

.bc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(31,45,36,0.7) 0%, rgba(31,45,36,0.1) 50%, transparent);
  z-index: 1;
  transition: background 0.4s;
}
.bc-card:hover .bc-overlay,
.bf-card:hover .bc-overlay {
  background: linear-gradient(to top, rgba(31,45,36,0.8) 0%, rgba(31,45,36,0.15) 55%, transparent);
}

/* Content */
.bc-content {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 2.5vw, 32px);
  width: 100%;
}

.bc-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  color: var(--snow);
  margin-bottom: 10px;
}

.bc-content h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  color: var(--snow);
  margin-bottom: 6px;
}

.bc-content p {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 10px;
  max-width: 400px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.4s var(--ease-out);
}
.bc-card:hover .bc-content p,
.bf-card:hover .bc-content p {
  opacity: 1;
  transform: translateY(0);
}

.bc-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  opacity: 1;
  transform: translateY(0);
}
.bc-meta span {
  padding: 3px 10px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
}

/* Arrow */
.bc-arrow {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 3;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--snow);
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
  .bento-cols { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .bc-wide { grid-column: span 2; }
  .bc-tall { grid-row: span 2; }
  .bento-fixed {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 300px 260px 260px 300px;
    grid-template-areas:
      "a a"
      "b c"
      "d d"
      "e f";
  }
  .cols-page-header { flex-direction: column; align-items: flex-start; }
  .cols-count { text-align: left; }
}
@media (max-width: 768px) {
  .bento-cols { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .bc-wide { grid-column: span 1; }
  .bc-tall { grid-row: span 1; }
  .bento-fixed {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 240px);
    grid-template-areas: "a" "b" "c" "d" "e" "f";
  }
  .bc-content p, .bc-meta, .bf-card .bc-content p, .bf-card .bc-meta { opacity: 1; transform: translateY(0); }
  .bc-arrow, .bf-card .bc-arrow { opacity: 1; transform: translateY(0); }
}

/* --- Section variants --- */
.section--cream {
  background: var(--neutral-warm);
}
.section--cream[id="collections"] {
  position: relative;
  background: transparent;
}
/* Advantages — glass */
#advantages {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.section--cream[id="inspiration"] {
  position: relative;
  background: transparent;
}
.section--cream[id="collections"]::before,
.section--cream[id="inspiration"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/PARALLAX.webp') center / cover no-repeat fixed;
  z-index: 0;
}
.section--cream[id="collections"]::after,
.section--cream[id="inspiration"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 246, 0.75);
  z-index: 1;
}
.section--cream[id="collections"] > .container,
.section--cream[id="inspiration"] > .container {
  position: relative;
  z-index: 2;
}

/* --- Collection Atlas --- */
.atlas-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(24px, 3vw, 32px);
}
.atlas-header h2 { margin-bottom: 8px; }
.atlas-header p { max-width: 480px; }

/* Type tabs */
.type-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: clamp(24px, 3vw, 36px);
  flex-wrap: wrap;
}
.type-tab {
  padding: 10px 24px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid var(--neutral-dark);
  background: transparent;
  color: var(--stone);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.type-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.type-tab.active {
  background: var(--primary);
  color: var(--snow);
  border-color: var(--primary);
}

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: var(--gap);
}

/* When "all" — first card is hero */
.atlas-grid .atlas-card--hero {
  grid-column: 1;
  grid-row: 1 / 3;
}

/* Filtered grid: all cards same size */
.atlas-grid.filtered .atlas-card--hero {
  grid-column: auto;
  grid-row: auto;
}

.atlas-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}
.atlas-bg {
  position: absolute; inset: 0;
  transition: transform 0.7s var(--ease-out);
}
.atlas-card:hover .atlas-bg { transform: scale(1.05); }
.atlas-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(31,45,36,0.6) 0%, transparent 60%);
  z-index: 1;
}
.atlas-card-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px;
  z-index: 2; color: var(--snow);
}
.atlas-tag {
  display: inline-block;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--oak-light);
  margin-bottom: 6px;
}
.atlas-card-content h3 {
  color: var(--snow);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}
.atlas-card-content h4 {
  color: var(--snow);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
}

.atlas-card--hero { grid-row: 1 / 3; }
.atlas-card--sm { }
.atlas-card--md { grid-column: span 1; }

/* --- Performance row (advantages) --- */
.centered { text-align: center; }

.perf-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.perf-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
  transition: all 0.3s;
}
.perf-item:hover .perf-icon {
  background: var(--primary);
  color: var(--snow);
}
.perf-item h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.perf-item p {
  color: var(--stone);
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 220px;
  margin: 0 auto;
}

/* --- Editorial block --- */
.editorial-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.editorial-text .overline { margin-bottom: 12px; }
.editorial-text h2 {
  margin-bottom: 20px;
  line-height: 1.1;
}
.editorial-text h2 em { font-style: italic; }
.editorial-text .text-lg { max-width: 440px; }

.editorial-image {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* --- CTA block (green rounded) --- */
.cta-block {
  margin-bottom: clamp(48px, 6vw, 80px);
  background: var(--primary);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 7vw, 80px) clamp(32px, 5vw, 64px);
  text-align: center;
}
.cta-block h2 {
  color: var(--snow);
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}
.cta-block p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto 32px;
}
.cta-block .cta-buttons {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.cta-block .btn-light {
  background: var(--snow); color: var(--primary);
  padding: 15px 32px; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: none;
  transition: all var(--duration) var(--ease-out);
}
.cta-block .btn-light:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cta-block .btn-outline-light {
  border-color: rgba(255,255,255,0.3);
}
.cta-block .btn-outline-light:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
}

/* --- Social icons --- */
.social-row { display: flex; gap: 10px; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.3s;
}
.social-icon:hover {
  background: rgba(255,255,255,0.15);
  color: var(--oak-light);
}

/* --- V2 Responsive --- */
@media (max-width: 1100px) {
  .types-row { grid-template-columns: 1fr; }
  .ttc-image { height: 240px; }
  .atlas-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 220px 220px; }
  .atlas-card--hero { grid-row: 1 / 2; grid-column: 1 / -1; }
  .perf-row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .editorial-block { grid-template-columns: 1fr; }
  .editorial-image { aspect-ratio: 16/9; }
  .atlas-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .hero-content-v2 { padding-top: 60px; }
  .hero-content-v2 h1 { font-size: 2.2rem; }
  .hero-buttons { flex-direction: row; flex-wrap: wrap; }
  .hero-buttons .btn,
  .hero-buttons .btn-outline-light { flex: 1; min-width: 140px; justify-content: center; font-size: 0.65rem; padding: 12px 16px; }
  .hero-chips { display: none; }
  .atlas-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .atlas-card { min-height: 220px; }
  .atlas-card--hero { grid-row: auto; grid-column: auto; min-height: 300px; }
  .perf-row { grid-template-columns: 1fr; gap: 28px; }
  .cta-block {
  margin-bottom: clamp(48px, 6vw, 80px); padding: 40px 24px; }
}

