:root {
  --cream: #f8f4ec;
  --ink: #333333;
  --navy: #20409a;
  --red: #f04e30;
  --gray: #d9d9d9;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Noto Sans', 'Noto Sans Thai', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans KR', sans-serif;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

/* ---------- Deck scroll container ---------- */
.deck {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

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

.slide {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  overflow: hidden;
}

/* ---------- Full-bleed original slide images (pixel-exact, no color adjustments) ---------- */
.slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* Slide 1: the product row bleeds off the bottom of the source slide.
   Anchor to the bottom edge so the crop line always sits flush against
   the viewport's bottom edge instead of floating above a letterbox gap.
   Only in landscape: in portrait (iPad/phone held upright) the 16:9 slide
   is so much wider than the viewport that cover would crop the headline
   off both sides, so fall back to the safe, uncropped "contain" there. */
@media (orientation: landscape) {
  .slide-img-cover-bottom {
    object-fit: cover;
    object-position: center bottom;
  }
}

/* ---------- MORPH transition: scale + blur + fade as slide enters/leaves the viewport ---------- */
.morph {
  opacity: 0;
  transform: scale(0.92);
  filter: blur(10px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.8, 0.2, 1),
              transform 0.9s cubic-bezier(0.22, 0.8, 0.2, 1),
              filter 0.9s cubic-bezier(0.22, 0.8, 0.2, 1);
  will-change: opacity, transform, filter;
}

.morph.in-view {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* ---------- Language switcher ---------- */
.lang-switcher {
  position: fixed;
  left: 68px;
  top: 18px;
  z-index: 60;
  display: flex;
  gap: 4px;
  background: rgba(248, 244, 236, 0.9);
  border: 1px solid rgba(32, 64, 154, 0.15);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(4px);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.lang-btn .flag {
  display: inline-flex;
  width: 16px;
  height: 12px;
}

.lang-btn .flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(32, 64, 154, 0.18);
  display: block;
}

.lang-btn:hover { opacity: 0.9; }

.lang-btn.active {
  background: var(--navy);
  color: var(--white);
  opacity: 1;
}

/* ---------- Side navigation dots ---------- */
.deck-nav {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}

.nav-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: all 0.3s ease;
}

.nav-dot:hover { opacity: 1; transform: scale(1.2); }

.nav-dot.active {
  background: var(--red);
  border-color: var(--red);
  opacity: 1;
  transform: scale(1.3);
}

/* ---------- Slide counter ---------- */
.counter {
  position: fixed;
  left: 22px;
  bottom: 18px;
  z-index: 50;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--navy);
  background: rgba(248, 244, 236, 0.85);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(32, 64, 154, 0.2);
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* ---------- Scroll hint (shown briefly on load) ---------- */
.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 50;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--navy);
  background: rgba(248, 244, 236, 0.85);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(32, 64, 154, 0.2);
  opacity: 1;
  transition: opacity 0.6s ease;
  pointer-events: none;
  animation: bob 1.6s ease-in-out infinite;
}

.scroll-hint.hidden { opacity: 0; }

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* ---------- Sidebar menu (hideable) ---------- */
.sidebar-toggle {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 210;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(32, 64, 154, 0.2);
  background: rgba(248, 244, 236, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(32, 64, 154, 0.12);
  transition: background 0.2s ease;
}

.sidebar-toggle:hover { background: var(--white); }

.sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.sidebar-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sidebar-toggle.open span:nth-child(2) { opacity: 0; }
.sidebar-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 190;
  opacity: 0;
  pointer-events: none;
}

.sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-menu {
  position: fixed;
  left: 18px;
  top: 50%;
  height: auto;
  max-height: calc(100dvh - 60px);
  width: clamp(240px, 27vw, 300px);
  background: rgba(248, 244, 236, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(32, 64, 154, 0.16);
  border-radius: 18px;
  z-index: 200;
  box-shadow: 0 16px 44px rgba(32, 64, 154, 0.22);
  transform: translateY(-50%) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.22, 0.8, 0.2, 1), opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-menu.open {
  transform: translateY(-50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(14px, 2.6vw, 20px);
  border-bottom: 1px solid rgba(32, 64, 154, 0.12);
  flex: none;
}

.sidebar-title {
  margin: 0;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.sidebar-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.sidebar-close:hover { background: rgba(32, 64, 154, 0.08); }

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  overflow-y: auto;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  text-decoration: none;
  padding: 11px clamp(16px, 3vw, 24px);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.sidebar-link[hidden] { display: none; }

.sidebar-link:hover { background: rgba(32, 64, 154, 0.06); }

.sidebar-link.active {
  background: rgba(240, 78, 48, 0.08);
  border-left-color: var(--red);
  color: var(--navy);
  font-weight: 800;
}

.sidebar-num {
  font-size: 11px;
  font-weight: 700;
  color: rgba(51, 51, 51, 0.4);
  min-width: 20px;
}

.sidebar-link.active .sidebar-num { color: var(--red); }

@media (max-width: 700px) {
  .sidebar-menu { left: 12px; max-height: calc(100dvh - 40px); width: min(75vw, 280px); }
  .sidebar-toggle { left: 12px; width: 36px; height: 36px; }
}

/* =========================================================
   Slide 2 — Who We Are (REDESIGNED: flags + continent groups)
   ========================================================= */
.slide-whoweare {
  align-items: stretch;
  justify-content: stretch;
}

.whoweare {
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2.4vh, 26px);
  padding: clamp(24px, 5vh, 56px) clamp(32px, 6vw, 110px);
  background:
    radial-gradient(circle at 6% 90%, rgba(240, 78, 48, 0.06), transparent 42%),
    radial-gradient(circle at 96% 8%, rgba(32, 64, 154, 0.08), transparent 45%),
    var(--cream);
}

.ww-globe {
  position: absolute;
  top: clamp(20px, 4vh, 44px);
  right: clamp(24px, 5vw, 90px);
  width: clamp(64px, 8vw, 120px);
  height: clamp(64px, 8vw, 120px);
  opacity: 0.9;
}

.whoweare h1 {
  margin: 0;
  font-weight: 800;
  color: var(--red);
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1;
}

.ww-desc {
  margin: 0;
  max-width: 68ch;
  color: var(--ink);
  font-size: clamp(13px, 1.4vw, 17px);
  line-height: 1.5;
}

.ww-desc strong {
  color: var(--navy);
  font-weight: 700;
}

.ww-sub {
  margin: clamp(4px, 1vh, 10px) 0 0;
  font-weight: 700;
  color: var(--red);
  font-size: clamp(16px, 2vw, 22px);
}

.ww-gallery {
  display: flex;
  gap: clamp(6px, 1vw, 12px);
}

.ww-gallery-item {
  flex: 1 1 0;
  height: clamp(58px, 11vh, 118px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(32, 64, 154, 0.12);
}

.ww-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.ww-gallery-item:hover img { transform: scale(1.07); }

.market-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.8vw, 26px);
}

.market-group {
  background: var(--white);
  border-radius: 14px;
  padding: clamp(12px, 1.6vw, 20px) clamp(14px, 1.8vw, 22px);
  box-shadow: 0 4px 16px rgba(32, 64, 154, 0.08);
  border-top: 3px solid var(--navy);
}

.market-group h3 {
  margin: 0 0 clamp(6px, 1vh, 10px);
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(12px, 1.3vw, 15px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.market-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 0.9vh, 9px);
}

.market-group li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: clamp(11px, 1.15vw, 14.5px);
  font-weight: 500;
}

.market-group .flag {
  display: inline-flex;
  width: 1.5em;
  height: 1.1em;
  flex: none;
}

.market-group .flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  display: block;
}

/* =========================================================
   Slide 3 — Corporate Heritage (REDESIGNED)
   ========================================================= */
.slide-heritage {
  align-items: stretch;
  justify-content: stretch;
}

.heritage {
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2.4vh, 28px);
  padding: clamp(20px, 4vh, 48px) clamp(28px, 5vw, 90px);
  background:
    radial-gradient(circle at 8% 12%, rgba(240, 78, 48, 0.06), transparent 40%),
    radial-gradient(circle at 95% 88%, rgba(32, 64, 154, 0.06), transparent 45%),
    var(--cream);
}

.heritage-head { text-align: left; }

.heritage-head .eyebrow {
  margin: 0 0 4px;
  color: var(--red);
  font-weight: 700;
  font-size: clamp(12px, 1.3vw, 15px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.heritage-head h1 {
  margin: 0 0 6px;
  font-weight: 800;
  color: var(--navy);
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.02;
}

.heritage-head .sub {
  margin: 0;
  color: var(--ink);
  font-size: clamp(12px, 1.3vw, 16px);
  font-weight: 400;
  max-width: 62ch;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3.2vh, 34px);
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.6vw, 28px);
}

.tl-line {
  position: absolute;
  left: 6%;
  right: 6%;
  top: clamp(28px, 4.6vw, 52px);
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    rgba(32, 64, 154, 0.28) 0,
    rgba(32, 64, 154, 0.28) 6px,
    transparent 6px,
    transparent 12px
  );
  z-index: 0;
}

.tl-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(6px, 1vh, 10px);
}

.tl-photo {
  width: clamp(52px, 6.2vw, 92px);
  height: clamp(52px, 6.2vw, 92px);
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 3px 8px rgba(32, 64, 154, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* logo-style assets (line art on white) look better as contain, not cropped-cover */
.tl-photo.contain img {
  object-fit: contain;
  padding: 8px;
}

.tl-year {
  font-weight: 700;
  font-size: clamp(14px, 1.7vw, 20px);
  padding: 1px 12px;
  border-radius: 999px;
  color: var(--white);
}

.tl-year.year-red { background: var(--red); }
.tl-year.year-navy { background: var(--navy); }

.tl-text {
  margin: 0;
  font-size: clamp(9.5px, 1vw, 12.5px);
  line-height: 1.35;
  color: var(--ink);
  max-width: 24ch;
}

.tl-text em {
  display: block;
  font-style: normal;
  color: var(--red);
  font-weight: 600;
  font-size: 0.9em;
  margin-top: 2px;
}

/* =========================================================
   Horizontal product groups (7–12 and 13–16)
   ========================================================= */
.slide-group {
  padding: 0;
}

.hscroll {
  display: flex;
  height: 100%;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.hslide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.75);
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(32, 64, 154, 0.18);
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.h-arrow:hover { background: var(--navy); color: var(--white); transform: translateY(-50%) scale(1.08); }

/* Inset far enough from the viewport edge to clear the sidebar toggle
   (fixed at left:18px, ~40px wide, vertically centered like these arrows),
   then scale in toward the boxed content's own padding on wider screens. */
.h-prev { left: clamp(64px, 8vw, 120px); }
.h-next { right: clamp(64px, 8vw, 120px); }

.h-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 8px;
}

.h-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.h-dot.active {
  background: var(--red);
  width: 20px;
  border-radius: 4px;
}

.h-hint {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 20;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.75);
  padding: 5px 12px;
  border-radius: 999px;
  opacity: 0.9;
  animation: fadeOutHint 3s ease forwards;
  animation-delay: 2s;
}

@keyframes fadeOutHint {
  to { opacity: 0; visibility: hidden; }
}

/* =========================================================
   Slide 4 — The Material (REDESIGNED)
   ========================================================= */
.slide-material { align-items: stretch; justify-content: stretch; }

.material {
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 5vw, 90px);
  align-items: center;
  padding: clamp(24px, 5vh, 56px) clamp(32px, 6vw, 100px);
  background:
    radial-gradient(circle at 96% 10%, rgba(240, 78, 48, 0.07), transparent 45%),
    var(--cream);
}

.material-left { display: flex; flex-direction: column; gap: clamp(8px, 1.4vh, 14px); }

.material .eyebrow {
  margin: 0;
  color: var(--red);
  font-weight: 700;
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.material h1 {
  margin: 0 0 4px;
  font-weight: 800;
  color: var(--ink);
  font-size: clamp(26px, 3.6vw, 44px);
}

.material-photo {
  border-radius: 14px;
  overflow: hidden;
}

.material-photo img { width: 100%; height: clamp(120px, 22vh, 220px); object-fit: cover; display: block; }

.material-caption {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  font-size: clamp(11px, 1.1vw, 14px);
}

.material-right { display: flex; flex-direction: column; gap: clamp(10px, 1.8vh, 18px); }

.material-stat { margin: 0; line-height: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }

.material-stat .stat-num {
  font-weight: 800;
  color: var(--red);
  font-size: clamp(48px, 7.5vw, 96px);
}

.material-stat .stat-unit {
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(18px, 2.6vw, 32px);
}

.material-desc {
  margin: 0;
  max-width: 46ch;
  color: var(--ink);
  font-size: clamp(12px, 1.3vw, 16px);
  line-height: 1.55;
}

.material-gallery {
  grid-column: 1 / -1;
  display: flex;
  gap: clamp(6px, 1vw, 12px);
}

.material-gallery-item {
  flex: 1 1 0;
  height: clamp(48px, 9vh, 92px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(32, 64, 154, 0.1);
}

.material-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.material-gallery-item:hover img { transform: scale(1.07); }

/* =========================================================
   Slide 5 — Production Capacity (REDESIGNED)
   ========================================================= */
.slide-capacity { align-items: stretch; justify-content: stretch; }

.capacity {
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 3vh, 32px);
  padding: clamp(24px, 5vh, 56px) clamp(32px, 6vw, 100px);
  background: var(--cream);
}

.capacity h1 {
  margin: 0;
  font-weight: 800;
  color: var(--red);
  font-size: clamp(26px, 3.6vw, 44px);
}

.capacity-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 40px);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.capacity-stat { text-align: center; }

.cap-label-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 6px;
}

.cap-icon {
  height: clamp(26px, 3.2vw, 38px);
  width: auto;
  flex: none;
}

.cap-label {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: clamp(11px, 1.1vw, 14px);
}

.cap-num {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 52px);
}

.cap-unit {
  margin: 0;
  color: var(--red);
  font-weight: 600;
  font-size: clamp(10px, 1vw, 13px);
}

.capacity-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(6px, 1vw, 14px);
  flex: 1;
  min-height: 0;
}

.capacity-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* =========================================================
   Slide 6 — Hero Product (REDESIGNED)
   ========================================================= */
.slide-hero { align-items: stretch; justify-content: stretch; }

.hero {
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 1.8vh, 18px);
  padding: clamp(18px, 3.6vh, 44px) clamp(32px, 6vw, 100px);
  background: var(--cream);
}

.hero h1 {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
  font-size: clamp(24px, 3.4vw, 40px);
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.6vw, 36px);
}

.hero-card {
  border: 1px solid rgba(32, 64, 154, 0.15);
  border-radius: 14px;
  padding: clamp(10px, 1.6vh, 18px) clamp(12px, 1.6vw, 20px);
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hero-model {
  margin: 0;
  color: var(--red);
  font-weight: 700;
  font-size: clamp(11px, 1.1vw, 14px);
}

.hero-name {
  margin: 2px 0 4px;
  color: var(--navy);
  font-weight: 800;
  font-size: clamp(16px, 2vw, 22px);
}

.hero-desc {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: clamp(10.5px, 1.05vw, 13px);
}

.hero-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(6px, 1vw, 14px);
  margin: 4px 0;
  flex: 1;
  min-height: 0;
}

.hero-swatches img {
  height: clamp(36px, 6.4vh, 64px);
  width: auto;
  object-fit: contain;
  display: block;
}

.hero-swatches img.featured {
  height: clamp(52px, 9.5vh, 96px);
}

.hero-swatches.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  align-items: center;
  justify-items: center;
}

.hero-swatches.grid4 img {
  height: auto;
  max-height: clamp(32px, 8vh, 70px);
  width: 100%;
  max-width: 100%;
}

.hero-feature-img {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}

.hero-feature-img img {
  max-width: 100%;
  max-height: 100%;
  height: clamp(80px, 18vh, 210px);
  width: auto;
  object-fit: contain;
}

.hero-target {
  margin: 4px 0 0;
  font-size: clamp(10px, 1vw, 12.5px);
  color: var(--ink);
  text-align: center;
}

.hero-target span:first-child { font-weight: 700; color: var(--navy); }

.hero-gallery {
  display: flex;
  gap: clamp(6px, 1vw, 12px);
}

.hero-gallery-item {
  flex: 1 1 0;
  height: clamp(42px, 7.5vh, 78px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(32, 64, 154, 0.12);
}

.hero-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.hero-gallery-item:hover img { transform: scale(1.07); }

.hero-icons {
  display: flex;
  justify-content: space-between;
  gap: clamp(8px, 1.6vw, 24px);
  margin-top: clamp(4px, 1vh, 10px);
}

.hero-icon {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  color: var(--navy);
}

.hero-icon svg {
  width: clamp(24px, 3vw, 36px);
  height: clamp(24px, 3vw, 36px);
}

.hero-icon span {
  font-size: clamp(9px, 0.95vw, 12px);
  font-weight: 600;
  color: var(--ink);
}

/* =========================================================
   Slides 7–16 — Product family template (REDESIGNED)
   ========================================================= */
.product {
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(4px, 0.8vh, 8px);
  padding: clamp(24px, 5vh, 56px) clamp(32px, 6vw, 100px);
  background: var(--cream);
}

.product .eyebrow {
  margin: 0;
  color: var(--red);
  font-weight: 700;
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product h1 {
  margin: 0 0 clamp(10px, 1.8vh, 18px);
  font-weight: 800;
  color: var(--ink);
  font-size: clamp(22px, 3.2vw, 38px);
}

.product h2 {
  margin: 0;
  font-weight: 800;
  color: var(--navy);
  font-size: clamp(20px, 2.6vw, 30px);
}

.product-tag {
  margin: 2px 0 4px;
  color: var(--red);
  font-weight: 600;
  font-size: clamp(12px, 1.3vw, 16px);
}

.product-desc {
  margin: 0 0 clamp(8px, 1.6vh, 16px);
  max-width: 62ch;
  color: var(--ink);
  font-size: clamp(11px, 1.15vw, 14.5px);
}

.product-media {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  align-content: center;
  gap: clamp(8px, 1.6vw, 28px);
  overflow: hidden;
}

.product-media img {
  max-width: 100%;
  max-height: 100%;
  height: clamp(48px, 11.5vh, 128px);
  width: auto;
  object-fit: contain;
}

.product-media img.featured {
  height: clamp(70px, 16.5vh, 185px);
}

/* ---------- Product showcase: fashion grid (left) + swatch picker (right) ---------- */
.product-showcase {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: clamp(12px, 2vw, 28px);
}

.fashion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(8px, 1.2vw, 16px);
  min-height: 0;
}

.fashion-cell {
  background: rgba(32, 64, 154, 0.05);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease, z-index 0.25s step-end;
}

.fashion-cell:hover {
  transform: scale(1.18);
  z-index: 6;
  box-shadow: 0 14px 36px rgba(32, 64, 154, 0.28);
  cursor: default;
}

.fashion-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.fashion-cell.dynamic { outline: 2px solid rgba(240, 78, 48, 0.35); outline-offset: -2px; }

.fashion-cell.dynamic:hover {
  transform: none;
  z-index: 1;
  box-shadow: none;
}

.product-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  gap: 2px;
}

.product-side .swatch-grid { flex: 1; margin-top: clamp(6px, 1.2vh, 14px); }

.swatch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: min-content;
  align-content: start;
  gap: clamp(4px, 0.8vw, 10px);
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.swatch-cell {
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.swatch-cell img {
  width: 100%;
  height: auto;
  max-height: clamp(38px, 6vh, 62px);
  object-fit: contain;
  display: block;
}

.swatch-cell:hover { background: rgba(32, 64, 154, 0.06); }

.swatch-cell.active {
  border-color: var(--red);
  background: rgba(240, 78, 48, 0.06);
}

@media (max-width: 700px) {
  .product-showcase { grid-template-columns: 1fr; grid-template-rows: 1.3fr 1fr; }
  .swatch-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   Slide 17 — Why Partner With Us (REDESIGNED)
   ========================================================= */
.slide-partner { align-items: stretch; justify-content: stretch; }

.partner {
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  padding: clamp(24px, 5vh, 56px) clamp(32px, 6vw, 100px);
  background: var(--cream);
}

.partner-left .eyebrow {
  margin: 0 0 6px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(11px, 1.2vw, 14px);
}

.partner-left h1 {
  margin: 0;
  font-weight: 800;
  color: var(--red);
  font-size: clamp(26px, 3.8vw, 46px);
  line-height: 1.05;
}

.partner-cards { display: flex; flex-direction: column; gap: clamp(8px, 1.6vh, 16px); }

.partner-card {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 1.6vw, 18px);
  border: 1.5px solid var(--red);
  border-radius: 14px;
  padding: clamp(10px, 1.6vh, 16px) clamp(14px, 1.8vw, 22px);
  background: rgba(255, 255, 255, 0.5);
}

.partner-card svg {
  flex: none;
  width: clamp(28px, 3.2vw, 40px);
  height: clamp(28px, 3.2vw, 40px);
  color: var(--navy);
}

.partner-title {
  margin: 0 0 3px;
  color: var(--navy);
  font-weight: 700;
  font-size: clamp(13px, 1.4vw, 17px);
}

.partner-desc {
  margin: 0;
  color: var(--ink);
  font-size: clamp(10.5px, 1.15vw, 14px);
  line-height: 1.45;
}

.partner-desc strong { color: var(--red); }

/* ---------- Size Chart button + slide-in panel ---------- */
.sizechart-toggle {
  align-self: flex-start;
  margin: 2px 0 clamp(6px, 1.2vh, 12px);
  padding: 6px 16px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(11px, 1.05vw, 13px);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.sizechart-toggle:hover { background: var(--navy); color: var(--white); }

.sizechart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 40, 0.4);
  z-index: 290;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sizechart-overlay.open { opacity: 1; pointer-events: auto; }

.sizechart-panel {
  position: fixed;
  right: 0;
  top: 0;
  height: 100dvh;
  width: clamp(300px, 34vw, 420px);
  background: var(--white);
  z-index: 300;
  box-shadow: -6px 0 28px rgba(32, 64, 154, 0.2);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.sizechart-panel.open { transform: translateX(0); }

.sizechart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(32, 64, 154, 0.12);
  flex: none;
}

.sizechart-title {
  margin: 0;
  font-weight: 800;
  font-size: 16px;
  color: var(--navy);
}

.sizechart-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.sizechart-close:hover { background: rgba(32, 64, 154, 0.08); }

.sizechart-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}

.sizechart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sizechart-table th, .sizechart-table td {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid rgba(32, 64, 154, 0.1);
}

.sizechart-table th {
  background: var(--navy);
  color: var(--white);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sizechart-table tbody tr:nth-child(even) { background: var(--cream); }

/* ---------- Small screens ---------- */
@media (max-width: 700px) {
  .sizechart-panel { width: 100vw; }
  .lang-switcher { left: 8px; top: 52px; padding: 3px; gap: 2px; }
  .lang-btn { font-size: 9px; padding: 4px 6px; }
  .deck-nav { right: 8px; gap: 7px; }
  .nav-dot { width: 7px; height: 7px; }
  .h-arrow { width: 36px; height: 36px; font-size: 20px; }
  .timeline-row { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .tl-text { max-width: 14ch; }
  .heritage { padding: 16px 14px; gap: 10px; }
  .material, .capacity, .hero, .product, .partner { padding: 14px 16px; }
  .ww-gallery, .material-gallery, .hero-gallery { flex-wrap: wrap; }
  .ww-gallery-item, .material-gallery-item, .hero-gallery-item { flex: 1 1 calc(33.333% - 8px); height: 64px; }
}

/* ---------- Access gate (visitor login) ---------- */
html.gate-locked .lang-switcher,
html.gate-locked .sidebar-toggle,
html.gate-locked .sidebar-menu,
html.gate-locked .sidebar-overlay,
html.gate-locked .deck-nav,
html.gate-locked .counter,
html.gate-locked .scroll-hint {
  display: none !important;
}

html.gate-locked #deck {
  overflow: hidden;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 26, 46, 0.72);
  backdrop-filter: blur(6px);
}

html.gate-locked .access-gate {
  display: flex;
}

.access-gate-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.access-gate-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.access-gate-heading {
  margin: 0 0 20px;
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.35;
}

.access-gate-form .gate-field {
  margin-bottom: 14px;
}

.access-gate-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}

.access-gate-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid rgba(32, 64, 154, 0.25);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--cream);
}

.access-gate-form input:focus {
  outline: none;
  border-color: var(--navy);
}

.access-gate-error {
  min-height: 16px;
  font-size: 12.5px;
  color: var(--red);
  margin-bottom: 10px;
}

.access-gate-submit {
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.access-gate-submit:hover { opacity: 0.92; }
.access-gate-submit:disabled { opacity: 0.6; cursor: default; }

