/* ==========================================================================
   SECTION 6: INTERIOR (4-Pattern Layout)
   ========================================================================== */

/* -- Shared interior variables -- */
.int-hero, .int-showcase, .int-tech, .int-grid {
  --int-gold: var(--metallic);
  --int-cyan: var(--cyan);
  --int-dark: #070707;
  --int-light: #f6f6f6;
}

/* ======================
   PATTERN 1: Dark Full-Bleed — Section intro
   ====================== */
/* Pattern 1: Full-bleed cinematic hero — video or image */
/* === Section groups — sticky morphing header === */
.section-group {
  position: relative;
  background: #070707;
}
/* Video bg fills entire group */
.section-group__bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50svh;
  z-index: 0;
  overflow: clip;
}
@media (min-width: 768px) {
  .section-group__bg { height: 100svh; }
}
.section-group__bg video,
.section-group__bg img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  object-position: center center;
}
.section-group__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,7,7,0.95) 0%, rgba(7,7,7,0.4) 50%, transparent 80%);
}
/* Spacer — pushes content below the hero viewport */
.section-group__spacer {
  height: 35svh;
  position: relative;
}
@media (min-width: 768px) {
  .section-group__spacer { height: 50svh; }
}
/* Morphing headline — sticks below subnav */
.section-group__header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 32px var(--pad-x) 24px;
  transition: padding 0.35s ease, background-color 0.35s ease;
}
.section-group__header .sg-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 8px;
  transition: margin 0.35s ease;
}
.section-group__header .sg-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  transform-origin: left center;
  transition: transform 0.35s ease;
}
.section-group__header .sg-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 500px;
  overflow: hidden;
  max-height: 200px;
  transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
}
/* Compact state — light contrast bar */
/* Compact: slim single-line ribbon */
.section-group__header.is-compact {
  padding: 10px var(--pad-x);
  background: rgba(245,245,245,0.97);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  overflow: hidden;
}
.section-group__header.is-compact .sg-eyebrow {
  margin-bottom: 0;
  color: var(--mid-gray);
  font-size: 10px;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
/* Dot separator between eyebrow and title */
.section-group__header.is-compact .sg-eyebrow::after {
  content: '·';
  margin: 0 8px;
  color: var(--lighter-gray);
}
.section-group__header.is-compact .sg-title {
  transform: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.section-group__header.is-compact .sg-title br { display: none; }
.section-group__header.is-compact .sg-body { display: none; }
/* Content scrolls below the header */
.section-group .int-showcase,
.section-group .mm-section,
.section-group .tech-gallery,
.section-group .perf-section,
.section-group .sp-section,
.section-group .ev-section,
.section-group .ext-carousel-wrap {
  position: relative;
  z-index: 2;
  background: var(--int-dark);
  padding-top: 56px;
}
/* Legacy .int-hero kept for non-grouped sections */
.int-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.int-hero__bg img,
.int-hero__bg video {
  width: 100%; height: 100%;
  display: block; object-fit: cover;
}
.int-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,7,7,0.92) 0%, rgba(7,7,7,0.5) 40%, transparent 70%);
  z-index: 1;
}
.int-hero__content {
  position: relative; z-index: 2;
  padding: 0 var(--pad-x) 48px;
  background: none;
  max-width: var(--container);
  margin: 0 auto; width: 100%;
}
.int-eyebrow {
  color: var(--int-cyan);
}
.int-accent {
  margin: 0 0 24px;
}
.int-hero__heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 600px;
}
.int-hero__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 500px;
}

/* Desktop: taller hero + left gradient */
@media (min-width: 768px) {
  .int-hero {
    min-height: 85vh;
  }
  .int-hero::after {
    background:
      linear-gradient(to top, rgba(7,7,7,0.9) 0%, rgba(7,7,7,0.5) 40%, transparent 70%),
      linear-gradient(to right, rgba(7,7,7,0.6) 0%, transparent 60%);
  }
  .int-hero__content {
    padding: 0 var(--pad-x) 72px;
  }
}
/* ======================
   PATTERN 2: Interior Spotlight Cards — Expanding flex
   ====================== */
.int-showcase {
  background: var(--int-dark);
  padding: 0 0 var(--pad-y-sub);
  overflow: hidden;
}

/* === MOBILE: horizontal swipe carousel === */
.int-showcase__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
  padding: 0 20px;
}
.int-showcase__track::-webkit-scrollbar { display: none; }
.int-showcase__card {
  flex: 0 0 85%;
  scroll-snap-align: center;
  margin-right: 14px;
  border-radius: var(--radius-card-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #111;
  cursor: pointer;
}
.int-showcase__card:last-child { margin-right: 20px; }
/* Image: top of card, relative flow */
.int-showcase__card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  z-index: 1;
  overflow: hidden;
  flex-shrink: 0;
}
.int-showcase__card-img img,
.int-showcase__card-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* No gradient overlay on mobile */
.int-showcase__card-img::after {
  display: none;
}
/* Text: below image on dark bg */
.int-showcase__card-content {
  padding: 20px;
  width: 100%;
}
.int-showcase__card-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.int-showcase__card-num--cyan { color: var(--int-cyan); }
.int-showcase__card-num--gold { color: var(--int-gold); }
.int-showcase__card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 6px;
}
.int-showcase__card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 400px;
}
/* Glow accent for 64 couleurs card */
.int-showcase__card--glow.active {
  box-shadow: inset 0 0 60px rgba(0,229,255,0.05);
}

/* === MOBILE dots (shown by default, hidden at 768px+) === */
.int-showcase__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding-bottom: 8px;
}
.int-showcase__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.int-showcase__dot.active {
  background: var(--cyan);
  width: 24px;
  border-radius: 4px;
}

/* === TABLET (768px): horizontal expanding === */
@media (min-width: 768px) {
  .int-showcase {
    padding: 0 0 var(--pad-y-sub);
  }
  .int-showcase__track {
    flex-direction: row;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 6px;
    height: 520px;
    padding: 0 36px;
  }
  .int-showcase__card {
    flex: 1;
    flex-shrink: 1;
    flex-direction: row;
    min-width: 0;
    aspect-ratio: auto;
    height: 100%;
    margin-right: 0;
    border-radius: var(--radius-card-md);
    scroll-snap-align: none;
    transition: flex 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: flex;
    position: relative;
    align-items: flex-end;
    background: none;
  }
  .int-showcase__card:last-child { margin-right: 0; }
  /* Restore overlay layout on tablet */
  .int-showcase__card-img {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }
  .int-showcase__card-img::after {
    display: block;
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 45%, transparent 65%);
    z-index: 2;
  }
  .int-showcase__card-content {
    position: relative;
    z-index: 3;
  }
  /* Reset mobile dots, show tablet dots */
  .int-showcase__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    padding-bottom: 0;
  }
  .int-showcase__dot {
    width: 32px;
    height: 3px;
    border-radius: 2px;
    border: none;
    background: rgba(255,255,255,0.12);
    cursor: pointer;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: none;
  }
  .int-showcase__dot.active {
    background: rgba(255,255,255,0.12);
    width: 32px;
    border-radius: 2px;
  }
  .int-showcase__card.active {
    flex: 3;
  }
  /* Dim inactive cards */
  .int-showcase__card-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 3;
    transition: opacity 0.5s ease;
    opacity: 1;
  }
  .int-showcase__card.active .int-showcase__card-img::before {
    opacity: 0;
  }
  /* Hide desc on inactive, show on active */
  .int-showcase__card-desc {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease 0.15s, max-height 0.4s ease;
  }
  .int-showcase__card.active .int-showcase__card-desc {
    opacity: 1;
    max-height: 100px;
  }
  .int-showcase__card-title {
    font-size: 24px;
  }
  .int-showcase__card-content {
    padding: 32px 28px;
  }
  .int-showcase__dot::after {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 0%;
    background: var(--int-cyan);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(0,229,255,0.4);
  }
  .int-showcase__dot.active::after {
    animation: dotFill 4.5s linear forwards;
  }
  .int-showcase__dot.done::after {
    width: 100%;
    background: var(--int-cyan);
  }
  @keyframes dotFill {
    from { width: 0%; }
    to { width: 100%; }
  }
}

/* === DESKTOP (1024px+): taller, more space === */
@media (min-width: 1024px) {
  .int-showcase__track {
    height: 600px;
    padding: 0 56px;
    gap: 8px;
  }
  .int-showcase__card {
    border-radius: var(--radius-card-md);
  }
  .int-showcase__card.active {
    flex: 3.5;
  }
  .int-showcase__card-title {
    font-size: 28px;
  }
  .int-showcase__card-content {
    padding: 40px 36px;
  }
}
@media (min-width: 1200px) {
  .int-showcase__track {
    padding: 0 113px;
  }
}

/* ======================
   PATTERN 3: Dark Centered — Dashboard + Screens
   ====================== */
.int-tech {
  background: var(--int-dark);
  color: #fff;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 7rem);
}
.int-tech__img {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
}
.int-tech__img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.int-tech__grid {
  max-width: 1200px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.int-tech__num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--int-cyan);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.int-tech__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.int-tech__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 8px;
  max-width: 480px;
}

@media (min-width: 768px) {
  .int-tech__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 48px;
  }
}

/* ======================
   PATTERN 4: Light 2x2 Grid — Minor features
   ====================== */
.int-grid {
  background: var(--int-light);
  color: #1a1a1a;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 7rem);
}
.int-grid__wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.int-grid__card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #e0e0e0;
}
.int-grid__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.int-grid__card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin-top: 12px;
  color: #1a1a1a;
}
.int-grid__card-desc {
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  margin-top: 4px;
}

@media (min-width: 768px) {
  .int-grid__wrap {
    gap: 24px;
  }
  .int-grid__card-title {
    font-size: 16px;
    margin-top: 16px;
  }
  .int-grid__card-desc {
    font-size: 14px;
  }
}





