/* ============================================================
   Bhumidana Indonesia — site styles
   Palette: navy base (Niğtaş-inspired) + Bhumidana amber accent
   ============================================================ */

:root {
  --navy: #143a7a;
  --navy-deep: #0e2a5c;
  --navy-ink: #0a1e44;
  --amber: #e8a33d;
  --ink: #1b2233;
  --slate: #5a6478;
  --mist: #f3f5f9;
  --line: #dde3ee;
  --white: #ffffff;

  --font: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --nav-h: 84px;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(14, 42, 92, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }        /* no sideways scrolling on phones */

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.lede {
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 62ch;
}

/* Section spacing */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--mist { background: var(--mist); }
.section--compact { padding: clamp(2.5rem, 4.5vw, 3.75rem) 0; }
.section--compact .section-head { margin-bottom: 0; }
.section--tight-top { padding-top: clamp(2.5rem, 4.5vw, 3.5rem); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy .lede { color: rgba(255, 255, 255, 0.78); }

/* Amber bar = Bhumidana's signature underline */
.bar {
  display: block;
  width: 44px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}
.bar--center { margin-inline: auto; }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head--center { text-align: center; margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-deep); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--mist); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   Header / navigation (hides on scroll down, shows on scroll up)
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  transition: transform 0.4s var(--ease), box-shadow 0.3s;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.brand__mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}
.brand__word { height: 40px; width: auto; }

.nav__links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-ink);
  padding: 0.4rem 0;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta { margin-left: 1rem; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--navy);
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px auto;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    gap: 1.25rem;
  }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 1rem; }
  .nav__links a { font-size: 1.05rem; }
  .nav__cta { margin-left: 0; }
}

/* ============================================================
   Hero — video background with ghost headline
   ============================================================ */
.hero {
  position: relative;
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));   /* fallback for older browsers */
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 42, 92, 0.55) 0%, rgba(14, 42, 92, 0.72) 100%);
}
.hero__ghost {
  position: absolute;
  top: 12vh;
  left: 0;
  right: 0;
  white-space: nowrap;
  overflow: hidden;
  font-size: clamp(5rem, 15vw, 15rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  user-select: none;
  padding-left: 1rem;
}
.hero__content {
  position: relative;
  padding: 0 0 clamp(4rem, 10vh, 8rem);
}
.hero__content > * { max-width: 640px; }
.hero__content p {
  font-size: 1.15rem;
  max-width: 52ch;
  margin: 1.25rem 0 2rem;
  color: rgba(255, 255, 255, 0.9);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Page banner (inner pages) */
.banner {
  position: relative;
  padding: calc(var(--nav-h) + 4.5rem) 0 4.5rem;
  color: var(--white);
  background: var(--navy-deep) center / cover no-repeat;
  isolation: isolate;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 42, 92, 0.72);
  z-index: -1;
}
.banner h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
}
.banner h1::before,
.banner h1::after {
  content: "";
  flex: 0 1 220px;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
}
.crumbs {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  margin-top: var(--nav-h);      /* sits directly under the fixed header */
  padding: 1rem 0;
  font-size: 0.92rem;
}
.crumbs a { color: rgba(255, 255, 255, 0.75); }
.crumbs a:hover { color: var(--white); }
.crumbs span { color: var(--white); font-weight: 600; }
.crumbs i { font-style: normal; margin: 0 0.6rem; }

/* ============================================================
   Scroll-scrubbed frame sequence (home)
   ============================================================ */
.scrub {
  position: relative;
  height: 400vh;                 /* scroll distance = animation length */
  background: var(--navy-deep);
  color: var(--white);
}
.scrub__sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  height: calc(100svh - var(--nav-h));
  overflow: hidden;
}
.scrub__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scrub__sticky::after {                 /* scrim at top and bottom so captions stay readable */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(14, 42, 92, 0.75) 0%,
    rgba(14, 42, 92, 0.15) 32%,
    rgba(14, 42, 92, 0.15) 62%,
    rgba(14, 42, 92, 0.85) 100%);
  pointer-events: none;
}
.scrub__caption {
  position: absolute;
  inset: 0;                            /* steps are placed individually inside this area */
  pointer-events: none;
  z-index: 1;
}
.scrub__step {
  position: absolute;
  max-width: 420px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
/* 1st caption top-right, 2nd middle-right, 3rd bottom-left */
.scrub__step:nth-of-type(1) { top: 9%;  left: 0; }
.scrub__step:nth-of-type(2) { top: 40%; right: -7rem; }
.scrub__step:nth-of-type(3) { bottom: 9%; left: 0; }
.scrub__step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.scrub__num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 0.75rem;
}
.scrub__step h2 { color: var(--amber); margin-bottom: 0.75rem; }
.scrub__step p { color: rgba(255,255,255,0.9); }
.scrub__step .btn { margin-top: 1rem; }
.scrub__progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
}
.scrub__progress span {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 100%);
  background: var(--amber);
}
@media (max-width: 760px) {
  .scrub__step,
  .scrub__step:nth-of-type(1),
  .scrub__step:nth-of-type(2),
  .scrub__step:nth-of-type(3) {
    left: 0;
    right: 0;
    max-width: none;
    padding-right: 4rem;            /* keeps text clear of the WhatsApp button */
  }
  /* top / middle / bottom on phones */
  .scrub__step:nth-of-type(1) { top: 6%;  bottom: auto; }
  .scrub__step:nth-of-type(2) { top: 36%; bottom: auto; }
  .scrub__step:nth-of-type(3) { top: auto; bottom: 6%; }
  .scrub__step h2 { font-size: 1.5rem; }
}

/* ============================================================
   Home — three cubes
   ============================================================ */
.cubes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cube {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  align-items: end;
  color: var(--white);
  background: var(--navy-deep) center / cover no-repeat;
  box-shadow: var(--shadow);
}
.cube::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 58, 122, 0.25) 0%, rgba(14, 42, 92, 0.95) 100%);
}
.cube__body { position: relative; padding: 2rem; }
.cube__body h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.cube__body p { color: rgba(255, 255, 255, 0.82); font-size: 0.98rem; }
.cube__body .bar { margin: 0.75rem 0 1rem; }
@media (max-width: 900px) {
  .cubes { grid-template-columns: 1fr; }
  .cube { min-height: 320px; }
}

/* ============================================================
   Split sections (photo + text)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split--reverse > .split__media { order: 2; }
.split__media img {
  width: 100%;
  height: 420px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split__text h2 { margin-bottom: 0; }
.split__text .lede { max-width: 56ch; }
.split + .split { margin-top: clamp(4rem, 8vw, 7rem); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > .split__media { order: 0; }
}

/* Decorative crystal stack (About section on home) */
.crystals {
  position: relative;
  aspect-ratio: 1;
}
.crystals svg,
.crystals img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* it is line art, not a photo: no card styling */
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
}
/* Slow continuous spin on the crystal (on the img, so it doesn't clash with the scroll-reveal transform on .crystals) */
.crystals img {
  animation: crystal-spin 120s linear infinite;
  will-change: transform;
}
@keyframes crystal-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .crystals img { animation: none; }
}

/* ============================================================
   Video embed
   ============================================================ */
.video-wrap {
  position: relative;
  width: min(960px, 100%);
  margin-inline: auto;
  height: 540px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.93rem;
  line-height: 1.6;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.7fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}
.site-footer h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.9rem;
}
.site-footer p { margin-bottom: 0.9rem; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.site-footer__tagline { max-width: 32ch; margin: 1.6rem 0 0 !important; color: rgba(255,255,255,0.8); }
.brand__word--footer { filter: brightness(0) invert(1); }   /* wordmark in white on navy; globe keeps its colours */
.site-footer__brand .btn { font-size: 0.92rem; padding: 0.75rem 1.4rem;  }
.site-footer nav { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WhatsApp floating button
   ============================================================ */
.whatsapp {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.25s var(--ease);
}
.whatsapp:hover { transform: scale(1.06); }
.whatsapp { border: 0; cursor: pointer; padding: 0; }
.whatsapp svg { width: 32px; height: 32px; }
.whatsapp::after {
  content: "";
  position: absolute;
  top: 4px; right: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ff3b30;
  border: 2px solid var(--white);
}

/* WhatsApp chat popup (markup injected by js/main.js) */
.wa-popup {
  position: fixed;
  right: 1.5rem;
  bottom: 6.5rem;
  z-index: 91;
  width: min(360px, calc(100vw - 3rem));
  border-radius: 18px;
  overflow: hidden;
  background: #e5ddd5;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.35);
  font-family: var(--font);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.wa-popup.is-open { opacity: 1; transform: none; pointer-events: auto; }
.wa-popup__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  background: #25d366;
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
}
.wa-popup__head svg { width: 26px; height: 26px; }
.wa-popup__close {
  margin-left: auto;
  width: 32px; height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.wa-popup__body { padding: 1.25rem 1rem 1rem; }
.wa-popup__msg {
  position: relative;
  display: inline-block;
  max-width: 88%;
  background: var(--white);
  color: var(--ink);
  border-radius: 14px;
  border-top-left-radius: 4px;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 0.6rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.wa-popup__msg + .wa-popup__msg { display: block; width: fit-content; }
.wa-popup__open {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: #25d366;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.wa-popup__open:hover { background: #1fb955; }
.wa-popup__open svg { width: 22px; height: 22px; }

/* ============================================================
   About page
   ============================================================ */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.mv-grid > div + div { padding-top: clamp(0px, 8vw, 6rem); }
.mv-grid h2 { margin-top: 1.25rem; }
.mv-grid svg { width: 120px; height: 120px; color: var(--navy); }
@media (max-width: 760px) {
  .mv-grid { grid-template-columns: 1fr; }
  .mv-grid > div + div { padding-top: 0; }
}

/* About page — editorial intro */
.about-top__head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.about-top__head h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.1; }
.head-rule {
  display: block;
  width: fit-content;
  max-width: 100%;
  height: 0;
  overflow: hidden;
  margin-top: 1.25rem;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: transparent;
  border-bottom: 2px solid var(--line);
  user-select: none;
}
.about-top__head .bar { margin-top: 0.6rem; }
.lede--lg { font-size: 1.2rem; color: var(--ink); }
.lede--wide { max-width: none; }
.section-head--wide { max-width: none; }
.about-top__media img {
  width: 100%;
  height: clamp(280px, 42vw, 520px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-top__media { margin: 0; }
.about-top__facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.about-top__facts strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.about-top__facts span { font-size: 0.92rem; color: var(--slate); }
.about-top__cols {
  columns: 3;
  column-gap: clamp(2rem, 5vw, 4rem);
  color: var(--slate);
}
.about-top__cols p { break-inside: avoid; margin-bottom: 1.25rem; }
@media (max-width: 900px) {
  .about-top__head { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-top__facts { grid-template-columns: 1fr 1fr; }
  .about-top__cols { columns: 1; }
}

/* Purpose / Mission / Vision blueprint */
.blueprint {
  position: relative;
  overflow: hidden;
  background: var(--mist);
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.blueprint__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.blueprint h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 700; margin-bottom: 0.15rem; }
.blueprint__sub {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.1rem;
}
.blueprint p { font-size: 1.05rem; line-height: 1.6; }
.blueprint__why {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}
.blueprint__why p { color: rgba(255,255,255,0.88); }
.blueprint__how { text-align: center; color: var(--ink); }
.blueprint__how p { color: var(--ink); opacity: 0.85; }
.blueprint__what {
  position: relative;
  text-align: center;
  color: var(--white);
  padding-left: 2.5rem;
  z-index: 0;
}
.blueprint__what::before {                /* huge circle anchored to this column: its left edge sits just before the text */
  content: "";
  position: absolute;
  top: 50%;
  left: -2rem;
  width: 2600px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy-deep);
  transform: translateY(-50%);
  z-index: -1;
}
.blueprint__what p { color: rgba(255,255,255,0.88); }
@media (max-width: 900px) {
  .blueprint__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .blueprint__why { width: min(360px, 100%); margin-inline: auto; }
  .blueprint__what { padding: 2.5rem 2rem; border-radius: var(--radius); overflow: hidden; }
  .blueprint__what::before { inset: 0; width: auto; aspect-ratio: auto; border-radius: 0; transform: none; }
}

/* Timeline */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  transform: translateX(-50%);
}
.timeline::before { bottom: 0; background: var(--line); }
.timeline::after {
  height: calc(var(--tl-progress, 0) * 100%);
  background: var(--navy);
  transition: height 0.15s linear;
}
.timeline__item {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 2rem 1.75rem;
  box-shadow: var(--shadow);
}
.timeline__item { width: calc(50% - 40px); }
.timeline__item:nth-child(odd) { align-self: flex-start; }
.timeline__item:nth-child(even) { align-self: flex-end; }
.timeline__item::before {
  content: "";
  position: absolute;
  top: 50%;
  margin-top: -11px;            /* half the dot height: centred on the card */
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.35s, transform 0.35s var(--ease);
  z-index: 1;
}
.timeline__item.is-passed::before {
  background: var(--navy);
  transform: scale(1.15);
}
.timeline__item:nth-child(odd)::before { right: -51px; }
.timeline__item:nth-child(even)::before { left: -51px; }
.timeline__year {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.timeline__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 0.6rem;
}
.timeline__item p { color: var(--slate); font-size: 0.98rem; }
@media (max-width: 720px) {
  .timeline { padding-left: 40px; }
  .timeline::before, .timeline::after { left: 12px; }
  .timeline__item { width: 100%; }
  .timeline__item:nth-child(odd)::before,
  .timeline__item:nth-child(even)::before { left: -39px; right: auto; }   /* centred on the line */
}

/* Quality pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.pillar {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.pillar svg { width: 44px; height: 44px; color: var(--navy); margin-bottom: 1rem; }
.pillar h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.pillar p { color: var(--slate); font-size: 0.95rem; }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .pillars { grid-template-columns: 1fr; } }

/* ============================================================
   Process page — numbered because it IS a sequence
   ============================================================ */
.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
}
.step:first-of-type { border-top: 0; padding-top: 0; }
.step:nth-child(even) .step__media { order: 2; }
.step__media img {
  width: 100%;
  height: 420px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step__num {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.step__text h4 { font-size: 1.1rem; color: var(--navy); margin-bottom: 0.25rem; }
.step__text p { color: var(--slate); margin-top: 0.75rem; }
.step__text .bar { margin: 1rem 0 1.25rem; }

/* Full-width navy title band */
.band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.band h2 { color: var(--white); }
.band .bar { margin-bottom: 0; }

/* Process intro */
.intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.intro__text .lede { max-width: 60ch; }
.intro__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--amber);
}
.intro__card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 1.25rem; }
.intro__card ul { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 1.1rem; }
.intro__card li { display: flex; gap: 0.9rem; align-items: flex-start; }
.intro__card svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--navy); margin-top: 2px; }
.intro__card strong { display: block; font-weight: 600; color: var(--ink); }
.intro__card span { font-size: 0.92rem; color: var(--slate); }
.intro__card .btn { width: 100%; justify-content: center; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; }
  .step:nth-child(even) .step__media { order: 0; }
}

/* ============================================================
   Applications page — hover reveals detail over a solid panel
   ============================================================ */
.uses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
/* Application cards: light card with the photo on top and all text visible below,
   so they read as detail inside an industry rather than more industry tiles */
.use {
  --use-photo-h: 190px;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  background-color: var(--white);
  background-size: 0 0;                 /* the inline photo is drawn by ::before instead */
  border: 1px solid var(--line);
  isolation: isolate;
  cursor: default;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.use::before {                          /* photo strip, inherits the tile's inline background-image */
  content: "";
  display: block;
  height: var(--use-photo-h);
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.use:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.use__fill { display: none; }
.use__body { position: relative; padding: 1.25rem 1.4rem 1.5rem; width: 100%; }
.use h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 0.35rem; }
.use__short { font-size: 0.95rem; font-weight: 500; color: var(--ink); margin: 0; }
.use__more p { font-size: 0.9rem; color: var(--slate); line-height: 1.6; margin: 0; padding-top: 0.6rem; }
.use__grades { display: flex; flex-wrap: wrap; gap: 0.35rem; padding-top: 0.9rem; }
.use__grades span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--mist);
  border: 1px solid var(--line);
  color: var(--navy);
}

@media (max-width: 960px) { .uses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .uses { grid-template-columns: 1fr; } .use { --use-photo-h: 170px; } }

/* Industries as a tab row: navigation, not content */
.ind-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 2px 2px 4px;                 /* room for the selected outline */
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.ind-tabs::-webkit-scrollbar { display: none; }
.ind-tab {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1rem;
  border: 0;
  border-radius: 14px;
  background: var(--navy);
  box-shadow: inset 0 -3px 0 transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.ind-tab:hover { color: var(--white); transform: translateY(-2px); }
.ind-tab[aria-selected="true"] { color: var(--white); background: var(--navy-deep); box-shadow: inset 0 -3px 0 var(--amber), 0 0 0 2px var(--amber); }
.ind-tab:focus-visible { outline: none; }
.ind-tab:focus-visible { box-shadow: 0 0 0 3px var(--amber); }

/* Desktop: one row of six equal boxes */
@media (min-width: 701px) {
  .ind-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.6rem; overflow: visible; }
  .ind-tab { white-space: normal; line-height: 1.2; text-align: center; }
}
@media (min-width: 701px) and (max-width: 1150px) {
  .ind-tab { font-size: 1rem; padding: 1rem 0.6rem; }
}

/* One industry panel visible at a time */
.drawer[data-ind-panel] { display: none; }
.drawer[data-ind-panel].is-open { display: block; animation: panel-in 0.35s var(--ease); }
.drawer[data-ind-panel] > .drawer__inner { overflow: visible; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.drawer[data-ind-panel] > .drawer__inner > .drawer__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.drawer[data-ind-panel] > .drawer__inner > .drawer__head h3 { font-size: 1.5rem; }
.drawer[data-ind-panel] > .drawer__inner > .drawer__head h3::before { content: none; }
.drawer__summary { margin: 0; color: var(--slate); font-size: 1rem; }
@media (max-width: 700px) {
  .ind-tab { flex: 0 0 auto; padding: 0.85rem 1.25rem; font-size: 1.05rem; }
    .drawer[data-ind-panel] > .drawer__inner > .drawer__head h3 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .drawer[data-ind-panel].is-open { animation: none; } }


.drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.drawer.is-open { grid-template-rows: 1fr; }
.drawer__inner { overflow: hidden; min-height: 0; }
/* labelled divider so it is obvious which industry is open */
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0.85rem 0;
  border-top: 3px solid var(--navy);
  border-bottom: 1px solid var(--line);
}
.drawer__head h3 { font-size: 1.15rem; color: var(--navy); }
.drawer__head h3::before { content: var(--t-applications, "Applications · "); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.drawer__close {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--slate);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.drawer__close:hover { border-color: var(--navy); color: var(--navy); }
.drawer > .drawer__inner > .uses { padding-top: 1.25rem; }
.drawer--sub .drawer__inner { padding-top: 1.25rem; }
.drawer__label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin: 0 0 0.75rem; }
.uses--sm { grid-template-columns: repeat(6, 1fr); }
.use--sm { --use-photo-h: 110px; }
.use--sm h3 { font-size: 1rem; }
.use--sm .use__short { font-size: 0.82rem; }
.use--sm .use__more p { font-size: 0.82rem; }
.use--sm .use__body { padding: 0.9rem 1rem 1.1rem; }
.use[data-sub] { cursor: pointer; }
.use[data-sub].is-active { border-color: var(--amber); box-shadow: 0 0 0 2px var(--amber); }
@media (max-width: 960px) { .uses--sm { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .uses--sm { grid-template-columns: repeat(2, 1fr); } }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}
.spec-table th { color: var(--navy); font-weight: 600; }
.spec-table td:first-child { font-weight: 600; }

/* ============================================================
   Products page
   ============================================================ */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 2rem; }
.chips__sep { width: 1px; height: 24px; background: var(--line); margin: 0 0.4rem; }
.chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy-ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s, opacity 0.3s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.product.is-hidden { display: none; }
.product__grade { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.product__head h3 { margin-top: 0.3rem; font-size: 1.35rem; color: var(--navy); }
.product p { color: var(--slate); font-size: 0.95rem; flex: 1; }
.product__spec { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.82rem; color: var(--slate); padding-top: 0.75rem; border-top: 1px solid var(--line); }
.product__spec b { color: var(--ink); font-weight: 600; }
.product__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.product__tags span { font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--mist); color: var(--slate); }
.product__link { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.products__empty { color: var(--slate); text-align: center; padding: 3rem 0; }
@media (max-width: 960px) { .products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.addr-card {
  border-radius: var(--radius);
  background: var(--mist);
  padding: 1.75rem;
}
.addr-card + .addr-card { margin-top: 1.25rem; }
.addr-card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 0.75rem; }
.addr-card address { font-style: normal; color: var(--slate); font-size: 0.98rem; }
.addr-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin: 1rem 0 0; font-size: 0.95rem; }
.addr-card dt { color: var(--slate); }
.addr-card dd { margin: 0; font-weight: 600; }
.addr-card .btn { margin-top: 1.25rem; font-size: 0.9rem; padding: 0.7rem 1.2rem; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.35rem; }
.form .req { color: var(--amber); }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--mist);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 0;
  border-color: var(--navy);
  background: var(--white);
}
.form textarea { min-height: 150px; resize: vertical; }
.form .full { grid-column: 1 / -1; }
.form__note { grid-column: 1 / -1; font-size: 0.88rem; color: var(--slate); }
.form__status { grid-column: 1 / -1; font-size: 0.95rem; color: var(--navy); font-weight: 600; min-height: 1.4em; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Map modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 1.5rem;
  background: rgba(10, 30, 68, 0.7);
  backdrop-filter: blur(4px);
}
.modal.is-open { display: grid; }
.modal__panel {
  width: min(1200px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.modal__head h3 { font-size: 1rem; }
.modal__close {
  background: none;
  border: 0;
  width: 36px; height: 36px;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--slate);
  border-radius: 50%;
}
.modal__close:hover { background: var(--mist); }
.modal__panel iframe { width: 100%; height: min(60vh, 460px); border: 0; display: block; }

/* ============================================================
   Scroll reveal (classes are applied by js/main.js)
   ============================================================ */
.reveal {
  opacity: 0;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal--up    { transform: translateY(40px); }
.reveal--left  { transform: translateX(-70px); }
.reveal--right { transform: translateX(70px); }
.reveal--pop   { transform: translateY(30px) scale(0.94); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Hero: single entrance on page load */
.hero__content > * {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-in 1.2s var(--ease) forwards;
}
.hero__content > :nth-child(1) { animation-delay: 0.3s; }
.hero__content > :nth-child(2) { animation-delay: 0.6s; }
.hero__content > :nth-child(3) { animation-delay: 0.9s; }
.hero__ghost { animation: ghost-in 1.6s var(--ease) both; }
@keyframes hero-in { to { opacity: 1; transform: none; } }
@keyframes ghost-in { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }

@supports (aspect-ratio: 1) {
  .split__media img, .step__media img, .video-wrap { height: auto; }
  .app { min-height: 0; }
}

/* ============================================================
   Page transitions
   ============================================================ */
/* Modern browsers: native cross-document transition (Chrome 126+, Safari 18.2+)
   Header and WhatsApp button are given their own names so they stay put;
   the rest of the page slides horizontally like turning a page. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.whatsapp { view-transition-name: whatsapp; }
::view-transition-group(site-header),
::view-transition-group(whatsapp) { animation-duration: 0s; }
::view-transition-old(root) { animation: slide-out 0.35s var(--ease) both; }
::view-transition-new(root) { animation: slide-in 0.45s var(--ease) both; }
@keyframes slide-out { to { opacity: 0; transform: translateX(-6%); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(6%); } }
@keyframes page-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(16px); } }

/* Fallback (older browsers): main.js toggles these classes */
body.page-enter { animation: page-in 0.45s var(--ease) both; }
body.page-leave { animation: page-out 0.25s ease both; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  ::view-transition-old(root), ::view-transition-new(root), ::view-transition-group(*) { animation: none !important; }
  .reveal, .hero__content > * { opacity: 1 !important; transform: none !important; }
  .timeline::after { height: 100%; }
  .timeline__item::before { background: var(--navy); }
}

/* ============================================================
   Language switcher (ID / EN / CN)
   ============================================================ */
/* While a translation is still loading, hide the content but NEVER the header —
   hiding the header would make it blink on every page transition. */
html[data-i18n-pending] body > *:not(.site-header) { visibility: hidden; }

/* The active pill is styled from an attribute set before the page paints,
   so it is already correct on arrival rather than popping in afterwards. */
html[data-lang-active="id"] .lang__btn[data-lang="id"],
html[data-lang-active="en"] .lang__btn[data-lang="en"],
html[data-lang-active="cn"] .lang__btn[data-lang="cn"] {
  background: var(--navy);
  color: var(--white);
}
.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--mist);
  flex-shrink: 0;
}
.lang__btn {
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--slate);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang__btn:hover { color: var(--navy); }
.lang__btn.is-on { background: var(--navy); color: var(--white); }
@media (min-width: 901px) { .lang { order: 3; margin-left: 1.75rem; } }
@media (max-width: 900px) { .lang { margin-left: auto; margin-right: 0.5rem; } }

/* ============================================================
   Photo slider (home: From quarry to your factory floor)
   ============================================================ */
.slider { position: relative; margin-top: 2.5rem; }
.slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  outline: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track:focus-visible { box-shadow: 0 0 0 3px var(--amber); }
.slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 7;
  margin: 0;
  scroll-snap-align: start;
  overflow: hidden;
}
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 5rem 3rem 2.75rem;
  background: linear-gradient(180deg, rgba(14, 42, 92, 0) 0%, rgba(14, 42, 92, 0.85) 100%);
  color: var(--white);
}
.slide figcaption .bar { margin-bottom: 1rem; }
.slide figcaption p {
  max-width: 26ch;
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
}
.slider__btn {
  position: absolute;
  top: 50%;
  width: 48px; height: 48px;
  margin-top: -24px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.slider__btn:hover { background: var(--white); }
.slider__btn:disabled { opacity: 0; pointer-events: none; }
.slider__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.slider__btn--prev { left: 1.25rem; }
.slider__btn--next { right: 1.25rem; }
.slider__dots { display: flex; justify-content: center; gap: 0.6rem; margin-top: 1.25rem; }
.slider__dots button {
  width: 10px; height: 10px; padding: 0;
  border: 0; border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s;
}
.slider__dots button[aria-current="true"] { width: 28px; background: var(--navy); }
@media (max-width: 760px) {
  .slide { aspect-ratio: 4 / 5; }
  .slide figcaption { padding: 4rem 1.5rem 1.75rem; }
  .slider__btn { display: none; }          /* swipe on touch screens */
}
@media (prefers-reduced-motion: reduce) {
  .slider__track { scroll-behavior: auto; }
}

/* ============================================================
   Certifications page: card grid + inline detail panel
   ============================================================ */
.cert-hint { color: var(--slate); margin: 0 0 1.5rem; font-size: 0.95rem; }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.cert-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.cert-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  margin-bottom: 0.6rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.cert-card__media img { width: 100%; height: 100%; object-fit: contain; background: var(--white); display: block; }
.cert-card:hover .cert-card__media { transform: translateY(-4px); box-shadow: var(--shadow); }
.cert-card[aria-expanded="true"] .cert-card__media { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.cert-card:focus-visible { outline: none; }
.cert-card:focus-visible .cert-card__media { box-shadow: 0 0 0 3px var(--amber); }
.cert-card__name { font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.cert-card__short { font-size: 0.92rem; color: var(--slate); line-height: 1.4; }
/* placeholder until the photo exists */
.cert-card__soon {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  padding: 1rem; text-align: center;
  font-size: 0.85rem; color: var(--slate);
}
.is-missing > img { display: none; }
.is-missing > .cert-card__soon { display: flex; }

.cert-detail { grid-column: 1 / -1; }
.cert-detail[hidden] { display: none; }
.cert-detail__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--mist);
  border: 1px solid var(--line);
  animation: cert-open 0.35s var(--ease);
}
@keyframes cert-open { from { opacity: 0; transform: translateY(-8px); } }
.cert-detail__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.cert-detail__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cert-detail__name { color: var(--navy); font-size: 1.75rem; margin: 0; }
.cert-detail__text .bar { margin: 0.75rem 0 1.1rem; }
.cert-detail__desc { color: var(--ink); font-size: 1.05rem; line-height: 1.7; margin: 0 0 1.25rem; }
.cert-detail__full { color: var(--navy); font-weight: 600; text-decoration: none; }
.cert-detail__full:hover { text-decoration: underline; }
.is-missing ~ .cert-detail__text .cert-detail__full { display: none; }
.cert-detail__close {
  position: absolute; top: 0.9rem; right: 0.9rem;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--white); color: var(--navy);
  cursor: pointer;
}
.cert-detail__close:hover { background: var(--line); }
.cert-detail__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (max-width: 1000px) { .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
  .cert-detail__inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.25rem; }
  .cert-detail__name { font-size: 1.4rem; padding-right: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { .cert-detail__inner { animation: none; } }

/* Buttons under split-section text (home) */
.split__text .btn { margin-top: 1.75rem; }
/* Certifications: document list inside the detail panel (e.g. TKDN per packaging) */
.cert-detail__docs { display: grid; gap: 0.4rem; margin: 0 0 1.4rem; }
.cert-detail__docs[hidden] { display: none; }
.cert-detail__group { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); margin-top: 0.6rem; }
.cert-detail__group:first-child { margin-top: 0; }
.cert-detail__doc {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--white);
  font: inherit; font-size: 0.95rem; color: var(--ink); text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.cert-detail__doc:hover { border-color: var(--navy); }
.cert-detail__doc strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.cert-detail__doc[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.cert-detail__doc[aria-pressed="true"] strong { color: var(--amber); }

/* ============================================================
   Certifications page: export requirements
   ============================================================ */
.exp-cap { margin: 0 0 1.75rem; }
.exp-cap__title { font-size: 1.35rem; color: var(--navy); margin: 0 0 0.35rem; }
.exp-cap__text { color: var(--slate); margin: 0; max-width: 70ch; }
.exp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.exp-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
}
.exp-card__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--mist);
  color: var(--navy);
  margin-bottom: 1rem;
}
.exp-card__icon svg { width: 26px; height: 26px; }
.exp-card h3 { font-size: 1.1rem; color: var(--navy); margin: 0 0 0.9rem; }
.exp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.exp-list li { position: relative; padding-left: 1.6rem; color: var(--ink); font-size: 0.95rem; line-height: 1.45; }
.exp-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.32em;
  width: 1rem; height: 1rem;
  border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.exp-note {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--slate);
}
.exp-note__icon { color: var(--navy); display: grid; }
.exp-note__icon svg { width: 26px; height: 26px; }
.exp-countries {
  margin-top: 1.25rem;
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.exp-countries__head { display: flex; align-items: baseline; gap: 0.75rem; margin: 0 0 1.25rem; font-size: 1.25rem; font-weight: 600; color: var(--navy); }
.exp-countries__head strong { font-size: 2.75rem; line-height: 1; color: var(--amber); }
.exp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.exp-chips li {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.exp-chips li:hover { background: var(--navy); color: var(--white); }
@media (max-width: 900px) { .exp-cards { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .exp-countries__head strong { font-size: 2.4rem; } .exp-countries__head { font-size: 1.1rem; } }

/* Export intro: text left, photo right */
.exp-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: center; margin-bottom: 2.5rem; }
.exp-intro .section-head { margin-bottom: 2rem; }
.exp-intro .exp-cap { margin-bottom: 0; }
.exp-intro__media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 800 / 508; }
.exp-intro__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .exp-intro { grid-template-columns: 1fr; gap: 2rem; }
}

/* "Click to see…" line on cards that open a sub-panel (PVC) */
.use__more .use__cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin: 0.85rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #b8730f;                       /* deeper amber so it reads clearly on white */
}
.use__cta::after { content: "↓"; transition: transform 0.3s var(--ease); }
.use[data-sub].is-active .use__cta::after { transform: rotate(180deg); }
.use[data-sub]:hover .use__cta { text-decoration: underline; }

/* Sub-panel sits inside the card grid as its own full-width row */
.uses > .drawer--sub { grid-column: 1 / -1; display: none; }
.uses > .drawer--sub.is-open { display: block; animation: panel-in 0.35s var(--ease); }
.uses > .drawer--sub > .drawer__inner {
  overflow: visible;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: #e6edf8;
  border: 1px solid #c9d6ec;
}
