/* =====================================================
   The Solution Machine — stylesheet
   ===================================================== */

@import url('fonts.css'); /* local font files — no Google server */

/* ---------- Tokens ---------- */
:root {
  --c-deep: #021631;
  --c-deep-2: #04122a;
  --c-navy: #0b2e5b;
  --c-navy-2: #082244;
  --c-blue: #0070d8;
  --c-blue-2: #0093ff;
  --c-blue-elec: #000fff;
  --c-cyan: #4ec6ee;
  --c-cyan-soft: #86e6fb;
  --c-white: #ffffff;
  --c-cream: #f3eee2;
  --c-cream-2: #ece4d3;
  --c-ink: #14202e;

  --f-display: "Gemunu Libre", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "Gemunu Libre", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-script: "Dancing Script", cursive;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1400px;
  --radius: 18px;

  /* mode-dependent (safe / bold / experimental) */
  --motion: 1;          /* multiplier */
  --grid-strength: 0.06;
  --glow-strength: 0.55;
  --hero-headline-scale: 1;
}

/* Safe mode tones things down */
[data-mode="safe"] {
  --motion: 0.55;
  --grid-strength: 0.025;
  --glow-strength: 0.3;
  --hero-headline-scale: 0.92;
}
/* Experimental mode dials up */
[data-mode="experimental"] {
  --motion: 1.25;
  --grid-strength: 0.11;
  --glow-strength: 0.85;
  --hero-headline-scale: 1.08;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--f-body);
  background: var(--c-deep);
  color: var(--c-white);
  font-size: 26px;
  line-height: 1.55;
  cursor: none;
  overflow-x: hidden;
}
@media (max-width: 720px) { body { cursor: auto; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: none; border: none; background: none; }
input, textarea { font: inherit; }
::selection { background: var(--c-blue); color: var(--c-white); }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; pointer-events: none; z-index: 9999;
  top: 0; left: 0; width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(0,147,255,0.85);
  box-shadow: 0 0 0 2px rgba(78,198,238,0.5), 0 0 14px 4px rgba(0,147,255,0.55);
  transform: translate(-50%, -50%);
  transition: width .2s ease, height .2s ease, background .2s ease, box-shadow .2s ease;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}
.cursor.is-hover {
  width: 36px; height: 36px;
  background: rgba(78,198,238,0.9);
  box-shadow: 0 0 0 3px rgba(0,147,255,0.6), 0 0 24px 8px rgba(78,198,238,0.5);
}
/* Water drop shape — used when hovering the logo */
.cursor.is-drop {
  width: 28px; height: 28px;
  background: transparent;
  box-shadow: none;
}
.cursor.is-drop::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 0 50% 50% 50%;
  background: rgba(78,198,238,0.9);
  box-shadow: 0 0 0 2px rgba(0,147,255,0.55), 0 0 20px 6px rgba(78,198,238,0.5);
  transform: rotate(45deg);
  transform-origin: center;
}
.cursor-trail-canvas { pointer-events: none !important;
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9998;
  mix-blend-mode: screen;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section {
  position: relative;
  box-shadow:
    inset 0 40px 80px -30px rgba(0, 8, 32, 0.55),
    inset 0 -40px 80px -30px rgba(0, 8, 32, 0.45);
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-display);
  letter-spacing: 0.18em; font-weight: 500; font-size: 17px;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.9);
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.55));
  transition: filter .4s ease;
}
.brand .logo {
  position: relative;
  width: 74px; height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #0a3a78, #021631 70%);
  display: grid; place-items: center;
  border: 1px solid rgba(78,198,238,0.4);
  box-shadow: 0 0 0 0 rgba(0,147,255,0.45), inset 0 0 22px rgba(0,147,255,0.25), 0 6px 24px rgba(0,0,0,0.6);
  transition: box-shadow 380ms ease, width .4s ease, height .4s ease, opacity .4s ease;
  overflow: hidden;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
  opacity: 0.82;
}

/* scrolled state: logo shrinks 40% */
.topbar.is-scrolled .brand .logo {
  width: 55px; height: 55px;
}

/* contact section visible: hide brand */
.topbar.brand-hidden .brand {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .4s ease, transform .4s ease;
}
.topbar .brand {
  transition: opacity .4s ease, transform .4s ease, filter .4s ease;
}
.brand .logo img { width: 108%; height: 108%; object-fit: cover; object-position: center; filter: brightness(1.2) saturate(1.15); }
.brand .logo::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(0,147,255,0.4); opacity: 0;
}
.brand:hover .logo { animation: dropPulse 1.4s ease-out; }
@keyframes dropPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,147,255,0.55), inset 0 0 18px rgba(0,147,255,0.18); }
  60%  { box-shadow: 0 0 0 22px rgba(0,147,255,0), inset 0 0 18px rgba(0,147,255,0.18); }
  100% { box-shadow: 0 0 0 0 rgba(0,147,255,0), inset 0 0 18px rgba(0,147,255,0.18); }
}

.menu-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-family: var(--f-display); font-weight: 500;
  letter-spacing: 0.18em; font-size: 13px; text-transform: uppercase;
  background: rgba(2,22,49,0.45);
  backdrop-filter: blur(10px);
  transition: border-color .25s ease, background .25s ease;
}
.menu-toggle:hover { border-color: var(--c-cyan); background: rgba(0,147,255,0.18); }
.menu-toggle .bars { width: 22px; height: 12px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .35s ease, top .35s ease, bottom .35s ease;
}
.menu-toggle .bars::before { top: 2px; }
.menu-toggle .bars::after { bottom: 2px; }
.menu-toggle.is-open .bars::before { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-toggle.is-open .bars::after { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Fullscreen menu overlay */
.menu-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: linear-gradient(135deg, #010b18 0%, #020c1a 50%, #061b36 100%);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .55s ease;
}
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.menu-overlay::before {
  content: ""; position: absolute; inset: -50% -20%; z-index: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 30%, rgba(0,147,255,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 78% 68%, rgba(78,198,238,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 55% at 55% 85%, rgba(0,70,180,0.22) 0%, transparent 55%);
  filter: blur(28px);
  animation: menuBlobDrift 12s ease-in-out infinite;
  pointer-events: none;
  will-change: transform;
}
@keyframes menuBlobDrift {
  0%   { transform: translate(0%,   0%)   scale(1);    }
  20%  { transform: translate(4%,  -7%)   scale(1.06); }
  40%  { transform: translate(-3%,  5%)   scale(0.97); }
  60%  { transform: translate(5%,   3%)   scale(1.04); }
  80%  { transform: translate(-2%,  -5%)  scale(1.02); }
  100% { transform: translate(0%,   0%)   scale(1);    }
}
.menu-overlay nav { position: relative; text-align: center; }
.menu-overlay ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.menu-overlay li {
  counter-increment: m;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(24px, 3.6vw, 50px);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  position: relative;
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: calc(var(--i) * 60ms);
  padding: 14px 0;
}
.menu-overlay.is-open li { opacity: 1; transform: translateY(0); }
.menu-overlay a {
  position: relative; display: inline-block; padding: 4px 24px;
  background: linear-gradient(90deg, var(--c-white) 50%, var(--c-cyan) 50%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position .4s ease;
}
.menu-overlay a::before {
  content: "0" counter(m);
  font-family: var(--f-mono); font-weight: 400; font-size: 13px;
  position: absolute; left: -28px; top: 18px;
  color: rgba(78,198,238,0.7); -webkit-text-fill-color: rgba(78,198,238,0.7);
}
.menu-overlay a:hover { background-position: -100% 0%; }
.menu-foot {
  position: absolute; bottom: 32px; left: 0; right: 0;
  display: flex; justify-content: space-between; padding: 0 var(--gutter);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.9);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  padding: 140px var(--gutter) 80px;
  align-items: center;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: -8% -4%; z-index: -2;
  background-image: url("../images/water-drops.jpg");
  background-size: cover; background-position: center;
  filter: brightness(0.55) contrast(1.05) saturate(1.05);
  will-change: transform;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(0,147,255,0.18), transparent 55%),
    linear-gradient(180deg, rgba(2,22,49,0.45) 0%, rgba(2,22,49,0.1) 30%, rgba(2,22,49,0.85) 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(78,198,238,calc(var(--grid-strength) * 1.1)) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(78,198,238,calc(var(--grid-strength) * 1.1)) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 60% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 50%, black 30%, transparent 75%);
}

/* Decorative ripples in hero */
.float-drops { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.float-drops .ripple-pulse {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  border: 1.5px solid rgba(78,198,238,0.65);
  transform: translate(-50%, -50%) scale(0.01);
  animation: ripplePulse calc(7s / var(--motion)) ease-out infinite;
  opacity: 0;
  will-change: transform, opacity;
}
@keyframes ripplePulse {
  0%   { transform: translate(-50%, -50%) scale(0.01); opacity: 0; }
  12%  { opacity: 0.85; }
  88%  { transform: translate(-50%, -50%) scale(1);    opacity: 0.15; }
  100% { transform: translate(-50%, -50%) scale(1.12); opacity: 0; }
}
.float-drops .shimmer {
  position: absolute; left: -10%; right: -10%; height: 200%; top: -50%;
  background: radial-gradient(ellipse at center, rgba(78,198,238,0.12) 0%, transparent 60%);
  animation: shimmerDrift calc(18s / var(--motion)) ease-in-out infinite alternate;
  filter: blur(20px);
}
@keyframes shimmerDrift {
  0%   { transform: translate(-8%, -4%) scale(1); }
  100% { transform: translate(8%, 4%) scale(1.15); }
}
.float-drops .caustics {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 32%, rgba(78,198,238,0.18) 0, transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(0,147,255,0.18) 0, transparent 24%),
    radial-gradient(circle at 62% 82%, rgba(78,198,238,0.14) 0, transparent 26%),
    radial-gradient(circle at 28% 78%, rgba(0,147,255,0.12) 0, transparent 22%);
  animation: causticsMove calc(14s / var(--motion)) ease-in-out infinite alternate;
  filter: blur(8px);
  mix-blend-mode: screen;
}
@keyframes causticsMove {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -16px) scale(1.08); }
}

/* Hero content */
.hero-product {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 540px;
  max-height: 70vh;
  justify-self: center;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 30px 80px -10px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(78,198,238,0.25),
    inset 0 0 80px rgba(0,147,255,0.12);
  background: linear-gradient(160deg, #07203f 0%, #021631 100%);
  cursor: none;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease;
}
.hero-product:hover {
  transform: translateY(-6px);
  box-shadow:
    0 40px 100px -10px rgba(0,0,0,0.7),
    0 0 0 1px rgba(78,198,238,0.5),
    inset 0 0 80px rgba(0,147,255,0.18),
    0 0 60px rgba(0,147,255,0.35);
}
.hero-product .placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(0,147,255,0.22), transparent 55%),
    repeating-linear-gradient(135deg, rgba(78,198,238,0.04) 0 8px, transparent 8px 16px),
    linear-gradient(160deg, #07203f 0%, #021631 100%);
  position: relative;
}
.hero-product .placeholder::after {
  content: "PRODUCT TEASER · 0:42";
  position: absolute; left: 16px; bottom: 16px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em;
  color: rgba(78,198,238,.7);
}
.hero-product .placeholder::before {
  content: "TSM // CONCEPT VISUAL";
  position: absolute; left: 16px; top: 16px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em;
  color: rgba(78,198,238,.7);
}
.hero-product .machine {
  width: 70%; aspect-ratio: 3/4; position: relative;
  background:
    linear-gradient(180deg, #4ec6ee 0%, #0093ff 35%, #0b2e5b 100%);
  border-radius: 14px 14px 18px 18px;
  box-shadow: 0 30px 60px -10px rgba(0,147,255,0.45), inset 0 0 30px rgba(255,255,255,0.18);
  overflow: hidden;
}
.hero-product .machine::before {
  content: ""; position: absolute; left: 50%; top: 32%; transform: translateX(-50%);
  width: 70%; height: 14%; background: rgba(255,255,255,0.92);
  border-radius: 6px; filter: blur(0.3px);
}
.hero-product .machine::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 18%;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.45));
  backdrop-filter: blur(2px);
}
.play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: grid; place-items: center;
  color: var(--c-deep);
  box-shadow: 0 0 0 0 rgba(255,255,255,0.4);
  animation: playPulse 2.4s ease-out infinite;
  cursor: none;
}
.play-btn svg { width: 28px; height: 28px; transform: translateX(2px); }
@keyframes playPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
  80% { box-shadow: 0 0 0 30px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ---------- Hero entrance sequence ---------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroScaleIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-product {
  animation: heroScaleIn 0.9s cubic-bezier(.2,.8,.2,1) 0.1s both;
}
.hero h1 .liquid-mask:nth-child(1) {
  animation: heroFadeUp 0.8s cubic-bezier(.2,.8,.2,1) 0.55s both;
}
.hero h1 .liquid-mask:nth-child(2) {
  animation: heroFadeUp 0.8s cubic-bezier(.2,.8,.2,1) 0.8s both;
}
.hero p.lede {
  animation: heroFadeUp 0.7s cubic-bezier(.2,.8,.2,1) 1.1s both;
}
.hero-meta span:nth-child(1) {
  animation: heroFadeUp 0.6s cubic-bezier(.2,.8,.2,1) 1.45s both;
}
.hero-meta span:nth-child(2) {
  animation: heroFadeUp 0.6s cubic-bezier(.2,.8,.2,1) 1.7s both;
}
.hero-meta span:nth-child(3) {
  animation: heroFadeUp 0.6s cubic-bezier(.2,.8,.2,1) 1.95s both;
}
.scroll-indicator {
  animation: heroFadeIn 0.8s ease 2.4s both;
}

.hero-copy { position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--c-cyan); margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 12px var(--c-cyan); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(43px, 5.3vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  text-transform: uppercase;
  transform: scale(var(--hero-headline-scale));
  transform-origin: left center;
  white-space: normal;
  overflow-wrap: break-word;
}
.hero h1 .liquid-mask { display: block; white-space: nowrap; }
@media (max-width: 1180px) {
  .hero h1 .liquid-mask { white-space: normal; }
}
.hero h1 .accent {
  background: linear-gradient(180deg, #ffffff 30%, #4ec6ee 80%, #0093ff 110%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .liquid-mask {
  display: inline-block; position: relative;
}
.hero p.lede {
  max-width: 520px; font-size: 29px; color: rgba(255,255,255,0.95);
  margin: 0 0 36px; line-height: 1.45;
}
.hero-meta {
  display: flex; gap: 32px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 14px; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,0.92);
}
.hero-meta span b { color: var(--c-cyan); font-weight: 500; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.scroll-indicator .line {
  width: 1px; height: 56px; background: linear-gradient(180deg, transparent, var(--c-cyan), transparent);
  background-size: 100% 200%;
  animation: scrollLine calc(2.4s / var(--motion)) ease-in-out infinite;
}
@keyframes scrollLine { 0%,100% { background-position: 0% 0%; } 50% { background-position: 0% -100%; } }

/* ---------- Mission band ---------- */
.mission {
  padding: clamp(80px, 14vh, 180px) var(--gutter);
  background: linear-gradient(180deg, var(--c-deep) 0%, var(--c-deep-2) 100%);
  position: relative;
  text-align: center;
}
.mission::before, .mission::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: min(900px, 80%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(78,198,238,0.45), transparent);
}
.mission::before { top: 0; }
.mission::after { bottom: 0; }
.mission .label {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em;
  color: var(--c-cyan); text-transform: uppercase; margin-bottom: 28px;
}
.mission h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.25; max-width: 1100px; margin: 0 auto;
  color: var(--c-white);
}
.mission h2 b {
  font-weight: 700;
  background: linear-gradient(120deg, #4ec6ee 0%, #0093ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

/* Drop divider — gradient blend, no hard band */
.drop-divider {
  position: relative; height: 140px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--c-navy) 0%, var(--c-navy-2) 35%, var(--c-deep-2) 70%, var(--c-deep) 100%);
  margin-top: -1px;
}
.drop-divider::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(78,198,238,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(0,147,255,0.12) 0%, transparent 60%);
}
.drop-divider::after {
  content: ""; position: absolute; left: 50%; bottom: 18px;
  width: 40%; max-width: 320px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(78,198,238,0.4), transparent);
  transform: translateX(-50%);
}
.drop-divider .drop {
  width: 22px; height: 30px;
  background: linear-gradient(180deg, rgba(180,230,255,0.95), rgba(78,198,238,0.6));
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  clip-path: path("M 11 0 C 11 0 22 18 22 24 A 11 11 0 0 1 0 24 C 0 18 11 0 11 0 Z");
  filter: blur(0.3px) drop-shadow(0 0 14px rgba(78,198,238,0.55));
  animation: dropFall calc(3.6s / var(--motion)) ease-in infinite;
  transform-origin: top center;
  opacity: 0.85;
}
@keyframes dropFall {
  0%   { transform: translateY(-30px) scale(1, 0.7); opacity: 0; }
  20%  { opacity: 1; }
  70%  { transform: translateY(20px) scale(1, 1.1); opacity: 1; }
  85%  { transform: translateY(28px) scale(1.4, 0.4); opacity: .6; }
  100% { transform: translateY(28px) scale(1.8, 0.2); opacity: 0; }
}

/* ---------- Problem section ---------- */
.problem {
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  background: linear-gradient(180deg, var(--c-deep-2), var(--c-deep) 60%);
  position: relative;
  overflow: hidden;
}
.problem::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(78,198,238,calc(var(--grid-strength))) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(78,198,238,calc(var(--grid-strength))) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 20%, black 80%, transparent);
  pointer-events: none;
}
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  margin-bottom: 56px; flex-wrap: wrap;
}
.section-head .label {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--c-cyan); display: flex; align-items: center; gap: 12px;
}
.section-head .label::before {
  content: ""; width: 28px; height: 1px; background: var(--c-cyan);
}
.section-head h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(36px, 5.4vw, 80px);
  line-height: 0.95; letter-spacing: -0.01em; text-transform: uppercase;
  margin: 14px 0 0;
}
.section-head .id {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .25em; color: rgba(255,255,255,0.9); text-transform: uppercase;
}

.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px);
  align-items: stretch;
}
.problem-visual {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #07203f 0%, #021631 100%);
  border: 1px solid rgba(78,198,238,0.18);
  min-height: 520px;
  display: grid; place-items: center;
  padding: 40px;
  cursor: none;
  align-self: stretch;
  transition: border-color .4s ease, box-shadow .4s ease;
}
.problem-visual:hover {
  border-color: rgba(78,198,238,0.5);
  box-shadow: 0 0 0 1px rgba(78,198,238,0.3), 0 30px 60px -20px rgba(0,147,255,0.4);
}
/* single-SVG group animation */
@keyframes bottlePopIn {
  0%   { opacity: 0;   transform: scale(0.55); }
  38%  { opacity: 1;   transform: scale(2.1);  }
  100% { opacity: 1;   transform: scale(1.1);  }
}
.problem-visual svg.bottles {
  width: 88%; max-width: 440px; height: auto; display: block;
}
/* transform-origin in SVG viewport coords (no transform-box) — most reliable cross-browser */
.problem-visual .grp-many {
  opacity: 1;
  transform-origin: 223px 218px;
  transform: scale(1);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.problem-visual .grp-one {
  opacity: 0;
  transform-origin: 230px 196px;
  transform: scale(0.55);
  transition: opacity .3s ease, transform .3s ease;
}
.problem-visual:hover .grp-many,
.problem-visual.is-merged .grp-many {
  opacity: 0; transform: scale(0.8);
}
.problem-visual:hover .grp-one,
.problem-visual.is-merged .grp-one {
  animation: bottlePopIn 1s cubic-bezier(.2,.8,.2,1) forwards;
}

.problem-visual .merge-label {
  position: absolute; left: 0; right: 0; bottom: 18px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .28em;
  color: var(--c-cyan); text-transform: uppercase;
  opacity: 0; transition: opacity .4s ease .5s;
  pointer-events: none; text-align: center;
}
.problem-visual:hover .merge-label,
.problem-visual.is-merged .merge-label { opacity: 1; }
.problem-visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(0,147,255,0.18), transparent 60%);
  pointer-events: none;
}
.problem-visual .corner-tag {
  position: absolute; top: 18px; left: 18px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em;
  color: rgba(78,198,238,0.7); text-transform: uppercase;
}
.problem-visual .scan {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(78,198,238,0.75), transparent);
  animation: scanMove calc(5s / var(--motion)) linear infinite;
}
@keyframes scanMove { 0% { top: -2px; } 100% { top: 100%; } }

.problem-text {
  display: flex; flex-direction: column; justify-content: space-between;
  align-self: stretch;
}
.problem-text .stat-card {
  flex: 1;
}
.problem-text p {
  font-size: 19px; color: rgba(255,255,255,0.93); margin: 0 0 28px; max-width: 540px;
}
.stat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, rgba(0,147,255,0.22), rgba(11,46,91,0.5));
  border: 1px solid rgba(78,198,238,0.4);
  padding: 36px 36px 32px;
  box-shadow: 0 30px 70px -20px rgba(0,147,255,0.55);
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .4s ease, box-shadow .5s ease, transform .45s cubic-bezier(.2,.8,.2,1);
  cursor: default;
}
.stat-card:hover {
  border-color: rgba(78,198,238,0.7);
  box-shadow: 0 36px 80px -20px rgba(0,147,255,0.7), 0 0 0 1px rgba(78,198,238,0.35), inset 0 0 50px rgba(0,147,255,0.1);
  transform: translateY(-4px);
}
.stat-card::after {
  content: ""; position: absolute; inset: -40% -15%; z-index: 0;
  background:
    radial-gradient(ellipse 55% 70% at 25% 75%, rgba(0,147,255,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 45% 65% at 75% 45%, rgba(78,198,238,0.16) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.7s ease;
  pointer-events: none;
  filter: blur(18px);
  animation: statCardWave 7s ease-in-out infinite;
}
.stat-card:hover::after { opacity: 1; }
@keyframes statCardWave {
  0%   { transform: translate(0, 0) scale(1); }
  35%  { transform: translate(3%, -9%) scale(1.05); }
  68%  { transform: translate(-3%, 6%) scale(0.97); }
  100% { transform: translate(0, 0) scale(1); }
}
.stat-card > * { position: relative; z-index: 1; }
.stat-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,147,255,0) 50%, rgba(0,147,255,calc(var(--glow-strength) * 0.5)) 100%);
  transform: scaleY(var(--fill, 0)); transform-origin: bottom;
  transition: transform 1.6s cubic-bezier(.2,.7,.2,1);
}
.stat-card.is-fill { --fill: 1; }
.stat-card .label {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .3em;
  color: var(--c-cyan); text-transform: uppercase; margin-bottom: 18px;
}
.stat-num {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(52px, 6.4vw, 92px);
  line-height: 0.92; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  position: relative;
  background: linear-gradient(180deg, #ffffff 25%, #4ec6ee 70%, #0093ff 110%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block; width: 100%;
  animation: numPulse 4s ease-in-out infinite;
}
@keyframes numPulse {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(0,147,255,0.35)); }
  50%      { filter: drop-shadow(0 0 32px rgba(78,198,238,0.55)); }
}
.stat-card .each {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(22px, 1.9vw, 30px); letter-spacing: 0.28em;
  color: var(--c-cyan-soft); text-transform: uppercase;
  margin-top: 14px;
  position: relative; padding-left: 44px;
  display: block;
}
.stat-card .each::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 32px; height: 1px; background: var(--c-cyan);
}
.stat-card .unit {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .22em;
  color: rgba(255,255,255,0.95); text-transform: uppercase; margin-top: 10px;
}
.stat-card .desc {
  font-size: 20px; color: rgba(255,255,255,0.92); margin-top: 18px;
  border-top: 1px solid rgba(78,198,238,0.25); padding-top: 16px; line-height: 1.5;
}
.stat-card .stat-wave {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  background:
    radial-gradient(ellipse at 25% 100%, rgba(0,147,255,0.4) 0%, transparent 52%),
    radial-gradient(ellipse at 75% 100%, rgba(78,198,238,0.28) 0%, transparent 52%);
  pointer-events: none;
  animation: statGlow calc(6s / var(--motion)) ease-in-out infinite alternate;
}
@keyframes statGlow {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ---------- Solution section (machine zone, dark) ---------- */
.solution {
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  background: var(--c-deep);
  position: relative;
}
.solution::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0,147,255,0.14), transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(78,198,238,0.1), transparent 55%);
}
.solution .wrap { position: relative; }
.solution-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.scard {
  position: relative;
  padding: 32px 28px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11,46,91,0.4) 0%, rgba(2,22,49,0.6) 100%);
  border: 1px solid rgba(78,198,238,0.2);
  overflow: hidden;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .4s ease, box-shadow .4s ease;
  min-height: 320px;
  display: flex; flex-direction: column; gap: 20px;
}
.scard:hover {
  transform: translateY(-8px);
  border-color: rgba(78,198,238,0.55);
  box-shadow: 0 30px 60px -20px rgba(0,147,255,0.4), 0 0 0 1px rgba(78,198,238,0.4);
}
.scard .num {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .25em;
  color: var(--c-cyan); text-transform: uppercase;
}
.scard h3 {
  font-family: var(--f-display); font-weight: 600;
  font-size: 22px; line-height: 1.25; letter-spacing: 0.06em;
  text-transform: uppercase; margin: 0;
  color: var(--c-white);
}
.scard p { font-size: 17px; color: rgba(255,255,255,0.93); margin: 0; letter-spacing: 0.06em; line-height: 1.65; }
.scard .icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,147,255,0.25), rgba(78,198,238,0.05));
  border: 1px solid rgba(78,198,238,0.35);
  color: var(--c-cyan);
  margin-top: auto;
}
.scard .icon svg { width: 28px; height: 28px; }
.scard::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s ease;
}
.scard:hover::after { transform: scaleX(1); }

/* CTA strip */
.cta-strip {
  margin-top: 56px; margin-bottom: -40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,147,255,0.16), rgba(11,46,91,0.4));
  border: 1px solid rgba(78,198,238,0.3);
  flex-wrap: wrap;
}
.cta-strip h3 {
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(22px, 2.4vw, 32px); margin: 0; letter-spacing: 0.02em;
}

/* ---------- Buttons (liquid fill + border shimmer) ---------- */

/* border shimmer: one sweep over ~2s, then 4s pause, repeats */
@keyframes btnShimmer {
  0%   { background-position: 150% center; opacity: 0; }
  6%   { opacity: 1; }
  36%  { background-position: -150% center; opacity: 0; }
  100% { background-position: 150% center; opacity: 0; }
}

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--f-display); font-weight: 700;
  font-size: 15px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--c-white);
  background: #1a3a5c;
  border: 1px solid rgba(78,198,238,0.22);
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s ease, box-shadow .35s ease;
  cursor: none;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

/* liquid fill */
.btn::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -120%;
  height: 240%; background: linear-gradient(180deg, #1e5080, #0f3358);
  z-index: -1;
  transition: bottom .55s cubic-bezier(.2,.8,.2,1), background .4s ease;
}

/* border shimmer — mask reveals only the 1px border area */
.btn::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 999px;
  padding: 1px;
  background: linear-gradient(
    90deg,
    transparent 15%,
    rgba(160,225,255,0.9) 50%,
    transparent 85%
  );
  background-size: 280% 100%;
  animation: btnShimmer 6s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(0,60,120,0.55); color: var(--c-white); }
.btn:hover::before { bottom: -10%; background: linear-gradient(180deg, #30a8cc, #2288aa); }
.btn.ghost {
  background: transparent; border: 1px solid rgba(255,255,255,0.25); color: var(--c-white);
}
.btn.ghost::before { background: linear-gradient(180deg, var(--c-blue), var(--c-cyan)); }
.btn .arrow { transition: transform .35s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Team (HUMAN zone, dark blue) ---------- */
.team {
  padding: clamp(40px, 7vh, 80px) var(--gutter) clamp(80px, 14vh, 160px);
  background: linear-gradient(180deg, var(--c-navy-2) 0%, var(--c-navy) 100%);
  color: var(--c-white);
  position: relative;
  overflow: hidden;
}
.team::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
}
.team .section-head h2 { color: var(--c-white); }
.team .section-head .label { color: var(--c-cyan); }
.team .section-head .label::before { background: var(--c-cyan); }
.team .section-head .id { color: rgba(255,255,255,0.9); }
.team-script {
  font-family: var(--f-script); font-weight: 600;
  font-size: clamp(36px, 3.9vw, 55px);
  color: var(--c-cyan-soft);
  margin: -8px 0 24px;
  display: inline-block;
  transform: rotate(-2deg);
}
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; max-width: 900px; margin-left: auto; margin-right: auto;
  gap: clamp(20px, 2.4vw, 32px);
}
.tcard {
  position: relative;
  padding: 22px;
  background: rgba(2,22,49,0.55);
  border: 1px solid rgba(78,198,238,0.18);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 18px 40px -18px rgba(0,0,0,0.5);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease, border-color .4s ease;
  display: flex; flex-direction: column; gap: 14px;
}
.tcard:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  border-color: rgba(78,198,238,0.5);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 30px 70px -18px rgba(0,147,255,0.45);
}
.tcard .avatar {
  position: relative;
  width: 100%; aspect-ratio: 1 / 1.3; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #0b2e5b 0%, #021631 100%);
}
.tcard .avatar img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 24%;
  transform: scale(1.0);
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
  background: linear-gradient(160deg, #0b2e5b 0%, #021631 100%);
}
.tcard:hover .avatar img { transform: scale(1.10); }
.tcard .avatar.mono {
  display: grid; place-items: center;
  position: relative;
  background:
    radial-gradient(circle at 30% 30%, #0b2e5b, #021631 70%);
}
.tcard .avatar.mono::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(78,198,238,0.05) 0 6px, transparent 6px 12px);
  pointer-events: none;
}
.tcard .avatar.mono .glyph {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(56px, 6vw, 84px); color: var(--c-white);
  letter-spacing: -0.02em; line-height: 1;
  text-shadow: none;
  z-index: 1; position: relative;
}
.tcard .avatar.mono::after { content: none; }
.tcard .avatar .ripple {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 0; height: 0; border-radius: 50%;
  border: 1px solid rgba(78,198,238,0.65);
  opacity: 0;
  pointer-events: none;
}
.tcard:hover .avatar .ripple {
  animation: rippleOut 1s ease-out forwards;
}
@keyframes rippleOut {
  0%   { width: 20px; height: 20px; opacity: 1; }
  100% { width: 420px; height: 420px; opacity: 0; }
}
.tcard h3 {
  font-family: var(--f-script); font-weight: 700;
  font-size: 30px; line-height: 1; color: var(--c-cyan-soft);
  margin: 6px 0 0;
}
.tcard .role {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em;
  color: rgba(255,255,255,0.9); text-transform: uppercase;
}

/* ---------- Ready section ---------- */
.ready {
  padding: clamp(80px, 14vh, 160px) var(--gutter) clamp(34px, 5.9vh, 67px);
  background: var(--c-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 40px 80px -30px rgba(0, 8, 32, 0.55); /* top shadow only — bottom blends into contact */
}
.ready-bg {
  position: absolute; inset: -5%; z-index: 0; pointer-events: none;
  background-image: url("../images/water-header.jpg");
  background-size: cover; background-position: center;
  opacity: 0.25;
  filter: brightness(0.7) saturate(1.1);
  animation: readyBgDrift 20s ease-in-out infinite alternate;
}
@keyframes readyBgDrift {
  0%   { transform: scale(1) translate(0, 0); }
  33%  { transform: scale(1.04) translate(-2%, 1.5%); }
  66%  { transform: scale(1.02) translate(1.5%, -1%); }
  100% { transform: scale(1.05) translate(-1%, 1%); }
}
.ready::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--c-deep) 0%, transparent 30%, transparent 70%, var(--c-deep) 100%);
}
.ready .wrap { position: relative; z-index: 2; }
.ready .label {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em;
  color: var(--c-cyan); text-transform: uppercase; margin-bottom: 24px;
  display: flex; justify-content: center; align-items: center; gap: 14px;
}
.ready .label::before, .ready .label::after {
  content: ""; width: 40px; height: 1px; background: var(--c-cyan);
}
.ready h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(56px, 9vw, 160px);
  --refract-strength: 1;
  line-height: 0.92; letter-spacing: -0.02em; text-transform: uppercase;
  margin: 0 0 8px;
}
.ready h2 .q {
  font-family: var(--f-script); font-weight: 600;
  font-style: normal; text-transform: none;
  color: var(--c-cyan); font-size: 0.55em;
  display: inline-block; transform: rotate(-3deg) translateY(-0.25em);
}
.ready p {
  max-width: 620px; margin: 24px auto 36px;
  font-size: 21px; color: rgba(255,255,255,0.92);
}

/* ---------- Contact ---------- */
.contact {
  padding: clamp(34px, 5.9vh, 67px) var(--gutter) clamp(80px, 14vh, 160px);
  background: linear-gradient(180deg, var(--c-deep) 0%, var(--c-deep-2) 100%);
  position: relative;
  box-shadow: inset 0 -40px 80px -30px rgba(0, 8, 32, 0.45); /* bottom shadow only — top blends from ready */
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
.contact-info h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(36px, 4.4vw, 64px); line-height: 0.95;
  text-transform: uppercase; margin: 12px 0 24px; letter-spacing: -0.01em;
}
.contact-info p { color: rgba(255,255,255,0.92); margin: 0 0 32px; max-width: 440px; }
.easter-drop {
  position: relative; display: inline-block;
  color: rgba(255,255,255,0.92);
  border-bottom: 1px dotted rgba(78,198,238,0.45);
  cursor: default;
  transition: color .25s ease;
}
.easter-drop:hover { color: var(--c-cyan); }
.easter-logo {
  position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 44px; height: 44px; object-fit: contain;
  border-radius: 50%;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}
.easter-drop:hover .easter-logo {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.contact-detail {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(78,198,238,0.18);
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.06em;
}
.contact-detail:last-child { border-bottom: 1px solid rgba(78,198,238,0.18); }
.contact-detail .ic {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid rgba(78,198,238,0.35); border-radius: 10px; color: var(--c-cyan);
}
.contact-detail .ic svg { width: 16px; height: 16px; }
.contact-detail span.k { color: rgba(255,255,255,0.9); margin-right: 10px; text-transform: uppercase; letter-spacing: 0.22em; font-size: 11px; }

/* form */
.contact-form {
  position: relative; padding: 36px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11,46,91,0.35), rgba(2,22,49,0.6));
  border: 1px solid rgba(78,198,238,0.2);
  overflow: hidden;
}
.contact-form::before {
  content: ""; position: absolute; inset: 0; padding: 1px;
  border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, transparent 30%, rgba(78,198,238,0.45), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  background-size: 200% 200%;
  animation: borderShift calc(8s / var(--motion)) linear infinite;
}
@keyframes borderShift { 0% { background-position: 0% 0%; } 100% { background-position: 200% 200%; } }
.field {
  position: relative; margin-bottom: 18px;
}
.field label {
  display: block;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em;
  color: var(--c-cyan); text-transform: uppercase; margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%; padding: 16px 18px;
  background: rgba(2,22,49,0.55);
  border: 1px solid rgba(78,198,238,0.22);
  border-radius: 10px; color: var(--c-white);
  font-family: var(--f-body); font-size: 18px;
  transition: border-color .25s ease, box-shadow .35s ease, transform .35s ease;
  outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.35); }
.field input:hover, .field textarea:hover {
  border-color: rgba(78,198,238,0.45);
  box-shadow: 0 16px 40px -16px rgba(0,147,255,0.55);
  transform: translateY(-1px);
}
.field input:focus, .field textarea:focus {
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 4px rgba(78,198,238,0.18), 0 18px 40px -16px rgba(0,147,255,0.5);
}
.field textarea { min-height: 140px; resize: vertical; }
.field.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; height: 0; width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 8px; flex-wrap: wrap;
}
.form-status {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em;
  color: rgba(255,255,255,0.85); min-height: 20px;
}
.form-status.ok { color: #6cffb0; }
.form-status.err { color: #ff7a7a; }
.field input.is-invalid, .field textarea.is-invalid {
  border-color: #ff7a7a;
  box-shadow: 0 0 0 3px rgba(255,122,122,0.18);
}
.field-error {
  display: block; margin-top: 5px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
  color: #ff7a7a;
}

/* ---------- Footer ---------- */
.footer {
  padding: 28px var(--gutter);
  background: rgba(4,9,15,0.7);
  position: relative; z-index: 5;
  border-top: 1px solid rgba(78,198,238,0.2);
  font-size: 14px;
  overflow: hidden;
}
.footer::before {
  content: ""; position: absolute; inset: -50% -20%; z-index: 0;
  background:
    radial-gradient(ellipse 55% 80% at 22% 70%, rgba(0,147,255,0.32) 0%, transparent 60%),
    radial-gradient(ellipse 45% 70% at 76% 55%, rgba(78,198,238,0.24) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.8s ease;
  pointer-events: none;
  filter: blur(22px);
  animation: footerWave 8s ease-in-out infinite;
}
.footer:hover::before { opacity: 1; }
@keyframes footerWave {
  0%   { transform: translate(0, 0) scale(1); }
  28%  { transform: translate(4%, -10%) scale(1.06); }
  55%  { transform: translate(-3%, 6%) scale(0.97); }
  80%  { transform: translate(2%, -4%) scale(1.03); }
  100% { transform: translate(0, 0) scale(1); }
}
.footer .wrap { position: relative; z-index: 1; }
.footer-grid {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px;
  align-items: center;
}
.footer-grid > .left { color: rgba(255,255,255,0.9); font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid > .right { text-align: right; }
.footer-grid > .right a {
  margin-left: 24px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,0.9);
  transition: color .2s ease;
}
.footer-grid > .right a:hover { color: var(--c-cyan); }
.socials { display: flex; gap: 12px; justify-content: center; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(78,198,238,0.25); border-radius: 50%;
  color: rgba(255,255,255,0.9);
  transition: border-color .25s ease, color .25s ease, transform .35s ease, box-shadow .35s ease;
}
.socials a:hover { color: var(--c-cyan); border-color: var(--c-cyan); transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(0,147,255,0.5); }
.socials svg { width: 14px; height: 14px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.split { display: inline-block; overflow: hidden; }
.split .word { display: inline-block; transform: translateY(110%); transition: transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 50ms); }
.split.in .word { transform: translateY(0); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(2,22,49,0.92);
  backdrop-filter: blur(14px);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox .frame {
  width: min(1100px, 92vw); aspect-ratio: 16/9;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7);
  background: #000;
}
.lightbox iframe { width: 100%; height: 100%; border: 0; }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  color: var(--c-white); display: grid; place-items: center;
  cursor: none;
}

/* ---------- Tweaks panel toggle ---------- */
.tweak-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; gap: clamp(42px, 7vw, 141px); }
  .problem-grid { grid-template-columns: 1fr; }
  .solution-cards { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 72px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid > .right { text-align: center; }
  .footer-grid > .right a { margin: 0 12px; }
}
@media (max-width: 540px) {
  .team-grid { grid-template-columns: 1fr; }
  .tcard { width: 100%; }
  .tcard .avatar.mono .glyph { font-size: 56px; }
  .menu-overlay li { font-size: 36px; }
  .brand .logo { width: 40px; height: 40px; }
  .brand-name { display: inline; font-size: 13px; }
  .menu-overlay ol { display: flex; flex-direction: column; align-items: center; }
  .menu-overlay a::before { left: -24px; font-size: 11px; }
  .menu-foot { font-size: 9px; letter-spacing: 0.1em; }

  /* Hide scroll indicator on phones */
  .scroll-indicator { display: none; }

  /* Monogram initials — larger on phones (9vw is tiny on a phone) */
  .tcard .avatar.mono .glyph { font-size: clamp(96px, 27vw, 144px); }

  /* Logo stays same size on scroll — no shrinking on phones */
  .topbar.is-scrolled .brand .logo { width: 40px !important; height: 40px !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
