:root {
  --ink: #031419;
  --ink-2: #071e25;
  --ink-3: #0a2831;
  --panel: rgba(9, 35, 43, 0.78);
  --panel-solid: #0a252d;
  --line: rgba(161, 224, 231, 0.16);
  --line-strong: rgba(161, 224, 231, 0.28);
  --text: #f3fbfa;
  --muted: #9bb5b9;
  --soft: #c6d9da;
  --green: #48f6b2;
  --cyan: #35c9ef;
  --blue: #4f9dff;
  --amber: #ffce78;
  --danger: #ff8b8b;
  --max: 1260px;
  --header-h: 78px;
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 34px;
  --ease: cubic-bezier(.2, .75, .25, 1);
  --shadow: 0 30px 90px rgba(0, 8, 12, .34);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 10px);
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 27%, rgba(25, 114, 122, .1), transparent 27rem),
    radial-gradient(circle at 89% 62%, rgba(23, 132, 133, .08), transparent 32rem),
    var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

::selection { color: var(--ink); background: var(--green); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #04151a; }
::-webkit-scrollbar-thumb { background: #21454d; border: 2px solid #04151a; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #2b5962; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--green);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(calc(100% - 64px), var(--max)); margin-inline: auto; }

.page-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1001;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 18px rgba(72, 246, 178, .65);
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 32rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .09;
  pointer-events: none;
}
.ambient-one { top: 15%; left: -18rem; background: var(--cyan); }
.ambient-two { right: -18rem; top: 62%; background: var(--green); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow > span { width: 30px; height: 1px; background: currentColor; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 560; letter-spacing: -.045em; line-height: 1.02; }
h1 em, h2 em { color: var(--green); font-style: normal; }
h2 { margin-bottom: 0; font-size: clamp(2.55rem, 5vw, 5.3rem); }

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .3s, background .3s, border-color .3s, transform .3s;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
.button-primary { color: var(--ink); background: var(--green); }
.button-primary::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--cyan);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .42s var(--ease);
}
.button-primary:hover::before { transform: scaleX(1); transform-origin: left; }
.button-ghost { border-color: var(--line-strong); background: rgba(3, 20, 25, .45); backdrop-filter: blur(12px); }
.button-ghost:hover { border-color: var(--green); background: rgba(3, 20, 25, .78); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .3s, border-color .3s;
}
.text-link:hover { color: var(--green); border-color: var(--green); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, height .35s, backdrop-filter .35s;
}
.site-header.scrolled {
  height: 68px;
  border-color: var(--line);
  background: rgba(3, 20, 25, .82);
  backdrop-filter: blur(18px) saturate(135%);
}
.header-shell {
  width: min(calc(100% - 48px), 1450px);
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
}
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 11px; }
.brand-mark { width: 48px; height: 48px; fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; }
.brand-mark circle { fill: var(--cyan); stroke: none; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy b { font-size: 20px; letter-spacing: .16em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .24em; }
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav > a {
  position: relative;
  padding: 9px 0;
  color: #c2d5d6;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .06em;
}
.desktop-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 3px;
  height: 1px;
  background: var(--green);
  transition: right .3s var(--ease);
}
.desktop-nav a:hover, .desktop-nav a.active { color: var(--text); }
.desktop-nav a:hover::after, .desktop-nav a.active::after { right: 0; }
.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color .3s, color .3s, background .3s;
}
.header-cta:hover { color: var(--ink); border-color: var(--green); background: var(--green); }
.menu-toggle, .mobile-nav { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero-media, .hero-media img, .hero-wash, .caustics, .scan-grid { position: absolute; inset: 0; }
.hero-media { z-index: -3; background: #061d25; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.76) contrast(1.15) brightness(.58) hue-rotate(10deg);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-wash {
  background:
    linear-gradient(90deg, rgba(3, 20, 25, .98) 0%, rgba(3, 20, 25, .76) 42%, rgba(3, 20, 25, .18) 77%, rgba(3, 20, 25, .55) 100%),
    linear-gradient(0deg, #031419 0%, transparent 25%, rgba(3, 20, 25, .1) 74%, rgba(3, 20, 25, .72) 100%);
}
.caustics {
  opacity: .24;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse at 66% -5%, transparent 0 17%, rgba(117, 233, 224, .19) 18%, transparent 21%),
    radial-gradient(ellipse at 81% 2%, transparent 0 14%, rgba(64, 220, 209, .13) 15%, transparent 19%),
    radial-gradient(ellipse at 55% -3%, transparent 0 12%, rgba(105, 239, 217, .1) 13%, transparent 16%);
  filter: blur(8px);
  animation: causticShift 9s ease-in-out infinite alternate;
}
.scan-grid {
  opacity: .12;
  background-image: linear-gradient(rgba(78, 224, 221, .17) 1px, transparent 1px), linear-gradient(90deg, rgba(78, 224, 221, .17) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(90deg, transparent 32%, #000 72%, transparent 100%);
}
.scan-grid::after {
  content: "";
  position: absolute;
  left: 48%;
  right: 0;
  height: 1px;
  top: 25%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 20px var(--cyan);
  animation: scanDown 7s linear infinite;
}
.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 8vw;
  align-items: end;
  padding-top: calc(var(--header-h) + 10px);
  padding-bottom: 110px;
}
.hero-copy { max-width: 780px; }
.hero h1 { margin-bottom: 28px; font-size: clamp(4rem, 7.2vw, 7.5rem); }
.hero h1 em {
  background: linear-gradient(90deg, var(--green) 0%, #aafbe0 68%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede { max-width: 610px; margin-bottom: 34px; color: #c2d6d8; font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-console {
  width: min(100%, 380px);
  justify-self: end;
  padding: 17px;
  border: 1px solid rgba(104, 221, 222, .27);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(5, 27, 33, .84), rgba(4, 19, 24, .62));
  box-shadow: 0 28px 80px rgba(0, 5, 9, .32), inset 0 1px rgba(255,255,255,.05);
  backdrop-filter: blur(16px);
}

.console-topline { display: flex; align-items: center; gap: 8px; padding-bottom: 13px; border-bottom: 1px solid var(--line); color: var(--muted); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .11em; }
.console-topline b { margin-left: auto; color: var(--green); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: blink 1.7s ease-in-out infinite; }
.console-readout { display: grid; gap: 11px; padding: 16px 0 12px; }
.console-readout div { display: flex; justify-content: space-between; gap: 20px; }
.console-readout small { color: #6f9399; font: 650 8px/1.4 ui-monospace, monospace; }
.console-readout strong { color: #dcebec; font: 650 9px/1.4 ui-monospace, monospace; letter-spacing: .06em; }
.signal-bars { height: 56px; display: flex; align-items: end; gap: 5px; padding-top: 10px; border-top: 1px solid var(--line); overflow: hidden; }
.signal-bars i { flex: 1; height: var(--h); min-height: 5px; background: linear-gradient(0deg, rgba(53,201,239,.17), var(--cyan)); transform-origin: bottom; animation: barPulse 2.6s ease-in-out infinite alternate; animation-delay: calc(var(--h) * -0.02); }

.histogram-wrapper {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  margin-top: 22px;
  height: 180px;
}

.histogram-y-axis {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 0 24px;
  color: #79979c;
  font: 700 7px/1 ui-monospace, monospace;
  text-align: right;
}

.histogram-y-axis .y-title {
  position: absolute;
  left: -8px;
  top: 50%;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left top;
  letter-spacing: .12em;
  color: #9cbabd;
}

.histogram-chart {
  position: relative;
  height: 100%;
  padding-bottom: 24px;
}

.histogram-grid {
  position: absolute;
  inset: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.histogram-grid span {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.08);
}

.histogram-bars {
  position: absolute;
  inset: 0 0 24px 0;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: end;
  gap: 3px;
}

.histogram-bars i {
  display: block;
  height: var(--h);
  min-height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--green);
  box-shadow: 0 0 10px rgba(72,246,178,.28);
  transform-origin: bottom;
  animation: histogramPulse 3s ease-in-out infinite;
}

.histogram-bars i:nth-child(2) {
  animation-delay: -.2s;
}

.histogram-bars i:nth-child(3) {
  animation-delay: -.4s;
}

.histogram-bars i:nth-child(4) {
  animation-delay: -.6s;
}

.histogram-bars i:nth-child(5) {
  animation-delay: -.8s;
}

.histogram-bars i:nth-child(6) {
  animation-delay: -1s;
}

.histogram-bars i:nth-child(7) {
  animation-delay: -1.2s;
}

.histogram-bars i:nth-child(8) {
  animation-delay: -1.4s;
}

.histogram-bars i:nth-child(9) {
  animation-delay: -1.6s;
}

.histogram-bars i:nth-child(10) {
  animation-delay: -1.8s;
}

.histogram-x-axis {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  text-align: center;
  color: #79979c;
  font: 700 7px/1 ui-monospace, monospace;
}

.x-title {
  position: absolute;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%);
  color: #9cbabd;
  font: 700 7px/1 ui-monospace, monospace;
  letter-spacing: .12em;
}

@keyframes histogramPulse {
  0%, 100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(.94);
  }
}
.hero-detections { position: absolute; inset: 13% 2.5% 10% 49%; z-index: -1; pointer-events: none; }
.detect-box { position: absolute; border: 1px solid rgba(72,246,178,.78); box-shadow: inset 0 0 25px rgba(72,246,178,.05); animation: detectPulse 3.6s ease-in-out infinite; }
.detect-box::before, .detect-box::after { content: ""; position: absolute; width: 10px; height: 10px; border-color: var(--green); }
.detect-box::before { left: -2px; top: -2px; border-left: 2px solid; border-top: 2px solid; }
.detect-box::after { right: -2px; bottom: -2px; border-right: 2px solid; border-bottom: 2px solid; }
.detect-box span { position: absolute; left: -1px; bottom: calc(100% + 6px); padding: 4px 7px; color: var(--ink); background: var(--green); font: 700 7px/1 ui-monospace, monospace; letter-spacing: .06em; white-space: nowrap; }
.box-a { left: 11%; top: 24%; width: 28%; height: 13%; }
.box-b { left: 43%; top: 48%; width: 34%; height: 15%; animation-delay: -1.2s; }
.box-c { left: 67%; top: 13%; width: 21%; height: 10%; animation-delay: -2.1s; }
.measure-line { position: absolute; left: 20%; top: 34%; width: 61%; overflow: visible; }
.measure-line path { fill: none; stroke: var(--cyan); stroke-width: 1.3; stroke-dasharray: 6 7; animation: dash 15s linear infinite; }
.measure-line circle { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.scroll-cue { position: absolute; left: 28px; bottom: 22px; display: grid; justify-items: center; gap: 13px; color: #8daaad; font: 650 8px/1 ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-cue i { position: relative; width: 1px; height: 44px; overflow: hidden; background: var(--line-strong); }
.scroll-cue i::after { content: ""; position: absolute; inset: -100% 0 100%; background: var(--green); animation: scrollDrop 2s ease-in-out infinite; }

/* Shared sections */
.section {
  position: relative;
  padding: clamp(30px, 4vw, 60px) 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: end;
  gap: 50px;
  margin-bottom: clamp(35px, 5vw, 65px);
}

.section-head.compact {
  margin-bottom: clamp(30px, 4vw, 52px);
}

.section-head > p {
  max-width: 510px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}
.signal-strip { border-bottom: 1px solid var(--line); background: rgba(5, 26, 32, .72); }
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.signal-item { min-height: 125px; display: flex; align-items: center; gap: 22px; padding: 24px 34px; border-right: 1px solid var(--line); }
.signal-item:first-child { border-left: 1px solid var(--line); }
.signal-item > span { color: var(--green); font: 700 11px/1 ui-monospace, monospace; }
.signal-item div { display: grid; gap: 8px; }
.signal-item small { color: #79999e; font: 700 8px/1 ui-monospace, monospace; letter-spacing: .14em; }
.signal-item strong { font-size: 14px; font-weight: 580; letter-spacing: -.01em; }

/* Product worlds */
.products { background: linear-gradient(180deg, #031419, #061a20 56%, #031419); }
.product-worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.world-card {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: var(--shadow);
}
.world-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) brightness(.66) contrast(1.1); transition: transform 1s var(--ease), filter .7s; }
.world-card:hover > img { transform: scale(1.045); filter: saturate(.82) brightness(.7) contrast(1.1); }
.world-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,20,25,.14), rgba(3,20,25,.14) 22%, rgba(3,20,25,.97) 92%); }
.world-index { position: absolute; left: 26px; top: 24px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; background: rgba(3,20,25,.44); backdrop-filter: blur(10px); color: #d5e6e5; font: 700 9px/1 ui-monospace, monospace; letter-spacing: .12em; }
.world-content { position: absolute; inset: auto 38px 36px; z-index: 2; }
.product-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 28px; border: 1px solid rgba(72,246,178,.35); border-radius: 50%; background: rgba(3,20,25,.55); color: var(--green); backdrop-filter: blur(8px); }
.product-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.world-content > p { margin-bottom: 10px; color: var(--green); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .14em; }
.world-content h3 { max-width: 520px; margin-bottom: 21px; font-size: clamp(2rem, 3.5vw, 3.7rem); }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 30px; }
.tag-row span { padding: 7px 10px; border: 1px solid rgba(210,239,238,.16); border-radius: 99px; color: #bed0d1; background: rgba(3,20,25,.35); font-size: 9px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.world-content > a { display: inline-flex; align-items: center; gap: 30px; padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.34); color: #eaf5f4; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: color .3s, border-color .3s; }
.world-content > a:hover { color: var(--green); border-color: var(--green); }

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), rgba(72,246,178,.1), transparent 60%);
  opacity: 0;
  transition: opacity .35s;
}
.spotlight-card:hover::after { opacity: 1; }

/* AI comparison */
.vision-section { overflow: hidden; background: #04171d; }
.vision-section::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(rgba(72,246,178,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(72,246,178,.2) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(180deg, transparent, #000 32%, #000 70%, transparent); }
.comparison { --position: 54%; position: relative; padding: 12px; border: 1px solid var(--line-strong); border-radius: 26px; background: rgba(6,31,38,.72); box-shadow: 0 40px 110px rgba(0,7,10,.42); }
.comparison-stage { position: relative; aspect-ratio: 16 / 8.2; min-height: 390px; overflow: hidden; border-radius: 18px; background: #081b20; }
.comparison-base, .comparison-ai, .comparison-ai > img, .ai-color, .ai-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.comparison-ai {
  clip-path: inset(0 0 0 var(--position));
}
.ai-color { background: rgba(0, 104, 112, .18); mix-blend-mode: color; }
.ai-overlay { fill: none; stroke: var(--green); stroke-width: 2; filter: drop-shadow(0 0 5px rgba(72,246,178,.5)); }
.ai-overlay path { stroke: var(--cyan); stroke-dasharray: 8 7; animation: dash 14s linear infinite; }
.ai-overlay circle { fill: var(--cyan); stroke: none; }
.ai-overlay text { fill: var(--green); stroke: none; font: 700 14px ui-monospace, monospace; letter-spacing: 1px; }
.track { animation: trackGlow 2.7s ease-in-out infinite; }
.track-two { animation-delay: -.8s; }.track-three { animation-delay: -1.7s; }
.comparison-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  z-index: 5;
  width: 1px;

  background: rgba(255,255,255,.75);
  box-shadow: 0 0 18px rgba(255,255,255,.38);

  pointer-events: none;
}

.comparison-handle {
  position: absolute;
  left: 50%;
  top: 50%;

  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  transform: translate(-50%, -50%);

  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;

  color: var(--ink);
  background: var(--text);

  box-shadow: 0 12px 35px rgba(0,0,0,.28);

  font: inherit;
  font-weight: 800;

  cursor: ew-resize;

  pointer-events: auto;

  touch-action: none;

  user-select: none;
}

.comparison-handle:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.comparison-handle:active {
  cursor: grabbing;
}

.comparison-handle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.comparison-handle.dragging {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.08);
}
.comparison-divider span { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; display: grid; place-items: center; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.75); border-radius: 50%; color: var(--ink); background: var(--text); box-shadow: 0 12px 35px rgba(0,0,0,.28); font-weight: 800; }
.view-label { position: absolute; top: 20px; z-index: 8; padding: 7px 9px; color: #e3efee; background: rgba(3,20,25,.69); border: 1px solid rgba(255,255,255,.2); border-radius: 4px; backdrop-filter: blur(8px); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .13em; }
.raw-label { left: 20px; }.ai-label { right: 20px; color: var(--green); }
.comparison-hud { position: absolute; right: 20px; bottom: 18px; z-index: 8; display: flex; gap: 18px; padding: 9px 11px; color: #9cbabd; background: rgba(3,20,25,.66); border: 1px solid var(--line-strong); border-radius: 4px; font: 700 8px/1 ui-monospace, monospace; letter-spacing: .1em; }
.comparison-hud span { display: flex; align-items: center; gap: 7px; }.comparison-hud i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }.comparison-hud b { color: var(--cyan); }
.comparison-control { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 19px 10px 8px; color: #79979c; font: 700 9px/1 ui-monospace, monospace; letter-spacing: .12em; }
.comparison-control input { width: 100%; height: 3px; appearance: none; border-radius: 99px; background: linear-gradient(90deg, var(--green) 0 var(--position), #24454c var(--position)); cursor: ew-resize; }
.comparison-control input::-webkit-slider-thumb { width: 18px; height: 18px; appearance: none; border: 4px solid #eafbfa; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--green), 0 0 18px rgba(72,246,178,.5); }
.comparison-control input::-moz-range-thumb { width: 12px; height: 12px; border: 4px solid #eafbfa; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--green), 0 0 18px rgba(72,246,178,.5); }

/* Cage process */
.aquasmart { background: linear-gradient(180deg, #031419, #061c23); }
.two-column { display: grid; grid-template-columns: .82fr 1.18fr; align-items: start; gap: clamp(60px, 10vw, 145px); }
.sticky-copy { position: sticky; top: 130px; }
.sticky-copy h2 { margin-bottom: 30px; }
.sticky-copy > p:not(.eyebrow) { max-width: 520px; margin-bottom: 35px; color: var(--muted); font-size: 1.02rem; line-height: 1.85; }
.process-stack { position: relative; display: grid; gap: 12px; }
.process-stack::before { content: ""; position: absolute; left: 36px; top: 40px; bottom: 40px; width: 1px; background: linear-gradient(var(--green), var(--cyan), transparent); opacity: .36; }
.process-step { position: relative; z-index: 1; min-height: 170px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 25px; padding: 28px 30px 28px 12px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(110deg, rgba(10,40,49,.9), rgba(6,27,34,.62)); transition: border-color .35s, transform .35s, background .35s; }
.process-step:hover { transform: translateX(-8px); border-color: rgba(72,246,178,.38); background: linear-gradient(110deg, rgba(11,47,54,.96), rgba(6,27,34,.75)); }
.process-step > span { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(72,246,178,.33); border-radius: 50%; color: var(--green); background: #08222a; font: 700 10px/1 ui-monospace, monospace; }
.process-step small { color: var(--green); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .14em; }
.process-step h3 { margin: 10px 0 8px; font-size: 1.5rem; letter-spacing: -.03em; }
.process-step p { max-width: 510px; margin: 0; color: var(--muted); font-size: .9rem; }
.process-step > i { color: rgba(130,204,207,.27); font: normal 700 1rem/1 ui-monospace, monospace; letter-spacing: .08em; }

/* Nursery workflow */
/* =========================================================
   AquaVision workflow
   ========================================================= */

.aquavision {
  position: relative;
  overflow: hidden;
  background: #061b22;
}

.aquavision::after {
  content: "";
  position: absolute;
  right: -20rem;
  top: 18%;
  width: 45rem;
  aspect-ratio: 1;
  border: 1px solid rgba(53, 201, 239, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(53, 201, 239, 0.025),
    0 0 0 160px rgba(53, 201, 239, 0.02);
}


/* =========================================================
   Main workflow container
   ========================================================= */

.sorter-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(3, 20, 25, 0.83);
  box-shadow: var(--shadow);
  overflow: hidden;
}


/* =========================================================
   Top status bar
   ========================================================= */

.sorter-topline {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  color: #78969b;
  font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.13em;
}

.sorter-topline b {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  white-space: nowrap;
}

.sorter-topline b i {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
}


/* =========================================================
   Desktop workflow canvas
   ========================================================= */

.sorter-canvas {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(130px, 160px)
    minmax(70px, 1fr)
    minmax(160px, 185px)
    minmax(90px, 1fr)
    minmax(180px, 220px);
  align-items: center;
  min-height: 410px;
  padding: 55px 45px;
  background-image:
    linear-gradient(rgba(70, 193, 198, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 193, 198, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
}


/* =========================================================
   Machine blocks
   ========================================================= */

.machine {
  position: relative;
  z-index: 3;
  min-height: 170px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 20px;
  border: 1px solid var(--line-strong);
  background: #0a2831;
  box-shadow:
    inset 0 0 45px rgba(53, 201, 239, 0.04),
    0 18px 50px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.machine::before,
.machine::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 13px;
  height: 7px;
  transform: translateY(-50%);
  background: #102f37;
  border: 1px solid var(--line-strong);
}

.machine::before { right: 100%; }
.machine::after { left: 100%; }

.machine small {
  margin-bottom: 12px;
  color: #78999e;
  font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.13em;
}

.machine strong {
  font: 700 13px/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.08em;
}

.machine-led {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}


/* =========================================================
   AquaVision machine
   ========================================================= */

.vision-module {
  border-color: rgba(72, 246, 178, 0.45);
  background: linear-gradient(145deg, #0b3138, #09242c);
}

.vision-module strong { color: var(--green); }

.scanner {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: scanner 2.8s ease-in-out infinite;
}


/* =========================================================
   INPUT FLOW (white)
   ========================================================= */

.flow-input {
  position: relative;
  z-index: 2;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.18)
  );
  overflow: visible;
}

.flow-input::before {
  content: "";
  position: absolute;
  inset: -5px 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 15px,
    rgba(255, 255, 255, 0.24) 16px 17px
  );
}

.flow-input .flow-fish {
  background: #ffffff;
  color: #07191f;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
}


/* =========================================================
   Generic moving flow object
   ========================================================= */

.flow-fish {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 16px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50% 65% 65% 50%;
  font: normal 900 15px/1 sans-serif;
  animation: fishFlow 3.6s linear infinite;
}


/* =========================================================
   Branching area (desktop)
   ========================================================= */

.branch-zone {
  position: relative;
  width: 100%;
  height: 240px;
  align-self: center;
}

.split-node {
  position: absolute;
  left: 0;
  top: 50%;
  width: 25px;
  height: 25px;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.split-node::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 150px;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(72, 246, 178, 0.55),
    rgba(255, 174, 92, 0.55),
    transparent
  );
}

.split-node span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 2px solid #ffffff;
  background: #061b22;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
}

.branch-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  transform-origin: left center;
  overflow: visible;
}

.branch-healthy {
  top: 25%;
  background: linear-gradient(
    90deg,
    rgba(72, 246, 178, 0.2),
    var(--green),
    rgba(72, 246, 178, 0.2)
  );
}

.branch-healthy::before {
  content: "";
  position: absolute;
  inset: -5px 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 15px,
    rgba(72, 246, 178, 0.22) 16px 17px
  );
}

.branch-disease {
  top: 75%;
  background: linear-gradient(
    90deg,
    rgba(255, 174, 92, 0.2),
    var(--amber),
    rgba(255, 174, 92, 0.2)
  );
}

.branch-disease::before {
  content: "";
  position: absolute;
  inset: -5px 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 15px,
    rgba(255, 174, 92, 0.22) 16px 17px
  );
}


/* =========================================================
   Fish moving through output branches (desktop)
   ========================================================= */

.fish-healthy {
  background: var(--green);
  color: #061b22;
  box-shadow: 0 0 14px rgba(72, 246, 178, 0.45);
  animation: fishFlowHealthy 3.2s linear infinite;
}

.fish-disease {
  background: var(--amber);
  color: #061b22;
  box-shadow: 0 0 14px rgba(255, 174, 92, 0.45);
  animation: fishFlowDisease 3.2s linear infinite;
}


/* =========================================================
   Output boxes (desktop)
   ========================================================= */

.outcomes {
  position: relative;
  width: 100%;
  height: 240px;
  display: block;
}

.outcome {
  position: absolute;
  left: 0;
  right: 0;
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  background: #08232b;
}

.outcome::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.outcome-healthy {
  top: 0;
  border-color: rgba(72, 246, 178, 0.36);
  color: var(--green);
}

.outcome-disease {
  bottom: 0;
  border-color: rgba(255, 174, 92, 0.36);
  color: var(--amber);
}

.outcome small {
  color: #79979c;
  font: 700 7px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.12em;
}

.outcome strong {
  color: #dbe8ea;
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.05em;
}

.outcome b {
  position: absolute;
  right: 9px;
  top: 9px;
  color: currentColor;
  font: 700 7px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}


/* =========================================================
   Legend
   ========================================================= */

.sorter-legend {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
  border-top: 1px solid var(--line);
  color: #728f94;
  font: 650 8px/1.3 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.04em;
}

.sorter-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sorter-legend span:last-child {
  margin-left: auto;
  text-align: right;
}

.sorter-legend i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
}

.legend-white { background: #ffffff; }
.legend-green { background: var(--green); }
.legend-amber { background: var(--amber); }


/* =========================================================
   Animations
   ========================================================= */

@keyframes scanner {
  0%, 100% { top: 22%; opacity: 0.3; }
  50% { top: 78%; opacity: 1; }
}

@keyframes fishFlow {
  0% { left: -24px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% + 24px); opacity: 0; }
}

@keyframes fishFlowHealthy {
  0% { left: -24px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% + 24px); opacity: 0; }
}

@keyframes fishFlowDisease {
  0% { left: -24px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% + 24px); opacity: 0; }
}

@keyframes fishFlowVertical {
  0% { top: -18px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: calc(100% + 18px); opacity: 0; }
}


/* =========================================================
   Responsive — tablet
   ========================================================= */

@media (max-width: 1000px) {

  .sorter-canvas {
    grid-template-columns:
      minmax(115px, 140px)
      minmax(45px, 1fr)
      minmax(145px, 170px)
      minmax(60px, 1fr)
      minmax(160px, 190px);
    padding: 45px 28px;
  }

  .machine { min-height: 155px; }
  .machine strong { font-size: 12px; }

  .outcome {
    min-height: 88px;
    padding: 13px 14px;
  }

  .outcome strong { font-size: 11px; }

  .sorter-legend { gap: 16px; }

}


/* =========================================================
   Responsive — mobile
   ========================================================= */

@media (max-width: 780px) {

  .sorter-canvas {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    min-height: auto !important;
    padding: 32px 24px 36px !important;
  }

  /* Machines */

  .machine {
    width: min(100%, 230px) !important;
    justify-self: center !important;
    min-height: 125px !important;
    padding: 18px !important;
  }

  .machine::before,
  .machine::after {
    display: none !important;
  }

  /* Incoming flow: grader -> inspect module */

  .flow-input {
    width: 2px !important;
    height: 55px !important;
    justify-self: center !important;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.18)
    ) !important;
  }

  .flow-input::before {
    inset: 0 -5px !important;
    background: repeating-linear-gradient(
      to bottom,
      transparent 0 15px,
      rgba(255, 255, 255, 0.24) 16px 17px
    ) !important;
  }

  .flow-input .flow-fish {
    top: -18px;
    left: 50% !important;
    transform: translateX(-50%) rotate(90deg) !important;
    animation: fishFlowVertical 3.2s linear infinite !important;
  }

  /* Branch zone: two vertical lines dropping from a center
     junction straight down into the two boxes below, aligned
     at 25% / 75% to match each box's horizontal center */

  .branch-zone {
    position: relative !important;
    width: 100% !important;
    max-width: 360px !important;
    height: 70px !important;
    min-height: 0 !important;
    margin: 24px auto 0 !important;
    padding: 0 !important;
    align-self: auto !important;
  }

  .split-node {
    left: 50% !important;
    top: 0 !important;
    transform: translate(-50%, -50%) !important;
  }

  .split-node::before {
    left: 50% !important;
    top: 0 !important;
    width: 1px !important;
    height: 22px !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.6),
      transparent
    ) !important;
  }

  .branch-line {
    position: absolute !important;
    left: 25% !important;
    right: auto !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 2px !important;
    height: auto !important;
    transform: translateX(-50%) !important;
    overflow: visible !important;
  }

  .branch-disease {
    left: 75% !important;
  }

  .branch-healthy {
    background: linear-gradient(
      to bottom,
      rgba(72, 246, 178, 0.2),
      var(--green),
      rgba(72, 246, 178, 0.2)
    ) !important;
  }

  .branch-healthy::before {
    inset: 0 -5px !important;
    background: repeating-linear-gradient(
      to bottom,
      transparent 0 15px,
      rgba(72, 246, 178, 0.22) 16px 17px
    ) !important;
  }

  .branch-disease {
    background: linear-gradient(
      to bottom,
      rgba(255, 174, 92, 0.2),
      var(--amber),
      rgba(255, 174, 92, 0.2)
    ) !important;
  }

  .branch-disease::before {
    inset: 0 -5px !important;
    background: repeating-linear-gradient(
      to bottom,
      transparent 0 15px,
      rgba(255, 174, 92, 0.22) 16px 17px
    ) !important;
  }

  .fish-healthy,
  .fish-disease {
    top: -18px;
    left: 50% !important;
    transform: translateX(-50%) rotate(90deg) !important;
  }

  .fish-healthy {
    animation: fishFlowVertical 3s linear infinite !important;
  }

  .fish-disease {
    animation: fishFlowVertical 3s linear infinite !important;
    animation-delay: 1.4s !important;
  }

  /* Outputs: half-width, side by side, with a visible divider */

  .outcomes {
    position: relative !important;
    width: 100% !important;
    max-width: 360px !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    justify-self: center !important;
    margin-top: 6px !important;
  }

  .outcome {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    min-height: 82px !important;
  }

  .outcome-healthy {
    border-right: none !important;
  }

  .outcome-disease {
    border-left: none !important;
  }

  .outcome::before {
    display: none !important;
  }

  .outcomes::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: -10px !important;
    bottom: -10px !important;
    width: 2px !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(to bottom, var(--green), var(--amber)) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3) !important;
    z-index: 2 !important;
  }

  /* Legend */

  .sorter-legend {
    flex-wrap: wrap !important;
    min-height: auto !important;
    padding: 16px 18px !important;
    gap: 12px 18px !important;
  }

  .sorter-legend span:last-child {
    width: 100% !important;
    margin-left: 0 !important;
    text-align: left !important;
  }

}


@media (max-width: 480px) {

  .sorter-topline {
    min-height: 44px !important;
    padding: 0 14px !important;
    font-size: 7px !important;
  }

  .sorter-topline b { gap: 6px !important; }

  .sorter-canvas { padding: 26px 16px 30px !important; }

  .machine { width: min(100%, 220px) !important; }

  .branch-zone { max-width: 100% !important; }

  .outcomes {
    width: 100% !important;
    max-width: 100% !important;
  }

  .sorter-legend { padding: 14px !important; }

}


/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .scanner,
  .flow-fish {
    animation: none;
  }
}


/* Projects */
.projects { background: #031419; }
.project-grid { display: grid; grid-template-columns: 1.3fr .85fr .85fr; gap: 14px; }
.project-card { position: relative; min-height: 380px; overflow: hidden; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, #0a2931, #061c22); transition: transform .4s var(--ease), border-color .4s; }.project-card:hover { transform: translateY(-7px); border-color: rgba(72,246,178,.33); }.project-card > * { position: relative; z-index: 2; }.project-card small { margin-top: auto; color: var(--green); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .13em; }.project-card h3 { margin: 18px 0 13px; font-size: clamp(1.7rem, 2.7vw, 2.7rem); }.project-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.72; }.project-card.featured { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; align-items: center; background: radial-gradient(circle at 20% 40%, rgba(53,201,239,.1), transparent 36%), linear-gradient(145deg, #0b3038, #061c22); }.project-card.featured small { margin-top: 0; }.project-card.featured a { display: inline-flex; gap: 30px; margin-top: 26px; color: #dceae9; font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }.project-card.featured a:hover { color: var(--green); }
.project-orbit { position: relative; width: min(100%, 230px); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(53,201,239,.24); border-radius: 50%; animation: rotate 24s linear infinite; }.project-orbit::before { content: ""; position: absolute; inset: 19%; border: 1px dashed rgba(72,246,178,.34); border-radius: 50%; }.project-orbit::after { content: ""; position: absolute; inset: 39%; border: 1px solid rgba(53,201,239,.32); border-radius: 50%; background: rgba(53,201,239,.05); }.project-orbit span { z-index: 2; color: var(--green); font: 700 11px/1 ui-monospace, monospace; letter-spacing: .1em; }.project-orbit i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px currentColor; }.project-orbit i:first-child { top: 14%; left: 19%; }.project-orbit i:nth-child(2) { right: 2%; top: 47%; background: var(--green); }.project-orbit i:nth-child(3) { bottom: 10%; left: 28%; background: var(--blue); }
/* =========================================================
   Innovation Lab icons
   ========================================================= */

.project-glyph {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: block;
  border: 1px solid rgba(72,246,178,.28);
  border-radius: 50%;
  color: var(--green);
  transition: transform .35s var(--ease), border-color .35s;
  margin-bottom: 28px;
}

.project-card:hover .project-glyph {
  transform: translateY(-3px);
  border-color: rgba(72,246,178,.5);
}


/* =========================================================
   WATER / AQUACULTURE ENVIRONMENT
   ========================================================= */

.glyph-water i {
  position: absolute;
  left: 9px;
  width: 34px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-radius: 50%;
}

.glyph-water i:nth-child(1) {
  top: 16px;
  opacity: .95;
}

.glyph-water i:nth-child(2) {
  top: 23px;
  left: 12px;
  width: 30px;
  opacity: .65;
}

.glyph-water i:nth-child(3) {
  top: 30px;
  left: 9px;
  width: 34px;
  opacity: .35;
}


/* =========================================================
   SYSTEM / AI / AUTOMATION
   ========================================================= */

.glyph-system i {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: #071f26;
  z-index: 2;
}

.glyph-system::before,
.glyph-system::after {
  content: "";
  position: absolute;
  background: currentColor;
  opacity: .38;
}

.glyph-system::before {
  width: 28px;
  height: 1px;
  left: 13px;
  top: 26px;
}

.glyph-system::after {
  width: 1px;
  height: 28px;
  left: 26px;
  top: 13px;
}

.glyph-system i:nth-child(1) {
  top: 9px;
  left: 23px;
}

.glyph-system i:nth-child(2) {
  top: 23px;
  left: 9px;
}

.glyph-system i:nth-child(3) {
  top: 23px;
  right: 8px;
}

.glyph-system i:nth-child(4) {
  bottom: 8px;
  left: 23px;
}

/* =========================================================
   START WITH THE PROBLEM — target icon
   ========================================================= */

.project-problem-icon {
  position: relative;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  color: var(--green);
}

.project-problem-icon::before,
.project-problem-icon::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(72, 246, 178, .32);
  border-radius: 50%;
}

.project-problem-icon::before {
  inset: 18px;
}

.project-problem-icon::after {
  inset: 47px;
  border-color: rgba(53, 201, 239, .45);
  background: rgba(53, 201, 239, .035);
}

.project-problem-icon span {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(72, 246, 178, .55);
}

.project-problem-icon span::before,
.project-problem-icon span::after {
  content: "";
  position: absolute;
  background: currentColor;
  opacity: .55;
}

.project-problem-icon span::before {
  width: 68px;
  height: 1px;
  left: -29px;
  top: 4px;
}

.project-problem-icon span::after {
  width: 1px;
  height: 68px;
  left: 4px;
  top: -29px;
}


/* subtle interaction */
.project-card:hover .project-problem-icon {
  transform: scale(1.04);
}

.project-problem-icon {
  transition: transform .4s var(--ease);
}

/* Insights */
.insights { background: #061a20; }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.insight-card { overflow: hidden; display: flex; flex-direction: column; min-height: 550px; padding: 12px 12px 28px; border: 1px solid var(--line); border-radius: 18px; background: rgba(5,25,31,.7); transition: transform .4s var(--ease), border-color .4s; }.insight-card:hover { transform: translateY(-7px); border-color: rgba(53,201,239,.32); }
.insight-visual { position: relative; height: 245px; overflow: hidden; margin-bottom: 25px; border-radius: 11px; background-color: #092831; background-image: linear-gradient(rgba(73,193,197,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(73,193,197,.07) 1px, transparent 1px); background-size: 28px 28px; }
.insight-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(53,201,239,.08), transparent 58%); }
.insight-meta { display: flex; justify-content: space-between; gap: 12px; padding: 0 12px; color: var(--green); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .1em; }.insight-meta time { color: #69898f; }
.insight-card h3 { margin: 20px 12px 13px; font-size: 1.55rem; line-height: 1.18; }.insight-card > p { margin: 0 12px 22px; color: var(--muted); font-size: .88rem; line-height: 1.72; }.insight-card > a { display: flex; justify-content: space-between; margin: auto 12px 0; padding-top: 17px; border-top: 1px solid var(--line); color: #bcd0d1; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }.insight-card > a:hover { color: var(--green); }
.contour { position: absolute; left: 50%; top: 50%; width: 70%; height: 33%; transform: translate(-50%,-50%) rotate(-8deg); border: 1px solid rgba(72,246,178,.48); border-radius: 60% 75% 62% 76%; }.c2 { width: 54%; height: 23%; border-style: dashed; border-color: rgba(53,201,239,.52); animation: contour 4s ease-in-out infinite; }.c3 { width: 13px; height: 13px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px var(--green); }
.histogram { position: absolute; inset: 36px 32px 30px; display: flex; align-items: end; gap: 8px; border-left: 1px solid rgba(151,211,213,.2); border-bottom: 1px solid rgba(151,211,213,.2); }.histogram i { flex: 1; height: var(--bar); background: linear-gradient(var(--green), rgba(72,246,178,.06)); animation: barPulse 3s ease-in-out infinite alternate; }.histogram i:nth-child(1){--bar:22%}.histogram i:nth-child(2){--bar:38%}.histogram i:nth-child(3){--bar:58%}.histogram i:nth-child(4){--bar:83%}.histogram i:nth-child(5){--bar:100%}.histogram i:nth-child(6){--bar:73%}.histogram i:nth-child(7){--bar:48%}.histogram i:nth-child(8){--bar:29%}
.mini-sorter { position: absolute; inset: 50% auto auto 50%; width: 75%; height: 34%; transform: translate(-50%,-50%); border: 1px solid rgba(53,201,239,.34); }.mini-sorter::before { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 1px; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }.mini-sorter i { position: absolute; right: 7%; width: 18%; height: 18%; border: 1px solid rgba(72,246,178,.45); background: #0a3037; }.mini-sorter i:first-child { top: 12%; }.mini-sorter i:nth-child(2) { top: 41%; border-color: rgba(255,206,120,.4); }.mini-sorter i:nth-child(3) { bottom: 12%; border-color: rgba(79,157,255,.45); }

/* Company */
/* =========================================================
   COMPANY / ABOUT
   ========================================================= */

.company {
  position: relative;
  min-height: 200px;
  isolation: isolate;
  overflow: hidden;
}

/* ---------- Background ---------- */

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

.company-media {
  z-index: -2;
}

.company-media img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.035);

  filter:
    saturate(.48)
    brightness(.42)
    contrast(1.15);
}

.company-media::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      #031419 0%,
      rgba(3, 20, 25, .94) 28%,
      rgba(3, 20, 25, .78) 62%,
      rgba(3, 20, 25, .52) 100%
    ),
    linear-gradient(
      0deg,
      #031419 0%,
      rgba(3, 20, 25, .12) 55%,
      #031419 100%
    );
}


/* ---------- Main layout ---------- */

.company-shell {
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr .75fr;
  align-items: start;
  gap: clamp(50px, 8vw, 120px);
}

/* ---------- Intro ---------- */

.company-intro {
  max-width: 760px;
}

.company-intro h2 {
  margin: 0 0 34px;
  max-width: 700px;
}

.company-lede {
  max-width: 650px;

  margin: 0;

  color: #c2d3d4;

  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.9;

  text-wrap: balance;
}


/* ---------- Principles ---------- */

.company-principles {
  margin-top: 72px;

  border-top: 1px solid var(--line-strong);
}

.company-principle {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);

  gap: 24px;

  padding: 26px 0;

  border-bottom: 1px solid var(--line);

  transition:
    padding-left .35s ease,
    border-color .35s ease;
}

.company-principle:hover {
  padding-left: 10px;
  border-color: rgba(72, 246, 178, .35);
}

.company-principle-number {
  padding-top: 4px;

  color: var(--green);

  font:
    700 9px/1
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;

  letter-spacing: .12em;
}

.company-principle h3 {
  margin: 0 0 7px;

  font-size: .95rem;
  font-weight: 650;
  letter-spacing: -.01em;
}

.company-principle p {
  max-width: 470px;

  margin: 0;

  color: #78979b;

  font-size: .84rem;
  line-height: 1.7;
}


/* ---------- Quote ---------- */

.company-quote {
  position: relative;

  align-self: end;

  margin: 0;

  padding: 46px 0 0 44px;

  border-left: 1px solid rgba(72, 246, 178, .32);

  background: none;

  box-shadow: none;

  backdrop-filter: none;
}

.company-quote::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 70px;
  height: 1px;

  background: var(--green);

  transform-origin: left;
}

.company-quote-mark {
  display: block;

  height: 42px;

  color: var(--green);

  font:
    300 4.2rem/.7
    Georgia,
    serif;
}

.company-quote p {
  max-width: 470px;

  margin: 0 0 28px;

  color: #e2eded;

  font-size: clamp(1.35rem, 2.25vw, 1.9rem);
  line-height: 1.4;

  letter-spacing: -.035em;
}

.company-quote footer {
  color: #78979b;

  font:
    700 8px/1.4
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;

  letter-spacing: .15em;
}

.company-quote footer span {
  margin: 0 5px;

  color: var(--green);
}


/* =========================================================
   LARGE TABLETS
   ========================================================= */

@media (max-width: 1050px) {

  .company-shell {
    grid-template-columns: 1fr;

    gap: 75px;

    padding-top: 90px;
    padding-bottom: 90px;
  }

  .company-intro {
    max-width: 820px;
  }

  .company-principles {
    max-width: 820px;
  }

  .company-quote {
    max-width: 820px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .company {
    min-height: auto;
  }

  .company-media img {
    object-position: center;
  }

  .company-media img {
    filter:
      saturate(.4)
      brightness(.3)
      contrast(1.12);
  }

  .company-media::after {
    background:
      linear-gradient(
        180deg,
        rgba(3, 20, 25, .94) 0%,
        rgba(3, 20, 25, .88) 45%,
        rgba(3, 20, 25, .97) 100%
      );
  }

  .company-shell {
    grid-template-columns: 1fr;

    gap: 60px;

    padding-top: 75px;
    padding-bottom: 75px;
  }

  .company-intro h2 {
    margin-bottom: 24px;
  }

  .company-lede {
    font-size: 1rem;
    line-height: 1.8;
  }

  .company-principles {
    margin-top: 52px;
  }

  .company-principle {
    grid-template-columns: 42px minmax(0, 1fr);

    gap: 16px;

    padding: 22px 0;
  }

  .company-principle p {
    font-size: .82rem;
  }

  .company-quote {
    padding: 36px 0 0 24px;
  }

  .company-quote p {
    font-size: 1.35rem;
    line-height: 1.45;
  }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {
  .brand-copy small { display: none; }
  .brand-copy b { font-size: 10px; letter-spacing: .1em; }
  .language-trigger { min-width: 128px; min-height: 44px; }
  .language-trigger-option { min-width: 128px; min-height: 42px; padding: 8px 12px 8px 10px; gap: 9px; }
  .language-menu { width: 196px; right: 0; max-width: min(196px, calc(100vw - 16px)); }
  .language-option { min-height: 52px; padding: 10px 11px; grid-template-columns: 21px minmax(0, 1fr) 24px; gap: 10px; }
  .language-trigger-label, .language-name { font-size: 11px; }
  .language-trigger-subtitle, .language-subtitle { font-size: 8px; }
  .language-flag-badge, .language-flag-icon { width: 21px; height: 15px; }
  .menu-toggle { width: 40px; height: 40px; }
  .menu-toggle span { left: 10px; }
  html[lang="fa"] .hero h1 { font-size: clamp(2.85rem, 14vw, 4.25rem); }
}
/* Contact */
.contact { background: linear-gradient(145deg, #061d24, #031419 62%); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: clamp(65px, 10vw, 150px); }.contact-copy { position: sticky; top: 130px; }.contact-copy h2 { margin-bottom: 28px; }.contact-copy > p:not(.eyebrow) { max-width: 520px; color: var(--muted); line-height: 1.85; }
.contact-links { display: grid; gap: 1px; margin-top: 38px; border: 1px solid var(--line); background: var(--line); }.contact-links > * { min-height: 85px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 4px 20px; padding: 17px 20px; background: #071f26; transition: background .3s; }.contact-links > *:hover { background: #0a2931; }.contact-links small { color: #718f94; font: 700 8px/1 ui-monospace, monospace; letter-spacing: .1em; }.contact-links b { font-size: .86rem; font-weight: 580; }.contact-links span { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--green); }
.contact-form { padding: clamp(25px, 4vw, 44px); border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(8,31,38,.72); box-shadow: var(--shadow); }.form-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 33px; padding-bottom: 17px; border-bottom: 1px solid var(--line); color: var(--green); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .12em; }.form-head small { color: #6f8c91; font-size: 7px; }.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.contact-form label { display: grid; margin-bottom: 19px; }.contact-form label > span { margin-bottom: 9px; color: #a9c0c2; font-size: 10px; font-weight: 680; letter-spacing: .05em; text-transform: uppercase; }.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--text); background: #061b21; outline: 0; transition: border-color .25s, box-shadow .25s; }.contact-form input, .contact-form select { height: 52px; padding: 0 15px; }.contact-form textarea { resize: vertical; min-height: 128px; padding: 14px 15px; }.contact-form input::placeholder, .contact-form textarea::placeholder { color: #56747a; }.contact-form select { appearance: none; background-image: linear-gradient(45deg,transparent 50%,#78979b 50%),linear-gradient(135deg,#78979b 50%,transparent 50%); background-position: calc(100% - 18px) 22px,calc(100% - 13px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(72,246,178,.08); }.contact-form label.invalid input, .contact-form label.invalid select, .contact-form label.invalid textarea { border-color: var(--danger); }.field-error { min-height: 15px; margin-top: 5px; color: var(--danger); font-size: 9px; }.form-submit { width: 100%; border: 0; cursor: pointer; }.form-submit i { margin-left: auto; font-style: normal; }.form-note { margin: 13px 0 0; color: #607f84; font-size: .7rem; line-height: 1.5; }.form-success { display: flex; align-items: center; gap: 14px; margin-top: 17px; padding: 14px; border: 1px solid rgba(72,246,178,.26); border-radius: 8px; color: var(--green); background: rgba(72,246,178,.055); }.form-success i { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-style: normal; }.form-success div { display: grid; gap: 3px; }.form-success b { font-size: .8rem; }.form-success span { color: #8caaad; font-size: .7rem; }
/* Contact icons */

.contact-links > * {
  min-height: 85px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-content: center;
  align-items: center;
  gap: 4px 14px;
  padding: 17px 20px;
  background: #071f26;
  transition: background .3s;
}

.contact-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.contact-icon img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.contact-link-content {
  display: grid;
  gap: 4px;
}

.contact-links small {
  color: #718f94;
  font: 700 8px/1 ui-monospace, monospace;
  letter-spacing: .1em;
}

.contact-links b {
  font-size: .86rem;
  font-weight: 580;
}

.contact-links span {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  color: var(--green);
}
/* Footer */
.site-footer { background: #020d11; }.footer-top { min-height: 180px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 35px; }.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }.footer-nav a { color: #8eaaae; font-size: 10px; font-weight: 650; letter-spacing: .06em; transition: color .25s; }.footer-nav a:hover { color: var(--green); }.back-top { justify-self: end; width: 45px; height: 45px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--green); transition: color .3s, background .3s, transform .3s; }.back-top:hover { color: var(--ink); background: var(--green); transform: translateY(-3px); }.footer-bottom { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); color: #57757a; font: 650 8px/1.5 ui-monospace, monospace; letter-spacing: .05em; }.footer-bottom a { color: #739399; text-decoration: underline; text-underline-offset: 3px; }

/* Reveal motion */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0ms); }.js .reveal.in-view { opacity: 1; transform: translateY(0); }

@keyframes heroDrift { from { transform: scale(1.04) translate3d(-.5%,0,0); } to { transform: scale(1.1) translate3d(1.5%,-1%,0); } }
@keyframes causticShift { to { transform: translate3d(4%,-2%,0) scale(1.08); opacity: .34; } }
@keyframes scanDown { from { transform: translateY(-25vh); opacity: 0; } 12%,85% { opacity: 1; } to { transform: translateY(80vh); opacity: 0; } }
@keyframes scrollDrop { 0% { transform: translateY(0); } 100% { transform: translateY(200%); } }
@keyframes barPulse { to { transform: scaleY(.56); opacity: .62; } }
@keyframes blink { 50% { opacity: .35; box-shadow: 0 0 3px var(--green); } }
@keyframes detectPulse { 50% { border-color: rgba(72,246,178,.32); box-shadow: inset 0 0 25px rgba(72,246,178,.1), 0 0 15px rgba(72,246,178,.09); } }
@keyframes dash { to { stroke-dashoffset: -140; } }
@keyframes trackGlow { 50% { opacity: .55; } }
@keyframes scanner { 0%,100% { top: 16%; opacity: .4; } 50% { top: 84%; opacity: 1; } }
@keyframes fishFlow { from { left: -18px; } to { left: calc(100% - 5px); } }
@keyframes rotate { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes contour { 50% { transform: translate(-50%,-50%) rotate(-8deg) scale(1.12); opacity: .45; } }
.project-orbit { animation-name: orbitRotate; }
@keyframes orbitRotate { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 1120px) {
  :root { --header-h: 72px; }
  .desktop-nav { gap: 18px; }
  .desktop-nav a { font-size: 10px; }
  .hero-shell { gap: 40px; }
  .hero-detections {
  position: absolute;
  left: 44%;
  transform: translateX(-50%);
}
  .project-grid { grid-template-columns: 1.3fr 1fr; }.project-card:last-child { grid-column: 1 / -1; min-height: 270px; }
}

@media (max-width: 900px) {
  .shell { width: min(calc(100% - 40px), var(--max)); }
  .header-shell { width: calc(100% - 32px); grid-template-columns: 1fr auto; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { position: relative; display: block; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(3,20,25,.45); cursor: pointer; }
  .menu-toggle span { position: absolute; left: 12px; width: 18px; height: 1px; background: var(--text); transition: transform .3s, top .3s; }.menu-toggle span:first-child { top: 17px; }.menu-toggle span:last-child { top: 25px; }.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
  .mobile-nav { position: fixed; inset: var(--header-h) 0 0; z-index: 99; display: grid; align-content: center; gap: 0; padding: 40px; background: rgba(3,20,25,.97); backdrop-filter: blur(20px); }.mobile-nav[hidden] { display: none; }.mobile-nav a { display: flex; justify-content: space-between; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.5rem, 7vw, 2.4rem); letter-spacing: -.03em; }.mobile-nav a::after { content: "↘"; color: var(--green); font-size: .8em; }
  .hero-shell { grid-template-columns: 1fr; align-items: center; padding-bottom: 100px; }.hero-console { justify-self: start; width: min(100%, 470px); }.hero-detections { inset: 12% -12% 25% 46%; opacity: .62; }
  .section-head, .section-head.compact { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .product-worlds, .technology-grid, .validation-grid, .company-shell, .contact-grid { grid-template-columns: 1fr; }
  .world-card { min-height: 560px; }
  .two-column { grid-template-columns: 1fr; gap: 55px; }.sticky-copy, .contact-copy { position: static; }.process-step:hover { transform: translateY(-4px); }
  .architecture-flow { grid-template-columns: 1fr; gap: 20px; }.architecture-flow em { transform: rotate(90deg); justify-self: start; margin-left: 8px; }
  .project-grid { grid-template-columns: 1fr 1fr; }.project-card.featured { grid-column: 1 / -1; }.project-card:last-child { grid-column: auto; min-height: 380px; }
  .insight-grid { grid-template-columns: 1fr 1fr; }.insight-card:last-child { grid-column: 1 / -1; min-height: 500px; }
  .company { min-height: auto; }.company-quote { max-width: 620px; }
  .footer-top { grid-template-columns: 1fr auto; }.footer-nav { grid-column: 1 / -1; grid-row: 2; padding-bottom: 35px; }.footer-bottom { flex-wrap: wrap; padding-block: 22px; }
}


@media (max-width: 640px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .section { padding-block: 92px; }
  .brand-copy b { font-size: 11px; }.brand-copy small { font-size: 7px; }
  .hero { min-height: 850px; }.hero-shell { padding-top: 130px; padding-bottom: 105px; }.hero h1 { font-size: clamp(3.25rem, 16vw, 5rem); }.hero-lede { font-size: .96rem; }.hero-actions { display: grid; }.hero-actions .button { width: 100%; }.hero-console { padding: 14px; }.hero-detections { display: none; }.scroll-cue { left: auto; right: 14px; }
  .signal-grid { grid-template-columns: 1fr; }.signal-item { min-height: 94px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.signal-item:last-child { border-bottom: 0; }
  h2 { font-size: clamp(2.65rem, 13vw, 4.4rem); }.section-head > p { font-size: .92rem; }
  .world-card { min-height: 515px; }.world-content { inset: auto 22px 25px; }.world-content h3 { font-size: 2.2rem; }.product-icon { margin-bottom: 20px; }
  .comparison { padding: 7px; border-radius: 18px; }.comparison-stage { min-height: 430px; aspect-ratio: 4 / 5; }.comparison-base, .comparison-ai > img { object-position: 48% center; }.ai-overlay { width: 175%; transform: translateX(-20%); }.comparison-control { grid-template-columns: 1fr 1fr; gap: 12px; }.comparison-control input { grid-column: 1 / -1; grid-row: 1; }.comparison-control span:last-child { text-align: right; }.comparison-hud { display: none; }.comparison-divider span { width: 42px; height: 42px; }
  .process-step { grid-template-columns: 42px 1fr; padding: 22px 18px 22px 8px; }.process-step > span { width: 42px; height: 42px; }.process-step > i { display: none; }.process-step h3 { font-size: 1.3rem; }
  .sorter-topline { gap: 12px; }.sorter-topline b { font-size: 0; }.sorter-canvas { padding: 30px 16px; }.outcome { padding: 10px 8px; }.outcome small { font-size: 6px; }.outcome strong { font-size: 8px; }.outcome b { display: none; }
  .hardware-image { min-height: 490px; }.tech-cards { grid-template-columns: 1fr; }.tech-card { min-height: 270px; }.architecture-flow { padding: 30px 24px; }
  .evidence-row { grid-template-columns: 30px 1fr; }.evidence-row > strong { grid-column: 2; justify-self: start; }
  .project-grid { grid-template-columns: 1fr; }.project-card, .project-card:last-child { min-height: 340px; }.project-card.featured { grid-template-columns: 1fr; }.project-orbit { width: 150px; }.project-card.featured small { margin-top: 22px; }
  .insight-grid { grid-template-columns: 1fr; }.insight-card:last-child { grid-column: auto; }.insight-card { min-height: 515px; }
  .company-pillars { grid-template-columns: 1fr; }.company-pillars div { min-height: 78px; }.company-quote { padding: 25px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }.contact-form { padding: 22px 17px; }.form-head { display: grid; }
  .footer-top { min-height: 150px; }.footer-nav { justify-content: flex-start; }.footer-bottom { display: grid; }.footer-bottom span:nth-child(2) { order: -1; color: #7b9ca1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-media img { transform: none; }
}


/* =========================================================
   SOLUTION DROPDOWN
   ========================================================= */

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  position: relative;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 9px 0;

  border: 0;
  background: transparent;

  color: #c2d5d6;

  font: inherit;
  font-size: 11px;
  font-weight: 650;

  letter-spacing: .06em;

  cursor: pointer;
}

.nav-dropdown-trigger span {
  font-size: 12px;

  transition:
    transform .25s var(--ease);
}


/* Green underline */

.nav-dropdown-trigger::after {
  content: "";

  position: absolute;

  left: 0;
  right: 100%;

  bottom: 3px;

  height: 1px;

  background: var(--green);

  transition: right .3s var(--ease);
}


/* Hover */

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
  color: var(--text);
}

.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after {
  right: 0;
}

.nav-dropdown:hover .nav-dropdown-trigger span,
.nav-dropdown:focus-within .nav-dropdown-trigger span {
  transform: rotate(180deg);
}


/* Dropdown box */

.nav-dropdown-menu {
  position: absolute;

  top: calc(100% + 12px);
  left: 50%;

  min-width: 190px;

  transform:
    translateX(-50%)
    translateY(-8px);

  padding: 8px;

  border: 1px solid var(--line-strong);
  border-radius: 10px;

  background: rgba(3,20,25,.96);

  box-shadow:
    0 20px 45px rgba(0,0,0,.35);

  backdrop-filter: blur(14px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity .2s ease,
    transform .2s ease,
    visibility .2s ease;

  z-index: 100;
}


/* Small connector between nav and dropdown */

.nav-dropdown-menu::before {
  content: "";

  position: absolute;

  top: -5px;
  left: 50%;

  width: 9px;
  height: 9px;

  transform: translateX(-50%) rotate(45deg);

  border-left: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);

  background: rgba(3,20,25,.96);
}


/* Invisible hover bridge */
.nav-dropdown-menu::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;

  top: -12px;
  height: 12px;
}

/* Show dropdown */

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform:
    translateX(-50%)
    translateY(0);
}


/* Dropdown links */

.nav-dropdown-menu a {
  display: block;

  padding: 12px 14px;

  border-radius: 6px;

  color: #a9c0c2;

  font-size: 10px;
  font-weight: 650;

  letter-spacing: .04em;

  transition:
    background .2s ease,
    color .2s ease;
}

.nav-dropdown-menu a:hover {
  color: var(--text);

  background: rgba(72,246,178,.08);
}


/* Don't apply your main-nav underline to dropdown links */

.nav-dropdown-menu a::after {
  display: none;
}


/* =========================================================
   PARTNERS
   ========================================================= */

.partners {
  position: relative;
  background: #061b22;
}

.partners .section-head {
  margin-bottom: 42px;
}

.partners-grid {
  width: 100%;

  display: grid;

  /*
   * Automatically creates as many columns as comfortably
   * fit. Adding more logos causes the grid to rearrange
   * automatically.
   */
  grid-template-columns: repeat(
    auto-fit,
    minmax(180px, 1fr)
  );

  gap: 14px;
}


/* =========================================================
   PARTNER LOGO
   ========================================================= */

.partner-logo {
  min-width: 0;
  min-height: 130px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 28px 35px;

  border: 1px solid var(--line);

  border-radius: 12px;

  background: rgba(3, 20, 25, .55);

  transition:
    border-color .25s ease,
    background .25s ease,
    transform .25s ease;
}

.partner-logo img {
  display: block;

  width: 100%;
  max-width: 170px;
  max-height: 65px;

  object-fit: contain;
}


/* Hover */

.partner-logo:hover {
  border-color: var(--line-strong);

  background: rgba(72, 246, 178, .045);

  transform: translateY(-3px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .partners-grid {
    grid-template-columns: repeat(
      auto-fit,
      minmax(160px, 1fr)
    );

    gap: 12px;
  }

  .partner-logo {
    min-height: 115px;
    padding: 24px;
  }

  .partner-logo img {
    max-width: 145px;
    max-height: 55px;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .partners .section-head {
    margin-bottom: 30px;
  }

  .partners-grid {
    grid-template-columns: repeat(
      auto-fit,
      minmax(130px, 1fr)
    );

    gap: 10px;
  }

  .partner-logo {
    min-height: 100px;
    padding: 18px;
  }

  .partner-logo img {
    max-width: 120px;
    max-height: 48px;
  }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

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

  .partner-logo {
    min-height: 90px;
    padding: 14px;
  }

  .partner-logo img {
    max-width: 105px;
    max-height: 42px;
  }
}





/* =========================================================
   AQUASMART
   ========================================================= */

.aquasmart-eyebrow {
  margin: 0 0 32px;
}


/* =========================================================
   DESKTOP — 3 COLUMNS
   ========================================================= */

.aquasmart-layout {
  display: grid;

  grid-template-columns:
    minmax(220px, .8fr)
    minmax(300px, 1fr)
    minmax(320px, 1fr);

  gap: 45px;

  align-items: start;
}


/* =========================================================
   IMAGE — STICKY
   ========================================================= */

.aquasmart-image {
  min-width: 0;

  position: sticky;
  top: calc(var(--header-h) + 25px);

  align-self: start;

  overflow: hidden;

  border: 1px solid var(--line-strong);
  border-radius: 16px;

  background: #081b20;

  box-shadow: var(--shadow);
}

.aquasmart-image img {
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 4 / 5;

  object-fit: cover;
}


/* =========================================================
   TEXT — NOT STICKY
   ========================================================= */

.aquasmart .sticky-copy {
  min-width: 0;

  position: relative;
  top: auto;

  /*
   * Overrides any global .sticky-copy rule.
   */
  align-self: start;
}

.aquasmart .sticky-copy > p:not(.eyebrow) {
  text-align: justify;
  text-justify: inter-word;
}


/* =========================================================
   PROCESS — NOT STICKY
   ========================================================= */

.aquasmart .process-stack {
  min-width: 0;

  position: relative;
  top: auto;

  align-self: start;
}


/* =========================================================
   TABLET
   IMAGE STAYS LEFT + TEXT/PROCESS SCROLL
   ========================================================= */

@media (max-width: 1050px) {

  .aquasmart-layout {
    display: grid;

    grid-template-columns:
      minmax(220px, .72fr)
      minmax(0, 1.28fr);

    grid-template-rows: auto auto;

    column-gap: 35px;
    row-gap: 35px;

    align-items: start;
  }


  /*
   * IMAGE:
   * Left column and spans the text + process area.
   * It remains sticky.
   */

  .aquasmart-image {
    grid-column: 1;
    grid-row: 1 / 3;

    position: sticky;
    top: calc(var(--header-h) + 25px);

    align-self: start;
  }


  /*
   * TEXT:
   * Right column, normal scrolling.
   */

  .aquasmart .sticky-copy {
    grid-column: 2;
    grid-row: 1;

    position: relative;
    top: auto;

    align-self: start;
  }


  /*
   * PROCESS:
   * Right column underneath text, normal scrolling.
   */

  .aquasmart .process-stack {
    grid-column: 2;
    grid-row: 2;

    position: relative;
    top: auto;

    align-self: start;
  }

}


/* =========================================================
   SMALLER TABLET
   ========================================================= */

@media (max-width: 750px) {

  .aquasmart-layout {
    grid-template-columns:
      minmax(190px, .65fr)
      minmax(0, 1.35fr);

    column-gap: 25px;
    row-gap: 30px;
  }

}


/* =========================================================
   MOBILE — ONE COLUMN
   ========================================================= */

@media (max-width: 600px) {

  .aquasmart-eyebrow {
    margin-bottom: 25px;
  }

  .aquasmart-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  /* Image: normal scrolling on mobile */
  .aquasmart-image {
    position: relative;
    top: auto;
    width: 100%;
    order: 1;
  }

  .aquasmart-image img {
    aspect-ratio: 16 / 9;
  }

  /* Text */
  .aquasmart .sticky-copy {
    width: 100%;
    position: relative;
    top: auto;
    order: 2;
  }

  /* Process */
  .aquasmart .process-stack {
    width: 100%;
    position: relative;
    top: auto;
    order: 3;
  }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

  .aquasmart-layout {
    gap: 28px;
  }

  .aquasmart-image {
    top: calc(var(--header-h) + 10px);
  }

  .aquasmart-image img {
    aspect-ratio: 4 / 3;
  }

}

/* =========================================================
   AQUASMART RESULTS / REAL HISTOGRAM
   ========================================================= */

.aquasmart-results {
  position: relative;
  overflow: hidden;
  background: #061b22;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.aquasmart-results-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1.45fr)
    minmax(300px, .75fr);

  gap: 55px;

  align-items: center;
}


/* =========================================================
   HISTOGRAM
   ========================================================= */

.aquasmart-histogram {
  min-width: 0;
  margin: 0;
}

.histogram-frame {
  width: 100%;

  overflow: hidden;

  border: 1px solid var(--line-strong);
  border-radius: 16px;

  background: #081b20;

  box-shadow:
    0 30px 80px rgba(0, 7, 10, .28);
}

.histogram-frame img {
  display: block;

  width: 100%;
  height: auto;

  max-width: 100%;

  object-fit: contain;
}

.aquasmart-histogram figcaption {
  margin-top: 10px;

  color: #6f8b90;

  font: 700 8px/1.4 ui-monospace, monospace;

  letter-spacing: .08em;
}


/* =========================================================
   RIGHT-HAND COPY
   ========================================================= */

.aquasmart-results-copy {
  min-width: 0;
}

.result-tag {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  color: var(--green);

  font: 700 7px/1 ui-monospace, monospace;

  letter-spacing: .11em;
}

.result-tag i {
  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: var(--green);

  box-shadow:
    0 0 8px var(--green);
}

.aquasmart-results-copy h3 {
  max-width: 430px;

  margin-top: 14px;

  color: var(--text);

  font-size: clamp(24px, 2.4vw, 38px);

  line-height: 1.05;

  letter-spacing: -.03em;
}

.aquasmart-results-copy > p {
  max-width: 500px;

  margin-top: 20px;

  color: var(--muted);

  font-size: .95rem;

  line-height: 1.8;

  text-align: justify;

  text-justify: inter-word;
}


/* =========================================================
   RESULT POINTS
   ========================================================= */

.result-points {
  margin-top: 32px;

  border-top: 1px solid var(--line);
}

.result-points > div {
  display: grid;

  grid-template-columns: 30px 1fr;

  gap: 12px;

  padding: 15px 0;

  border-bottom: 1px solid var(--line);
}

.result-points > div > span {
  color: var(--cyan);
  font: 700 20px/1 ui-monospace, monospace;
  padding-top: 3px;
}

.result-points strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.result-points small {
  display: block;
  margin-top: 5px;
  color: #78969b;
  font-size: 11px;
  line-height: 1.6;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .aquasmart-results-layout {
    grid-template-columns:
      minmax(0, 1.1fr)
      minmax(260px, .8fr);

    gap: 35px;
  }

  .aquasmart-results-copy h3 {
    font-size: 28px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .aquasmart-results-layout {
    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 35px;
  }

  .aquasmart-histogram {
    width: 100%;
  }

  .histogram-frame {
    border-radius: 12px;
  }

  .aquasmart-results-copy {
    width: 100%;
  }

  .aquasmart-results-copy h3 {
    max-width: none;

    font-size: 25px;
  }

  .aquasmart-results-copy > p {
    max-width: none;

    font-size: .92rem;
  }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

  .aquasmart-results-layout {
    gap: 28px;
  }

  .aquasmart-results-copy h3 {
    font-size: 22px;
  }

  .result-points > div {
    grid-template-columns: 24px 1fr;

    gap: 9px;
  }

}

/* =========================================================
   BILINGUAL LANGUAGE SWITCHER + PERSIAN TYPOGRAPHY
   ========================================================= */

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.language-switcher {
  position: relative;
  display: inline-block;
  direction: ltr;
  z-index: 20;
}

.language-trigger {
  min-height: 56px;
  min-width: 168px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  position: relative;
}

.language-trigger:active { transform: translateY(1px); }
.language-trigger:focus-visible,
.language-option:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.language-trigger-option {
  min-width: 168px;
  min-height: 52px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 14px;
  border-radius: 17px;
  background: rgba(2, 17, 22, .95);
  border: 1px solid rgba(72,246,178,.92);
  box-shadow: 0 0 0 1px rgba(72,246,178,.52), inset 0 0 0 1px rgba(72,246,178,.18), 0 0 18px rgba(72,246,178,.12);
  transition: box-shadow .22s, background .22s, border-color .22s;
}

.language-trigger:hover .language-trigger-option,
.language-trigger[aria-expanded="true"] .language-trigger-option {
  background: rgba(3, 20, 25, .98);
  box-shadow: 0 0 0 1px rgba(72,246,178,.58), inset 0 0 0 1px rgba(72,246,178,.2), 0 0 22px rgba(72,246,178,.14);
}

.language-trigger-copy,
.language-option-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.language-trigger-label,
.language-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}

.language-trigger-subtitle,
.language-subtitle {
  color: #9fb0b3;
  font-size: 9px;
  line-height: 1.1;
  white-space: nowrap;
}

.language-flag-badge {
  width: 22px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255,255,255,.96);
  box-shadow: inset 0 0 0 1px rgba(4,24,27,.12), 0 4px 10px rgba(0,0,0,.16);
  overflow: hidden;
}

.language-flag-icon {
  display: block;
  width: 22px;
  height: 16px;
}

.language-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  color: var(--green);
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
  transition: transform .24s var(--ease);
}

.language-trigger[aria-expanded="true"] .language-chevron {
  transform: translateY(-50%) rotate(0deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 226px;
  max-width: min(226px, calc(100vw - 24px));
  padding: 10px;
  border-radius: 18px;
  background: rgba(2, 17, 22, .97);
  border: 1px solid rgba(78, 138, 131, .24);
  box-shadow: 0 18px 44px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  animation: languageMenuIn .18s ease-out both;
}

.language-menu[hidden] { display: none; }

@keyframes languageMenuIn {
  from { opacity: 0; transform: translateY(-5px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.language-option {
  width: 100%;
  min-height: 60px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background .22s, border-color .22s, box-shadow .22s;
}

.language-option + .language-option { margin-top: 7px; }

.language-option:hover {
  background: rgba(255,255,255,.04);
}

.language-option.active {
  background: rgba(72,246,178,.06);
  border-color: rgba(72,246,178,.95);
  box-shadow: 0 0 0 1px rgba(72,246,178,.52), inset 0 0 0 1px rgba(72,246,178,.18), 0 0 18px rgba(72,246,178,.12);
}

.language-check {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border-radius: 999px;
  border: 1px solid rgba(72,246,178,.38);
  color: var(--green);
  font-size: 13px;
  line-height: 1;
  background: rgba(0,0,0,.18);
  opacity: 0;
  transform: scale(.8);
  transition: opacity .2s, transform .2s;
}

.language-option.active .language-check {
  opacity: 1;
  transform: scale(1);
}


/* Keep the original left-to-right composition intact while Persian text itself is RTL. */
html[lang="fa"] body { direction: ltr; font-family: Tahoma, "Segoe UI", Arial, sans-serif; }
html[lang="fa"] :where(h1, h2, h3) { letter-spacing: 0; line-height: 1.18; }
/* Apply RTL to text-bearing elements, not structural flex/grid containers, so the original composition stays unchanged. */
html[lang="fa"] :where(
  h1, h2, h3, p, figcaption,
  .process-step small, .process-step strong,
  .result-points strong, .result-points small,
  .machine small, .machine strong, .outcome small, .outcome strong, .outcome b,
  .project-card > small, .insight-meta > span, .insight-meta > time,
  .company-principle h3, .company-quote p,
  .contact-form label > span, .field-error, .form-note, .form-success div,
  .contact-link-content small, .footer-bottom
) {
  direction: rtl;
  text-align: right;
}
html[lang="fa"] :where(.eyebrow, .button, .text-link, .desktop-nav a, .nav-dropdown-trigger, .contact-form label > span, .form-head, .insight-meta) {
  letter-spacing: 0;
  text-transform: none;
}
html[lang="fa"] :where(.button, .text-link, .eyebrow, .desktop-nav, .nav-dropdown-trigger, .mobile-nav, .console-topline, .console-readout, .comparison-control, .sorter-topline, .sorter-legend, .form-head, .contact-form, .result-points) {
  direction: ltr;
}
html[lang="fa"] .hero h1 { font-size: clamp(3.5rem, 6.1vw, 6.4rem); }
html[lang="fa"] h2 { font-size: clamp(2.35rem, 4.5vw, 4.85rem); }
html[lang="fa"] .eyebrow { font-family: Tahoma, "Segoe UI", Arial, sans-serif; }
html[lang="fa"] .brand { direction: ltr; }
html[lang="fa"] .brand-copy b { direction: ltr; text-align: left; }
html[lang="fa"] .brand-copy small { direction: rtl; text-align: left; letter-spacing: 0; font-size: 10px; }
html[lang="fa"] .language-switcher { direction: ltr; }
html[lang="fa"] .language-trigger { direction: ltr; font-family: Tahoma, "Segoe UI", Arial, sans-serif; }
html[lang="fa"] .language-trigger-label,
html[lang="fa"] .language-trigger-subtitle,
html[lang="fa"] .language-option-copy,
html[lang="fa"] .language-name,
html[lang="fa"] .language-subtitle { text-align: left; }
html[lang="fa"] .language-option { font-family: Tahoma, "Segoe UI", Arial, sans-serif; }
html[lang="fa"] .contact-form input,
html[lang="fa"] .contact-form textarea,
html[lang="fa"] .contact-form select { direction: rtl; text-align: right; }
html[lang="fa"] .contact-form input[type="email"] { direction: ltr; text-align: left; }
html[lang="fa"] .contact-form select {
  padding-left: 40px;
  background-position: 18px 22px, 13px 22px;
}
html[lang="fa"] .contact-links b,
html[lang="fa"] a[href^="mailto:"],
html[lang="fa"] a[href^="https://t.me"],
html[lang="fa"] a[href^="https://wa.me"] { direction: ltr; text-align: left; }
html[lang="fa"] .form-submit i { margin-left: 0; margin-right: auto; }
html[lang="fa"] .page-progress span { transform-origin: right; }
html[lang="fa"] .comparison-control span:last-child { text-align: left; }
html[lang="fa"] .comparison-control span:first-child { text-align: right; }

/* Move to the compact header before navigation starts colliding on tablets. */
@media (max-width: 1100px) {
  .header-shell { width: calc(100% - 32px); grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
  .desktop-nav, .header-cta { display: none; }
  .header-actions { justify-self: end; }
  .menu-toggle { position: relative; display: block; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(3,20,25,.45); cursor: pointer; }
  .menu-toggle span { position: absolute; left: 12px; width: 18px; height: 1px; background: var(--text); transition: transform .3s, top .3s; }
  .menu-toggle span:first-child { top: 17px; }
  .menu-toggle span:last-child { top: 25px; }
  .menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
  .mobile-nav { position: fixed; inset: var(--header-h) 0 0; z-index: 99; display: grid; align-content: center; gap: 0; padding: clamp(24px, 7vw, 54px); background: rgba(3,20,25,.97); backdrop-filter: blur(20px); overflow-y: auto; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav > a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.35rem, 5.2vw, 2.25rem); letter-spacing: -.03em; }
  .mobile-nav > a::after { content: "↘"; color: var(--green); font-size: .8em; }
  .mobile-nav .nav-dropdown { display: block; border-bottom: 1px solid var(--line); }
  .mobile-nav .nav-dropdown-trigger { width: 100%; justify-content: space-between; padding: 14px 0; font-size: clamp(1.35rem, 5.2vw, 2.25rem); letter-spacing: -.03em; }
  .mobile-nav .nav-dropdown-trigger::after { display: none; }
  .mobile-nav .nav-dropdown-menu {
    position: static;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: none;
    transition: max-height .3s var(--ease), padding .3s var(--ease);
  }
  .mobile-nav .nav-dropdown-menu::before,
  .mobile-nav .nav-dropdown-menu::after { display: none; }
  .mobile-nav .nav-dropdown.is-open .nav-dropdown-menu { max-height: 150px; padding: 0 0 10px; pointer-events: auto; transform: none; }
  .mobile-nav .nav-dropdown-menu a { padding: 9px 14px; font-size: .9rem; color: #9fb8bb; }
}

@media (max-width: 640px) {
  .header-shell { width: calc(100% - 20px); gap: 7px; }
  .brand-mark { width: 40px; height: 40px; }
  .language-trigger { min-width: 152px; min-height: 48px; padding: 8px 11px; gap: 9px; }
  .language-flag-badge { width: 21px; height: 15px; }
  .language-trigger-label { font-size: 11px; min-width: 0; }
  .language-trigger-subtitle { font-size: 8px; }
  .language-menu { width: 216px; max-width: min(216px, calc(100vw - 20px)); }
  .language-option { min-height: 60px; padding: 11px; grid-template-columns: 22px minmax(0, 1fr) 24px; gap: 10px; }
  html[lang="fa"] .brand-copy small { max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 420px) {
  .brand-copy small { display: none; }
  .brand-copy b { font-size: 10px; letter-spacing: .1em; }
  .language-trigger { min-width: 138px; min-height: 44px; padding: 8px 10px; }
  .language-flag-badge { width: 20px; height: 14px; }
  .language-trigger-label { min-width: 0; font-size: 10px; }
  .language-trigger-subtitle { font-size: 8px; }
  .language-menu { width: 204px; right: 0; max-width: min(204px, calc(100vw - 16px)); }
  .menu-toggle { width: 40px; height: 40px; }
  .menu-toggle span { left: 10px; }
  html[lang="fa"] .hero h1 { font-size: clamp(2.85rem, 14vw, 4.25rem); }
}

/* =========================================================
   MOBILE RESPONSIVE HARDENING
   Keeps every section inside the viewport and scales media.
   ========================================================= */
@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  main,
  section,
  .shell,
  .header-shell {
    max-width: 100%;
  }

  .shell {
    width: calc(100% - 28px);
  }

  .hero-shell > *,
  .section-head > *,
  .signal-grid > *,
  .product-worlds > *,
  .two-column > *,
  .aquasmart-layout > *,
  .aquasmart-results-layout > *,
  .technology-grid > *,
  .validation-grid > *,
  .project-grid > *,
  .insight-grid > *,
  .company-shell > *,
  .contact-grid > *,
  .partners-grid > * {
    min-width: 0;
    max-width: 100%;
  }

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

  /* Header: fit brand, language switcher and menu on small phones. */
  .header-shell {
    width: calc(100% - 20px);
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy b {
    font-size: 10px;
  }

  .brand-copy small {
    display: none;
  }

  .header-actions {
    min-width: 0;
    gap: 0;
  }

  .language-trigger {
    min-width: 136px;
    min-height: 46px;
    padding: 0;
    gap: 0;
  }

  .language-trigger-option {
    min-width: 136px;
    min-height: 44px;
    padding: 8px 30px 8px 10px;
    gap: 9px;
    grid-template-columns: 21px minmax(0, 1fr);
    border-radius: 15px;
  }

  .language-flag-badge,
  .language-flag-icon {
    width: 21px;
    height: 15px;
  }

  .language-trigger-label,
  .language-name {
    font-size: 11px;
  }

  .language-trigger-subtitle,
  .language-subtitle {
    font-size: 8px;
  }

  .language-chevron {
    right: 11px;
  }

  .language-menu {
    width: min(210px, calc(100vw - 20px));
    right: 0;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  /* Hero */
  .hero {
    min-height: auto;
  }

  .hero-shell {
    width: calc(100% - 28px);
    padding-top: 112px;
    padding-bottom: 88px;
    gap: 34px;
  }

  .hero-copy,
  .hero-console {
    width: 100%;
    max-width: 100%;
  }

  .hero h1,
  html[lang="fa"] .hero h1 {
    font-size: clamp(2.85rem, 14vw, 3.75rem);
    overflow-wrap: anywhere;
  }

  .hero-lede {
    max-width: 100%;
    font-size: .94rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-console {
    justify-self: stretch;
    padding: 12px;
  }

  .console-readout div {
    min-width: 0;
    gap: 10px;
  }

  .console-readout strong {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .histogram-wrapper {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 7px;
    height: 165px;
  }

  .histogram-x-axis,
  .histogram-y-axis {
    font-size: 6px;
  }

  .scroll-cue {
    display: none;
  }

  /* The three desktop signal columns must become a real mobile stack. */
  .signal-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .signal-item {
    width: 100%;
    min-width: 0;
    min-height: 88px;
    padding: 20px 18px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .signal-item:last-child {
    border-bottom: 0;
  }

  .signal-item div,
  .signal-item strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  /* Section typography and cards */
  .section {
    padding-block: 76px;
  }

  h2,
  html[lang="fa"] h2 {
    font-size: clamp(2.25rem, 11.5vw, 3.35rem);
    overflow-wrap: anywhere;
  }

  .section-head {
    width: 100%;
    gap: 22px;
  }

  .section-head > p {
    max-width: 100%;
  }

  .world-card {
    min-height: 470px;
    width: 100%;
  }

  .world-content {
    inset: auto 18px 22px;
    max-width: calc(100% - 36px);
  }

  .world-content h3 {
    font-size: clamp(1.85rem, 9vw, 2.3rem);
    overflow-wrap: anywhere;
  }

  /* Comparison: preserve the full 16:9 image on mobile instead of cropping it. */
  .comparison {
    width: 100%;
    max-width: 100%;
    padding: 6px;
    border-radius: 16px;
    overflow: hidden;
  }

  .comparison-stage {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }

  .comparison-base,
  .comparison-ai,
  .comparison-ai > img {
    width: 100%;
    max-width: 100%;
    height: 100%;
  }

  .comparison-base,
  .comparison-ai > img {
    object-fit: contain;
    object-position: center;
  }

  .comparison-control {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 6px 8px;
  }

  .comparison-control input {
    width: 100%;
    min-width: 0;
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .comparison-control span {
    min-width: 0;
    font-size: 7px;
  }

  .comparison-hud {
    display: none;
  }

  .view-label {
    top: 10px;
    padding: 5px 7px;
    font-size: 6px;
  }

  .raw-label { left: 10px; }
  .ai-label { right: 10px; }

  .comparison-handle,
  .comparison-divider span {
    width: 38px;
    height: 38px;
  }

  /* Keep all stacked content and media within their container. */
  .process-step,
  .sorter-visual,
  .hardware-image,
  .architecture-flow,
  .project-card,
  .insight-card,
  .company-quote,
  .contact-form,
  .histogram-frame,
  .aquasmart-image {
    width: 100%;
    max-width: 100%;
  }

  .aquasmart-image {
    top: auto !important;
  }

  .aquasmart-image img,
  .histogram-frame img,
  .hardware-image img {
    width: 100%;
    height: auto;
  }

  .process-step {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 14px 20px 8px;
  }

  .process-step > span {
    width: 38px;
    height: 38px;
  }

  .process-step h3,
  .process-step p {
    overflow-wrap: anywhere;
  }

  .mobile-nav {
    width: 100%;
    max-width: 100%;
    padding: 28px 20px;
  }
}

@media (max-width: 360px) {
  .shell,
  .hero-shell {
    width: calc(100% - 22px);
  }

  .header-shell {
    width: calc(100% - 14px);
    gap: 4px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand-copy b {
    font-size: 9px;
  }

  .language-trigger,
  .language-trigger-option {
    min-width: 122px;
  }

  .language-trigger-option {
    padding-inline: 8px 27px;
  }

  .language-trigger-label,
  .language-name {
    font-size: 10px;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .hero h1,
  html[lang="fa"] .hero h1 {
    font-size: clamp(2.55rem, 13.8vw, 3.2rem);
  }

  h2,
  html[lang="fa"] h2 {
    font-size: clamp(2.05rem, 10.8vw, 2.8rem);
  }
}


/* Tablet comparison guard: the old min-height + aspect-ratio could force the
   16:9 comparison canvas wider than its parent between phone and tablet sizes. */
@media (max-width: 900px) {
  .comparison {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .comparison-stage {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .comparison-base,
  .comparison-ai,
  .comparison-ai > img {
    width: 100%;
    max-width: 100%;
    height: 100%;
  }

  .comparison-base,
  .comparison-ai > img {
    object-fit: contain;
    object-position: center;
  }
}
