/* ==========================================================================
   TASNEE WATER SOLUTIONS — Design System v3 "Deep Water Tech"
   Dark-first, editorial, motion-driven. All libs/fonts vendored locally.
   --------------------------------------------------------------------------
   Contents:
   00. Self-hosted fonts (@font-face)
   01. Design tokens (:root)
   02. Reset & base (scrollbar, selection)
   03. Typography
   04. Layout utilities
   05. Buttons & chips (gradient sweep, ripple, glass)
   06. Eyebrow labels & section heads
   07. Preloader
   08. Header / navbar (glass, hide-on-scroll) / dropdown / mobile nav
   09. Hero (video, mesh, split-line title, glass chips)
   10. Decorations (frames, badges, checklists)
   11. Cards (generic, wwd, product, app, value, industry, cert, news, team)
   12. Marquees
   13. Stats band / counters
   14. Tabs
   15. CTA band & Footer
   16. Floating buttons (WhatsApp, back-to-top)
   17. Modal (video) & lightbox
   18. Article / detail pages
   19. Forms
   20. Toast
   21. Scroll-reveal (JS-gated)
   22. Reduced motion
   23. Responsive
   24. v3 art direction (ghost numbers, marquee band, waves, hscroll,
       custom cursor, scroll progress, tilt, Lenis)
   ========================================================================== */

/* --------------------------------------------------------------------------
   00. Self-hosted fonts — variable, latin subset, woff2
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   01. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Depth palette (dark) — "Deep Water Tech" two-tone */
  --bg-0: #04121f;
  --bg-1: #071c2e;
  --bg-2: #0a2c44;
  --bg-3: #0e3a58;

  /* Light palette */
  --paper: #f6f9fb;
  --white: #ffffff;

  /* Accent system — ONE gradient used everywhere */
  --cyan: #22d3ee;
  --aqua: #2dd4bf;
  --sky: #7dd3fc;
  --grad-accent: linear-gradient(120deg, #22d3ee 0%, #2dd4bf 100%);
  --grad-accent-soft: linear-gradient(120deg, rgba(34, 211, 238, .16), rgba(45, 212, 191, .16));
  --grad-depth: linear-gradient(170deg, #030d16 0%, #062032 55%, #0a2c44 100%);
  --grad-hero-overlay: linear-gradient(100deg, rgba(3, 13, 22, .94) 0%, rgba(6, 32, 50, .82) 42%, rgba(3, 13, 22, .42) 100%);

  /* Text */
  --ink: #0f2233;
  --ink-soft: #334e61;
  --muted: #5b7383;
  --on-dark: #e6f2f8;
  --on-dark-muted: rgba(230, 242, 248, .68);

  /* Lines & glass */
  --line: rgba(15, 34, 51, .1);
  --line-dark: rgba(230, 242, 248, .12);
  --glass: rgba(255, 255, 255, .07);
  --glass-strong: rgba(255, 255, 255, .12);

  /* Typography — self-hosted variable fonts (assets/fonts/) */
  --font-head: "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Open Sans", "Segoe UI", Arial, sans-serif;

  /* Shape & depth */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow-sm: 0 6px 18px rgba(6, 32, 50, .07);
  --shadow: 0 18px 48px rgba(6, 32, 50, .13);
  --shadow-lg: 0 30px 70px rgba(3, 13, 22, .22);
  --glow: 0 0 0 1px rgba(34, 211, 238, .35), 0 12px 40px rgba(34, 211, 238, .25);

  /* Rhythm */
  --section-pad: clamp(4rem, 8vw, 6.5rem);
  --container: 1220px;
  --header-h: 88px;

  /* Motion */
  --ease: cubic-bezier(.22, .9, .28, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .5s;
}

/* --------------------------------------------------------------------------
   02. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) var(--bg-0);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--aqua));
  border-radius: 8px;
  border: 2px solid var(--bg-0);
}

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

img { height: auto; }

a {
  color: #0891b2;
  text-decoration: none;
  transition: color .25s var(--ease);
}

a:hover { color: var(--ink); }

ul,
ol { padding-left: 1.25rem; }

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

input,
select,
textarea { font: inherit; color: inherit; }

::selection { background: var(--cyan); color: var(--bg-0); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   03. Typography — oversized display scale
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.65rem); }
h4 { font-size: 1.15rem; letter-spacing: -.01em; }
h5 { font-size: 1rem; }

p { color: var(--muted); }

p + p { margin-top: 1em; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
}

strong { color: var(--ink); font-weight: 700; }

/* Gradient keyword text (dark sections) */
.grad-text,
.section-navy .grad-text,
.page-hero .grad-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   04. Layout utilities
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container-wide { width: min(100% - 2.5rem, 1360px); margin-inline: auto; }

.section { padding-block: var(--section-pad); position: relative; }

/* slimmer rhythm for marquee-only / transitional sections */
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-alt { background: var(--paper); }

.section-navy {
  background: var(--grad-depth);
  color: var(--on-dark-muted);
  overflow: hidden;
}

/* gradient mesh glow inside dark sections */
.section-navy::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  right: -180px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .13), transparent 65%);
  pointer-events: none;
}

.section-navy > .container { position: relative; z-index: 2; }

.section-navy h1,
.section-navy h2,
.section-navy h3,
.section-navy h4 { color: var(--on-dark); }

.section-navy p { color: var(--on-dark-muted); }

.grid { display: grid; gap: 1.75rem; }

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

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

/* --------------------------------------------------------------------------
   05. Buttons & chips
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 2.1rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease);
  white-space: nowrap;
  isolation: isolate;
}

.btn svg { width: 1em; height: 1em; flex: none; }

.btn:hover { transform: translateY(-3px); }

.btn:active { transform: translateY(-1px) scale(.98); }

/* gradient sweep on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .35) 50%, transparent 75%);
  background-size: 250% 100%;
  background-position: 120% 0;
  transition: background-position .8s var(--ease);
}

.btn:hover::after { background-position: -120% 0; }

/* ripple (added by JS) */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  transform: scale(0);
  animation: ripple .65s var(--ease-out);
  pointer-events: none;
  z-index: -1;
}

@keyframes ripple {
  to { transform: scale(3.2); opacity: 0; }
}

.btn-primary {
  background: var(--grad-accent);
  color: var(--bg-0);
  box-shadow: 0 12px 32px rgba(34, 211, 238, .35);
}

.btn-primary:hover {
  color: var(--bg-0);
  box-shadow: 0 18px 44px rgba(34, 211, 238, .5);
}

.btn-glass {
  background: var(--glass);
  border-color: rgba(255, 255, 255, .25);
  color: var(--on-dark);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

.btn-outline {
  border-color: rgba(255, 255, 255, .5);
  color: var(--on-dark);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--bg-1);
  border-color: var(--white);
}

.btn-outline-navy {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline-navy:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover { color: var(--bg-1); box-shadow: var(--shadow); }

.btn-sm { padding: .62rem 1.35rem; font-size: .85rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  color: #0891b2;
}

.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }

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

.link-arrow:hover svg { transform: translateX(5px); }

.section-navy .link-arrow,
.section-navy a.link-arrow { color: var(--cyan); }

.section-navy .link-arrow:hover { color: var(--sky); }

/* --------------------------------------------------------------------------
   06. Eyebrow labels & section heads
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #0891b2;
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}

.section-navy .eyebrow,
.page-hero .eyebrow { color: var(--cyan); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.8rem, 5vw, 4.2rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow::after {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}

.section-head p { margin-top: 1.1rem; }

/* --------------------------------------------------------------------------
   07. Preloader — hidden unless html.js (no-JS renders content directly)
   -------------------------------------------------------------------------- */
.preloader { display: none; }

html.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-0);
  transition: opacity .6s var(--ease), visibility .6s;
}

html.js .preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.preloader-logo {
  position: relative;
  width: 150px;
}

.preloader-logo img { width: 100%; height: auto; }

.preloader-logo .pl-base {
  filter: grayscale(1);
  opacity: .14;
}

/* water-fill: the coloured logo rises from the bottom */
.preloader-logo .pl-fill {
  position: absolute;
  inset: 0;
  clip-path: inset(100% 0 0 0);
  animation: waterFill 2s var(--ease) .1s forwards;
}

@keyframes waterFill {
  0% { clip-path: inset(100% 0 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

.preloader-line {
  width: 150px;
  height: 2px;
  background: rgba(230, 242, 248, .12);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-line span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--grad-accent);
  border-radius: 2px;
  animation: lineSlide 1.1s var(--ease) infinite;
}

@keyframes lineSlide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(400%); }
}

/* --------------------------------------------------------------------------
   08. Header / navbar
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(3, 13, 22, .35);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line-dark);
  transition: background .4s var(--ease), box-shadow .4s var(--ease),
              height .4s var(--ease), transform .45s var(--ease);
}

.site-header.scrolled {
  height: 70px;
  background: rgba(3, 13, 22, .92);
  box-shadow: 0 14px 40px rgba(3, 13, 22, .5);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(34, 211, 238, .55), rgba(45, 212, 191, .55), transparent) 1;
}

/* hide on scroll down, reveal on scroll up */
.site-header.nav-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2.5rem, 1360px);
  margin-inline: auto;
}

.brand { display: inline-flex; align-items: center; flex: none; }

.brand img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 4px 16px rgba(34, 211, 238, .28));
  transition: height .35s var(--ease), filter .35s var(--ease);
}

.brand:hover img { filter: drop-shadow(0 4px 22px rgba(34, 211, 238, .5)); }

.site-header.scrolled .brand img { height: 44px; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: .2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .8rem;
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(230, 242, 248, .82);
  border-radius: 8px;
  position: relative;
  transition: color .3s var(--ease), background .3s var(--ease);
}

.main-nav > ul > li > a:hover { background: rgba(255, 255, 255, .06); }

/* animated underline */
.main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .22rem;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}

.main-nav a:hover,
.main-nav a.active { color: #fff; }

.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a.active::after { transform: scaleX(1); }

.main-nav .chev { width: .8em; height: .8em; transition: transform .3s var(--ease); }

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 10px);
  min-width: 280px;
  background: rgba(6, 32, 50, .92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: .6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}

.dropdown::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-sm);
  padding: 1px;
  background: linear-gradient(120deg, rgba(34, 211, 238, .6), transparent 35%, transparent 65%, rgba(45, 212, 191, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.has-dropdown:hover .chev,
.has-dropdown.open .chev { transform: rotate(180deg); }

.dropdown a {
  display: flex;
  width: 100%;
  padding: .55rem .8rem;
  color: var(--on-dark-muted);
  font-size: .87rem;
  border-radius: 8px;
}

.dropdown a::after { display: none; }

.dropdown a:hover {
  background: var(--grad-accent-soft);
  color: #fff;
}

.dropdown .dropdown-group {
  padding: .5rem .8rem .25rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sky);
}

/* Phone chip */
.phone-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.15rem;
  border-radius: 999px;
  background: var(--grad-accent);
  color: var(--bg-0) !important;
  font-weight: 700;
  font-size: .85rem !important;
  box-shadow: 0 10px 26px rgba(34, 211, 238, .35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.phone-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(34, 211, 238, .5);
}

.phone-chip::after { display: none !important; }

.phone-chip svg { width: 1em; height: 1em; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-dark);
  background: var(--glass);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 1101;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}

.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); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 13, 22, .6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
  z-index: 1090;
}

.nav-backdrop.show { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   09. Hero — cinematic video, mesh, split-line title, glass chips
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--on-dark);
  overflow: hidden;
  background: var(--bg-0);
}

.hero-media,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--grad-hero-overlay);
}

/* bottom fade into the next section */
.hero-overlay::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(to top, var(--bg-0), transparent);
}

/* animated gradient mesh blobs */
.hero-blob {
  position: absolute;
  width: 52vw;
  height: 52vw;
  min-width: 480px;
  min-height: 480px;
  right: -14vw;
  top: -14vw;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(34, 211, 238, .3), rgba(45, 212, 191, .12) 52%, transparent 70%);
  filter: blur(50px);
  z-index: 2;
  animation: meshDrift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-blob.two {
  right: auto;
  left: -16vw;
  top: auto;
  bottom: -22vw;
  background: radial-gradient(circle at 60% 42%, rgba(125, 211, 252, .2), transparent 62%);
  animation-delay: -7s;
  animation-duration: 20s;
}

@keyframes meshDrift {
  from { transform: translate(0, 0) scale(1) rotate(0deg); }
  to   { transform: translate(-5vw, 6vh) scale(1.18) rotate(8deg); }
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-block: calc(var(--header-h) + 3rem) 7rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem 1.2rem;
  border: 1px solid rgba(34, 211, 238, .4);
  border-radius: 999px;
  background: rgba(34, 211, 238, .1);
  backdrop-filter: blur(10px);
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1.8rem;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .25);
  animation: dotPulse 2.4s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 211, 238, .25); }
  50% { box-shadow: 0 0 0 7px rgba(34, 211, 238, .1); }
}

/* split-line display title */
.hero-title {
  color: #fff;
  max-width: 18ch;
  margin-bottom: 1.6rem;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}

.hero-line > span {
  display: inline-block;
  will-change: transform;
}

/* line-slide entrance — JS-gated so no-JS shows the text */
html.js .hero-line > span {
  transform: translateY(115%);
  animation: lineUp 1s var(--ease-out) forwards;
}

html.js .hero-line:nth-child(1) > span { animation-delay: .35s; }
html.js .hero-line:nth-child(2) > span { animation-delay: .5s; }
html.js .hero-line:nth-child(3) > span { animation-delay: .65s; }

@keyframes lineUp {
  to { transform: translateY(0); }
}

.hero-line em {
  font-style: normal;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  color: var(--on-dark-muted);
  max-width: 54ch;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* floating glass stat chips */
.hero-chips {
  position: absolute;
  z-index: 3;
  right: clamp(1.5rem, 5vw, 5rem);
  bottom: clamp(5rem, 12vh, 8rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-chip {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .95rem 1.4rem;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 16px 40px rgba(3, 13, 22, .35);
  animation: chipFloat 5.5s ease-in-out infinite;
}

.hero-chip:nth-child(2) { animation-delay: -1.8s; margin-left: 1.8rem; }
.hero-chip:nth-child(3) { animation-delay: -3.6s; }

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-chip strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.7rem;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.hero-chip span {
  font-size: .78rem;
  line-height: 1.4;
  color: var(--on-dark-muted);
  max-width: 17ch;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(clamp(80px, 14vh, 150px) + .9rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  color: var(--on-dark-muted);
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: cueDrop 2.2s var(--ease) infinite;
}

@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --------------------------------------------------------------------------
   10. Decorations
   -------------------------------------------------------------------------- */
.wave-divider {
  display: block;
  width: 100%;
  height: 90px;
  margin-top: -1px;
}

.wave-divider.flip { transform: scaleY(-1); }

.img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}

.img-frame:hover img { transform: scale(1.05); }

.img-frame-accent { position: relative; }

.img-frame-accent::before {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--grad-accent);
  opacity: .18;
  z-index: -1;
}

.experience-badge {
  position: absolute;
  right: -1.2rem;
  bottom: 2rem;
  background: var(--grad-accent);
  color: var(--bg-0);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  text-align: center;
  box-shadow: 0 16px 40px rgba(34, 211, 238, .4);
  line-height: 1.2;
}

.experience-badge small {
  display: block;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: .8rem;
  margin-block: 1.4rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.check-list li svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: .1rem;
  color: #0891b2;
}

/* --------------------------------------------------------------------------
   11. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.card:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow);
}

/* rotating conic border glow on hover — all cards; stronger on dark */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--angle, 0deg), transparent 0%, var(--cyan) 12%, var(--aqua) 20%, transparent 32%);
  -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 .4s var(--ease);
  animation: spinAngle 3.2s linear infinite;
  pointer-events: none;
  z-index: 3;
}

.card:hover::before { opacity: .55; }

.section-navy .card:hover::before { opacity: 1; }

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes spinAngle {
  to { --angle: 360deg; }
}

.section-navy .card { border-color: var(--line-dark); }

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--paper);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.card:hover .card-media img { transform: scale(1.08); }

.card-body {
  padding: 1.6rem 1.7rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  flex: 1;
}

/* keep card text readable on dark sections */
.card h3,
.card h4 { color: var(--ink); transition: color .3s var(--ease); }

.card p,
.card ul { color: var(--muted); }

.card:hover .card-body h3,
.card:hover .card-body h4 { color: #0891b2; }

.card-body p { font-size: .95rem; flex: 1; }

.card-body ul {
  font-size: .92rem;
  display: grid;
  gap: .35rem;
  flex: 1;
}

.card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: rgba(3, 13, 22, .8);
  backdrop-filter: blur(6px);
  color: var(--cyan);
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* What We Do cards */
.wwd-card .card-media { aspect-ratio: 4 / 3; }

.wwd-card .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 13, 22, .8), transparent 55%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}

.wwd-card:hover .card-media::after { opacity: 1; }

/* Numbered journey across the water cycle */
.wwd-flow { position: relative; }

/* connector line visible in the gaps between cards at step-chip level */
@media (min-width: 941px) {
  .wwd-flow::before {
    content: "";
    position: absolute;
    top: 1.95rem;
    left: 4%;
    right: 4%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .55) 20%, rgba(45, 212, 191, .55) 80%, transparent);
    z-index: 0;
  }
}

.wwd-flow .wwd-card { z-index: 1; }

.wwd-step {
  position: absolute;
  top: .9rem;
  left: 1rem;
  z-index: 2;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  color: #fff;
  background: rgba(3, 13, 22, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  padding: .55rem .75rem;
  transition: all .35s var(--ease);
}

.wwd-card:hover .wwd-step {
  background: var(--grad-accent);
  color: var(--bg-0);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(34, 211, 238, .4);
  transform: translateY(-3px);
}

/* section-level CTA */
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.6rem;
}

/* Product strip (horizontal scroll) */
.product-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(300px, 78vw);
  gap: 1.5rem;
  overflow-x: auto;
  padding: .5rem .25rem 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) transparent;
}

.product-strip::-webkit-scrollbar { height: 6px; }
.product-strip::-webkit-scrollbar-thumb { background: var(--grad-accent); border-radius: 4px; }
.product-strip::-webkit-scrollbar-track { background: rgba(255, 255, 255, .12); border-radius: 4px; }

.product-strip > * { scroll-snap-align: start; }

.product-card .card-media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(155deg, #eef6f9, #d9edf3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
}

.product-card .card-media img {
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(6, 32, 50, .22));
}

/* Application cards */
.app-card .card-media { aspect-ratio: 16 / 9; }

.app-card .icon-badge {
  position: absolute;
  left: 1.6rem;
  bottom: -26px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(34, 211, 238, .4);
  z-index: 2;
}

.app-card .icon-badge svg { width: 26px; height: 26px; color: var(--bg-0); }

.app-card .card-body { padding-top: 2.4rem; }

/* Core value cards — full-bleed, hover reveal */
.value-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  color: var(--on-dark);
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.value-card:hover { transform: translateY(-9px); box-shadow: var(--shadow-lg); }

.value-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.value-card:hover img { transform: scale(1.07); }

.value-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 13, 22, .95) 8%, rgba(6, 32, 50, .4) 55%, rgba(3, 13, 22, .12));
}

.value-card .value-body {
  position: relative;
  z-index: 2;
  padding: 1.7rem;
}

.value-card h3 { color: #fff; margin-bottom: .45rem; }

.value-card p {
  color: var(--on-dark-muted);
  font-size: .9rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .55s var(--ease), opacity .55s var(--ease);
}

.value-card:hover p { max-height: 130px; opacity: 1; }

.value-num {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--cyan);
  opacity: .95;
}

/* Industry feature cards */
.industry-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
}

.industry-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}

.industry-card:hover img { transform: scale(1.06); }

.industry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 13, 22, .94) 12%, rgba(6, 32, 50, .3) 60%, transparent);
}

.industry-card .industry-body {
  position: relative;
  z-index: 2;
  padding: 2.3rem;
}

.industry-card h3 { color: #fff; margin-bottom: .6rem; }

.industry-card p {
  color: var(--on-dark-muted);
  font-size: .95rem;
  margin-bottom: 1.2rem;
  max-width: 46ch;
}

/* Certificate cards — seal medallions on dark glass */
.cert-card {
  position: relative;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .8rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease),
              border-color .4s var(--ease), background .4s var(--ease);
}

.cert-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(34, 211, 238, .55), transparent 35%, transparent 65%, rgba(45, 212, 191, .55));
  -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 .4s var(--ease);
  pointer-events: none;
}

.cert-card:hover {
  transform: translateY(-7px);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 24px 50px -20px rgba(3, 13, 22, .7), 0 0 34px -6px rgba(34, 211, 238, .22);
}

.cert-card:hover::before { opacity: 1; }

/* seal medallion */
.cert-seal {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 14px 30px -12px rgba(3, 13, 22, .6);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.cert-seal::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 0deg, #22d3ee, #2dd4bf, rgba(34, 211, 238, .15), #22d3ee);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .5;
  transition: opacity .4s var(--ease);
}

.cert-card:hover .cert-seal {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 18px 38px -12px rgba(3, 13, 22, .7),
              0 0 26px -2px rgba(34, 211, 238, .35);
}

.cert-card:hover .cert-seal::before { opacity: 1; animation: certRingSpin 5s linear infinite; }

@keyframes certRingSpin { to { transform: rotate(1turn); } }

.cert-seal img {
  max-width: 74%;
  max-height: 74%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.cert-check {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(34, 211, 238, .45);
}

.cert-check svg { width: 15px; height: 15px; }

.cert-card h4 { font-size: .98rem; color: #fff; margin: 0; }

.cert-card p { font-size: .82rem; line-height: 1.55; color: var(--on-dark-muted); margin: 0; }

/* News cards */
.news-card .card-media { aspect-ratio: 16 / 10; }

.news-date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: var(--grad-accent);
  color: var(--bg-0);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .75rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(34, 211, 238, .4);
}

/* Team cards */
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.team-card .team-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper);
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .7s var(--ease);
}

.team-card:hover img { transform: scale(1.06); }

.team-card .team-body { padding: 1.2rem 1rem 1.4rem; }

.team-card h4 { font-size: .98rem; margin-bottom: .2rem; }

.team-card .team-role {
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #0891b2;
}

/* ============ ORG CHART (team tree) ============ */
.org-chart { position: relative; }

.org-level {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.org-drop {
  width: 2px;
  height: 52px;
  margin: 0 auto;
  background: linear-gradient(180deg, #22d3ee, #2dd4bf);
  border-radius: 2px;
}

.org-node { position: relative; padding: 0 10px; }

/* connectors for branched levels */
.org-level--branched .org-node { padding-top: 52px; }

.org-level--branched .org-node::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 52px;
  background: var(--line);
}

.org-level--branched .org-node::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--line);
}

.org-level--branched .org-node:first-child::after { left: 50%; width: 50%; }
.org-level--branched .org-node:last-child::after { left: 0; width: 50%; }
.org-level--branched .org-node:only-child::after { display: none; }

/* cards */
.org-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding: 1.4rem .9rem 1.25rem;
  width: 172px;
  height: 100%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.org-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.org-photo {
  width: 92px;
  height: 92px;
  margin: 0 auto .9rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}

.org-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .6s var(--ease);
}

.org-card:hover .org-photo img { transform: scale(1.08); }

.org-card h4 { font-size: .92rem; margin-bottom: .25rem; }

/* founder node */
.org-card--founder {
  width: min(280px, 100%);
  padding-top: 1.9rem;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--grad-accent) border-box;
  box-shadow: 0 20px 50px -18px rgba(34, 211, 238, .35);
}

.org-card--founder .org-photo {
  width: 150px;
  height: 150px;
  border-color: var(--white);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, .45), 0 14px 30px -14px rgba(4, 18, 31, .35);
}

.org-card--founder h4 { font-size: 1.1rem; }

.org-card--founder .team-role {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 860px) {
  .org-level { flex-direction: column; align-items: center; gap: 1.25rem; }
  .org-drop { height: 32px; }
  .org-level--branched .org-node { padding-top: 0; }
  .org-level--branched .org-node::before,
  .org-level--branched .org-node::after { display: none; }
  .org-level--branched .org-node + .org-node { margin-top: 0; }
  .org-card { width: min(280px, 100%); }
}

/* Org chart sequential entrance — founder → drop → management → drop → team.
   main.js adds .org-in when the chart scrolls into view; --i sets the order. */
html.js .org-chart:not(.org-in) .org-node { opacity: 0; }

.org-chart.org-in .org-node {
  animation: orgNodeIn .65s var(--ease) both;
  animation-delay: calc(var(--i, 0) * .13s);
}

.org-chart.org-in .org-photo {
  animation: orgPhotoIn .55s cubic-bezier(.34, 1.56, .64, 1) both;
  animation-delay: calc(var(--i, 0) * .13s + .18s);
}

.org-chart.org-in .org-drop {
  transform-origin: top center;
  animation: orgDropIn .45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * .13s);
}

@keyframes orgNodeIn {
  from { opacity: 0; transform: translateY(26px) scale(.94); }
  to   { opacity: 1; transform: none; }
}

@keyframes orgPhotoIn {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

@keyframes orgDropIn {
  from { opacity: 0; transform: scaleY(0); }
  to   { opacity: 1; transform: scaleY(1); }
}

html.js.reveal-all .org-chart .org-node,
html.js.reveal-all .org-chart .org-photo,
html.js.reveal-all .org-chart .org-drop {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html.js .org-chart:not(.org-in) .org-node { opacity: 1; }
  .org-chart.org-in .org-node,
  .org-chart.org-in .org-photo,
  .org-chart.org-in .org-drop { animation: none; }
}

/* --------------------------------------------------------------------------
   12. Marquees
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  position: relative;
  padding-block: 1rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track img {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .7;
  transition: filter .35s var(--ease), opacity .35s var(--ease), transform .35s var(--ease);
}

.marquee-track img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.06);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   13. Stats band / counters
   -------------------------------------------------------------------------- */
.stats-band {
  position: relative;
  background: var(--grad-depth);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 3.8rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.stats-band::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 70%);
}

.stat { text-align: center; position: relative; }

.stat + .stat::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: var(--line-dark);
}

.stat .stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.8vw, 3.4rem);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat .stat-label {
  margin-top: .45rem;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* --------------------------------------------------------------------------
   14. Tabs
   -------------------------------------------------------------------------- */
.tabs-nav {
  display: inline-flex;
  gap: .5rem;
  padding: .45rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.8rem;
}

.tabs-nav button {
  padding: .7rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  color: var(--muted);
  transition: background .3s var(--ease), color .3s var(--ease),
              box-shadow .3s var(--ease);
}

.tabs-nav button.active {
  background: var(--grad-accent);
  color: var(--bg-0);
  box-shadow: 0 10px 24px rgba(34, 211, 238, .4);
}

.tab-panel { display: none; }

.tab-panel.active { display: block; animation: tabIn .5s var(--ease); }

@keyframes tabIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   15. CTA band & Footer
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--grad-depth);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(2.8rem, 6vw, 4.8rem);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-lg);
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-band::before {
  width: 420px; height: 420px;
  right: -130px; top: -170px;
  background: radial-gradient(circle, rgba(34, 211, 238, .26), transparent 70%);
}

.cta-band::after {
  width: 280px; height: 280px;
  left: -100px; bottom: -130px;
  background: radial-gradient(circle, rgba(45, 212, 191, .2), transparent 70%);
}

.cta-band h2 { color: #fff; max-width: 22ch; position: relative; z-index: 2; }

.cta-band p { color: var(--on-dark-muted); margin-top: .8rem; max-width: 52ch; position: relative; z-index: 2; }

.cta-band .btn { position: relative; z-index: 2; }

.cta-band .eyebrow { color: var(--cyan); }

.site-footer {
  background: var(--bg-0);
  color: var(--on-dark-muted);
  padding-top: clamp(2.6rem, 5vw, 3.8rem);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 2.6rem;
  padding-bottom: 2.4rem;
}

.footer-brand img { height: 48px; width: auto; margin-bottom: 1rem; }

.footer-brand p { color: var(--on-dark-muted); font-size: .9rem; max-width: 36ch; line-height: 1.7; }

.footer-social {
  display: flex;
  gap: .7rem;
  margin-top: 1.4rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--line-dark);
  color: var(--cyan);
  transition: background .3s var(--ease), transform .3s var(--ease),
              color .3s var(--ease), box-shadow .3s var(--ease);
}

.footer-social a:hover {
  background: var(--grad-accent);
  color: var(--bg-0);
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(34, 211, 238, .35);
}

.footer-social svg { width: 19px; height: 19px; }

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.3rem;
  position: relative;
  padding-bottom: .7rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: .65rem;
}

.footer-links a {
  color: var(--on-dark-muted);
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.footer-links a::before {
  content: "›";
  color: var(--cyan);
  font-weight: 700;
  transition: transform .3s var(--ease);
}

.footer-links a:hover { color: var(--sky); }

.footer-links a:hover::before { transform: translateX(3px); }

.footer-contact {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.footer-contact li {
  display: flex;
  gap: .8rem;
  font-size: .9rem;
  align-items: flex-start;
}

.footer-contact svg {
  flex: none;
  width: 19px;
  height: 19px;
  color: var(--cyan);
  margin-top: .2rem;
}

.footer-contact a { color: var(--on-dark-muted); }

.footer-contact a:hover { color: var(--sky); }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(230, 242, 248, .45);
}

.footer-bottom a { color: rgba(230, 242, 248, .55); }

.footer-bottom a:hover { color: var(--cyan); }

/* --------------------------------------------------------------------------
   16. Floating buttons
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px rgba(37, 211, 102, .45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.whatsapp-float:hover { transform: translateY(-4px) scale(1.05); }

.whatsapp-float svg { width: 30px; height: 30px; color: #fff; }

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .5);
  animation: waPulse 2.4s ease-out infinite;
}

@keyframes waPulse {
  0% { transform: scale(.85); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 6.2rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-dark);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease),
              visibility .35s, background .3s var(--ease), color .3s var(--ease);
}

.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.back-to-top:hover { background: var(--grad-accent); color: var(--bg-0); }

.back-to-top svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   17. Modal & lightbox
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(3, 13, 22, .85);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}

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

.modal-box {
  position: relative;
  width: min(960px, 100%);
  background: var(--bg-1);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(26px) scale(.96);
  transition: transform .45s var(--ease);
}

.modal.open .modal-box { transform: translateY(0) scale(1); }

.modal-box video { width: 100%; aspect-ratio: 16 / 9; background: #000; }

.modal-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--glass-strong);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}

.modal-close:hover { background: var(--grad-accent); color: var(--bg-0); transform: rotate(90deg); }

.modal-close svg { width: 18px; height: 18px; }

.lightbox .modal-box {
  background: transparent;
  border: 0;
  box-shadow: none;
  width: min(1100px, 100%);
}

.lightbox img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass-strong);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s var(--ease), color .3s var(--ease);
}

.lightbox-nav:hover { background: var(--grad-accent); color: var(--bg-0); }

.lightbox-nav.prev { left: .8rem; }
.lightbox-nav.next { right: .8rem; }

.lightbox-nav svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   18. Article / detail pages (generated pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 4.5rem) 0 4.5rem;
  background: var(--grad-depth);
  color: var(--on-dark);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: .12;
}

/* gradient mesh glow */
.page-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .25), transparent 68%);
  animation: meshDrift 18s ease-in-out infinite alternate;
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero h1 { color: #fff; max-width: 22ch; }

.page-hero .lead { color: var(--on-dark-muted); margin-top: 1.1rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  list-style: none;
  padding: 0;
  margin-bottom: 1.3rem;
  font-size: .84rem;
  font-family: var(--font-head);
  font-weight: 600;
}

.breadcrumb a { color: var(--cyan); }

.breadcrumb a:hover { color: #fff; }

.breadcrumb .sep { color: rgba(230, 242, 248, .35); }

.breadcrumb [aria-current] { color: var(--on-dark-muted); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 3rem;
  align-items: start;
}

.article-body { min-width: 0; }

.article-body > * + * { margin-top: 1.15rem; }

.article-body h2 {
  font-size: 1.6rem;
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.article-body h3 { font-size: 1.25rem; margin-top: 1.9rem; }

.article-body h4 {
  margin-top: 1.6rem;
  padding-left: 1rem;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, var(--cyan), var(--aqua)) 1;
}

.article-body p { color: var(--muted); }

.article-body ul,
.article-body ol { color: var(--muted); display: grid; gap: .45rem; }

.article-body li::marker { color: var(--cyan); }

.article-body img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-block: 1.6rem;
}

.article-body a { font-weight: 600; }

.article-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .92rem;
  margin-block: 1.6rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.article-body thead th {
  position: sticky;
  top: 0;
  background: var(--bg-2);
  color: var(--on-dark);
  font-family: var(--font-head);
  font-weight: 700;
  text-align: left;
  padding: .9rem 1rem;
  z-index: 1;
}

.article-body td {
  padding: .78rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.article-body tr:nth-child(even) td { background: var(--paper); }

.article-body tr:hover td { background: rgba(34, 211, 238, .09); }

/* glass aside */
.article-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }

.aside-card {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
}

.aside-card + .aside-card { margin-top: 1.5rem; }

.aside-card h3 { font-size: 1.05rem; margin-bottom: 1rem; }

.aside-card .product-shot {
  border-radius: var(--radius-sm);
  background: linear-gradient(155deg, #eef6f9, #d9edf3);
  padding: 1rem;
  margin-bottom: 1.2rem;
}

.aside-links { list-style: none; padding: 0; display: grid; gap: .35rem; }

.aside-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .55rem .8rem;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 500;
  transition: background .25s var(--ease), color .25s var(--ease);
}

.aside-links a::after { content: "›"; color: var(--cyan); font-weight: 700; }

.aside-links a:hover,
.aside-links a.active {
  background: var(--grad-accent-soft);
  color: var(--ink);
}

.aside-links a.active { font-weight: 700; }

/* --------------------------------------------------------------------------
   19. Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

.form-field { display: grid; gap: .45rem; }

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .9rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease);
}

.form-field textarea { min-height: 150px; resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .18);
}

.form-field.error input,
.form-field.error select,
.form-field.error textarea {
  border-color: #e05252;
  background: #fdf3f3;
}

.form-field .field-error {
  display: none;
  font-size: .78rem;
  color: #c43d3d;
}

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

/* Contact info cards */
.contact-info-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.contact-info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.contact-info-card .ci-icon {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(34, 211, 238, .4);
}

.contact-info-card .ci-icon svg { width: 24px; height: 24px; color: var(--bg-0); }

.contact-info-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }

.contact-info-card p,
.contact-info-card a { font-size: .92rem; color: var(--muted); }

.contact-info-card a:hover { color: #0891b2; }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  line-height: 0;
}

.map-frame iframe { width: 100%; height: 420px; border: 0; }

/* --------------------------------------------------------------------------
   20. Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 140%);
  z-index: 1300;
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--bg-1);
  border: 1px solid var(--line-dark);
  color: var(--on-dark);
  padding: 1rem 1.5rem;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--cyan);
  font-size: .92rem;
  max-width: min(92vw, 480px);
  transition: transform .5s var(--ease);
}

.toast.show { transform: translate(-50%, 0); }

.toast svg { flex: none; width: 22px; height: 22px; color: var(--cyan); }

/* --------------------------------------------------------------------------
   21. Scroll-reveal — JS-GATED so no-JS renders everything visible.
   The inline <head> script adds .js to <html>; only then are elements
   hidden pre-animation. main.js adds .revealed via IntersectionObserver,
   or drives richer tweens when GSAP is available.
   -------------------------------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

html.js [data-reveal="left"]  { transform: translateX(-32px); }
html.js [data-reveal="right"] { transform: translateX(32px); }
html.js [data-reveal="zoom"]  { transform: scale(.95); }
html.js [data-reveal="fade"]  { transform: none; }

html.js [data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* when GSAP owns the motion it clears the CSS transition states */
html.js [data-reveal].gsap-owned {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

/* failsafe: JS adds .reveal-all when the animation layer fails or is
   unavailable — forces every animated element visible, no matter what
   inline state a library left behind */
html.js.reveal-all [data-reveal],
html.js.reveal-all .img-frame,
html.js.reveal-all .card-media,
html.js.reveal-all .team-photo {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
  transition: none !important;
}

html.js.reveal-all .hero-line > span {
  transform: none !important;
  animation: none !important;
}

/* --------------------------------------------------------------------------
   22. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  html.js [data-reveal] { opacity: 1; transform: none; }

  html.js .hero-line > span { transform: none; animation: none; }

  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }

  .hero-video { display: none; }

  .hero-chip { animation: none; }
}

/* --------------------------------------------------------------------------
   23. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .main-nav a { padding: .55rem .55rem; font-size: .82rem; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-chips { display: none; }
}

@media (max-width: 940px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-1);
    border-left: 1px solid var(--line-dark);
    padding: calc(var(--header-h) + 1rem) 1.4rem 2rem;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    overflow-y: auto;
    z-index: 1100;
    box-shadow: -24px 0 70px rgba(3, 13, 22, .5);
  }

  .main-nav.open { transform: translateX(0); }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
  }

  .main-nav > ul > li > a {
    width: 100%;
    padding: .85rem .6rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--line-dark);
    border-radius: 0;
  }

  .main-nav > ul > li > a::after { display: none; }

  .has-dropdown > a { justify-content: space-between; width: 100%; }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--cyan);
    border-radius: 0;
    background: rgba(255, 255, 255, .04);
    margin: .2rem 0 .4rem .8rem;
    min-width: 0;
  }

  .dropdown::before { display: none; }

  .has-dropdown.open .dropdown { display: block; }

  .dropdown a { color: var(--on-dark-muted); }

  .dropdown a:hover { background: rgba(255, 255, 255, .07); color: var(--cyan); }

  .phone-chip { margin-top: 1.4rem; justify-content: center; }

  .two-col { grid-template-columns: 1fr; }

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

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

  .stat:nth-child(3)::before { display: none; }

  .article-layout { grid-template-columns: 1fr; }

  .article-aside { position: static; }

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

  .img-frame-accent::before { display: none; }

  .experience-badge { right: 1rem; }
}

@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 { grid-template-columns: 1fr; }

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

  .hero-ctas .btn { width: 100%; }

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

  .stats-band { grid-template-columns: 1fr; gap: 1.4rem; }

  .stat + .stat::before { display: none; }

  .cta-band { text-align: center; justify-content: center; }

  .cta-band h2,
  .cta-band p { margin-inline: auto; }

  .tabs-nav { display: flex; width: 100%; }

  .tabs-nav button { flex: 1; padding-inline: .8rem; }

  .back-to-top { bottom: 5.6rem; width: 44px; height: 44px; }

  .whatsapp-float { width: 52px; height: 52px; }
}

/* --------------------------------------------------------------------------
   24. v3 art direction — "Deep Water Tech"
   -------------------------------------------------------------------------- */

/* Blueprint grid texture on dark sections */
.section-navy::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 252, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}

.section-navy > .container,
.section-navy > .hscroll,
.section-navy > .hscroll-progress { position: relative; z-index: 2; }

/* Oversized editorial display scale */
.hero-title { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -.03em; }

.page-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); letter-spacing: -.03em; }

/* Outlined (text-stroke) display words */
.txt-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(230, 242, 248, .85);
}

/* Ghost section numbers behind section heads */
.ghost-num {
  position: absolute;
  top: calc(var(--section-pad) * .35);
  right: max(1.25rem, (100vw - var(--container)) / 2);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(6rem, 14vw, 12rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(15, 34, 51, .09);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.section-navy .ghost-num { -webkit-text-stroke: 1.5px rgba(125, 211, 252, .12); }

.ghost-num + .container { position: relative; z-index: 1; }

/* Ghost word on interior page-hero bands */
.page-hero-ghost {
  position: absolute;
  right: max(1.25rem, (100vw - var(--container)) / 2);
  top: calc(var(--header-h) + 1.2rem);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(4.5rem, 11vw, 9.5rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(125, 211, 252, .16);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 1;
}

/* Diagonal flow off the page-hero into the content */
.page-hero {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3vw), 0 100%);
  padding-bottom: calc(4.5rem + 3vw);
}

/* Eyebrow with shimmering gradient underline */
.eyebrow::before {
  background: linear-gradient(90deg, var(--cyan), var(--aqua), var(--cyan));
  background-size: 200% 100%;
  animation: eyebrowShimmer 3.2s linear infinite;
}

@keyframes eyebrowShimmer {
  from { background-position: 0% 0; }
  to   { background-position: 200% 0; }
}

/* Scroll progress bar in the navbar */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 5;
  pointer-events: none;
}

/* Gradient hairline under the glass navbar */
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .45), rgba(45, 212, 191, .45), transparent);
  opacity: .7;
  pointer-events: none;
}

/* Nav link active-section state (set by JS while scrolling the homepage) */
.main-nav > ul > li > a.nav-active { color: #fff; }

.main-nav > ul > li > a.nav-active::after { transform: scaleX(1); }

/* Marquee band — giant editorial text, velocity skew via JS on .mb-skew */
.marquee-band {
  background: var(--bg-0);
  padding-block: clamp(1.6rem, 3.5vw, 2.8rem);
  overflow: hidden;
  border-block: 1px solid var(--line-dark);
}

.mb-skew { will-change: transform; }

.mb-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  white-space: nowrap;
  animation: mbScroll 26s linear infinite;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.mb-track i {
  font-style: normal;
  color: var(--cyan);
  font-size: .5em;
}

.mb-track .outline {
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(125, 211, 252, .65);
}

@keyframes mbScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Flow wave dividers between dark/light sections */
.flow-wave {
  display: block;
  width: 100%;
  height: clamp(46px, 6.5vw, 90px);
  background: var(--base, #fff);
  margin-bottom: -1px;
}

.flow-wave svg { width: 100%; height: 100%; display: block; }

/* Pinned horizontal products gallery */
.hscroll { position: relative; }

.hscroll .product-strip {
  /* fallback (no pin): native horizontal scroll-snap, aligned to container */
  padding-left: max(1.25rem, (100vw - var(--container)) / 2);
}

.hscroll.is-pinned {
  overflow: hidden;
}

.hscroll.is-pinned .hscroll-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  overflow: visible;
  padding: .5rem 4vw 1.5rem max(1.25rem, (100vw - var(--container)) / 2);
  scroll-snap-type: none;
  will-change: transform;
}

.hscroll.is-pinned .hscroll-track > * { flex: none; width: min(320px, 78vw); }

.hscroll-progress {
  display: none;
  width: min(420px, 60vw);
  margin: .6rem auto 0;
  height: 3px;
  border-radius: 3px;
  background: rgba(230, 242, 248, .14);
  overflow: hidden;
}

.hscroll + .hscroll-progress { display: block; }

.hscroll-progress span {
  display: block;
  height: 100%;
  background: var(--grad-accent);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
}

/* 3D perspective tilt on logo marquees */
.marquee { transform: perspective(1100px) rotateX(6deg); }

/* Arrow badge slides in over card media on hover */
.card-media::before {
  content: "→";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-accent);
  color: var(--bg-0);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 10px 26px rgba(34, 211, 238, .45);
  opacity: 0;
  transform: translate(10px, 10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.card:hover .card-media::before { opacity: 1; transform: translate(0, 0); }

/* Custom cursor (desktop only; JS adds .has-cursor to <html>) */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-100px, -100px);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--grad-accent);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(34, 211, 238, .65);
  transition: width .25s var(--ease), height .25s var(--ease),
              border-color .25s var(--ease), background .25s var(--ease);
  margin: -15px 0 0 -15px; /* center on point; dot uses -4px */
}

.cursor-dot { margin: -4px 0 0 -4px; }

.cursor-ring.is-active {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-color: rgba(45, 212, 191, .9);
  background: rgba(34, 211, 238, .08);
}

html.has-cursor,
html.has-cursor * { cursor: none !important; }

/* Lenis: native CSS smooth scroll must yield to the JS smoother */
html.lenis { scroll-behavior: auto; }

/* v3 responsive tweaks */
@media (max-width: 940px) {
  .ghost-num { font-size: clamp(4.5rem, 18vw, 7rem); top: 2rem; }
  .page-hero-ghost { font-size: clamp(4rem, 16vw, 7rem); bottom: -1.2rem; }
  .marquee { transform: none; }
  .scroll-cue { display: none; }
}

@media (max-width: 620px) {
  .ghost-num { opacity: .6; }
  .mb-track { font-size: 1.7rem; }
}

/* --------------------------------------------------------------------------
   25. Water ripple overlay & wave motion
   -------------------------------------------------------------------------- */

/* Canvas injected by assets/js/ripple.js into [data-ripple] surfaces.
   pointer-events: none — interaction listeners live on the parent, so
   text stays selectable and buttons stay clickable. */
.ripple-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  /* composite-time blur dissolves any residual buffer-cell stepping */
  filter: blur(5px);
}

[data-ripple] { position: relative; }

/* footer content must paint above its ripple canvas */
.site-footer .container { position: relative; z-index: 3; }

/* Layered undulating waves at the bottom of the hero (SMIL path morph, no hard edges) */
.hero-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(80px, 14vh, 150px);
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hero-waves .hw {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.hero-waves .hw1 { opacity: .42; }

.hero-waves .hw2 { opacity: .55; }

.hero-waves .hw3 { opacity: 1; }

/* Flow dividers: soft gradient waves with gentle SMIL undulation (no sideways drift) */
.flow-wave {
  overflow: hidden;
  margin-top: -1px;      /* 1px overlap kills background hairlines at edges */
}

.flow-wave svg { width: 100%; }

/* Reduced motion: ripple.js never initialises; hide morphing hero waves */
@media (prefers-reduced-motion: reduce) {
  .hero-waves { display: none; }
  .cert-card:hover .cert-seal::before { animation: none; }
}

/* --------------------------------------------------------------------------
   24. Gallery album — editorial mosaic
   -------------------------------------------------------------------------- */
.album {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 240px;
  gap: 1.25rem;
}

.album-item {
  position: relative;
  grid-column: span 4;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.album-item.a-wide { grid-column: span 8; }
.album-item.a-wide img { object-position: center 30%; }
.album-item.a-tall { grid-column: span 4; grid-row: span 2; }

.album-item.a-hero { grid-column: span 8; grid-row: span 2; }
.album-item.a-hero img { object-position: center 35%; }

.album-item.a-full { grid-column: span 12; }
.album-item.a-full img { object-position: center 38%; }

.album-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

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

.album-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 13, 22, .82) 0%, rgba(3, 13, 22, .25) 45%, transparent 70%);
  opacity: .55;
  transition: opacity .5s var(--ease);
}

.album-item:hover .album-overlay { opacity: 1; }

.album-idx {
  position: absolute;
  top: 1rem;
  left: 1.1rem;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: #fff;
  background: rgba(3, 13, 22, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  padding: .4rem .6rem;
  z-index: 2;
}

.album-zoom {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-accent);
  color: var(--bg-0);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  z-index: 2;
}

.album-zoom svg { width: 19px; height: 19px; }

.album-item:hover .album-zoom { opacity: 1; transform: scale(1); }

.album-cap {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.1rem;
  z-index: 2;
  display: grid;
  gap: .15rem;
  transform: translateY(6px);
  transition: transform .5s var(--ease);
}

.album-item:hover .album-cap { transform: translateY(0); }

.album-cap em {
  font-style: normal;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.album-cap strong {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

@media (max-width: 940px) {
  .album { grid-auto-rows: 220px; }
  .album-item,
  .album-item.a-wide,
  .album-item.a-tall { grid-column: span 6; grid-row: span 1; }
  .album-item.a-hero { grid-column: span 12; grid-row: span 2; }
  .album-item.a-full { grid-column: span 12; }
}

@media (max-width: 620px) {
  .album { grid-auto-rows: 240px; }
  .album-item,
  .album-item.a-wide,
  .album-item.a-tall { grid-column: span 12; }
}

/* ==========================================================================
   CMS additions — article tables scroll inside their own container on
   small screens instead of widening the page (under RTL a wide table
   extends the scrollable area leftward and pans the whole layout).
   ========================================================================== */

/* Pre-reveal animation states (data-reveal x-offsets) and any stray wide
   element must never make the page itself scroll sideways. body already
   hides overflow-x; html is the actual scroll container, so clip it too
   (clip avoids creating a new scroll context; hidden is the fallback). */
html { overflow-x: hidden; }

@supports (overflow-x: clip) {
  html { overflow-x: clip; }
}
@media (max-width: 940px) {
  .article-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

/* Certificate cards open their seal in the shared lightbox: a stretched
   overlay link makes the whole card the trigger, with a hover zoom cue. */
.cert-card { position: relative; }

.cert-zoom {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  cursor: zoom-in;
}

.cert-zoom::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  inset-inline-end: 0.9rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6f2f8' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3Cpath d='M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 1.05rem no-repeat;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cert-card:hover .cert-zoom::before,
.cert-zoom:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.cert-seal img { transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1); }

.cert-card:hover .cert-seal img { transform: scale(1.08); }

/* Product strip: compact professional cards. CMS excerpts are full
   sentences (not the hand-trimmed one-liners of the static site), so the
   strip clamps them and tightens every dimension to keep the band low
   and rhythmically consistent with the rest of the page. */
.product-strip .product-card .card-media {
  aspect-ratio: 4 / 3;
  padding: 1.1rem;
}

.product-strip .product-card .card-body {
  padding: 1.15rem 1.3rem 1.3rem;
  gap: 0.45rem;
}

.product-strip .product-card h4 {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.product-strip .product-card p {
  font-size: 0.85rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  /* hard cap: recent Chromium computes the legacy -webkit-box combo to
     flow-root and can ignore the clamp — two line-heights, exactly */
  max-height: 3.32em;
  overflow: hidden;
}

.product-strip .product-card .link-arrow {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.85rem;
}

/* narrower columns in both strip states */
.hscroll .hscroll-track > *,
.hscroll.is-pinned .hscroll-track > * { flex: none; width: min(272px, 74vw); }

.hscroll.is-pinned .hscroll-track { gap: 1.25rem; }

/* One progress indicator only: the thin .hscroll-progress bar. The styled
   native scrollbar underneath it read as a second, thicker bar — hide it. */
.product-strip {
  scrollbar-width: none;
  scrollbar-color: auto;
}

.product-strip::-webkit-scrollbar { display: none; height: 0; }

/* Breathing room at BOTH ends of the strip (the original only padded the
   left, so the last card — and, under RTL, the first — hugged the viewport
   edge). Logical properties keep it correct in both directions. */
.hscroll .product-strip {
  padding-left: 0;
  padding-inline: max(1.25rem, (100vw - var(--container)) / 2);
  scroll-padding-inline: max(1.25rem, (100vw - var(--container)) / 2);
}

/* Auto-scrolling product strip: mandatory snap would fight the continuous
   drift. Cards must never hit the viewport edge — a fixed-length fade on
   BOTH sides frames the moving band, and a slim gutter replaces the big
   container-aligned one (pointless on an endless loop). */
.strip-auto .product-strip {
  --strip-fade: clamp(56px, 9vw, 150px);
  scroll-snap-type: none;
  padding-inline: 1.5rem;
  scroll-padding-inline: 1.5rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--strip-fade), #000 calc(100% - var(--strip-fade)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--strip-fade), #000 calc(100% - var(--strip-fade)), transparent);
}

/* Reduced motion: the loop never runs, so the duplicated set would read
   as eleven phantom extra products — show the single set, scrollable. */
@media (prefers-reduced-motion: reduce) {
  .strip-auto [data-strip-dup] { display: none; }

  .strip-auto .product-strip { scroll-snap-type: x mandatory; }
}

/* Clients marquee — same visual system as the auto product strip. */
.marquee {
  --strip-fade: clamp(56px, 9vw, 150px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--strip-fade), #000 calc(100% - var(--strip-fade)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--strip-fade), #000 calc(100% - var(--strip-fade)), transparent);
}

/* Seamless -50% wrap needs per-item margins, not flex gap: with gap the
   halfway point lands half a gap short and the loop visibly jumps. */
.marquee-track { gap: 0; }

.marquee-track img { margin-inline-end: 3.5rem; }
