/* ============================================================
   POLAR PLASTIC INDUSTRIES — Design System
   Bold & contemporary · cool neutral grays + electric-blue accent
   ============================================================ */

:root {
  /* Cool neutral grays (hue ~258) */
  --bg:          #f6f7f9;
  --surface:     #ffffff;
  --surface-2:   #eef0f4;
  --dark:        oklch(0.205 0.018 258);
  --dark-2:      oklch(0.255 0.02 258);

  --ink:         oklch(0.24 0.012 258);
  --ink-soft:    oklch(0.46 0.015 258);
  --ink-faint:   oklch(0.62 0.012 258);
  --on-dark:     oklch(0.97 0.004 258);
  --on-dark-soft:oklch(0.74 0.012 258);

  --line:        oklch(0.91 0.006 258);
  --line-strong: oklch(0.84 0.008 258);
  --line-dark:   oklch(0.34 0.018 258);

  /* Single accent — electric cobalt */
  --accent:      oklch(0.56 0.2 258);
  --accent-deep: oklch(0.48 0.2 258);
  --accent-soft: oklch(0.95 0.04 258);

  --display: 'Bai Jamjuree', system-ui, sans-serif;
  --sans:    'IBM Plex Sans Thai', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html[lang="th"] body { line-height: 1.85; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 11vw, 150px); }
.section--tight { padding-block: clamp(56px, 8vw, 110px); }
.section--cert { position: relative; overflow: hidden; }
.cert-photo-bg {
  position: absolute; inset: 0;
  background-image: url('images/cert-bg2.jpg');
  background-size: cover; background-position: center center;
  opacity: 0.60;
  filter: contrast(1.10) saturate(0.70) hue-rotate(10deg);
  pointer-events: none; z-index: 0;
}
.cert-photo-overlay {
  position: absolute; inset: 0;
  background: rgba(230,238,255,0.80);
  pointer-events: none; z-index: 1;
}
.section--cert .wrap { position: relative; z-index: 2; }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--dark .section-title { color: var(--on-dark); }
.section--alt { background: var(--surface); }

/* ---------- Film grain texture on dark sections (Premium opt. 3) ---------- */
/* A barely-there fractal-noise overlay removes flat banding on the dark
   Capabilities, Clients and footer panels. Content is lifted above it. */
.section--dark, .footer { position: relative; }
.section--dark > .wrap, .footer > .wrap { position: relative; z-index: 1; }
.section--dark::after, .footer::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* Clients sits right after the dark Capabilities section. Give it a distinct
   cooler / slightly-lifted dark tone + a faint dot-grid texture so the two
   dark sections read as separate blocks instead of one merged area. */
#clients {
  background-color: oklch(0.262 0.03 250);
  background-image: radial-gradient(oklch(0.92 0.02 258 / 0.08) 1.1px, transparent 1.2px);
  background-size: 22px 22px;
}

/* Eyebrow / section index */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.section--dark .eyebrow { color: oklch(0.72 0.16 258); }
.section--dark .eyebrow::before { background: oklch(0.72 0.16 258); }

.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 1040px; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.section-lead {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 90ch;
  line-height: 1.7;
}
.section--dark .section-lead { color: var(--on-dark-soft); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: color-mix(in oklch, var(--surface-2) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), height .35s var(--ease);
}
.header.scrolled {
  background: color-mix(in oklch, var(--surface) 92%, transparent);
  border-bottom-color: var(--line);
  height: 64px;
}
.header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__logo {
  height: 38px;
  width: auto;
  display: block;
  transition: height .35s var(--ease);
}
.header.scrolled .brand__logo { height: 32px; }
.brand__logo--footer {
  height: 44px;
}
.brand__mark {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.04em;
  box-shadow: 0 4px 16px -4px var(--accent);
}
.brand__text { display: inline-flex; align-items: baseline; white-space: nowrap; }
.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
/* Full brand name on tablet/desktop, abbreviated on mobile (≤460px) */
.brand__name--short { display: none; }
@media (max-width: 460px) {
  .brand__name {
    font-size: 12.5px;
    white-space: normal;
    max-width: 20ch;
  }
  .brand__name--full { display: none; }
  .brand__name--short { display: inline; }
}
.brand__sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-left: 10px;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .brand__sub { display: none; }
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 9px 14px;
  border-radius: 8px;
  position: relative;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--accent); }
/* Animated cobalt underline on hover/active (Premium opt. 4) */
.nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 14px; }

/* Language toggle */
.lang {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
}
.lang button {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 7px 12px;
  background: transparent;
  border: 0;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color .2s, background .2s;
}
.lang button.on { background: var(--accent); color: #fff; }

.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute;
  width: 18px; height: 2px; background: var(--ink);
  left: 50%; transform: translateX(-50%);
  transition: .3s var(--ease);
}
.menu-btn span { top: 50%; margin-top: -1px; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.menu-open .menu-btn span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { position: relative; overflow: hidden; background: var(--accent); color: #fff; box-shadow: 0 10px 28px -10px var(--accent); }
.btn--primary:hover { background: var(--accent-deep); box-shadow: 0 16px 36px -12px var(--accent); }
/* Light sheen sweep on hover (Premium opt. 4) */
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary::before {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, oklch(1 0 0 / 0.45), transparent);
  transform: skewX(-18deg);
  transition: left .6s ease;
  pointer-events: none;
  z-index: 0;
}
.btn--primary:hover::before { left: 140%; }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.section--dark .btn--ghost { border-color: var(--line-dark); color: var(--on-dark); }
.section--dark .btn--ghost:hover { border-color: var(--on-dark); }
/* Hero is a dark surface but not a .section--dark — give its ghost button light text */
.hero .btn--ghost { border-color: oklch(0.5 0.02 258); color: var(--on-dark); background: oklch(1 0 0 / 0.04); }
.hero .btn--ghost:hover { border-color: var(--on-dark); background: oklch(1 0 0 / 0.1); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  padding-top: calc(var(--header-h) + clamp(60px, 9vw, 120px));
  padding-bottom: clamp(60px, 9vw, 120px);
  overflow: hidden;
}
.hero__photo-bg {
  position: absolute; inset: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center 60%;
  opacity: 0.50;
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: oklch(0.11 0.04 258 / 0.62);
  pointer-events: none;
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 100% 0%, oklch(0.4 0.13 258 / 0.5), transparent 55%),
    radial-gradient(80% 70% at 0% 100%, oklch(0.3 0.08 258 / 0.4), transparent 60%);
  pointer-events: none;
  z-index: 2;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.16;
  mask-image: radial-gradient(120% 100% at 70% 30%, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 3;
}
.hero__inner { position: relative; z-index: 4; max-width: 1000px; }
.hero .eyebrow { color: oklch(0.74 0.15 258); margin-bottom: 28px; }
.hero .eyebrow::before { background: oklch(0.74 0.15 258); }
.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--on-dark);
}
.hero h1 em { font-style: normal; color: oklch(0.74 0.15 258); }
html[lang="th"] .hero h1 { font-size: clamp(1.9rem, 5.4vw, 4.2rem); line-height: 1.12; letter-spacing: -0.005em; }
html[lang="th"] .hero h1 em { white-space: pre-line; }
.hero__lead {
  margin-top: 30px;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  color: var(--on-dark-soft);
  max-width: 58ch;
  line-height: 1.6;
}
.hero__cta { margin-top: 42px; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; }
.hero__cta .btn { justify-content: center; }

.hero__stats {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  overflow: hidden;
}
.stat { background: var(--dark); padding: 28px clamp(20px, 2.4vw, 34px); }
.stat__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  letter-spacing: -0.03em;
  color: var(--on-dark);
  line-height: 1;
}
.stat__num span { color: oklch(0.74 0.15 258); }
.stat--cert .stat__num { font-size: clamp(1.5rem, 2.4vw, 2.05rem); }
.stat--cert .stat__num span { color: oklch(0.74 0.15 258); }
.stat--cert .stat__num .accent { color: oklch(0.74 0.15 258); display: block; margin-top: 11px; }
.stat__label {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--on-dark-soft);
  line-height: 1.4;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.prose p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.8; }
.prose p + p { margin-top: 1.2em; }
.prose strong { color: var(--ink); font-weight: 600; }

.values { margin-top: 40px; display: grid; gap: 2px; background: var(--line); border-radius: 12px; overflow: hidden; }
.values-head { display: block; margin-top: 48px; margin-bottom: 18px; white-space: pre-wrap; }
.values-head + .values { margin-top: 0; }
.value { background: var(--surface); padding: 22px 24px; display: flex; gap: 18px; align-items: flex-start; }
.value__k { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 600; padding-top: 3px; min-width: 26px; }
.value h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.value p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Placeholders ---------- */
.ph {
  background-color: var(--surface-2);
  background-image: repeating-linear-gradient(45deg,
    transparent, transparent 11px,
    color-mix(in oklch, var(--ink) 5%, transparent) 11px,
    color-mix(in oklch, var(--ink) 5%, transparent) 12px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px;
  border-radius: 12px;
}
.ph--dark {
  background-color: var(--dark-2);
  background-image: repeating-linear-gradient(45deg,
    transparent, transparent 11px,
    oklch(1 0 0 / 0.05) 11px, oklch(1 0 0 / 0.05) 12px);
  color: var(--on-dark-soft);
}

.about__media { position: relative; }
.about__media .ph { aspect-ratio: 4/5; }
.about__media .ph.b { aspect-ratio: 4/5; margin-top: 16px; }
.ph--illus { background-image: none; background-color: #fff; padding: 0; margin: 0; overflow: hidden; }
.ph--illus img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- Certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.cert:hover { transform: translateY(-8px); box-shadow: 0 1px 1px oklch(0.4 0.05 258 / 0.05), 0 10px 18px -10px oklch(0.4 0.05 258 / 0.30), 0 34px 56px -28px oklch(0.4 0.05 258 / 0.45); border-color: var(--line-strong); }
.cert__badge {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.cert__badge--logo {
  width: auto; height: 58px; border-radius: 0;
  background: transparent; padding: 0;
  display: flex; align-items: center; justify-content: flex-start;
  overflow: visible;
}
.cert__badge--logo img {
  height: 58px; width: auto; max-width: 100%; display: block; object-fit: contain;
}
.cert h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.cert .tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.cert p { font-size: 0.96rem; color: var(--ink-soft); line-height: 1.6; }

.cert-note {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 78ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- Capabilities ---------- */
.cap-note {
  margin-top: 44px; padding-top: 34px;
  border-top: 1px solid var(--line-dark);
  max-width: 94ch;
}
.cap-note__k {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: oklch(0.74 0.15 258); font-weight: 600;
  display: block; margin-bottom: 14px;
}
.cap-note p { color: var(--on-dark-soft); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.75; text-wrap: pretty; white-space: pre-line; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 18px; overflow: hidden; }
.cap {
  background: var(--dark);
  padding: 34px clamp(24px, 2.6vw, 38px) 38px;
  position: relative;
  transition: background .35s var(--ease);
}
.cap:hover { background: var(--dark-2); }
.cap__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: oklch(0.66 0.14 258); }
.cap__art { aspect-ratio: 16/10; margin: 22px 0 24px; }
.cap__art--photo { overflow: hidden; border-radius: 8px; }
.cap__art--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cap h3 { font-size: 1.35rem; font-weight: 600; color: var(--on-dark); margin-bottom: 10px; }
.cap__h-en { display: block; font-family: var(--sans); font-size: 0.82rem; font-weight: 500; color: #ffffff; margin-top: 5px; line-height: 1.35; letter-spacing: 0.01em; }
.cap__h-en:empty { display: none; }
.cap p { font-size: 0.97rem; color: var(--on-dark-soft); line-height: 1.6; }

.cap--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.cap--wide .cap__art { aspect-ratio: 16/7; margin: 0; }
.cap--wide .cap__num { margin-bottom: 14px; }
@media (max-width: 620px) {
  .cap--wide { grid-template-columns: 1fr; }
  .cap--wide .cap__art { aspect-ratio: 16/10; margin-top: 22px; }
}

/* ---------- Products ---------- */
.prod-cat { padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.prod-cat:first-of-type { border-top: 0; }
.prod-cat__head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.prod-cat__num { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: 0.1em; }
.prod-cat h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -0.02em; }
.prod-cat__desc { color: var(--ink-soft); font-size: 1rem; max-width: 52ch; margin-left: auto; flex: 1 1 280px; min-width: 240px; }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.prod-card {
  background: var(--surface);
  border: none;
  border-radius: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 14px;
  padding: 14px;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -26px oklch(0.4 0.05 258 / 0.55); border-color: var(--line-strong); }
.prod-card .ph { aspect-ratio: 1/1; margin-bottom: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; border-radius: 0; }
.prod-card img { width: 100%; aspect-ratio: 1/1; object-fit: contain; display: block; border-radius: 0; background: #fff; padding: 1px; box-sizing: border-box; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.prod-cat__sample-note { font-size: 0.92rem; color: var(--ink-faint); margin-top: 4px; font-style: italic; }
.prod-sample-note { font-size: 0.95rem; color: var(--ink-faint); margin-top: 16px; font-style: italic; }
.prod-card__meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); letter-spacing: 0.06em; margin-top: 3px; }

/* ---------- Lightbox ---------- */
#lb { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; }
#lb.lb-open { display: flex; }
#lb-backdrop { position: absolute; inset: 0; background: oklch(0.08 0.02 258 / 0.30); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
#lb-box { position: relative; z-index: 1; max-width: min(90vw, 480px); display: flex; flex-direction: column; align-items: center; gap: 16px; }
#lb-imgwrap { position: relative; display: inline-block; line-height: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 32px 80px -16px oklch(0 0 0 / 0.6); }
#lb-img { max-width: 100%; max-height: 70vh; object-fit: contain; display: block; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
/* Transparent shield: sits over the enlarged photo so a mobile long-press
   targets this <div> instead of the <img>, suppressing the Save-Image menu. */
#lb-watermark { position: absolute; inset: 0; pointer-events: auto; -webkit-touch-callout: none; }
#lb-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(0.7 0.05 258); }
#lb-close { position: absolute; top: -16px; right: -16px; width: 36px; height: 36px; border-radius: 50%; background: var(--dark-2); border: 1px solid var(--line-dark); color: var(--on-dark); font-size: 14px; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
#lb-close:hover { background: oklch(0.35 0.04 258); }

/* ---------- Clients ---------- */
.industries {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}
.industry {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  text-align: center;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  padding: 28px 14px;
  background: var(--dark-2);
  min-width: 0; width: 100%;
  box-sizing: border-box;
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.industry:hover { border-color: oklch(0.5 0.12 258); transform: translateY(-4px); background: oklch(0.28 0.03 258); }
.industry__ic {
  width: 56px; height: 56px; border: 1px solid var(--line-dark); border-radius: 50%;
  display: grid; place-items: center; color: oklch(0.8 0.14 258); flex: none;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.industry:hover .industry__ic { border-color: oklch(0.62 0.14 258); }
.industry__ic svg { display: block; width: 27px; height: 27px; }
.industry h3 {
  font-size: 1.02rem; font-weight: 600; color: var(--on-dark); margin: 0; line-height: 1.28;
  text-wrap: balance;
  min-height: 2.56em;
  display: flex; align-items: center; justify-content: center;
}
.industry--more {
  background: linear-gradient(165deg, oklch(0.3 0.07 258), var(--dark-2));
  border-color: oklch(0.45 0.12 258);
}
.industry--more .industry__ic { color: oklch(0.85 0.14 258); border-color: oklch(0.52 0.12 258); }
.industry--more:hover .industry__ic { border-color: oklch(0.68 0.14 258); }

/* client logos — marquee */
.client-logos {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.cl-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: cl-scroll 48s linear infinite;
}
.cl-track:hover { animation-play-state: paused; }
@keyframes cl-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.cl-slot {
  flex: none;
  width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cl-slot img { width: 100%; height: 100%; object-fit: contain; }
.cl-slot--ph {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--on-dark-soft);
}

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 70px); align-items: start; }
.contact-block + .contact-block { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.contact-block__k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.contact-block h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.contact-row { display: flex; gap: 12px; font-size: 1rem; color: var(--ink-soft); margin-top: 8px; flex-wrap: wrap; }
.contact-row .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); min-width: 60px; padding-top: 3px; }
.contact-row a { color: var(--accent-deep); font-weight: 500; }
.contact-row a:hover { text-decoration: underline; }
.contact-emails { display: flex; flex-direction: column; gap: 2px; }

.map-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map-card iframe { width: 100%; height: 380px; border: 0; display: block; }
.distances { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dist { background: var(--surface); padding: 18px 20px; }
.dist--full { grid-column: 1 / -1; }
.dist__n { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--accent-deep); letter-spacing: -0.02em; }
.dist__l { font-size: 0.88rem; color: var(--ink-soft); margin-top: 3px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--on-dark-soft); padding-block: clamp(54px, 7vw, 84px) 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer .brand__name { color: var(--on-dark); }
.footer__nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__nav a { font-size: 14.5px; color: var(--on-dark-soft); transition: color .2s; position: relative; }
.footer__nav a:hover { color: var(--on-dark); }
/* Animated underline on hover (Premium opt. 4) */
.footer__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1.5px;
  background: oklch(0.72 0.16 258);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease);
}
.footer__nav a:hover::after { transform: scaleX(1); }
.footer__bottom { padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-faint); font-family: var(--mono); letter-spacing: 0.04em; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cert-grid, .cap-grid { grid-template-columns: repeat(2, 1fr); }

  .industries { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 920px) {
  .nav, .header__actions .lang { display: none; }
  .menu-btn { display: block; }
  .hero__lead { font-size: 16px; }
  .stat__num,
  .stat--cert .stat__num { font-size: 22px !important; }
  .header__actions .lang.mobile-show { display: inline-flex; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  /* Shorter industry chips on tablet (text size unchanged) */
  .industry { padding: 16px 10px; gap: 10px; }
  .industry__ic { width: 44px; height: 44px; }
  .industry__ic svg { width: 22px; height: 22px; }
  /* Shorter Capabilities boxes on mobile & tablet (text size unchanged) */
  .cap { padding-top: 22px; padding-bottom: 24px; }
  .cap__art { margin-top: 14px; margin-bottom: 16px; }
  /* Distance box text to 16px on mobile & tablet */
  .dist__n, .dist__l { font-size: 16px !important; }
  /* Shorter distance boxes on mobile & tablet (text size unchanged) */
  .dist { padding-top: 12px; padding-bottom: 12px; }
}
/* Tablet only: the two About illustrations side by side, reduced */
@media (min-width: 461px) and (max-width: 920px) {
  .about__media { display: flex; gap: 16px; align-items: flex-start; max-width: 560px; margin-left: auto; margin-right: auto; }
  .about__media .ph,
  .about__media .ph.b { flex: 1; min-width: 0; margin-top: 0; }
  /* Products: 6 photos per line on tablet */
  .prod-grid { grid-template-columns: repeat(6, 1fr) !important; }
  /* Sensibly reduce the 7 Capabilities photos on tablet (centered) */
  .cap__art,
  .cap--wide .cap__art { max-width: 300px; margin-left: auto; margin-right: auto; }
  /* Keep all 4 stat boxes on one row on tablet */
  .hero__stats { grid-template-columns: repeat(4, 1fr) !important; }
  /* Shorter stat boxes on tablet (text size & alignment unchanged) */
  .stat { padding-top: 16px !important; padding-bottom: 16px !important; }
  .stat__num { height: 64px !important; }
  [data-i18n="ft.tagline"] { font-size: 12px !important; }
  /* Smaller enlarged product photo (lightbox) on tablet — same as mobile */
  #lb-box { max-width: 300px !important; }
  #lb-img { max-height: 50vh !important; }
  /* Capability headings (cap.1.h–cap.7.h) to 17px on tablet */
  .cap h3 { font-size: 17px; }
  .cap h3 span[data-i18n$=".h"] { font-size: 17px !important; }
  /* Shorter certification cards on tablet (text size unchanged) */
  .cert { padding: 20px !important; }
  .cert__badge { margin-bottom: 12px !important; }
  .cert__badge--logo,
  .cert__badge--logo img { height: 46px !important; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cert-grid, .cap-grid { grid-template-columns: 1fr; }

  .distances { grid-template-columns: 1fr; }
  .prod-cat__desc { margin-left: 0; }
  .industries { gap: 10px; }
  .industry { padding: 14px 8px; gap: 9px; }
  .industry__ic { width: 42px; height: 42px; }
  .industry__ic svg { width: 21px; height: 21px; }
  .industry h3 { font-size: 0.86rem; }
}

/* ---------- Mobile menu drawer ---------- */
.drawer {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--surface);
  z-index: 90;
  padding: 24px var(--gutter) 40px;
  transform: translateY(-12px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
}
.menu-open .drawer { opacity: 1; transform: none; pointer-events: auto; }
.drawer a { font-family: var(--display); font-weight: 600; font-size: 1.5rem; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.drawer .lang { align-self: flex-start; margin-top: 22px; }
@media (min-width: 921px) { .drawer { display: none; } }
/* Mobile & tablet: drawer nav links at 19px */
@media (max-width: 920px) {
  .drawer a { font-size: 16px; }
  /* 45% transparent drawer background (frosted) */
  .drawer {
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

/* ---------- Mobile typography & fine-tuning (phone view) ---------- */
/* Inline pixel sizes on the headings are intentionally kept for desktop;
   these !important rules scale them down only on small screens. */
@media (max-width: 760px) {
  .hero h1,
  .hero h1 > span { font-size: 30px !important; line-height: 1.35 !important; }
  .section-title { font-size: 30px !important; line-height: 1.4 !important; }
  .dist__l { font-size: 16px !important; }
  .cap h3 { width: auto !important; }
  .map-card iframe { height: 300px; }
}
/* hero.h1b (second headline line) — breakpoint-specific sizing (requested) */
@media (min-width: 461px) and (max-width: 920px) {
  .hero h1 em[data-i18n="hero.h1b"] { font-size: 50px !important; line-height: 1.3 !important; }
}
@media (max-width: 460px) {
  .hero h1 em[data-i18n="hero.h1b"] { font-size: 28px !important; line-height: 1.2 !important; }
}
/* hero.h1a (first headline line) — breakpoint-specific sizing (requested) */
@media (min-width: 461px) and (max-width: 920px) {
  .hero h1 span[data-i18n="hero.h1a"] { font-size: 50px !important; line-height: 1.3 !important; }
}
@media (max-width: 460px) {
  .hero h1 span[data-i18n="hero.h1a"] { font-size: 28px !important; line-height: 1.2 !important; }
}
@media (max-width: 460px) {
  .hero h1,
  .hero h1 > span { font-size: 28px !important; }
  .hero .eyebrow { font-size: 8px; }
  .stat__num,
  .stat--cert .stat__num { font-size: 18px !important; line-height: 0.8 !important; }
  .value p { font-size: 15.2px !important; line-height: 1.5 !important; }
  /* Shorter stat boxes on phone (text size & alignment unchanged) */
  .stat { padding-top: 14px !important; padding-bottom: 14px !important; }
  .stat__num { height: 58px !important; }
  /* Shorter certification cards on phone (text size unchanged) */
  .cert { padding: 16px !important; }
  .cert__badge { margin-bottom: 10px !important; }
  .cert__badge--logo,
  .cert__badge--logo img { height: 42px !important; }
  /* Smaller enlarged product photo (lightbox) on phone */
  #lb-box { max-width: min(70vw, 300px) !important; }
  #lb-img { max-height: 50vh !important; }
  /* Stack the two hero CTAs on phone (still equal width) */
  .hero__cta { grid-auto-flow: row; }
  /* Shorter hero CTA buttons on phone (text size unchanged) */
  .hero__cta .btn { padding-top: 9px; padding-bottom: 9px; line-height: 1.2; }
  [data-i18n="about.p1"],
  [data-i18n="about.p2"],
  [data-i18n="value.1.p"],
  [data-i18n="value.2.p"],
  [data-i18n="value.3.p"],
  [data-i18n="value.4.p"],
  [data-i18n="cert.lead"],
  [data-i18n="cert.1.p"],
  [data-i18n="cert.2.p"],
  [data-i18n="cert.3.p"],
  [data-i18n="cert.4.p"],
  [data-i18n="cert.5.p"],
  [data-i18n="cert.note"],
  [data-i18n="cap.lead"],
  [data-i18n="cap.1.p"],
  [data-i18n="cap.2.p"],
  [data-i18n="cap.3.p"],
  [data-i18n="cap.4.p"],
  [data-i18n="cap.5.p"],
  [data-i18n="cap.6.p"],
  [data-i18n="cap.7.p"],
  [data-i18n="prod.lead"],
  [data-i18n="cl.lead"],
  [data-i18n="ct.lead"],
  [data-i18n="ct.addr.line"],
  [data-i18n="ct.sales.name"] { font-size: 16px !important; }
  [data-i18n="ft.rights"] { font-size: 10px !important; }
  .brand__name { font-size: 10px !important; }
  /* Mobile header logo: 24px, 22px when scrolled */
  .brand__logo { height: 24px; }
  .header.scrolled .brand__logo { height: 22px; }
  /* Keep the header brand name on a single line (no wrapping) on phone */
  .header .brand__name { white-space: nowrap !important; max-width: none !important; }
  [data-i18n="ft.tagline"] { font-size: 8px !important; }
  [data-i18n="prod.bottle.h"],
  [data-i18n="prod.gallon.h"],
  [data-i18n="prod.cap.h"],
  [data-i18n="prod.jar.h"],
  [data-i18n="prod.other.h"] { font-size: 20px !important; }
  .dist__l { font-size: 16px !important; }
  /* Two About illustrations side by side, reduced, on phone */
  .about__media { display: flex; gap: 12px; align-items: flex-start; max-width: 320px; margin-left: auto; margin-right: auto; }
  .about__media .ph,
  .about__media .ph.b { flex: 1; min-width: 0; margin-top: 0; }
  /* Sensibly reduce the 7 Capabilities photos on phone only (centered) */
  .cap__art,
  .cap--wide .cap__art { max-width: 220px; margin-left: auto; margin-right: auto; }
  /* 07 Automation on phone: number, then photo, then title, then body */
  .cap--wide { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .cap--wide .cap__text { display: contents; }
  .cap--wide .cap__num { order: 1; }
  .cap--wide .cap__art { order: 2; margin-top: 10px; margin-bottom: 16px; }
  .cap--wide h3 { order: 3; }
  .cap--wide p { order: 4; }
  /* Capability headings (cap.1.h–cap.7.h) to 16px on phone */
  .cap h3 { font-size: 16px; }
  .cap h3 span[data-i18n$=".h"] { font-size: 16px !important; }
  /* Products: 3 photos per line on phone only */
  .prod-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .section-title { font-size: 24px !important; }
  .industries { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---- Unified body-copy sizing: section leads, About prose, cert note ---- */
@media (min-width: 921px) {
  .section-lead, .prose p, .cert-note { font-size: 17.3px !important; line-height: 1.8 !important; }
}
@media (min-width: 461px) and (max-width: 920px) {
  .section-lead, .prose p, .cert-note { font-size: 16.8px !important; line-height: 1.7 !important; }
}
@media (max-width: 460px) {
  .section-lead, .prose p, .cert-note { font-size: 16px !important; line-height: 1.6 !important; }
}

/* ---- Certification card titles ---- */
@media (min-width: 921px) {
  .cert h3 { font-size: 20px; line-height: 1.05; }
}
@media (max-width: 920px) {
  .cert h3 { font-size: 18px; line-height: 1; }
}

/* ---- Certification card body text ---- */
@media (min-width: 461px) {
  .cert p { font-size: 15.4px; line-height: 1.6; }
}
@media (max-width: 460px) {
  .cert p { font-size: 15px !important; line-height: 1.4 !important; }
}

/* ---- Capability item body text ---- */
@media (min-width: 921px) {
  .cap p { font-size: 15.5px; line-height: 1.6; }
}
@media (min-width: 461px) and (max-width: 920px) {
  .cap p { font-size: 15.5px; line-height: 1.5; }
}
@media (max-width: 460px) {
  .cap p { font-size: 15px !important; line-height: 1.4 !important; }
}

/* ---- Distance labels ---- */
@media (min-width: 461px) {
  .dist__l { font-size: 15px !important; line-height: 1.6 !important; }
}
@media (max-width: 460px) {
  .dist__l { font-size: 14px !important; line-height: 1.5 !important; }
}

/* ---- "Why choose us?" value headings (value.1.h–value.4.h) to 14px on phone ---- */
@media (max-width: 460px) {
  [data-i18n="value.1.h"],
  [data-i18n="value.2.h"],
  [data-i18n="value.3.h"],
  [data-i18n="value.4.h"] { font-size: 14px !important; }
}

/* ============================================================
   IMAGE PROTECTION — deter long-press / hard-press save on
   touch devices (mobile & tablet) for non-interactive imagery:
   capabilities photos, About illustrations, certification logos,
   client logos, and the company logo (header + footer).
   These images are not clickable, so disabling pointer events on
   them removes the long-press "Save Image" callout target entirely
   while leaving parent links (e.g. the header brand link) tappable.
   ============================================================ */
.cap__art img,
.about__media img,
.cert__badge img,
.cl-slot img,
.brand__logo {
  -webkit-touch-callout: none;   /* iOS: no Save Image / Copy popup */
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;          /* long-press has no <img> target */
}
