/* ============================================================
   Saakash Technologies — design tokens
   ============================================================ */
:root {
  --ink: #09182e;
  --panel: #0d2f52;
  --panel-2: #0a2138;
  --accent: #15fdec;
  --accent-deep: #0aa89f;
  --white: #ffffff;
  --mist: rgba(255, 255, 255, 0.74);
  --steel: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(21, 253, 236, 0.35);

  /* text sitting on top of an --accent-colored surface — flips with theme
     because --accent itself flips (bright cyan needs dark text, deep teal needs light text) */
  --on-accent: #09182e;

  /* fixed tokens — do NOT flip between light/dark theme */
  --surface-fixed: #ffffff;
  --on-surface-fixed: #09182e;

  --font-head: 'Poppins', 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 10px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --grid-tex:
    linear-gradient(rgba(21, 253, 236, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 253, 236, 0.05) 1px, transparent 1px);
}

/* ============================================================
   Light theme — same Saakash palette, but the neon cyan (#15fdec) that
   works on a dark navy background nearly disappears on a light one, so
   light mode uses a deep teal (still clearly "the accent color", just
   dark enough to read) instead. Text-on-accent flips to white to match.
   ============================================================ */
:root[data-theme="light"] {
  --ink: #eef3f7;
  --panel: #e3edf3;
  --panel-2: #dbe7ee;
  --white: #0c1c30;
  --mist: rgba(12, 28, 48, 0.72);
  --steel: rgba(12, 28, 48, 0.52);
  --border: rgba(12, 28, 48, 0.14);
  --accent: #087f78;
  --accent-deep: #055f58;
  --border-strong: rgba(8, 127, 120, 0.4);
  --on-accent: #ffffff;
  --grid-tex:
    linear-gradient(rgba(10, 40, 70, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 40, 70, 0.06) 1px, transparent 1px);
}
/* a few rules use hardcoded rgba() (not tokens) tuned for the dark navy header/nav
   chrome — give light mode its own values for just those */
[data-theme="light"] .site-header { background: rgba(238, 243, 247, 0.75); }
[data-theme="light"] .site-header.scrolled { background: rgba(238, 243, 247, 0.94); }
[data-theme="light"] .site-nav a::before { background: rgba(12, 28, 48, 0.06); }
[data-theme="light"] .site-nav.mobile-open { background: rgba(238, 243, 247, 0.98); }

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--grid-tex), var(--ink);
  background-size: 44px 44px, 44px 44px, auto;
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 600; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; }
iframe { display: block; }

/* global interactive cursor glow — follows the pointer across the whole site */
.global-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 30%), rgba(21, 253, 236, 0.13), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
[data-theme="light"] .global-glow {
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 30%), rgba(8, 127, 120, 0.16), transparent 70%);
}
.global-glow.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce), (hover: none) {
  .global-glow { display: none; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   Type helpers
   ============================================================ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  font-size: 0.7rem;
  color: var(--mist);
  letter-spacing: 0.05em;
}

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse-ring 2.2s var(--ease) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-dot::after { animation: none; opacity: 0.4; }
}

/* ============================================================
   Circuit-trace divider — recurring PCB motif between sections
   ============================================================ */
.circuit-divider {
  height: 28px;
  background-image:
    radial-gradient(circle 2.5px at 42px 14px, var(--accent) 99%, transparent 100%),
    radial-gradient(circle 2.5px at 122px 14px, var(--accent) 99%, transparent 100%),
    linear-gradient(to right, transparent 0, transparent 20px, var(--border-strong) 20px, var(--border-strong) 200px, transparent 200px);
  background-repeat: repeat-x;
  background-position: center;
  background-size: 240px 28px;
  opacity: 0.55;
}

/* ============================================================
   HUD-style corner frame on media
   ============================================================ */
.frame-corners { position: relative; }
.frame-corners::before,
.frame-corners::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
  z-index: 2;
}
.frame-corners::before {
  top: -8px;
  left: -8px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.frame-corners::after {
  bottom: -8px;
  right: -8px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.section-title {
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem);
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

/* big page-name heading used at the top of every inner page */
.page-title {
  color: var(--white);
  font-size: clamp(3rem, 6vw + 1.5rem, 5.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1rem;
}
.page-subtitle {
  color: var(--mist);
  font-size: clamp(1.05rem, 1vw + 0.7rem, 1.3rem);
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
/* Contact — constrain to force a natural two-line wrap */
body[data-page="contact"] .page-subtitle { max-width: 27rem; margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }
/* Contact — compact throughout so the page fits in roughly one viewport */
body[data-page="contact"] .section { padding-block: clamp(1.25rem, 3vh, 2.25rem); }
body[data-page="contact"] .page-head { padding-top: clamp(1rem, 2.5vh, 1.75rem); }
body[data-page="contact"] .page-title { font-size: clamp(2rem, 3vw + 1rem, 3rem); margin-bottom: 0.6rem; }
body[data-page="contact"] .eyebrow { margin-bottom: 0.5rem; }

.accent-text { color: var(--accent); }

.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease);
}
.text-link:hover { border-color: var(--accent); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover {
  background: #4dffef;
  box-shadow: 0 8px 24px rgba(21, 253, 236, 0.35);
}
[data-theme="light"] .btn-accent:hover {
  background: #0aa89f;
  box-shadow: 0 8px 24px rgba(8, 127, 120, 0.35);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--accent); }

.btn-small { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

/* ============================================================
   Scroll reveal + hero load-in
   (progressive enhancement — only active with .js on <html>;
   content stays fully visible without JS)
   ============================================================ */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--stagger, 0) * 80ms);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

html.js .load-in {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  animation: load-in 0.8s var(--ease) forwards;
  animation-delay: calc(var(--load-delay, 0) * 90ms);
}
@keyframes load-in {
  to { opacity: 1; transform: none; }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 24, 46, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(9, 24, 46, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21, 253, 236, 0.7), transparent);
  background-size: 50% 100%;
  animation: header-shimmer 7s linear infinite;
  pointer-events: none;
}
@keyframes header-shimmer {
  from { background-position: -50% 0; }
  to { background-position: 150% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header::after { animation: none; }
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}
.logo span { margin-left: 0.18em; font-weight: 400; }
.logo:hover { transform: scale(1.03); }
.logo-mark {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px rgba(21, 253, 236, 0.7);
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse-ring 2.2s var(--ease) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .logo-mark::after { animation: none; opacity: 0.4; }
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: auto;
  margin-left: 1rem;
  flex-shrink: 1;
  min-width: 0;
}
.site-nav a {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.48rem 0.9rem;
  border-radius: 100px;
  font-size: 0.92rem;
  color: var(--mist);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.site-nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.07);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: -1;
}
.site-nav a:hover:not(.active) { color: var(--accent); }
.site-nav a:hover::before { opacity: 1; transform: scale(1); }
.site-nav a.active { color: var(--on-accent); font-weight: 600; }

.nav-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 100px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(21, 253, 236, 0.45);
  opacity: 0;
  z-index: 0;
  transition: left 0.35s var(--ease), width 0.35s var(--ease), opacity 0.3s var(--ease);
}
.nav-indicator.visible { opacity: 1; }

.header-row > .btn { flex-shrink: 0; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--mist);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--border-strong); transform: scale(1.06); }
.theme-icon { width: 18px; height: 18px; }
.theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin-inline: auto;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero (home page only)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 8vh, 5rem) clamp(2.5rem, 6vh, 3.5rem);
  min-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(60% 60% at 78% 8%, rgba(21, 253, 236, 0.14), transparent 70%), var(--ink);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy { position: relative; }

.hero-title {
  font-size: clamp(1.9rem, 2.1vw + 1.1rem, 3.1rem);
  max-width: 32ch;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.hero-tagline {
  margin-top: 1.25rem;
  color: var(--mist);
  font-size: clamp(1.1rem, 1vw + 0.7rem, 1.3rem);
  max-width: 48ch;
  line-height: 1.55;
}
.hero-tagline strong {
  color: var(--accent);
  font-weight: 600;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.btn-video-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

/* ============================================================
   Hero overview video — modal player
   ============================================================ */
body.modal-open { overflow: hidden; }

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}
.video-modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s var(--ease);
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 24, 0.85);
  backdrop-filter: blur(4px);
}
.video-modal-card {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
}
.video-modal.is-open .video-modal-card { transform: translateY(0) scale(1); }

.video-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--ink);
  color: var(--mist);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.video-modal-close:hover { color: var(--accent); border-color: var(--accent); }

#overviewVideo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #000;
}

.video-modal-note {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--steel);
  text-align: center;
}

/* vertical auto-scrolling stat sidebar */
.hero-stat-sidebar {
  position: relative;
  height: 380px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}
.hero-stat-track {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  animation: marquee-up 22s linear infinite;
}
.hero-stat-sidebar:hover .hero-stat-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hero-stat-track { animation: none; }
}

.hero-stat {
  background: rgba(13, 47, 82, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  backdrop-filter: blur(6px);
}
.hero-stat-number {
  display: block;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.hero-stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--mist);
}
.hero-stat-label-lead { color: var(--accent); font-weight: 600; margin-bottom: 0.6rem; }
.hero-stat-ticker {
  display: block;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--steel);
  transition: opacity 0.3s var(--ease);
}
.hero-stat-ticker-lg {
  font-size: 1.15rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--white);
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}


/* ============================================================
   Explore — teaser grid (home page)
   ============================================================ */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.teaser-card {
  position: relative;
  background: var(--ink);
  padding: 2rem 1.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.25s var(--ease);
}
.teaser-card:hover { background: var(--panel); }
.teaser-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.8rem;
}
.teaser-card h3 { font-size: 1.15rem; }
.teaser-card p { color: var(--mist); font-size: 0.9rem; }
.teaser-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform 0.25s var(--ease);
}
.teaser-card:hover .teaser-arrow { transform: translateX(4px); }

/* ============================================================
   Generic section rhythm
   ============================================================ */
.section { padding-block: clamp(4rem, 9vh, 7rem); }
.section.alt {
  background: var(--grid-tex), var(--panel-2);
  background-size: 44px 44px, 44px 44px, auto;
}
.page-head { position: relative; overflow: hidden; padding-top: clamp(3rem, 7vh, 5rem); }
.page-head > .wrap { position: relative; z-index: 1; }

/* ============================================================
   Page background video — looping Pexels clip behind the top section.
   In .hero it fills the whole (height-bounded) section; in .page-head
   (which on some pages now holds a lot of content, e.g. About) it's a
   fixed-height banner that fades into the normal background below,
   rather than stretching a 15s clip over an very tall section.
   ============================================================ */
.page-bg-video {
  position: absolute;
  overflow: hidden;
  z-index: 0;
}
.hero .page-bg-video { inset: 0; }
.page-head .page-bg-video {
  top: 0;
  left: 0;
  right: 0;
  height: min(62vh, 540px);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}
.page-bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-bg-scrim {
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0.8;
}
@media (prefers-reduced-motion: reduce) {
  .page-bg-video video { display: none; }
}

/* About — tighter, more compact vertical rhythm */
body[data-page="about"] .section { padding-block: clamp(2.5rem, 5vh, 4rem); }
body[data-page="about"] .page-head { padding-top: clamp(2rem, 4vh, 3rem); }

.showcase-section { padding-block: clamp(2.5rem, 5vh, 3.5rem); }

/* ============================================================
   About — statement head + framed accent image
   ============================================================ */
.about-head {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-head-copy h1,
.about-head-copy h2 {
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.4rem);
  margin-bottom: 1.25rem;
}
.about-head-copy .lede { font-size: 1.1rem; color: var(--white); margin-bottom: 1rem; }
.about-head-copy p + p { color: var(--mist); margin-top: 1rem; }

.about-head-media img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.about-head-media:hover img {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px var(--border-strong), 0 20px 45px rgba(21, 253, 236, 0.1);
}
/* smaller, less dominant accent image on About specifically */
.about-head-media.about-head-media-sm { max-width: 16rem; justify-self: end; }
.about-head-media-sm img { aspect-ratio: 1 / 1; }

/* About — founder dossier, full width */
.about-founder {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--border);
}
.founder-intro {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}
.founder-intro .founder-portrait {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}
.founder-intro .founder-portrait img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--border);
}
.founder-intro h2 { font-size: clamp(1.4rem, 1.6vw + 1rem, 1.8rem); margin-bottom: 0.4rem; }

/* About — two horizontal pipelines, side by side, below the page content */
.about-pipelines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}
.about-pipeline-col .eyebrow { margin-bottom: 0.5rem; }
.about-pipeline-heading { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; margin-bottom: 1.25rem; }
.about-pipeline-col .pipeline { margin-top: 0; }

@media (max-width: 980px) {
  .about-pipelines { grid-template-columns: 1fr; }
}

/* ============================================================
   Pipeline — animated process flow (About / Scope of Work)
   ============================================================ */
.pipeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.pipeline-heading {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.pipeline-track {
  position: absolute;
  top: 21px;
  left: 21px;
  right: 21px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.pipeline-fill {
  position: relative;
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  overflow: hidden;
}
html.js .pipeline-fill.reveal {
  opacity: 1;
  transform: scaleX(0);
  transition: transform 0.9s var(--ease);
  transition-delay: 0.2s;
}
html.js .pipeline-fill.reveal.is-visible { transform: scaleX(1); }

.pipeline-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(to right, rgba(9, 24, 46, 0.85) 0 6px, transparent 6px 22px);
  opacity: 0;
  transition: opacity 0.3s var(--ease) 1.1s;
  animation: flow-dash 1s linear infinite;
}
html.js .pipeline-fill.reveal.is-visible::after { opacity: 0.6; }
@keyframes flow-dash {
  to { background-position-x: -22px; }
}

.pipeline-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  text-align: center;
}
.pipeline-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  flex-shrink: 0;
}
.pipeline-label {
  font-size: 0.85rem;
  color: var(--mist);
  max-width: 9.5rem;
}

.pipeline-compact { margin-top: 2.5rem; }
.pipeline-compact .pipeline-dot { width: 34px; height: 34px; font-size: 0.75rem; }
.pipeline-compact .pipeline-track { top: 16px; }
.pipeline-compact .pipeline-label { font-size: 0.8rem; max-width: 8rem; }

/* Scope of Work — only the Presales/Order Execution pair is vertical (it's genuinely
   cramped at half-column width); the top overall-process pipeline stays horizontal. */
.scope-flow .pipeline {
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.scope-flow .pipeline-track {
  top: 0;
  bottom: 0;
  left: 17px;
  right: auto;
  width: 2px;
  height: auto;
}
.scope-flow .pipeline-fill {
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
}
html.js .scope-flow .pipeline-fill.reveal {
  opacity: 1;
  transform: scaleY(0);
  transition: transform 0.9s var(--ease);
  transition-delay: 0.2s;
}
html.js .scope-flow .pipeline-fill.reveal.is-visible { transform: scaleY(1); }
.scope-flow .pipeline-fill::after {
  background-image: repeating-linear-gradient(to bottom, rgba(9, 24, 46, 0.85) 0 6px, transparent 6px 22px);
  animation: flow-dash-vertical 1s linear infinite;
}
@keyframes flow-dash-vertical {
  to { background-position-y: -22px; }
}
.scope-flow .pipeline-node { flex-direction: row; text-align: left; }
.scope-flow .pipeline-label { max-width: none; }

/* ============================================================
   Founder — compact dossier: circular portrait + credential timeline
   ============================================================ */
.founder-portrait img {
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.founder-portrait:hover img {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px var(--border-strong), 0 20px 45px rgba(21, 253, 236, 0.1);
}

.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 1.75rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.3rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--accent);
}
.timeline-marker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.timeline-item p { color: var(--mist); font-size: 0.98rem; }

/* ============================================================
   Portfolio — spec-sheet accordion (left) + vertical scroller (right)
   ============================================================ */
.portfolio-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.icon-sidebar {
  position: sticky;
  top: 100px;
  height: 600px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
}
.icon-sidebar-track {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: marquee-up 24s linear infinite;
}
@keyframes marquee-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.icon-sidebar:hover .icon-sidebar-track { animation-play-state: paused; }
.icon-sidebar .icon-tile { width: 100%; height: 150px; }
@media (prefers-reduced-motion: reduce) {
  .icon-sidebar-track { animation: none; }
  .icon-sidebar { height: auto; overflow: visible; mask-image: none; -webkit-mask-image: none; position: static; }
}

.spec-list {
  border-top: 1px solid var(--border);
}
.spec-row { border-bottom: 1px solid var(--border); }

.spec-row-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: none;
  border: none;
  color: var(--white);
  text-align: left;
  padding-block: 1.35rem;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.spec-row-head:hover { color: var(--accent); }

.spec-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  width: 2rem;
  flex-shrink: 0;
}
.spec-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  flex: 1;
}
.spec-toggle {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.spec-toggle::before,
.spec-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.spec-toggle::before { width: 14px; height: 2px; }
.spec-toggle::after { width: 2px; height: 14px; }
.spec-row.is-open .spec-toggle::after,
.spec-row:hover .spec-toggle::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.spec-row-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.spec-row.is-open .spec-row-body,
.spec-row:hover .spec-row-body { max-height: 20rem; }

.spec-row-body ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.25rem 0 1.5rem 3.25rem;
}
.spec-row-body li {
  font-size: 0.92rem;
  color: var(--mist);
  position: relative;
  padding-left: 1rem;
}
.spec-row-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.portfolio-footnote {
  margin-top: 2.25rem;
  color: var(--mist);
  font-size: clamp(1.05rem, 1vw + 0.75rem, 1.25rem);
  line-height: 1.6;
  max-width: 52rem;
}
.portfolio-footnote strong { color: var(--white); font-weight: 600; }

/* ============================================================
   Partner offerings — tabbed panels
   ============================================================ */
.partner-tab-list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 2.25rem;
}
.partner-tab {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--mist);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.partner-tab img {
  height: 20px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  background: var(--surface-fixed);
  border-radius: 3px;
  padding: 2px 4px;
}
.partner-tab:hover { color: var(--white); border-color: var(--border-strong); }
.partner-tab.is-active {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

.partner-panel { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.partner-panel[hidden] { display: none; }
.partner-panel.panel-enter { opacity: 0; transform: translateY(10px); }

.partner-panel-head h3 {
  font-size: clamp(1.4rem, 1.6vw + 1rem, 1.9rem);
  margin-bottom: 0.75rem;
}
.partner-panel-head p {
  color: var(--mist);
  max-width: 46rem;
  font-size: 1.02rem;
}

.partner-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partner-stats div { display: flex; flex-direction: column; gap: 0.3rem; }
.partner-stats span {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: clamp(1.15rem, 1vw + 0.9rem, 1.4rem);
}
.partner-stats small { color: var(--steel); font-size: 0.78rem; }

.partner-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2.5rem;
  margin-top: 2rem;
}
.partner-categories strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.partner-categories p { color: var(--mist); font-size: 0.9rem; }

.partner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.partner-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--mist);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 0.35rem 0.8rem;
}

.partner-footnote {
  margin-top: 1.5rem;
  color: var(--steel);
  font-size: 0.88rem;
}

/* ============================================================
   Scope of work — connected pipelines + supporting media
   ============================================================ */
.scope-flow {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.scope-flow-joint {
  align-self: center;
  width: 1px;
  height: 24px;
  background: var(--border-strong);
}

/* Scope of Work — Presales & Order Execution as parallel columns, not stacked */
body[data-page="scope"] .scope-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(2rem, 5vw, 3.5rem);
}
body[data-page="scope"] .scope-flow-joint { display: none; }
body[data-page="scope"] .scope-flow .pipeline-compact:last-child {
  border-left: 1px solid var(--border);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 760px) {
  body[data-page="scope"] .scope-flow { grid-template-columns: 1fr; }
  body[data-page="scope"] .scope-flow .pipeline-compact:last-child {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
  }
}

/* Scope of Work — tighter vertical rhythm */
body[data-page="scope"] .section { padding-block: clamp(2.5rem, 5vh, 4rem); }
body[data-page="scope"] .page-head { padding-top: clamp(2rem, 4vh, 3rem); }
body[data-page="scope"] .page-head .pipeline { margin-top: clamp(2rem, 4vw, 2.75rem); }

.scope-approach {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.scope-media img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.scope-media:hover img {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px var(--border-strong), 0 20px 45px rgba(21, 253, 236, 0.1);
}
.scope-approach-body .timeline { margin-top: 2rem; margin-bottom: 1.5rem; }
.scope-approach-body .timeline-item p { color: var(--white); font-weight: 600; font-size: 1.05rem; }

/* ============================================================
   Auto-scrolling marquees (collaborations, showcase, partner products)
   ============================================================ */
.marquee {
  overflow: hidden;
  padding-block: 0.5rem;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}
.marquee-track-a { animation: marquee-left 32s linear infinite; }
.marquee-track-b { animation: marquee-right 26s linear infinite; }
@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; }
  .marquee-track { animation: none !important; flex-wrap: wrap; width: 100%; justify-content: center; }
}

.logo-tile {
  background: var(--surface-fixed);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  width: 180px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.logo-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(21, 253, 236, 0.16), 0 0 0 1px var(--border-strong);
}
.logo-tile img {
  max-height: 46px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.72);
  transition: filter 0.3s var(--ease);
}
.logo-tile:hover img { filter: grayscale(0) opacity(1); }

.product-tile {
  background: var(--surface-fixed);
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  width: 200px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.product-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(21, 253, 236, 0.16), 0 0 0 1px var(--border-strong);
}
.product-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }

.marquee-partner {
  margin-block: 1.5rem 2rem;
  padding-block: 0;
}
.marquee-partner .product-tile { height: 110px; width: 160px; padding: 0.65rem; }

.icon-tile {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: 190px;
  height: 170px;
  flex-shrink: 0;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.icon-tile:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--panel);
}
.icon-tile svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-tile .icon-dot { fill: var(--accent); stroke: none; }
.icon-tile .icon-fill { fill: var(--accent); stroke: none; }
.icon-tile span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mist);
  line-height: 1.35;
}

.govt-utilities-label {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--steel);
  text-align: center;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 2rem;
  margin: 1.25rem 0 1.5rem;
  max-width: 34rem;
}
.contact-details dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.35rem;
}
.contact-details dd { margin: 0; font-size: 0.98rem; }
.contact-details a:hover { color: var(--accent); }

.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.contact-qr {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--surface-fixed);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: left;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 0 0 1px var(--border-strong), 0 20px 45px rgba(21, 253, 236, 0.12);
}
.contact-qr:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(21, 253, 236, 0.16);
}
.contact-qr img { flex-shrink: 0; width: 96px; height: 96px; }
.contact-qr p { margin-top: 0; color: var(--on-surface-fixed); font-size: 0.86rem; font-weight: 500; }
.contact-qr p.contact-qr-caption { color: rgba(9, 24, 46, 0.55); font-size: 0.72rem; font-weight: 400; }
.contact-qr-caption + p { margin-top: 0.3rem; }

/* ============================================================
   Map card — real embedded map (contact page)
   ============================================================ */
.map-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.map-card {
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--panel-2);
}
.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.2) contrast(1.05) brightness(0.95);
}
.map-caption {
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--steel);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); padding-block: 2.5rem; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand p { color: var(--steel); font-size: 0.85rem; margin-top: 0.5rem; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { font-size: 0.88rem; color: var(--mist); }
.footer-nav a:hover { color: var(--accent); }
.footer-copy {
  color: var(--steel);
  font-size: 0.8rem;
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ============================================================
   Back to top
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--accent); color: var(--on-accent); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .about-head { grid-template-columns: 1fr; }
  .about-head-media { order: -1; max-width: 22rem; }
  .about-head-media img { aspect-ratio: 16 / 9; }

  .contact-inner { grid-template-columns: 1fr; }

  .scope-approach { grid-template-columns: 1fr; }
  .scope-media { max-width: 22rem; }

  .portfolio-layout { grid-template-columns: 1fr; }
  .icon-sidebar {
    position: static;
    height: auto;
    overflow: hidden;
    margin-top: 2.5rem;
  }
  .icon-sidebar-track {
    flex-direction: row;
    animation: marquee-left 24s linear infinite;
    width: max-content;
  }
  .icon-sidebar .icon-tile { width: 190px; height: 170px; flex-shrink: 0; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-indicator { display: none; }
  .nav-toggle { display: flex; }

  .site-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(9, 24, 46, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem var(--gutter) 2rem;
    gap: 0.5rem;
    margin: 0;
  }
  .site-nav.mobile-open a.active {
    color: var(--accent);
    background: rgba(21, 253, 236, 0.1);
    border: 1px solid rgba(21, 253, 236, 0.3);
  }

  .pipeline { flex-direction: column; align-items: flex-start; gap: 1.75rem; }
  .pipeline-track { top: 0; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
  .pipeline-compact .pipeline-track { left: 17px; }
  .pipeline-fill { width: 100%; height: 100%; transform: scaleY(0); transform-origin: top; }
  html.js .pipeline-fill.reveal { transform: scaleY(0); }
  html.js .pipeline-fill.reveal.is-visible { transform: scaleY(1); }
  .pipeline-node { flex-direction: row; text-align: left; }
  .pipeline-label { max-width: none; }

  .contact-details { grid-template-columns: 1fr; }

  .partner-stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.25rem; }
  .partner-categories { grid-template-columns: 1fr; }

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

  .hero-inner { grid-template-columns: 1fr; }
  .hero-stat-sidebar { height: 320px; }
}

@media (max-width: 640px) {
  .teaser-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .scope-media { width: 60vw; max-width: 220px; }
  .partner-tab span { display: none; }
}
