/* ============================================================
   CALIBRE SPECIALTY ELASTOMERS — Dark Industrial Premium
   ============================================================ */
:root {
  --bg: #07090d;
  --bg-2: #0b0e14;
  --panel: #10141c;
  --panel-2: #141a24;
  --line: rgba(148, 178, 255, 0.10);
  --line-2: rgba(148, 178, 255, 0.18);
  --text: #e8edf5;
  --muted: #96a0b5;
  --accent: #38e1ff;      /* electric cyan */
  --accent-2: #7c5cff;    /* voltage violet */
  --accent-warm: #ffb547;
  --glow: rgba(56, 225, 255, 0.35);
  --radius: 18px;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Film grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #04141a; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.nav-logo {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 12px;
  background: linear-gradient(165deg, #ffffff 0%, #eef3fb 55%, #dde6f5 100%);
  border: 1px solid rgba(148, 178, 255, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 26px rgba(56, 225, 255, 0.12);
  transition: box-shadow 0.3s, transform 0.3s;
}
.nav-logo:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 34px rgba(56, 225, 255, 0.22);
  transform: translateY(-1px);
}
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--muted);
  padding: 8px 14px; border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--text); background: rgba(148,178,255,0.08); }
.nav-links a.active { color: var(--accent); }
.nav-links a.nav-cta {
  color: #04141a; background: var(--accent);
  font-weight: 600; margin-left: 10px;
  box-shadow: 0 0 24px var(--glow);
}
.nav-links a.nav-cta:hover { background: #7dedff; color: #04141a; }
.nav-burger { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; color: var(--text); font-size: 1.2rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 12% 10%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(1000px 600px at 88% 85%, rgba(56, 225, 255, 0.12), transparent 60%),
    var(--bg);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(148,178,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,178,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(56,225,255,0.25);
  background: rgba(56,225,255,0.06);
  padding: 8px 16px; border-radius: 999px;
  margin-bottom: 26px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 700;
  margin-bottom: 22px;
}
.grad-text {
  background: linear-gradient(92deg, #ffffff 10%, var(--accent) 55%, var(--accent-2) 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lede { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 14px 28px; border-radius: 999px;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
  cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(92deg, var(--accent), #6ee9ff);
  color: #04141a;
  box-shadow: 0 8px 34px var(--glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 44px var(--glow); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

.hero-visual { position: relative; }
.hero-visual .frame {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(56,225,255,0.08);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s ease;
}
.hero-visual:hover .frame { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
.hero-visual .frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(56,225,255,0.14), transparent 45%);
  pointer-events: none;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.float-chip {
  position: absolute; z-index: 2;
  background: rgba(13, 18, 27, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  border-radius: 14px; padding: 14px 20px;
  font-family: var(--font-head);
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
  animation: floaty 5s ease-in-out infinite;
}
.float-chip strong { display: block; font-size: 1.25rem; color: var(--accent); }
.float-chip span { font-size: 0.78rem; color: var(--muted); }
.chip-a { top: -22px; right: 8%; animation-delay: 0s; }
.chip-b { bottom: -26px; left: -4%; animation-delay: 2.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 38px;
  background: linear-gradient(var(--accent), transparent);
  animation: drip 1.8s infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); } 100% { opacity: 0; } }

/* ---------- Sections ---------- */
section { position: relative; padding: 110px 0; }
.section-dark { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 64px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-tag {
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 16px;
}
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 18px; }
.sec-head p { color: var(--muted); font-size: 1.06rem; }

/* ---------- Marquee strip ---------- */
.strip {
  padding: 26px 0; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(56,225,255,0.03);
}
.marquee { display: flex; gap: 64px; white-space: nowrap; animation: marquee 30s linear infinite; width: max-content; }
.marquee span {
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 500;
  color: var(--muted); display: inline-flex; align-items: center; gap: 14px;
}
.marquee span::before { content: "⚡"; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.stat {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  position: relative; overflow: hidden;
  transition: transform 0.35s, border-color 0.35s;
}
.stat:hover { transform: translateY(-6px); border-color: rgba(56,225,255,0.4); }
.stat::before {
  content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.35s;
}
.stat:hover::before { opacity: 1; }
.stat .num {
  font-family: var(--font-head); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 700;
  color: var(--text);
}
.stat .num em { font-style: normal; color: var(--accent); }
/* Counter flourish: gradient glow while ticking, spring pop on landing */
.stat .num { display: inline-block; transform-origin: center; }
.stat .num.counting span[data-count] {
  background: linear-gradient(92deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(56, 225, 255, 0.45));
}
.stat .num.pop { animation: numPop 0.6s cubic-bezier(0.22, 1.5, 0.36, 1); }
@keyframes numPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.16); }
  70%  { transform: scale(0.98); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .stat .num.pop { animation: none; }
}
.stat .lbl { font-size: 0.82rem; color: var(--muted); margin-top: 8px; letter-spacing: 0.04em; }
.stat .note { font-size: 0.68rem; color: #5d6579; }

/* ---------- Cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative; overflow: hidden;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(56,225,255,0.35);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.card .idx {
  font-family: var(--font-head); font-size: 3rem; font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(56,225,255,0.45);
  line-height: 1; margin-bottom: 18px; display: block;
}
.card h3 { font-size: 1.22rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card ul { color: var(--muted); font-size: 0.95rem; padding-left: 20px; margin-top: 10px; }
.card ul li { margin-bottom: 6px; }

/* Pillar cards with glow border sweep */
.pillar { cursor: default; }
.pillar::after {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius);
  padding: 1px;
  background: conic-gradient(from var(--ang, 0deg), transparent 0%, var(--accent) 8%, transparent 18%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.pillar:hover::after { opacity: 1; animation: spin-border 2.6s linear infinite; }
@keyframes spin-border { to { --ang: 360deg; } }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* ---------- Product cards ---------- */
.pcard {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 5 / 6;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}
.pcard:hover { transform: translateY(-8px); border-color: rgba(56,225,255,0.4); box-shadow: 0 30px 70px rgba(0,0,0,0.55); }
.pcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.pcard:hover img { transform: scale(1.07); }
.pcard .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5,8,12,0.92) 88%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px;
}
.pcard h3 { font-size: 1.15rem; margin-bottom: 6px; }
.pcard h3 .plant-code {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font-family: var(--font-head); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); padding: 3px 8px; border-radius: 999px;
  background: rgba(56, 225, 255, 0.12); border: 1px solid rgba(56, 225, 255, 0.35);
}
.pcard .go { color: var(--accent); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; opacity: 0; transform: translateY(8px); transition: 0.35s; }
.pcard:hover .go { opacity: 1; transform: translateY(0); }

/* ---------- Plant & machine cards ---------- */
.pcard.wide { aspect-ratio: 4 / 3; }
.pcard.wide .go { opacity: 1; transform: none; }
.mcard {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s, border-color 0.35s;
}
.mcard:hover { transform: translateY(-6px); border-color: rgba(56,225,255,0.35); }
.mcard .ph { aspect-ratio: 4 / 3; overflow: hidden; }
.mcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.mcard:hover .ph img { transform: scale(1.05); }
.mcard .cap { padding: 16px 18px; }
.mcard .cap h3 { font-size: 1rem; }
.mcard .cap span { color: var(--muted); font-size: 0.8rem; }
/* Machinery mosaic — cinematic, unlabeled */
.mosaic {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px; gap: 14px;
  position: relative;
}
.mosaic::before {
  content: ""; position: absolute; inset: -60px;
  background: radial-gradient(600px 340px at 30% 40%, rgba(56,225,255,0.10), transparent 65%),
              radial-gradient(500px 300px at 85% 80%, rgba(124,92,255,0.10), transparent 65%);
  pointer-events: none; z-index: 0;
}
.mosaic .tile {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); z-index: 1;
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.mosaic .tile:hover { transform: translateY(-5px); border-color: rgba(56,225,255,0.4); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.mosaic .tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.85) contrast(1.06) brightness(0.94);
  transition: transform 0.8s ease, filter 0.8s ease;
}
.mosaic .tile:hover img { transform: scale(1.06); filter: saturate(1.1) contrast(1.04) brightness(1); }
.mosaic .tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(165deg, rgba(56,225,255,0.10), transparent 38%, rgba(7,9,13,0.55) 100%);
  mix-blend-mode: normal;
}
.mosaic .tile.big { grid-column: span 2; grid-row: span 2; }
.mosaic .tile.strip { grid-column: span 3; }
.mosaic .tile .chip {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  background: rgba(10,13,19,0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 9px 18px; font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.03em;
}
@media (max-width: 680px) {
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .mosaic .tile.big, .mosaic .tile.strip { grid-column: span 1; grid-row: span 1; }
}

.banner-img {
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 26px 70px rgba(0,0,0,0.5);
  margin-bottom: 56px; position: relative;
}
.banner-img img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.banner-img .tag {
  position: absolute; left: 22px; bottom: 22px;
  background: rgba(10,13,19,0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 8px 18px; font-family: var(--font-head); font-size: 0.85rem;
}

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev { direction: rtl; }
.split.rev > * { direction: ltr; }
.split .media {
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 26px 70px rgba(0,0,0,0.5);
  position: relative;
}
.split .media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(56,225,255,0.10), transparent 50%);
  pointer-events: none;
}
.split .media img { width: 100%; object-fit: cover; }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 18px; }
.split p { color: var(--muted); margin-bottom: 14px; }

/* ---------- Lab imagery (processes page) ---------- */
/* Paired duo in the I&R hub split column */
.lab-duo { display: grid; gap: 16px; }
.lab-shot {
  position: relative; margin: 0; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: 0 22px 55px rgba(0,0,0,0.5);
}
.lab-shot img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.lab-shot:hover img { transform: scale(1.05); }
.lab-shot figcaption {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--font-head); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
  background: rgba(8,12,18,0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14);
}

/* Two-up captioned gallery in the Quality Assurance section */
.lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lab-card {
  position: relative; margin: 0; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: 0 26px 70px rgba(0,0,0,0.5);
}
.lab-card img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.lab-card:hover img { transform: scale(1.06); }
.lab-card figcaption {
  position: absolute; inset: auto 0 0 0;
  display: flex; flex-direction: column; gap: 3px;
  padding: 40px 22px 18px;
  background: linear-gradient(to top, rgba(5,8,13,0.92), rgba(5,8,13,0.45) 55%, transparent);
}
.lab-card .lab-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.04rem; color: var(--text);
}
.lab-card .lab-loc {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--accent);
}
@media (max-width: 720px) {
  .lab-grid { grid-template-columns: 1fr; }
}
.apps-tag {
  display: inline-block; margin-top: 14px;
  font-size: 0.82rem; color: var(--accent-warm);
  border: 1px solid rgba(255,181,71,0.3); background: rgba(255,181,71,0.06);
  padding: 8px 14px; border-radius: 10px;
}

/* ---------- Animated formula panel (home) ---------- */
.formula-panel {
  position: relative; min-height: 440px;
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(500px 300px at 20% 15%, rgba(56,225,255,0.10), transparent 60%),
    radial-gradient(500px 300px at 85% 90%, rgba(124,92,255,0.12), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: 0 26px 70px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; padding: 46px 30px;
}
.formula-panel::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,178,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,178,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, black 30%, transparent 78%);
}
.formula-chain { width: 100%; max-width: 420px; position: relative; z-index: 1; }
.formula-chain .bond {
  fill: none; stroke: rgba(56,225,255,0.55); stroke-width: 2;
  stroke-dasharray: 480; stroke-dashoffset: 480;
  animation: draw-chain 6s ease-in-out infinite;
}
@keyframes draw-chain {
  0% { stroke-dashoffset: 480; }
  45%, 70% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -480; }
}
.formula-chain .atom { animation: atom-pulse 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.formula-chain .atom.si { fill: #38e1ff; }
.formula-chain .atom.o { fill: #7c5cff; }
.formula-chain .atom:nth-of-type(2) { animation-delay: 0.4s; }
.formula-chain .atom:nth-of-type(3) { animation-delay: 0.8s; }
.formula-chain .atom:nth-of-type(4) { animation-delay: 1.2s; }
.formula-chain .atom:nth-of-type(5) { animation-delay: 1.6s; }
.formula-chain .atom:nth-of-type(6) { animation-delay: 2.0s; }
.formula-chain .atom:nth-of-type(7) { animation-delay: 2.4s; }
@keyframes atom-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}
.formula-chain text { font-family: var(--font-head); font-size: 11px; fill: var(--muted); }
.formula-label { z-index: 1; font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.pillar-words {
  position: relative; z-index: 1; height: 3.4rem; width: 100%; text-align: center;
}
.pillar-words span {
  position: absolute; left: 0; right: 0;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em;
  background: linear-gradient(92deg, #ffffff 15%, var(--accent) 60%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  opacity: 0; animation: word-cycle 12.5s infinite;
}
.pillar-words span:nth-child(1) { animation-delay: 0s; }
.pillar-words span:nth-child(2) { animation-delay: 2.5s; }
.pillar-words span:nth-child(3) { animation-delay: 5s; }
.pillar-words span:nth-child(4) { animation-delay: 7.5s; }
.pillar-words span:nth-child(5) { animation-delay: 10s; }
@keyframes word-cycle {
  0% { opacity: 0; transform: translateY(16px) scale(0.97); filter: blur(4px); }
  4% { opacity: 1; transform: none; filter: blur(0); }
  17% { opacity: 1; transform: none; filter: blur(0); }
  21% { opacity: 0; transform: translateY(-16px) scale(0.97); filter: blur(4px); }
  100% { opacity: 0; }
}
.formula-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; z-index: 1; }
.formula-chips span {
  font-family: var(--font-head); font-size: 0.78rem; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px;
  background: rgba(7,9,13,0.5);
}
.formula-chips span em { font-style: normal; color: var(--accent); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-left: 12px; }
.timeline::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2));
  box-shadow: 0 0 18px var(--glow);
}
.tl-item { position: relative; padding: 0 0 44px 42px; }
.tl-item::before {
  content: ""; position: absolute; left: -6px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
  box-shadow: 0 0 14px var(--glow);
}
.tl-item .yr {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: var(--accent); letter-spacing: 0.05em; margin-bottom: 6px; display: block;
}
.tl-item p { color: var(--muted); max-width: 700px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tcard {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: center;
  transition: transform 0.35s, border-color 0.35s;
}
.tcard:hover { transform: translateY(-6px); border-color: rgba(56,225,255,0.35); }
.tcard .ph { aspect-ratio: 1; overflow: hidden; }
.tcard .ph img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); transition: transform 0.5s, filter 0.5s; }
.tcard:hover .ph img { transform: scale(1.05); filter: saturate(1.1); }
.tcard .info { padding: 20px 18px 24px; }
.tcard h3 { font-size: 1.05rem; }
.tcard .role { color: var(--accent); font-size: 0.82rem; font-weight: 600; margin: 4px 0 8px; }
.tcard .exp { color: var(--muted); font-size: 0.78rem; line-height: 1.5; }

/* ---------- Cert logos ---------- */
.cert-grid { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.cert {
  background: #f4f7fb;
  border-radius: 16px; padding: 18px;
  width: 132px; height: 132px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.cert:hover { transform: translateY(-5px) scale(1.04); box-shadow: 0 16px 44px rgba(56,225,255,0.18); }
.cert img { max-height: 90px; object-fit: contain; }
.cert.wide { width: 210px; }

/* ---------- Mission / Vision ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mv {
  border-radius: 22px; padding: 46px 40px;
  position: relative; overflow: hidden;
  border: 1px solid var(--line-2);
}
.mv.mission { background: radial-gradient(600px 300px at 0% 0%, rgba(56,225,255,0.14), transparent 60%), var(--panel); }
.mv.vision  { background: radial-gradient(600px 300px at 100% 0%, rgba(124,92,255,0.16), transparent 60%), var(--panel); }
.mv .sec-tag { margin-bottom: 10px; }
.mv.vision .sec-tag { color: var(--accent-2); }
.mv h3 { font-size: 1.45rem; margin-bottom: 16px; }
.mv p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Product detail rows ---------- */
.prow { padding: 70px 0; border-top: 1px solid var(--line); }
.prow:first-of-type { border-top: none; }
.prow .num-big {
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  color: var(--accent); letter-spacing: 0.2em; margin-bottom: 10px; display: block;
}

/* ---------- Footer / Contact ---------- */
.contact-wrap {
  background:
    radial-gradient(700px 400px at 85% 20%, rgba(124,92,255,0.13), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(56,225,255,0.10), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 100px 0 0;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-bottom: 90px; }
.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 18px; }
.contact-info p { color: var(--muted); margin-bottom: 26px; max-width: 460px; }
.contact-lines { display: flex; flex-direction: column; gap: 14px; }
.contact-lines a {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: 1.05rem; color: var(--text);
  transition: color 0.25s;
}
.contact-lines a:hover { color: var(--accent); }
.contact-lines .ico {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(56,225,255,0.08); border: 1px solid rgba(56,225,255,0.25);
  color: var(--accent); font-size: 1.1rem;
}
.form {
  background: rgba(13, 18, 27, 0.7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: 22px; padding: 38px;
}
.form h3 { margin-bottom: 20px; font-size: 1.2rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form textarea {
  width: 100%; margin-bottom: 14px;
  background: rgba(7,9,13,0.6); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56,225,255,0.12);
}
.form textarea { min-height: 120px; resize: vertical; }
.form .btn { width: 100%; justify-content: center; }
.form-status {
  margin: 14px 0 0; font-size: 0.9rem; line-height: 1.5;
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity 0.4s, max-height 0.4s;
}
.form-status.ok, .form-status.err { opacity: 1; max-height: 140px; }
.form-status.ok {
  color: #7ef0c2; padding: 12px 14px; border-radius: 12px;
  background: rgba(56, 225, 160, 0.10); border: 1px solid rgba(56, 225, 160, 0.35);
}
.form-status.err {
  color: #ffb0b0; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 90, 90, 0.10); border: 1px solid rgba(255, 90, 90, 0.35);
}
.form-status a { color: inherit; text-decoration: underline; }

.footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 34px;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 44px; align-items: start; }
.footer img.flogo { height: 74px; width: auto; margin-bottom: 18px; }
.footer h4 { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.footer p, .footer li { color: var(--muted); font-size: 0.9rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: #6b7488; font-size: 0.82rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; padding: 190px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(800px 420px at 80% 0%, rgba(124,92,255,0.14), transparent 60%),
    radial-gradient(800px 420px at 8% 80%, rgba(56,225,255,0.10), transparent 60%),
    var(--bg);
}
.page-hero .hero-grid { inset: 0; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 18px; }
.page-hero p { color: var(--muted); font-size: 1.12rem; max-width: 680px; }

/* ---------- Newsletter articles ---------- */
.article { max-width: 800px; padding: 60px 0 90px; }
.article .art-hero { margin: 0 0 44px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.article .art-hero img { width: 100%; max-height: 440px; object-fit: cover; display: block; }
.article h2 {
  font-size: 1.55rem; margin: 52px 0 18px;
  padding-left: 16px; border-left: 3px solid var(--accent);
}
.article h3 { font-size: 1.18rem; margin: 38px 0 14px; color: var(--text); }
.article p { color: var(--muted); margin-bottom: 18px; font-size: 1.02rem; line-height: 1.8; }
.article ul, .article ol { color: var(--muted); margin: 0 0 20px 22px; line-height: 1.8; }
.article li { margin-bottom: 10px; }
.article figure { margin: 36px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.article figure img { width: 100%; display: block; background: #fff; }
.article figcaption {
  padding: 12px 18px; font-size: 0.82rem; color: var(--muted);
  font-family: var(--font-head); border-top: 1px solid var(--line);
}
.tbl-wrap { overflow-x: auto; margin: 30px 0; border: 1px solid var(--line-2); border-radius: 14px; }
.article table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 520px; }
.article th {
  text-align: left; padding: 12px 16px; font-family: var(--font-head);
  color: var(--accent); background: rgba(56,225,255,0.06);
  border-bottom: 1px solid var(--line-2); font-size: 0.82rem; letter-spacing: 0.04em;
}
.article td { padding: 11px 16px; color: var(--muted); border-bottom: 1px solid var(--line); }
.article tr:last-child td { border-bottom: none; }
.issue-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 70px; padding-top: 34px; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.nl-card { display: flex; flex-direction: column; }
.nl-card h3 { margin-bottom: 10px; }
.nl-card p { flex: 1; }
.nl-card .nl-read {
  margin-top: 18px; font-family: var(--font-head); font-weight: 600;
  font-size: 0.85rem; color: var(--accent); letter-spacing: 0.05em;
}

/* ---------- Article callouts, stats & highlights ---------- */
.callout {
  margin: 30px 0; padding: 22px 26px;
  border-radius: 16px; border: 1px solid rgba(56,225,255,0.25);
  background: linear-gradient(140deg, rgba(56,225,255,0.07), rgba(124,92,255,0.06)), var(--panel);
  position: relative;
}
.callout::before {
  content: "⚡"; position: absolute; top: -13px; left: 20px;
  background: var(--bg-2); border: 1px solid rgba(56,225,255,0.35); border-radius: 999px;
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
}
.callout p { margin: 0; color: var(--text); font-size: 0.98rem; }
.callout p + p { margin-top: 10px; }
.stat-strip { display: flex; gap: 14px; flex-wrap: wrap; margin: 32px 0; }
.stat-chip {
  flex: 1; min-width: 140px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line-2); border-radius: 14px;
  padding: 18px 20px; text-align: center;
}
.stat-chip b {
  display: block; font-family: var(--font-head); font-size: 1.45rem; font-weight: 700;
  color: var(--accent); margin-bottom: 4px;
}
.stat-chip span { font-size: 0.78rem; color: var(--muted); line-height: 1.4; display: block; }
.article .lead { font-size: 1.12rem; color: var(--text); }
.article mark {
  background: linear-gradient(90deg, rgba(56,225,255,0.18), rgba(124,92,255,0.18));
  color: var(--text); padding: 1px 6px; border-radius: 6px;
}
.article .kv { margin: 26px 0; display: grid; gap: 10px; }
.article .kv div {
  display: grid; grid-template-columns: 220px 1fr; gap: 16px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel);
}
.article .kv dt, .article .kv .k { font-family: var(--font-head); color: var(--accent); font-size: 0.9rem; }
.article .kv dd, .article .kv .v { color: var(--muted); font-size: 0.93rem; margin: 0; }
@media (max-width: 680px) { .article .kv div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Newsletter heading animations ---------- */
.nl-page .page-hero h1 .w {
  display: inline-block;
  opacity: 0; transform: translateY(28px) rotate(1.5deg); filter: blur(7px);
  animation: word-in 0.75s cubic-bezier(.2,.65,.25,1) forwards;
}
@keyframes word-in { to { opacity: 1; transform: none; filter: blur(0); } }
.nl-page .page-hero .grad-text {
  background-size: 220% 100%;
  animation: grad-shimmer 6s ease-in-out infinite;
}
@keyframes grad-shimmer { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

.article h2.hx {
  opacity: 0; transform: translateX(-30px);
  border-left-color: transparent; position: relative;
  transition: opacity 0.7s cubic-bezier(.2,.65,.3,1), transform 0.7s cubic-bezier(.2,.65,.3,1);
}
.article h2.hx::before {
  content: ""; position: absolute; left: -3px; top: 2px; bottom: 2px; width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--accent), var(--accent-2));
  box-shadow: 0 0 14px var(--glow);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.8s 0.25s cubic-bezier(.2,.65,.3,1);
}
.article h2.hx::after {
  content: ""; position: absolute; left: 16px; bottom: -9px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width 1s 0.4s cubic-bezier(.2,.65,.3,1);
}
.article h2.hx-vis { opacity: 1; transform: none; }
.article h2.hx-vis::before { transform: scaleY(1); }
.article h2.hx-vis::after { width: 130px; }

.article h3.hx {
  opacity: 0; transform: translateY(18px);
  position: relative; padding-left: 22px;
  transition: opacity 0.6s cubic-bezier(.2,.65,.3,1), transform 0.6s cubic-bezier(.2,.65,.3,1);
}
.article h3.hx::before {
  content: "▸"; position: absolute; left: 0; top: 0;
  color: var(--accent); text-shadow: 0 0 10px var(--glow);
  opacity: 0; transform: translateX(-10px) scale(0.6);
  transition: opacity 0.5s 0.3s, transform 0.5s 0.3s cubic-bezier(.2,.65,.3,1);
}
.article h3.hx-vis { opacity: 1; transform: none; }
.article h3.hx-vis::before { opacity: 1; transform: none; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s cubic-bezier(.2,.65,.3,1), transform 0.8s cubic-bezier(.2,.65,.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .split, .contact-grid, .mv-grid { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links {
    position: fixed; top: 78px; right: 4%; left: 4%;
    flex-direction: column; align-items: stretch;
    background: rgba(10, 13, 19, 0.96);
    border: 1px solid var(--line-2); border-radius: 18px;
    padding: 16px; gap: 4px;
    display: none;
    box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-links a.nav-cta { margin-left: 0; text-align: center; justify-content: center; display: flex; }
  .nav-burger { display: block; }
  .stats-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .form .row { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   THEME TOGGLE (in nav)
   ============================================================ */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent;
  color: var(--text); cursor: pointer; margin-left: 10px;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.nav-theme-li { display: flex; align-items: center; }
@media (max-width: 680px) {
  .theme-toggle { margin-left: 0; width: 100%; border-radius: 12px; gap: 10px; padding: 12px 16px; }
  .theme-toggle::after { content: "Switch theme"; font-family: var(--font-head); font-size: 0.92rem; font-weight: 500; }
}

/* ============================================================
   LIGHT THEME
   Activated by <html data-theme="light"> (set from OS preference
   or the saved toggle choice). White background, same modern feel.
   ============================================================ */
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f2f6fc;
  --panel: #ffffff;
  --panel-2: #eef3fa;
  --line: rgba(18, 33, 66, 0.10);
  --line-2: rgba(18, 33, 66, 0.16);
  --text: #0f1a2b;
  --muted: #5a6678;
  --accent: #0a95bd;        /* deepened cyan for contrast on white */
  --accent-2: #6a4bd6;      /* deepened violet */
  --glow: rgba(10, 149, 189, 0.22);
}

/* Neutralise the dark film grain on white */
:root[data-theme="light"] body::after { opacity: 0; }

/* Navigation */
:root[data-theme="light"] .nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(18, 33, 66, 0.08);
}
:root[data-theme="light"] .nav-logo {
  background: #ffffff;
  border-color: rgba(18, 33, 66, 0.12);
  box-shadow: 0 4px 16px rgba(18, 33, 66, 0.10);
}
:root[data-theme="light"] .nav-logo:hover {
  box-shadow: 0 6px 20px rgba(18, 33, 66, 0.14);
}
:root[data-theme="light"] .nav-links a:hover { background: rgba(18, 33, 66, 0.05); }
:root[data-theme="light"] .nav-links a.nav-cta { color: #ffffff; }
:root[data-theme="light"] .nav-links a.nav-cta:hover { background: #0aa6d4; color: #ffffff; }
:root[data-theme="light"] .nav-burger { color: var(--text); }

/* Gradient text — swap the white start for dark so it reads on white */
:root[data-theme="light"] .grad-text,
:root[data-theme="light"] .pillar-words span {
  background: linear-gradient(92deg, var(--text) 8%, var(--accent) 55%, var(--accent-2) 96%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Primary button — solid, punchy, white label */
:root[data-theme="light"] .btn-primary {
  background: linear-gradient(92deg, var(--accent), #0ab6d8);
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(10, 149, 189, 0.28);
}
:root[data-theme="light"] .btn-primary:hover { box-shadow: 0 14px 40px rgba(10, 149, 189, 0.34); }
:root[data-theme="light"] ::selection { background: var(--accent); color: #ffffff; }

/* Hero / floating chips / frame */
:root[data-theme="light"] .float-chip {
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--line-2);
  box-shadow: 0 16px 44px rgba(18, 33, 66, 0.12);
}
:root[data-theme="light"] .hero-visual .frame {
  box-shadow: 0 30px 70px rgba(18, 33, 66, 0.16), 0 0 50px rgba(10, 149, 189, 0.06);
}
:root[data-theme="light"] .formula-chips span { background: rgba(18, 33, 66, 0.04); }

/* Contact form */
:root[data-theme="light"] .form {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line-2);
  box-shadow: 0 20px 60px rgba(18, 33, 66, 0.08);
}
:root[data-theme="light"] .form input,
:root[data-theme="light"] .form textarea {
  background: #ffffff; border-color: var(--line-2); color: var(--text);
}
:root[data-theme="light"] .form input::placeholder,
:root[data-theme="light"] .form textarea::placeholder { color: #98a2b3; }
:root[data-theme="light"] .form input:focus,
:root[data-theme="light"] .form textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10, 149, 189, 0.14);
}

/* Certificate tiles keep a light card on the (also light) background */
:root[data-theme="light"] .cert { background: #f2f6fc; border: 1px solid var(--line); }

/* Footer logo — use the original red & blue CSE mark on the light background
   (the default footer logo is a white monochrome version for dark mode) */
:root[data-theme="light"] .footer img.flogo { content: url("remote/logo.png"); }

/* Soften the heavy dark shadows used on cards/media for the light canvas */
:root[data-theme="light"] :is(
  .pcard, .split .media, .media, .banner-img, .mcard, .lab-shot, .lab-card,
  .tcard, .card, .article .art-hero, .stat-chip, .formula-panel
) {
  box-shadow: 0 20px 50px rgba(18, 33, 66, 0.10);
}
:root[data-theme="light"] :is(.pcard, .mosaic .tile, .tcard, .card):hover {
  box-shadow: 0 26px 58px rgba(18, 33, 66, 0.14);
  border-color: var(--accent);
}
/* Outlined index numerals read deeper on white */
:root[data-theme="light"] .card .idx { -webkit-text-stroke-color: rgba(10, 149, 189, 0.5); }
/* A couple of media panels carry an inline dark shadow — override for light */
:root[data-theme="light"] .media { box-shadow: 0 20px 50px rgba(18, 33, 66, 0.10) !important; }

/* Article internals that used translucent-dark or hardcoded fills */
:root[data-theme="light"] .article figure img { background: #fff; }
:root[data-theme="light"] .article th { background: rgba(10, 149, 189, 0.07); }

/* Mobile dropdown menu */
@media (max-width: 680px) {
  :root[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 30px 70px rgba(18, 33, 66, 0.16);
  }
}

/* ============================================================
   IMAGE-OVERLAY LEGIBILITY (theme-independent)
   These captions sit over a dark photo gradient in BOTH themes,
   so their text must stay light even when the page is in light
   mode (otherwise it inherits the dark body text colour).
   ============================================================ */
.pcard .overlay h3 { color: #ffffff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55); }
.pcard .overlay h3 .plant-code {
  color: #eafcff; text-shadow: none;
  background: rgba(56, 225, 255, 0.22);
  border-color: rgba(120, 235, 255, 0.6);
}
.pcard .overlay .go { color: #6ee9ff; }
.lab-card figcaption .lab-name { color: #ffffff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.lab-card figcaption .lab-loc { color: #6ee9ff; }
.lab-shot figcaption { color: #ffffff; }
