/* ============================================================
   REKA RUANG — Design System v2
   Minimalist editorial aesthetic.
   Palette: #fdfef6 / #00575c / #6d1f21 / #a8d5c0
   Fonts: Hatton (headings) via @font-face, Aileron (body) via @font-face
   ============================================================ */

/* ── Custom font faces ───────────────────────────────────── */
@font-face {
  font-family: 'Hatton';
  src: url('../assets/fonts/hatton/PP Hatton Ultralight 200.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hatton';
  src: url('../assets/fonts/hatton/PP Hatton Medium 500.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hatton';
  src: url('../assets/fonts/hatton/PP Hatton Bold 700.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aileron';
  src: url('../assets/fonts/aileron/Aileron-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aileron';
  src: url('../assets/fonts/aileron/Aileron-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aileron';
  src: url('../assets/fonts/aileron/Aileron-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Design Tokens ── */
:root {
  /* Palette */
  --color-canvas: #fdfef6;
  --color-teal: #00575c;
  --color-crimson: #6d1f21;
  --color-mint: #a8d5c0;
  --color-white: #ffffff;

  /* Semantic aliases */
  --bg: var(--color-canvas);
  --bg-dark: var(--color-teal);
  --accent: var(--color-crimson);
  --muted: var(--color-mint);
  --text: #1a1a18;
  --text-secondary: #4a4a45;
  --text-muted: #7a7a70;

  /* Typography */
  --font-heading: 'Hatton', serif;
  --font-body: 'Aileron', sans-serif;

  /* Size Scale */
  --text-xs: 0.7rem;
  --text-sm: 0.85rem;
  --text-base: 1rem;
  --text-lg: 1.15rem;
  --text-xl: 1.4rem;
  --text-2xl: 1.9rem;
  --text-3xl: 2.8rem;
  --text-4xl: 4rem;
  --text-5xl: 6rem;

  /* Spacing */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 140px;

  /* Layout */
  --max-w: 1200px;
  --max-w-sm: 780px;
  --nav-h: 72px;
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur-fast: 0.18s;
  --dur: 0.32s;
  --dur-slow: 0.55s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--text);
  font-weight: 500;
  /* Hatton Medium */
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, var(--text-5xl));
  font-weight: 500;
  /* Increased from 200 to 500 for better presence */
}

h2 {
  font-size: clamp(2rem, 4vw, var(--text-4xl));
}

h3 {
  font-size: clamp(1.4rem, 3vw, var(--text-3xl));
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 600;
  /* Aileron SemiBold */
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s6);
}

.container-sm {
  max-width: var(--max-w-sm);
  margin: 0 auto;
  padding: 0 var(--s6);
}

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

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

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

/* ── Divider ── */
.divider {
  width: 32px;
  height: 1px;
  background: var(--accent);
  display: block;
}

.divider-full {
  width: 100%;
  height: 1px;
  background: var(--border);
  display: block;
}

.divider-full-dark {
  width: 100%;
  height: 1px;
  background: var(--border-dark);
  display: block;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-dark {
  background: var(--text);
  color: var(--color-canvas);
  border: 1px solid var(--text);
}

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

.btn-teal {
  background: var(--bg-dark);
  color: var(--color-canvas);
  border: 1px solid var(--bg-dark);
}

.btn-teal:hover {
  background: #004448;
  border-color: #004448;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--color-canvas);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-canvas);
  border: 1px solid rgba(253, 254, 246, 0.55);
}

.btn-outline-light:hover {
  background: var(--color-canvas);
  color: var(--text);
}

.btn-sm {
  padding: 9px 20px;
  font-size: var(--text-xs);
}

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Arrow link — fab-brick style ── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: all var(--dur-fast) var(--ease);
}

.link-arrow:hover {
  color: var(--accent);
  gap: var(--s3);
}

.link-arrow-light {
  color: var(--color-canvas);
  border-bottom-color: var(--muted);
}

.link-arrow-light:hover {
  color: var(--muted);
}

/* ── Tag pill ── */
.tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 0;
}

.tag-muted {
  color: var(--text-muted);
  border-color: var(--border);
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

/* Default: solid on home (per split hero redesign) */
.navbar.transparent {
  background: rgba(253, 254, 246, 0.5);
  /* Semi-transparent canvas color */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.transparent .nav-link {
  color: var(--text-secondary);
}

.navbar.transparent .nav-contact {
  color: var(--text);
  border-color: var(--border);
}

.navbar.transparent .logo-img {
  filter: none;
}

.navbar.scrolled {
  background: rgba(253, 254, 246, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* Solid navbar (non-hero pages) */
.navbar.solid {
  background: var(--color-canvas);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: opacity var(--dur-fast);
}

.navbar.scrolled .logo-img,
.navbar.solid .logo-img,
.navbar.transparent .logo-img {
  filter: none;
  /* Stick to original color as requested */
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--s8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(253, 254, 246, 0.9);
  text-decoration: none;
  position: relative;
  transition: color var(--dur-fast);
  padding-bottom: 3px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--dur) var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar.scrolled .nav-link,
.navbar.solid .nav-link {
  color: var(--text-secondary);
}

.navbar.scrolled .nav-link:hover,
.navbar.solid .nav-link:hover {
  color: var(--text);
}

.nav-contact {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253, 254, 246, 0.9);
  text-decoration: none;
  padding: 9px 18px;
  border: 1px solid rgba(253, 254, 246, 0.4);
  transition: all var(--dur-fast);
}

.nav-contact:hover {
  background: rgba(253, 254, 246, 0.12);
}

.navbar.scrolled .nav-contact,
.navbar.solid .nav-contact {
  color: var(--text);
  border-color: var(--border);
}

.navbar.scrolled .nav-contact:hover,
.navbar.solid .nav-contact:hover {
  background: var(--text);
  color: var(--color-canvas);
  border-color: var(--text);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s2);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: rgba(253, 254, 246, 0.9);
  transition: all var(--dur) var(--ease);
}

.navbar.scrolled .hamburger span,
.navbar.solid .hamburger span {
  background: var(--text);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: var(--s5) var(--s6) var(--s7);
  flex-direction: column;
  gap: 0;
  animation: menuIn 0.22s var(--ease-out);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  color: var(--text);
  font-size: var(--text-lg);
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu .nav-link::after {
  display: none;
}

.mobile-menu .nav-contact {
  color: var(--text);
  border-color: var(--border);
  margin-top: var(--s5);
  align-self: flex-start;
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Page header (inner pages) ── */
.page-header {
  padding-top: calc(var(--nav-h) + var(--s9));
  padding-bottom: var(--s8);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-header.has-bg {
  padding-top: calc(var(--nav-h) + var(--s10));
  padding-bottom: var(--s9);
  color: var(--color-canvas);
  border-bottom: none;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  /* Darkened from 0.65 for better text contrast */
}

.page-header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s6);
  flex-wrap: wrap;
}

.page-header .label {
  margin-bottom: var(--s4);
  display: block;
}

.page-header h1 {
  max-width: 700px;
}

.page-header p {
  color: var(--text-secondary);
  max-width: 500px;
  margin-top: var(--s4);
  font-size: var(--text-lg);
  line-height: 1.6;
}

/* ── HERO SPLIT (Figma Inspired) ── */
.hero-split {
  height: 100svh;
  display: flex;
  background: var(--color-canvas);
  overflow: hidden;
  position: relative;
}

.hero-split-left {
  flex: 0 0 60%;
  position: relative;
  background: var(--color-canvas);
  display: flex;
  flex-direction: column;
}

.hero-split-right {
  flex: 0 0 40%;
  position: relative;
  background: #D9D9D9;
}

.hero-split-right video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Masking Branding */
.branding-interactive {
  position: absolute;
  left: 84px;
  top: 193px;
  width: 588px;
  height: 600px;
  z-index: 10;
}

.branding-mask-layer {
  position: absolute;
  inset: 0;
  -webkit-mask-image: url('../assets/images/logo-tok.svg'), url('../assets/images/text_logo-tok.svg');
  mask-image: url('../assets/images/logo-tok.svg'), url('../assets/images/text_logo-tok.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 0.5px 16.5px, 0.5px 314.5px;
  mask-position: 0.5px 16.5px, 0.5px 314.5px;
  -webkit-mask-size: 218px 265px, 567px 269px;
  mask-size: 218px 265px, 567px 269px;
  background: var(--bg-dark);
  /* Fallback */
}

.branding-mask-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-split-tagline {
  position: absolute;
  left: 326px;
  top: 776px;
  font-family: 'Aileron', 'DM Sans', sans-serif;
  font-size: 32px;
  font-style: italic;
  font-weight: 200;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* Tablet Scaling — Preserve desktop layout, scale down to prevent overflow */
@media (max-width: 1400px) and (min-width: 769px) {
  .branding-interactive {
    transform: scale(0.65);
    transform-origin: left top;
    top: 10vh;
    left: 84px;
  }

  .hero-split-tagline {
    top: calc(10vh + 600px * 0.65 + 24px);
    left: 84px;
    font-size: clamp(1rem, 2vw, 1.75rem);
  }
}

/* Mobile Hero Redesign Override */
@media (max-width: 768px) {
  .hero-split {
    height: 100vh;
  }

  .hero-split-left {
    position: absolute;
    inset: 0;
    width: 100%;
    z-index: 10;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-split-right {
    flex: 0 0 100%;
    width: 100%;
  }

  .branding-interactive {
    position: relative;
    left: 0;
    top: 0;
    width: 280px;
    height: 300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .branding-mask-layer {
    background: var(--color-canvas);
    -webkit-mask-size: 100px 121px, 260px 123px;
    mask-size: 100px 121px, 260px 123px;
    -webkit-mask-position: center 0, center 150px;
    mask-position: center 0, center 150px;
  }

  .branding-mask-layer video {
    display: none;
  }

  .hero-split-tagline {
    position: relative;
    left: 0;
    top: auto;
    margin-top: var(--s8);
    font-size: 20px;
    text-align: center;
    color: var(--color-canvas);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
}

/* ── HOMEPAGE HERO (Impact Section) ── */
.hero {
  position: relative;
  min-height: 80vh;
  /* Reduced height as secondary hero */
  display: flex;
  align-items: center;
  /* Changed from flex-end for vertical centering */
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.35) 40%,
      rgba(0, 0, 0, 0.0) 100%);
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--s10) 0;
  /* Balanced padding for better centering */
}

.hero-content .label-light {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
  margin-bottom: var(--s5);
  display: block;
}

.hero-content h1 {
  color: var(--color-canvas);
  font-style: italic;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.5s forwards;
  max-width: 820px;
  margin-bottom: var(--s6);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s6);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.75s forwards;
}

.hero-tagline {
  font-size: var(--text-lg);
  color: rgba(253, 254, 246, 0.8);
  max-width: 440px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
}

/* ── BRAND NARRATIVE (MERGED S4 & S7) ── */
.brand-narrative-merged {
  padding: var(--s10) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.narrative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s10);
  align-items: center;
}

.narrative-text h2 {
  margin-bottom: var(--s5);
}

.narrative-text p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--s5);
}

.value-props-list {
  margin-top: var(--s7);
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}

.value-props-list li {
  padding-left: var(--s5);
  border-left: 2px solid var(--accent);
  /* #6d1f21 */
}

.value-props-list li strong {
  display: block;
  font-size: var(--text-base);
  margin-bottom: var(--s1);
  color: var(--bg-dark);
  /* #00575c as a secondary dark text */
}

.value-props-list li p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0;
}

.narrative-visual {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--s6);
}

.sdg-container {
  background: #f4f4ec;
  padding: var(--s5);
  border: 1px solid var(--border);
}

.sdg-gifs {
  display: flex;
  gap: var(--s3);
}

.sdg-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sdg-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sdg-item span {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.2);
}

.narrative-image-card {
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.narrative-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ── VISUAL SHOWCASE SLIDER ── */
.visual-slider-section {
  height: 90vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.slider-container {
  height: 100%;
  position: relative;
}

.slider-track {
  height: 100%;
  display: flex;
  width: 400%;
  /* 4 images */
  animation: slideShow 24s infinite linear;
}

.slider-item {
  width: 25%;
  height: 100%;
  flex-shrink: 0;
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 87, 92, 0.6) 0%, transparent 60%);
  display: flex;
  align-items: center;
  z-index: 5;
}

.slider-content {
  max-width: 600px;
}

.slider-content h2 {
  color: var(--color-canvas);
  margin: var(--s4) 0 var(--s6);
}

@keyframes slideShow {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-25%);
  }

  45% {
    transform: translateX(-25%);
  }

  50% {
    transform: translateX(-50%);
  }

  70% {
    transform: translateX(-50%);
  }

  75% {
    transform: translateX(-75%);
  }

  95% {
    transform: translateX(-75%);
  }

  100% {
    transform: translateX(0);
  }
}

/* bottom right */

/* ── DARK BAND (Utility for Teal Sections) ── */
.dark-band {
  background: var(--bg-dark);
  /* #00575c */
  color: var(--color-canvas);
}

.dark-band .label-light {
  margin-bottom: var(--s5);
  display: block;
}

.dark-band h2 {
  color: var(--color-canvas);
}

.dark-band p {
  color: rgba(253, 254, 246, 0.75);
}

/* ── PROCESS / ABOUT SECTION ── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.about-split-img {
  position: relative;
  overflow: hidden;
}

.about-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-split-text {
  padding: var(--s10) var(--s9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-dark);
  color: var(--color-canvas);
}

.about-split-text .label-light {
  margin-bottom: var(--s5);
  display: block;
}

.about-split-text h2 {
  color: var(--color-canvas);
  margin-bottom: var(--s6);
}

.about-split-text p {
  color: rgba(253, 254, 246, 0.8);
  line-height: 1.75;
  margin-bottom: var(--s5);
  font-size: var(--text-lg);
}

.about-split-text p:last-of-type {
  margin-bottom: var(--s7);
}

/* Process steps (About page) */
.process-list {
  margin-top: var(--s7);
}

.process-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--s5);
  align-items: start;
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--border);
}

.process-item:first-child {
  border-top: 1px solid var(--border);
}

.process-num {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  padding-top: 2px;
}

.process-text h4 {
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: var(--s2);
  font-size: var(--text-base);
}

.process-text p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ── CONTACT SECTION ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s10);
  align-items: start;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: var(--s5);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color var(--dur-fast);
}

.contact-channel:first-child {
  border-top: 1px solid var(--border);
}

.contact-channel:hover {
  color: var(--accent);
}

.channel-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.channel-info .label {
  margin-bottom: 3px;
  display: block;
}

.channel-info .val {
  font-weight: 500;
  font-size: var(--text-base);
}

/* ── FORMS ── */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.form-group label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: transparent;
  transition: border-color var(--dur-fast);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--accent);
}

.form-group input.error,
.form-group textarea.error {
  border-bottom-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.field-error {
  font-size: var(--text-xs);
  color: var(--accent);
  display: none;
}

.field-error.visible {
  display: block;
}

.form-success {
  display: none;
  padding: var(--s6);
  border: 1px solid var(--muted);
  background: rgba(168, 213, 192, 0.08);
}

.form-success.visible {
  display: block;
}

.form-success h4 {
  margin-bottom: var(--s2);
  color: var(--bg-dark);
}

.form-success p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* ── PRODUCT MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 8, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur) var(--ease);
  backdrop-filter: blur(6px);
}

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

.modal {
  background: var(--color-canvas);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateY(24px);
  transition: transform var(--dur) var(--ease);
}

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

.modal-img {
  position: relative;
  min-height: 460px;
  background: #f0f0e8;
}

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

.modal-close {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  width: 32px;
  height: 32px;
  background: rgba(253, 254, 246, 0.9);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast);
}

.modal-close:hover {
  background: var(--color-canvas);
}

.modal-body {
  padding: var(--s7);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}

.modal-body .label-accent {
  display: block;
}

.modal-body h2 {
  font-size: var(--text-2xl);
}

.modal-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.modal-spec {
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--border);
}

.modal-spec .label {
  display: block;
  margin-bottom: var(--s1);
}

.modal-spec span {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.modal-apps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.modal-actions {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-top: auto;
}

/* ── GALLERY PAGE ── */
.gallery-filters {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s8);
  overflow-x: auto;
}

.gallery-filter-btn {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--s4) var(--s6);
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-fast);
}

.gallery-filter-btn:hover {
  color: var(--text);
}

.gallery-filter-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.gallery-grid-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.gallery-page-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: #f0f0e8;
  border: 1px solid var(--border);
}

.gallery-page-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
  display: block;
  visibility: visible;
  opacity: 1;
  background: #f0f0e8;
}

.gallery-page-item:hover img {
  transform: scale(1.04);
}

.gallery-page-item.wide {
  grid-column: span 2;
  aspect-ratio: 16/6;
  margin-bottom: var(--s5);
}

.gallery-caption-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 87, 92, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--s5);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.gallery-page-item:hover .gallery-caption-overlay {
  opacity: 1;
}

.gallery-caption-overlay h4 {
  color: var(--color-canvas);
  font-size: var(--text-base);
  margin-bottom: 4px;
}

.gallery-caption-overlay p {
  color: var(--muted);
  font-size: var(--text-xs);
}

/* ── Gallery Modal ── */
.gallery-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 8, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  padding: var(--s5);
  pointer-events: none;
}

.gallery-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-modal-container {
  position: relative;
  max-width: 47.5vw;
  max-height: 47.5vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.gallery-modal-overlay img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: modalZoomIn 0.3s var(--ease);
}

.gallery-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease);
  z-index: 3001;
  padding: 0;
  line-height: 1;
}

.gallery-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes modalZoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .gallery-modal-container {
    max-width: 90vw;
    max-height: 90vh;
  }
}

/* ── ABOUT PAGE ── */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.vm-card {
  background: var(--color-canvas);
  padding: var(--s8);
}

.vm-card .label-accent {
  display: block;
  margin-bottom: var(--s5);
}

.vm-card h3 {
  font-style: italic;
  color: var(--bg-dark);
  margin-bottom: var(--s6);
  font-size: var(--text-2xl);
}

.vm-card ul {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.vm-card li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
}

.vm-card li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

/* Impact numbers */
.impact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-dark);
}

.impact-item {
  padding: var(--s8) var(--s7);
  text-align: center;
}

.impact-num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--muted);
  display: block;
  margin-bottom: var(--s2);
}

.impact-label {
  font-size: var(--text-sm);
  color: rgba(253, 254, 246, 0.65);
}

/* ── FOOTER ── */
.footer {
  background: var(--bg-dark);
  color: var(--color-canvas);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s8);
  padding: var(--s10) 0 var(--s8);
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand .logo-img {
  height: 36px;
  margin-bottom: var(--s6);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(253, 254, 246, 0.6);
  line-height: 1.7;
  margin-bottom: var(--s6);
}

.footer-social {
  display: flex;
  gap: var(--s3);
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(253, 254, 246, 0.15);
  transition: all var(--dur) var(--ease);
  color: var(--color-canvas);
  text-decoration: none;
}

.social-link svg {
  opacity: 0.7;
  transition: all var(--dur) var(--ease);
}

.social-link .icon-ig {
  width: 30px;
  height: 30px;
}

.social-link .icon-wa {
  width: 20px;
  height: 20px;
}

.social-link .icon-email {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  background: var(--color-canvas);
  border-color: var(--color-canvas);
  color: var(--bg-dark);
}

.social-link:hover svg {
  opacity: 1;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s5);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.footer-col ul li a {
  font-size: var(--text-sm);
  color: rgba(253, 254, 246, 0.55);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.footer-col ul li a:hover {
  color: var(--color-canvas);
}

.footer-col address {
  font-size: var(--text-sm);
  color: rgba(253, 254, 246, 0.55);
  line-height: 1.8;
}

.footer-col address a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast);
}

.footer-col address a:hover {
  color: var(--color-canvas);
}

.footer-bottom {
  padding: var(--s5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s4);
}

.footer-bottom p,
.footer-bottom a {
  font-size: var(--text-xs);
  color: rgba(253, 254, 246, 0.3);
  text-decoration: none;
  letter-spacing: 0.06em;
}

.footer-bottom a:hover {
  color: rgba(253, 254, 246, 0.7);
}

.footer-bottom-links {
  display: flex;
  gap: var(--s5);
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* Gallery items should show immediately */
.gallery-page-item.reveal {
  opacity: 1;
  transform: none;
}

.reveal-d1 {
  transition-delay: 0.1s;
}

.reveal-d2 {
  transition-delay: 0.2s;
}

.reveal-d3 {
  transition-delay: 0.3s;
}

.reveal-d4 {
  transition-delay: 0.4s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Catalog controls (sticky filter) ── */
.catalog-controls {
  position: sticky;
  top: var(--nav-h);
  background: rgba(253, 254, 246, 0.97);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
  padding: var(--s4) 0;
}

.catalog-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s3);
}

.filter-btns {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}

.filter-btn {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 14px;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--dur-fast);
}

.filter-btn:hover {
  border-color: var(--text);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--color-canvas);
}

.result-count {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.catalog-section {
  padding: var(--s8) 0 var(--s10);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
  /* Changed from 1px to gap for individual cards */
}

.product-card {
  background: var(--color-canvas);
  border: 1px solid var(--accent);
  /* Sharp border — #6d1f21 */
  display: flex;
  flex-direction: column;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(109, 31, 33, 0.1);
}

.product-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f0f0e8;
  border-bottom: 1px solid var(--accent);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

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

.product-info {
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info h3 {
  font-size: var(--text-lg);
  margin-top: var(--s2);
  margin-bottom: var(--s2);
}

.product-info .desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--s5);
}

.product-info-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-meta-chips {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}

.products-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: var(--s10);
  color: var(--text-muted);
  font-size: var(--text-lg);
  background: var(--color-canvas);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root {
    --s10: 96px;
    --s9: 72px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--s6);
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-masonry {
    grid-auto-rows: 65px;
  }

  .intro-band-inner {
    gap: var(--s7);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
    --s10: 72px;
    --s9: 56px;
    --s8: 40px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-band-inner {
    grid-template-columns: 1fr;
  }

  .about-split {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .about-split-img {
    height: 320px;
  }

  .about-split-text {
    padding: var(--s7) var(--s6);
  }

  .brand-narrative-merged {
    padding: var(--s9) 0;
  }

  .narrative-grid {
    grid-template-columns: 1fr;
    gap: var(--s8);
  }

  .narrative-text h2 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .narrative-text p {
    font-size: var(--text-base);
  }

  .sdg-gifs {
    gap: var(--s2);
  }

  .narrative-visual {
    margin-top: var(--s4);
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid-page {
    grid-template-columns: 1fr;
  }

  .gallery-page-item.wide {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  .vision-mission-grid {
    grid-template-columns: 1fr;
  }

  .impact-row {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--s7);
  }

  .modal {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .modal-img {
    min-height: 260px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .gallery-masonry {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }

  .gm-item:nth-child(1) {
    grid-column: 1/3;
    grid-row: 1/3;
  }

  .gm-item:nth-child(2) {
    grid-column: 1/2;
    grid-row: 3/4;
  }

  .gm-item:nth-child(3) {
    grid-column: 2/3;
    grid-row: 3/4;
  }

  .gm-item:nth-child(4) {
    grid-column: 1/3;
    grid-row: 4/5;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding-top: calc(var(--nav-h) + var(--s7));
    padding-bottom: var(--s6);
  }

  .page-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-spec-grid {
    grid-template-columns: 1fr;
  }

  .catalog-filter-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }
}

/* ── RESPONSIVE HERO SPLIT OVERRIDES ── */
@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
    min-height: 100svh;
    position: relative;
  }

  .hero-split-right {
    position: absolute;
    inset: 0;
    flex: none;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .hero-split-left {
    position: absolute;
    inset: 0;
    flex: none;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--s8) var(--s6);
  }

  .branding-interactive {
    position: relative;
    left: auto;
    top: auto;
    width: 280px;
    height: 300px;
    margin: 0 auto;
    transition: all var(--dur) var(--ease);
  }

  .branding-mask-layer {
    background: #fdfef6;
    mask-position: center 0px, center 150px;
    mask-size: 85px 105px, 240px 115px;
    -webkit-mask-position: center 0px, center 150px;
    -webkit-mask-size: 85px 105px, 240px 115px;
  }

  .branding-mask-layer video {
    display: none;
  }

  .hero-split-tagline {
    position: relative;
    left: auto !important;
    top: auto !important;
    margin-top: 2rem;
    font-size: 20px;
    color: #fdfef6 !important;
    max-width: 240px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
}