/* ═══════════════════════════════════════════════════════
   AURAX — LIGHT PREMIUM STYLESHEET
   Editorial light theme
   ═══════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────── */
:root {
  /* WAVÉS-inspired warm neutral palette */
  --bg-page: #F4F1EA;
  --bg-surface: #F6F5F2;
  --bg-white: #FFFFFF;

  --text-primary: #101010;
  --text-secondary: #6B6A67;

  --color-primary: #1B4DFF;
  --color-primary-hover: #1744E8;

  --border-soft: #D6D4CE;
  --shadow-soft: 0 4px 16px rgba(16, 16, 16, 0.06);
  --radius-card: 18px;
  --radius-button: 12px;

  /* Existing site tokens mapped to the new palette */
  --bg-page-2: var(--bg-page);
  --bg-soft: var(--bg-surface);
  --bg-elevated: var(--bg-white);
  --bg-tint: var(--bg-surface);

  --border-1: rgba(214, 212, 206, 0.62);
  --border-2: var(--border-soft);
  --border-3: rgba(16, 16, 16, 0.18);

  --text-hi: var(--text-primary);
  --text-mid: var(--text-secondary);
  --text-low: var(--text-secondary);
  --text-faint: var(--text-secondary);

  --accent: var(--color-primary);
  --accent-dim: rgba(27, 77, 255, 0.08);
  --accent-border: rgba(27, 77, 255, 0.24);
  --accent-strong: var(--color-primary);
  /* Legacy accent alias: now follows the AURAX blue brand accent. */
  --accent-orig: var(--color-primary);
  --accent-orig-dim: rgba(27, 77, 255, 0.08);
  --accent-orig-border: rgba(27, 77, 255, 0.24);

  /* Semantic success remains green; it is not used as a brand accent. */
  --color-success: #047857;
  --color-success-soft: rgba(4, 120, 87, 0.10);
  --color-success-border: rgba(4, 120, 87, 0.28);
  --color-success-fill: #10B981;
  --color-warning: #F59E0B;
  --color-warning-text: #B45309;
  --color-danger: #DC2626;
  --color-danger-text: #B91C1C;
  --accent-on-dark: #7E9AFF;
  --bg-night: #060A16;
  --border-field: #86847E;

  --shadow-card: var(--shadow-soft);
  --shadow-elevated: 0 10px 30px -10px rgba(16, 16, 16, 0.12);

  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Spacing (8px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Layout */
  --container: 1280px;
  --container-wide: 1440px;
  --gutter: 32px;                /* side padding of .container; steps down on phones (see below) */
  --radius-sm: 6px;
  --radius: var(--radius-button);
  --radius-lg: var(--radius-card);
  --radius-xl: var(--radius-card);
  --radius-2xl: 28px;
  --radius-full: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;
  --dur-fast: 0.3s;
}

/* ─── FONTS (self-hosted, latin subset, variable) ─── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--font-display);
  background: var(--bg-page);
  color: var(--text-hi);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.011em;
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(255, 255, 255, 0.72), transparent 70%);
  background-attachment: fixed;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; }

::selection { background: var(--text-hi); color: white; }

.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.04em; }

/* ─── INTRO PRELOADER ────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
  animation: preloader-failsafe 0.01s linear 6.5s forwards;
}
.preloader.is-hiding { opacity: 0; visibility: hidden; }
/* Failsafe: if script.js never runs (blocked / failed to load) the page must not stay covered. */
/* transform (unlike opacity/visibility) has no transition on this element, so nothing can hold the overlay in place */
@keyframes preloader-failsafe { to { transform: translateY(-100%); opacity: 0; visibility: hidden; pointer-events: none; } }

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
}

.preloader-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 8vw, 104px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-hi);
  white-space: nowrap;
  opacity: 0;
}
.preloader-wordmark em { font-style: normal; color: var(--text-faint); padding: 0 0.05em; }
.preloader-wordmark.is-static { opacity: 1; transition: opacity 0.5s var(--ease); }

.preloader-role {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-mid);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.preloader-role.is-in { opacity: 1; transform: translateY(0); }

body.is-preloading { overflow: hidden; }

@media (max-width: 560px) {
  .preloader-wordmark { font-size: 9vw; }
}
@media (prefers-reduced-motion: reduce) {
  .preloader-wordmark, .preloader-role { opacity: 1 !important; transform: none !important; }
}

/* ─── ACCESSIBILITY ──────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--text-hi);
  color: white;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

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

/* ─── BG LAYERS ──────────────────────────────────── */
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, rgba(16, 16, 16, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 16, 16, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 80%);
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--text-hi);
  z-index: 100;
  transition: width 0.1s linear;
}

/* Custom cursor */
.cursor { display: none; }

/* ─── CONTAINER ──────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}
/* Phones: a little more air around the content (was 20px). One variable drives the containers
   and the project strip below, so they always stay aligned. */
@media (max-width: 640px) { :root { --gutter: 26px; } }
@media (max-width: 360px) { :root { --gutter: 22px; } }

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius-button);
  transition: all var(--dur-fast) var(--ease);
  position: relative;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: white;
  font-weight: 500;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -8px rgba(16, 16, 16, 0.25);
}
.btn-primary svg { transition: transform 0.3s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  background: var(--bg-soft);
  color: var(--text-hi);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  border-color: var(--text-hi);
  background: var(--text-hi);
  color: white;
}
.btn-ghost svg { transition: transform 0.3s var(--ease); }
.btn-ghost:hover svg { transform: translateX(4px); }

.btn-link {
  display: inline-block;
  padding-block: 8px;
  color: var(--text-hi);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity var(--dur-fast) var(--ease);
  font-weight: 500;
}
.btn-link:hover { opacity: 0.6; }

/* ─── PILL / TAG ─────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ─── NAVBAR ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 100;
  padding: 0 16px;
  transition: all var(--dur) var(--ease);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 12px 12px 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  box-shadow: 0 1px 2px rgba(16, 16, 16, 0.04), 0 8px 24px -8px rgba(16, 16, 16, 0.06);
}
.nav.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(16, 16, 16, 0.04), 0 12px 32px -8px rgba(16, 16, 16, 0.10);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;

  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-hi);
}

.logo-mark {
  width: 55px;
  height: 42px;

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

  overflow: hidden;
  border-radius: var(--radius-sm);

  background: #fff;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-hi);
}

.logo-text em {
  color: var(--text-faint);
  font-style: normal;
  padding: 0 4px;
}
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius-full);
  transition: color var(--dur-fast) var(--ease);
}
.nav-link:hover { color: var(--text-hi); }
.nav-link.active { color: var(--text-hi); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-cta { padding: 10px 20px; font-size: 13px; }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: white;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-hi);
  transition: all 0.3s var(--ease);
}
.menu-btn.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { transform: translateY(-0.5px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  background: white;
  border-left: 1px solid var(--border-1);
  z-index: 99;
  transform: translateX(100%);
  visibility: hidden; /* off-canvas links must not be reachable by keyboard / screen readers */
  transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 100px 32px 32px;
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-hi);
  border-bottom: 1px solid var(--border-1);
  transition: color 0.3s, padding 0.3s;
}
.mobile-link::before {
  content: attr(data-num);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}
.mobile-link:hover { padding-left: 8px; }
.mobile-nav-footer {
  padding-top: 32px;
  border-top: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  color: var(--text-mid);
}
.mobile-nav-footer a { display: inline-block; padding-block: 5px; color: var(--text-mid); }
.mobile-nav-footer a:hover { color: var(--text-hi); }
.mobile-socials { display: flex; gap: 16px; flex-wrap: wrap; }
.mobile-socials a { font-family: var(--font-mono); font-size: 12px; }

/* The full desktop nav (8 links + CTA) needs ~1200px. Below that the CTA is dropped,
   below 1100px the links collapse into the drawer (previously the CTA was pushed off-screen). */
@media (max-width: 1199px) { .nav-cta { display: none; } }
@media (max-width: 1100px) {
  .nav-desktop { display: none; }
  .menu-btn { display: flex; }
  .nav-inner { padding: 8px 8px 8px 16px; gap: 12px; }
}
@media (max-width: 480px) {
  .logo { gap: 8px; }
  .logo-mark { width: 44px; height: 34px; }
  .logo-text { font-size: 15px; letter-spacing: 0.5px; }
  .logo-text em { padding: 0 2px; }
}
@media (max-width: 340px) { .logo-text { font-size: 13px; letter-spacing: 0.3px; } }
/* ════════════════════════════════════════════════════
   HERO — photo portrait + typing effect
   ════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  z-index: 1;
  overflow: hidden;
}

.hero-grid-v2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
@media (max-width: 900px) {
  /* minmax(0,1fr): the track may shrink below the portrait's min-content (was 349px wide on a 320px screen) */
  .hero-grid-v2 { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-portrait { order: -1; width: 100%; max-width: min(320px, 100%); margin: 0 auto; }
}

.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.6); opacity: 0; }
}

.hero-title-v2 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-hi);
}
.hero-typing-line {
  display: block;
  font-size: 0.72em;
  font-weight: 400;
  color: var(--text-mid);
  margin-top: 6px;
}
.typing-text { color: var(--text-hi); font-weight: 500; }
.typing-cursor {
  display: inline-block;
  color: var(--accent-orig);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-desc-v2 {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-mid);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-socials-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}
.hero-socials-row .mono { font-size: 11px; color: var(--text-faint); letter-spacing: 0.08em; margin-right: 4px; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: white;
  color: var(--text-mid);
  transition: all var(--dur-fast) var(--ease);
}
.social-icon:hover { background: var(--text-hi); color: white; border-color: var(--text-hi); transform: translateY(-2px); }

/* Portrait */
.hero-portrait {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 420px;
  justify-self: center;
}
.portrait-frame {
  position: absolute;
  inset: -18px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-2xl);
  z-index: 0;
}
.portrait-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-elevated);
  background: var(--bg-soft);
}
.portrait-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  background: linear-gradient(150deg, var(--bg-surface) 0%, var(--bg-white) 100%);
}
.portrait-placeholder .logo-mark { width: 56px; height: 56px; font-size: 22px; border-radius: var(--radius-lg); }
.portrait-placeholder p { font-size: 11.5px; color: var(--text-faint); line-height: 1.6; }

.portrait-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-elevated);
  color: var(--text-hi);
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.portrait-badge.b1 { top: 8%; left: -10%; animation-duration: 7s; }
.portrait-badge.b2 { bottom: 18%; right: -12%; animation-duration: 9s; animation-delay: -3s; }
.portrait-badge.b3 { bottom: -6%; left: 12%; animation-duration: 10s; animation-delay: -5s; color: var(--accent-orig); }
/* two-column hero on narrow desktops: keep the floating badges inside the viewport */
@media (min-width: 901px) and (max-width: 1100px) {
  .portrait-badge.b1 { left: -16px; }
  .portrait-badge.b2 { right: -16px; }
}
@media (max-width: 640px) {
  .portrait-badge { width: 42px; height: 42px; }
  .portrait-badge.b1 { left: -6%; }
  .portrait-badge.b2 { right: -6%; }
}

@media (max-width: 768px) {
  .hero { padding: 130px 0 60px; }
  .hero-cta { flex-wrap: wrap; }
}

/* ════════════════════════════════════════════════════
   STATS
   ════════════════════════════════════════════════════ */
.stats {
  padding: 80px 0;
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  background: var(--bg-soft);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 32px;
  border-left: 1px solid var(--border-1);
}
.stat:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 768px) {
  .stat { padding: 20px 0; border-left: 0; border-top: 1px solid var(--border-1); }
  .stat:first-child, .stat:nth-child(2) { border-top: 0; }
}
.stat-num {
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-hi);
  font-feature-settings: 'tnum';
  display: inline-block;
}
.stat-suffix {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 300;
  color: var(--text-faint);
  line-height: 1;
  display: inline-block;
  margin-left: 2px;
}
.stat-num-group { display: flex; align-items: baseline; }
.stat-label {
  font-size: 11px;
  color: var(--text-low);
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════
   MARQUEE — tech stack strip (two identical groups → seamless loop at any width)
   ════════════════════════════════════════════════════ */
.marquee {
  --marquee-gap: 55px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-1);
  overflow: hidden;
  background: var(--bg-page);
}
.marquee-track {
  display: flex;
  gap: var(--marquee-gap);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-group {
  flex: 0 0 auto;
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--marquee-gap);
  animation: marquee 30s linear infinite;
}
.marquee-group li { display: flex; }
.marquee-group img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(100%);
  transition: 0.3s ease;
}
.marquee-group img:hover { opacity: 1; filter: grayscale(0%); transform: scale(1.1); }
@keyframes marquee {
  to { transform: translateX(calc(-100% - var(--marquee-gap))); }
}

/* ════════════════════════════════════════════════════
   SECTIONS — generic
   ════════════════════════════════════════════════════ */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}
/* One flat background colour (#F4F1EA) for every section — no alternating tones. */
.section, .section-alt { background: var(--bg-page-2); }
@media (max-width: 768px) {
  .section { padding: 80px 0; }
}

.section-head {
  max-width: 980px;
  margin-bottom: 64px;
}
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .title-row { justify-content: center; }
.section-head.with-side {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
  max-width: 100%;
}
@media (max-width: 900px) {
  .section-head.with-side { grid-template-columns: 1fr; gap: 24px; }
}

.title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .title-row { white-space: normal; align-items: flex-start; }
  .pixel-icon { margin-top: 6px; }
}
#solutions .title-row,
#services .title-row {
  align-items: flex-start;
}
#solutions .pixel-icon,
#services .pixel-icon {
  margin-top: 6px;
}



.pixel-icon {
  width: 60px;
  height: 60px;
  display: block;
  flex-shrink: 0;
  image-rendering: pixelated;
}

.section-title {
  font-size: 50px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-hi);
  margin: 0;
}
.section-title strong,
.section-title em { font-weight: 400; }
.section-desc {
  font-size: 15px;
  color: var(--text-mid);
  margin-top: 20px;
  max-width: 480px;
  line-height: 1.55;
}
.section-head.center .section-desc { margin-left: auto; margin-right: auto; }

/* ════════════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════════════ */
.about-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; gap: 32px; }
}
.about-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-card);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(150deg, var(--bg-surface) 0%, var(--bg-white) 100%);
  text-align: center;
}
.about-photo-ph .logo-mark { width: 56px; height: 56px; font-size: 22px; border-radius: var(--radius-lg); }
.about-photo-ph p { font-size: 11.5px; color: var(--text-faint); line-height: 1.6; }
.about-heading {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-hi);
  margin-bottom: 18px;
  line-height: 1.3;
}
.about-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 32px;
  font-weight: 400;
}
.about-lead strong { color: var(--text-hi); font-weight: 600; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  margin-bottom: 32px;
}
.tag {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-hi);
  background: white;
  font-weight: 500;
  transition: all var(--dur-fast) var(--ease);
}
.tag:hover { border-color: var(--text-hi); transform: translateY(-1px); }

.about-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 28px 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
}
@media (max-width: 560px) { .about-stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } }
.about-stat { display: flex; flex-direction: column; gap: 6px; }
.about-stat-num {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-hi);
}
.about-stat-label {
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

.about-side-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .about-side-grid { grid-template-columns: 1fr; } }

.about-card {
  padding: 24px;
  border: 1px solid var(--border-1);
  background: white;
  border-radius: var(--radius-lg);
  transition: all var(--dur-fast) var(--ease);
  box-shadow: var(--shadow-card);
}
.about-card:hover { box-shadow: var(--shadow-elevated); }
.card-label {
  display: block;
  font-size: 11px;
  color: var(--text-low);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 500;
}
.about-card p { color: var(--text-mid); font-size: 14px; line-height: 1.6; }

/* ════════════════════════════════════════════════════
   SOLUTIONS — numbered checklist grid
   ════════════════════════════════════════════════════ */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-1);
  border-left: 1px solid var(--border-1);
}
@media (max-width: 900px) { .checklist-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .checklist-grid { grid-template-columns: 1fr; } }

.checklist-col {
  padding: 40px 36px;
  border-right: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  transition: background var(--dur-fast) var(--ease);
}
.checklist-col:hover { background: rgba(255, 255, 255, 0.6); }
.checklist-num {
  display: block;
  font-size: 13px;
  color: var(--accent-orig);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.checklist-col h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-hi);
  margin-bottom: 8px;
}
.checklist-col > p {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 22px;
}
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--text-mid);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background: var(--accent-orig);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ════════════════════════════════════════════════════
   SKILLS & TECH
   ════════════════════════════════════════════════════ */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) { .skills-layout { grid-template-columns: 1fr; } }

.skills-info-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-2xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.skills-info-card > .checklist-num { display: block; margin-bottom: 14px; }
.skills-info-card h3 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-hi);
  line-height: 1.35;
  margin-bottom: 14px;
}
.skills-info-card > p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 24px;
}
.tech-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.philosophy-mini-card {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  /* A barely differentiated inner surface avoids the stark white/gray split. */
  background: var(--bg-page);
  border: 1px solid var(--border-soft);
}
.philosophy-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--border-2);
  color: var(--accent-orig);
}
.philosophy-mini-card .card-label { margin-bottom: 4px; }
.philosophy-mini-card strong { display: block; font-size: 14.5px; color: var(--text-hi); font-weight: 600; margin-bottom: 4px; }
.philosophy-mini-card p { font-size: 12.5px; color: var(--text-mid); line-height: 1.5; }

.skills-bars {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 8px 0;
}
.skill-progress-item { display: flex; flex-direction: column; gap: 10px; }
.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.skill-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-hi);
}
.skill-name svg { flex-shrink: 0; color: var(--accent-orig); }
.skill-value { font-family: var(--font-mono); font-size: 13px; color: var(--text-mid); }
.progress-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border-1);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--text-hi), var(--accent));
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Code panel visual */
.code-panel {
  width: 80%;
  max-width: 320px;
  background: white;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 12px 32px -8px rgba(16, 16, 16, 0.15);
  position: relative;
  z-index: 1;
}
.code-panel-head {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.code-panel-head span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-2);
}
.code-panel-head span:nth-child(1) { background: #ff5f57; }
.code-panel-head span:nth-child(2) { background: #febc2e; }
.code-panel-head span:nth-child(3) { background: #28c840; }
.code-panel-body {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  color: var(--text-mid);
}
.code-panel-body .key { color: var(--text-hi); }
.code-panel-body .str { color: var(--color-success); }
.code-panel-body .num { color: var(--color-primary); }
.code-panel-body .cmt { color: var(--text-faint); }

/* ════════════════════════════════════════════════════
   PROCESS — "How I Work" clickable workflow tabs
   ════════════════════════════════════════════════════ */
.workflow-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .workflow-grid { grid-template-columns: 1fr; gap: 32px; }
}

.workflow-steps { display: flex; flex-direction: column; gap: 12px; }

.workflow-step {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: var(--bg-soft);
  border: 1px solid var(--border-1);
  border-radius: 18px;
  padding: 18px 20px;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.workflow-step:hover { border-color: var(--border-2); }
.workflow-step.is-active {
  /* Keep every step on the same neutral surface; use only a quiet blue outline
     to distinguish the selected stage without introducing a second background. */
  background: rgb(255, 255, 255);
  border-color: rgba(27, 77, 255, 0.22);
}
.workflow-step.is-active .step-num {
  background: var(--accent-dim);
  color: var(--color-primary);
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  background: transparent;
  border-radius: 12px;
  letter-spacing: 0;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.step-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.step-text strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-hi);
}
.step-text small {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-mid);
}
.step-duration {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.step-duration::before {
  content: '·';
  margin-right: 6px;
  color: var(--border-2);
}
@media (max-width: 560px) {
  .step-duration { display: none; }
}

/* Sticky code panel */
.process-panel {
  position: sticky;
  top: 120px;
}

/* ── Terminal-style process panel ── */
.process-code-panel {
  width: 100%;
  padding: 22px;
  border-radius: var(--radius-xl);
  /* Keep the terminal shell within the warm-neutral brand palette. */
  background: white;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}
@media (min-width: 761px) {
  .process-code-panel { max-width: 560px; }
}
.process-code-panel .code-panel-head {
  position: relative;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
/* Neutralize the base macOS-dot span styling (nth-child colors) now that
   the label + dots are the only two spans in this header. */
.process-code-panel .code-panel-head > span {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
}
.process-filename {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-left: 0;
}
.process-dots {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.process-dots i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border-3);
}

.process-code-body { position: relative; min-height: 300px; }
.process-code-frame {
  position: absolute;
  inset: 0;
  padding: 28px 32px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
  background: var(--bg-tint);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
}
.process-code-frame.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

/* Terminal line types */
.pt-cmt { color: var(--text-secondary); opacity: 0.82; }
.pt-prompt { color: var(--color-primary); font-weight: 700; margin-right: 8px; }
.pt-cmd { color: var(--text-primary); font-weight: 600; }
.pt-gap { height: 12px; }
.pt-out { color: var(--text-secondary); }
.pt-cursor {
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  vertical-align: middle;
  animation: blink 1s steps(2) infinite;
}
.pt-ok { color: var(--color-primary); font-weight: 600; }
.pt-pending { color: var(--text-secondary); font-weight: 500; }
.pt-link { color: var(--color-primary); font-weight: 500; }
.pt-url { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 480px) {
  .process-code-frame { padding: 22px; font-size: 12px; }
}

@media (max-width: 760px) {
.process-panel {
 margin-left: auto;
        margin-right: auto;}
      }

      @media (max-width: 900px) {
.process-panel {
 margin-left: auto;
        margin-right: auto;}
      }
/* Footer strip below the workflow */
.workflow-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-1);
}
.workflow-footer p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-mid);
}
.workflow-footer svg { flex-shrink: 0; color: var(--accent-orig); }
.workflow-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-hi);
  padding: 12px 22px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  background: white;
  flex-shrink: 0;
  transition: all var(--dur-fast) var(--ease);
}
.workflow-cta:hover { background: var(--text-hi); color: white; border-color: var(--text-hi); }
.workflow-cta svg { transition: transform var(--dur-fast) var(--ease); }
.workflow-cta:hover svg { transform: translateX(3px); }

/* ════════════════════════════════════════════════════
   PROJECTS — horizontal moving marquee, codemz-style
   ════════════════════════════════════════════════════ */
.projects-wrap { position: relative; }

/* Filter chips */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  background: var(--bg-soft);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  cursor: pointer;
  will-change: transform;
}
.filter-chip:hover { border-color: var(--text-hi); color: var(--text-hi); }
.filter-chip.active {
  background: var(--text-hi);
  color: white;
  border-color: var(--text-hi);
  box-shadow: 0 8px 20px -8px rgba(16, 16, 16, 0.35);
}
.filter-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.filter-chip.active .filter-dot { background: white; }
.filter-chip[data-filter="all"] .filter-dot { display: none; }

/* Marquee track — cards move continuously, pause on hover */
.project-marquee {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 calc(var(--gutter) * -1);
  padding: 8px 0 32px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
}
.project-marquee.is-pinned {
  overflow: hidden;
  scroll-snap-type: none;
}
.project-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding-left: var(--gutter);
  will-change: transform;
}
.project-track.is-static {
  transform: none !important;
  padding-bottom: 8px;
}

/* Dark device-mockup card */
.project-card {
  position: relative;
  flex: 0 0 auto;
  width: min(600px, 82vw);
  min-height: 400px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--bg-night);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px -24px rgba(16, 16, 16, 0.45);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  scroll-snap-align: start;
  transition: transform 0.25s ease-out, opacity 0.35s var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.project-card:hover { box-shadow: 0 34px 70px -20px rgba(16, 16, 16, 0.55); }
.project-card.hide { opacity: 0 !important; transform: scale(0.92) !important; pointer-events: none; }

/* Full-bleed screenshot filling the entire card */
.project-device {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.project-device img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .project-device img { transform: scale(1.045); }

/* Dark scrim over the image so the overlaid text stays readable */
.project-card-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6, 10, 22, 0.05) 0%, rgba(6, 10, 22, 0.35) 38%, rgba(6, 10, 22, 0.94) 78%, rgba(6, 10, 22, 0.97) 100%);
  pointer-events: none;
}

.project-card-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}
.project-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  font-size: 10px;
  font-weight: 700;
}
.project-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
}
.project-card-content h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: white;
  line-height: 1.15;
}
.project-card-content p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.project-stack span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.65);
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
}
.project-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: white;
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  transition: all var(--dur-fast) var(--ease);
}
.project-link:hover { background: white; color: var(--text-hi); border-color: white; }
.project-link svg { transition: transform var(--dur-fast) var(--ease); }
.project-link:hover svg { transform: translate(2px, -2px); }

/* Whole card opens the project modal. A real <button> is stretched over the card;
   the content layer lets clicks fall through to it, except on the links themselves. */
.project-open {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
.project-open:focus-visible { outline: 3px solid #fff; outline-offset: -8px; }
.project-card-content a { pointer-events: auto; }

.project-view-hint {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 22, 0.5);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.project-card:hover .project-view-hint,
.project-open:focus-visible ~ .project-view-hint { opacity: 1; }
.project-view-hint span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: white;
  color: var(--text-hi);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-elevated);
  transform: translateY(8px);
  transition: transform var(--dur-fast) var(--ease);
}
.project-card:hover .project-view-hint span,
.project-open:focus-visible ~ .project-view-hint span { transform: translateY(0); }

/* ─── Project details modal (pm-*) — shared, populated per card ─── */
.pm-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 10, 22, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  /* visibility must flip to visible immediately on open, otherwise closeBtn.focus() runs while the
     dialog is still "hidden" and silently fails; on close it flips after the fade-out. */
  transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}
.pm-overlay.open { opacity: 1; visibility: visible; transition-delay: 0s; }

.pm-dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-soft);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-elevated);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.3s var(--ease);
}
.pm-overlay.open .pm-dialog { transform: translateY(0) scale(1); }

.pm-media { position: relative; background: var(--bg-night); border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; overflow: hidden; }
.pm-media img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: top; }

.pm-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(6, 10, 22, 0.55);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); /* not `all`: that includes visibility and delays focus() */
}
.pm-close:hover { background: rgba(6, 10, 22, 0.85); transform: scale(1.06); }

.pm-body { padding: 32px; }
@media (max-width: 560px) { .pm-body { padding: 24px 20px; } }

.pm-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}
.pm-badge-dark { background: var(--text-hi); color: white; }
.pm-badge-success { background: var(--color-success-soft); color: var(--color-success); border: 1px solid var(--color-success-border); }
.pm-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

.pm-title { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; color: var(--text-hi); margin-bottom: 10px; }
@media (max-width: 560px) { .pm-title { font-size: 22px; } }
.pm-desc { font-size: 14px; line-height: 1.6; color: var(--text-mid); margin-bottom: 22px; }

.pm-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.pm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); /* not `all`: that includes visibility and delays focus() */
}
.pm-btn-primary { background: var(--text-hi); color: white; }
.pm-btn-primary:hover { background: var(--accent); }
.pm-btn-ghost { display: none; background: transparent; color: var(--text-hi); border: 1px solid var(--border-2); }
.pm-btn-ghost:hover { border-color: var(--text-hi); background: var(--bg-tint); }

.pm-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.pm-tech span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mid);
  padding: 4px 11px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
}

.pm-divider { height: 1px; background: var(--border-1); margin-bottom: 26px; }

.pm-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-hi);
  margin-bottom: 14px;
}
.pm-section-label svg { color: var(--accent-orig); flex-shrink: 0; }

.pm-about-text p { font-size: 14px; line-height: 1.7; color: var(--text-mid); margin-bottom: 12px; }
.pm-about-text p:last-child { margin-bottom: 0; }

body.pm-open { overflow: hidden; }

/* "+N more" CTA tile — closes out the row */
.project-more-tile {
    position: relative;
    flex: 0 0 auto;
    width: 255px;
    min-height: 400px;
    display: flex;
    flex-direction: revert;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px;
    background: var(--text-hi);
    color: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    scroll-snap-align: start;
    will-change: transform;
    transition: transform 0.25s ease-out, opacity 0.35s var(--ease);
}
.project-more-tile.hide { opacity: 0 !important; transform: scale(0.92) !important; pointer-events: none; }
.project-more-tile::before {
  content: '';
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle, rgba(27, 77, 255, 0.30), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.project-more-tile:hover::before { opacity: 1; }
.project-more-num {
  position: relative;
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.03em;
}
.project-more-label {
  position: relative;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}
.project-more-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin-top: 8px;
  transition: all var(--dur-fast) var(--ease);
}
.project-more-tile:hover .project-more-arrow {
  background: white;
  color: var(--text-hi);
  transform: translate(4px, -4px);
}

.projects-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border-1);
}
.projects-controls-text { font-size: 13px; color: var(--text-low); }
.projects-controls-text strong { color: var(--text-hi); font-weight: 600; }
.projects-page-link { flex-shrink: 0; }

@media (max-width: 640px) {
  .projects-controls { justify-content: center; text-align: center; }
  .project-marquee { padding: 8px 0 24px; }
  .project-card { width: 82vw; min-height: 440px; padding: 24px; }   /* leaves a visible peek of the next card */
  .project-card-content { max-width: 100%; }
  .project-more-tile { width: 82vw;
        min-height: 385px; }
}

/* ════════════════════════════════════════════════════
   ENGINEERING / TECHNICAL
   ════════════════════════════════════════════════════ */
.eng-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .eng-grid { grid-template-columns: 1fr; gap: 48px; }
}
.eng-capabilities h3 {
  font-size: 12px;
  color: var(--text-low);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-weight: 500;
}
.cap-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
@media (max-width: 600px) { .cap-list { grid-template-columns: 1fr; } }
.cap-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-1);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-hi);
  transition: all var(--dur-fast) var(--ease);
  box-shadow: var(--shadow-card);
}
.cap-list li:hover { box-shadow: var(--shadow-elevated); transform: translateY(-2px); }
.cap-num { color: var(--accent-orig); font-size: 14px; font-weight: 600; }

.dash {
  background: white;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-1);
  background: var(--bg-tint);
}
.dash-traffic { display: flex; gap: 5px; }
.dash-traffic span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border-2);
}
.dash-traffic span:nth-child(1) { background: #ff5f57; }
.dash-traffic span:nth-child(2) { background: #febc2e; }
.dash-traffic span:nth-child(3) { background: #28c840; }
.dash-title { font-size: 10px; color: var(--text-low); font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.dash-time { font-size: 10px; color: var(--text-faint); font-family: var(--font-mono); }
.dash-body { padding: 20px 18px; }
.dash-row {
  display: grid;
  grid-template-columns: 90px 1fr 70px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 11px;
}
.dash-key { color: var(--text-low); font-family: var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; }
.dash-bar {
  display: block;
  height: 4px;
  background: var(--bg-page-2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.dash-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--text-hi);
  border-radius: 2px;
  animation: barFill 1.5s var(--ease-out) forwards;
  animation-delay: 0.5s;
}
@keyframes barFill { to { width: var(--w); } }
.dash-val { text-align: right; font-size: 10px; font-family: var(--font-mono); color: var(--text-hi); font-weight: 500; }
.dash-divider { height: 1px; background: var(--border-1); margin: 12px 0; }
.dash-foot {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-low);
  font-family: var(--font-mono);
}
.dash-foot .ok { color: var(--color-success); font-weight: 500; }

/* ════════════════════════════════════════════════════
   EXPERIENCE — clean table rows
   ════════════════════════════════════════════════════ */
.exp-table { display: flex; flex-direction: column; border-top: 1px solid var(--border-1); }
.exp-row {
  display: grid;
  grid-template-columns: 190px 280px 140px 1fr;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-1);
  transition: background var(--dur-fast) var(--ease), padding-left var(--dur-fast) var(--ease);
}
.exp-row:hover { background: rgba(255, 255, 255, 0.5); padding-left: 12px; }
.exp-date {
  font-size: 12.5px;
  color: var(--accent-orig);
  letter-spacing: 0.03em;
}
.exp-role {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-hi);
}
.exp-company { font-size: 14.5px; color: var(--text-mid); }
.exp-desc { font-size: 14px; color: var(--text-mid); line-height: 1.55; }
@media (max-width: 1024px) {
  .exp-row { grid-template-columns: 1fr;
        gap: 6px;
        padding: 24px 0; row-gap: 8px; }
  .exp-date { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 640px) {
  .exp-row { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .exp-date { order: -1; }
}

/* ════════════════════════════════════════════════════
   EDUCATION
   ════════════════════════════════════════════════════ */
.edu-section { padding: 80px 0; }
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 24px;
}
.edu-card {
  padding: 32px;
  background: white;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  transition: all var(--dur-fast) var(--ease);
  box-shadow: var(--shadow-card);
}
.edu-card:hover { box-shadow: var(--shadow-elevated); }
.edu-year {
  display: inline-block;
  font-size: 11px;
  color: var(--text-mid);
  padding: 4px 10px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.edu-card h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-hi);
}
.edu-school {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mid);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
.edu-card p:not(.edu-school) {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.6;
}

.edu-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 190px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-tint);
  border: 1px solid var(--border-1);
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}

.edu-icon-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.edu-card:hover .edu-icon-box img {
  transform: scale(1.06);
}

/* ════════════════════════════════════════════════════
   COURSES & CERTS
   ════════════════════════════════════════════════════ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
}
.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--dur-fast) var(--ease);
}
.cert-badge:hover {
  border-color: var(--border-3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.cert-badge img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
}
.cert-badge span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  line-height: 1.35;
}
@media (max-width: 560px) {
  .cert-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cert-badge { padding: 18px 10px; }
}

/* ════════════════════════════════════════════════════
   WHY
   ════════════════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }
.why-item {
  padding: 32px;
  background: var(--bg-soft);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  transition: all var(--dur-fast) var(--ease);
  box-shadow: var(--shadow-card);
}
.why-item:hover { box-shadow: var(--shadow-elevated); }
.why-item h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-hi);
}
.why-item p { color: var(--text-mid); font-size: 14px; line-height: 1.6; }

/* ════════════════════════════════════════════════════
   STATUS / AVAILABILITY
   ════════════════════════════════════════════════════ */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .status-grid { grid-template-columns: 1fr; gap: 48px; }
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-hi);
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.status-pill .status-dot { background: var(--accent); }
.status-left p {
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}
.status-list { display: flex; flex-direction: column; gap: 8px; }
.status-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-hi);
  border-bottom: 1px solid var(--border-1);
}
.status-list li:last-child { border-bottom: 0; }
.status-list li span { color: var(--text-faint); font-family: var(--font-mono); }

.terminal {
  width: 100%;
  background: white;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.terminal-body { padding: 24px; font-family: var(--font-mono); font-size: 13px; line-height: 1.8; }
.t-line { color: var(--text-mid); }
.t-prompt { color: var(--text-faint); margin-right: 8px; }
.t-cmd { color: var(--text-hi); }
.t-ok { color: var(--color-success); }
.t-divider { height: 1px; background: var(--border-1); margin: 12px 0; }
.t-cursor { display: inline-flex; align-items: center; }
.t-blink { color: var(--text-faint); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════ */
.contact {
  padding: 140px 0;
  background: var(--bg-page-2);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(27, 77, 255, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.contact-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.contact .section-title { margin-bottom: 4px; }
.contact .section-desc { margin-left: auto; margin-right: auto; margin-bottom: 40px; max-width: 560px; }

/* ─── Contact grid: info cards (left) + form (right) ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  text-align: left;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

.contact-info-list { display: flex; flex-direction: column; gap: 12px; }

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
}
a.contact-info-card:hover {
  border-color: var(--border-3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--accent-orig-dim);
  color: var(--accent-orig);
}
.contact-info-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-info-text .label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); font-family: var(--font-mono); }
.contact-info-text .value {
  color: var(--text-hi);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
}
.contact-info-text .value .status-dot { flex-shrink: 0; }

.contact-social-block { margin-top: 24px; }
.contact-social-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 600;
  font-family: var(--font-mono);
  margin-bottom: 12px;
}
.contact-socials-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Contact form ───────────────────────────────── */
.contact-form {
  background: var(--bg-soft);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-2xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 560px) { .contact-form { padding: 28px 20px; } }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-hi); }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-display);
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-field);
  background: var(--bg-white);
  color: var(--text-hi);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent-strong);
  outline-offset: 1px;
  border-color: var(--accent-strong);
  background: var(--bg-white);
}
.field.invalid input, .field.invalid textarea { border-color: var(--color-danger); }
.error-msg {
  display: block;
  min-height: 15px;
  font-size: 12px;
  color: var(--color-danger-text);
}

.contact-submit { width: 100%; justify-content: center; margin-top: 6px; }
.contact-submit[disabled] { opacity: 0.6; cursor: default; pointer-events: none; }

.form-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
}

.form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  text-align: center;
}
.form-feedback.success { background: var(--color-success-soft); color: var(--color-success); border: 1px solid var(--color-success-border); }
.form-feedback.error { background: rgba(220, 38, 38, 0.08); color: var(--color-danger-text); border: 1px solid rgba(220, 38, 38, 0.25); }
.form-feedback[hidden] { display: none; }

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
.footer {
  padding: 80px 0 32px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 0fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 3fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand { max-width: 360px; }
.footer-role {
  display: block;
  font-size: 11px;
  color: var(--text-low);
  letter-spacing: 0.1em;
  margin: 16px 0 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.footer-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

.footer-col .footer-col-title {
  font-size: 11px;
  color: var(--text-low);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 4px; }
.footer-col a {
  display: inline-block;
  padding-block: 4px;
  font-size: 14px;
  color: var(--text-mid);
  transition: color var(--dur-fast) var(--ease);
}
.footer-col a:hover { color: var(--text-hi); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-1);
  font-size: 12px;
  color: var(--text-low);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .mono {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════
   SPLIT TEXT — char + word mask utilities (GSAP-driven)
   ════════════════════════════════════════════════════ */
.char {
  display: inline-block;
  will-change: transform, opacity;
}
.char-word { display: inline-block; white-space: nowrap; }
.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.word-inner {
  display: inline-block;
  will-change: transform;
}

/* ════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.no-gsap .reveal { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }

/* ─── FLOATING ACTIONS — WhatsApp + back to top ─────── */

/* Floating action buttons */
.float-actions {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

/* WhatsApp — left side */
.fab-whatsapp {
  position: fixed;
  left: max(20px, env(safe-area-inset-left));
  right: auto;
  bottom: max(20px, env(safe-area-inset-bottom));
  background: #ffffff;
  color: #000000;
  border: 1px solid var(--border-2);
  /* Pulsing translucent ring (keeps the normal drop shadow underneath) */
  animation: wa-pulse 2s ease-out infinite;
}

.fab-whatsapp:hover {
  background: #101010;
  color: #ffffff;
}

@keyframes wa-pulse {
  0% {
    box-shadow: var(--shadow-elevated), 0 0 0 0 rgba(16, 16, 16, 0.22);
  }
  80%, 100% {
    box-shadow: var(--shadow-elevated), 0 0 0 14px rgba(16, 16, 16, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fab-whatsapp { animation: none; }
}

/* Shared button styles */
.fab {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-elevated);
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease),
    visibility 0s linear var(--dur-fast);
}

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

.fab:active {
  transform: translateY(0) scale(0.95);
}

/* Back to top — remains on the right */
.fab-top {
  background: #fff;
  color: var(--text-hi);
  border: 1px solid var(--border-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.fab-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.fab-top.is-visible:hover {
  transform: translateY(-3px);
  background: var(--text-hi);
  color: #fff;
}

.fab-top.is-visible:active {
  transform: translateY(0) scale(0.95);
}

/* Mobile */
@media (max-width: 560px) {
  .float-actions {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    gap: 10px;
  }

  .fab {
    width: 48px;
    height: 48px;
  }

  .fab-whatsapp {
    left: max(16px, env(safe-area-inset-left));
    right: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* Print */
@media print {
  .float-actions,
  .fab-whatsapp {
    display: none;
  }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE FINE TUNING
   ════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .section-title { font-size: 44px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ════════════════════════════════════════════════════
   PROJECTS PAGE — standalone full listing
   ════════════════════════════════════════════════════ */
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-low);
  margin-bottom: 28px;
}
.page-breadcrumb a { display: inline-flex; align-items: center; min-height: 24px; color: var(--text-mid); transition: color var(--dur-fast) var(--ease); }
.page-breadcrumb a:hover { color: var(--text-hi); }
.page-breadcrumb span:last-child { color: var(--text-hi); font-weight: 500; }

.projects-page-hero { padding-top: 160px; }
@media (max-width: 768px) { .projects-page-hero { padding-top: 136px; } }

.projects-page-body { padding-top: 56px; }

.projects-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 8px;
}
.projects-full-grid .project-card { width: 100%; min-height: 420px; }
@media (max-width: 900px) {
  .projects-full-grid { grid-template-columns: 1fr; }
}

.projects-empty-msg {
  text-align: center;
  padding: 60px 0;
}

.more-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 40px;
  background: var(--text-hi);
  border-radius: var(--radius-2xl);
  color: white;
}
.more-panel-text h3 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.more-panel-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 46ch;
  line-height: 1.6;
}
.more-panel .btn-primary {
  background: white;
  color: var(--text-hi);
  flex-shrink: 0;
}
.more-panel .btn-primary:hover { background: rgba(255, 255, 255, 0.9); }
@media (max-width: 640px) {
  .more-panel { padding: 28px; }
}

.contact-teaser { padding-bottom: 40px; }
.contact-teaser-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.contact-teaser-inner h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-hi);
}
.contact-teaser-inner p {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 32px;
}

/* ════════════════════════════════════════════════════
   UTILITIES / SMALL ADDITIONS
   ════════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.projects-controls-link { color: var(--text-hi); font-weight: 500; }
.dash-bar i.w-88 { --w: 88%; }
.dash-bar i.w-91 { --w: 91%; }
.dash-bar i.w-92 { --w: 92%; }
.dash-bar i.w-94 { --w: 94%; }
.dash-bar i.w-96 { --w: 96%; }
.dash-bar i.w-97 { --w: 97%; }
.dash-bar i.w-100 { --w: 100%; }
/* Programmatic focus targets (skip link, in-page anchors) shouldn't draw a ring around a whole section */
[tabindex="-1"]:focus { outline: none; }
.project-tag-pill--spaced { margin-bottom: 14px; }

/* ─── CHAT ASSISTANT (opened by the WhatsApp button, see chat.js) ─────── */
button.fab-whatsapp { padding: 0; }
.fab-whatsapp.is-open { animation: none; }

.chat-panel {
  position: fixed;
  left: max(20px, env(safe-area-inset-left));
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 64px);
  z-index: 95;
  display: flex;
  flex-direction: column;
  width: 372px;
  max-height: min(600px, calc(100dvh - 190px)); /* keep the header clear of the fixed navbar */
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 24px;
  box-shadow: var(--shadow-elevated), 0 30px 60px -20px rgba(16, 16, 16, 0.25);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.97);
  transform-origin: bottom left;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast);
}
.chat-panel.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border-2); background: var(--bg-tint); }
.chat-avatar {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
}
.chat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat-who strong { font-size: 15px; font-weight: 600; color: var(--text-hi); }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-mid); }
.chat-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.chat-lang { padding: 6px 12px; border: 1px solid var(--border-2); border-radius: var(--radius-full); font-size: 12px; font-weight: 600; background: #fff; }
.chat-close { width: 32px; height: 32px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--text-mid); }
.chat-lang:hover, .chat-close:hover { background: var(--bg-page-2); }

.chat-log { flex: 1; min-height: 160px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; overscroll-behavior: contain; }
.chat-msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.55; }
.chat-msg p { margin: 0; white-space: pre-line; }
.chat-bot { align-self: flex-start; background: var(--bg-tint); border: 1px solid var(--border-2); color: var(--text-hi); border-end-start-radius: 6px; }
.chat-user { align-self: flex-end; background: var(--accent-strong); color: #fff; border-end-end-radius: 6px; }
.chat-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chat-link { padding: 6px 12px; border-radius: var(--radius-full); background: var(--accent-strong); color: #fff; font-size: 12.5px; font-weight: 600; }
.chat-link:hover { background: var(--color-primary-hover); }

.chat-typing { display: flex; gap: 4px; padding: 14px 16px; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); animation: chat-dot 1s ease-in-out infinite; }
.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border-2); }
.chat-chip { padding: 7px 14px; border: 1px solid var(--border-2); border-radius: var(--radius-full); background: #fff; font-size: 13px; font-weight: 500; color: var(--text-hi); transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.chat-chip:hover { background: var(--bg-tint); border-color: var(--accent-strong); }

.chat-form { display: flex; gap: 8px; padding: 0 16px 16px; }
.chat-input { flex: 1; min-width: 0; padding: 11px 16px; border: 1px solid var(--border-2); border-radius: var(--radius-full); background: var(--bg-tint); font: inherit; font-size: 14px; color: var(--text-hi); }
.chat-input:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 1px; background: #fff; }
.chat-send { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-strong); color: #fff; font-size: 16px; }
.chat-send:hover { background: var(--color-primary-hover); }
[dir="rtl"] .chat-send { transform: scaleX(-1); }

@media (max-width: 560px) {
  .chat-panel { left: 12px; right: 12px; bottom: 12px; width: auto; max-height: calc(100dvh - 104px); border-radius: 20px; } /* navbar sits at top:16px, ~60px tall */
  .chat-log { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .chat-panel { transition: none; } .chat-typing i { animation: none; opacity: 0.6; } }
@media print { .chat-panel { display: none; } }

/* chat v2 additions */
.chat-title { display: block; margin-bottom: 4px; font-size: 14.5px; font-weight: 600; }
.chat-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.chat-tag { padding: 2px 8px; border-radius: var(--radius-full); background: #fff; border: 1px solid var(--border-2); font: 500 11px/1.6 var(--font-mono, monospace); color: var(--text-mid); }
.chat-time { display: block; margin-top: 4px; font-size: 10.5px; opacity: 0.6; }
.chat-chip-primary { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.chat-chip-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.chat-chips { max-height: 112px; overflow-y: auto; }
.chat-badge { position: absolute; top: -2px; inset-inline-end: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--color-danger); border: 2px solid #fff; }
.chat-chips { flex: none; }

/* chat v3 additions */
.chat-thumb { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 10px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--bg-page-2); }
.chat-msg.chat-wide { max-width: 100%; align-self: stretch; }
.chat-gal { display: flex; gap: 10px; margin-top: 10px; padding-bottom: 6px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.chat-gal-item { flex: none; width: 150px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1px solid var(--border-2); border-radius: 14px; background: #fff; text-align: start; transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.chat-gal-item:hover { border-color: var(--accent-strong); transform: translateY(-2px); }
.chat-gal-item img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 9px; background: var(--bg-page-2); }
.chat-gal-item span { padding: 0 4px 2px; font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--text-hi); }
.chat-reset { width: 32px; height: 32px; border-radius: 50%; font-size: 17px; color: var(--text-mid); }
.chat-reset:hover { background: var(--bg-page-2); }
.chat-teaser { position: fixed; left: max(20px, env(safe-area-inset-left)); bottom: calc(max(20px, env(safe-area-inset-bottom)) + 64px); z-index: 94; max-width: 260px; padding: 12px 16px; border: 1px solid var(--border-2); border-radius: 16px; border-end-start-radius: 4px; background: #fff; box-shadow: var(--shadow-elevated); font-size: 14px; font-weight: 500; text-align: start; color: var(--text-hi); animation: chat-pop 0.35s var(--ease); }
@keyframes chat-pop { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .chat-teaser { animation: none; } .chat-gal-item { transition: none; } }
@media print { .chat-teaser { display: none; } }

/* chat v4 additions */
.chat-msg { animation: chat-in 0.28s var(--ease); }
@keyframes chat-in { from { opacity: 0; transform: translateY(6px); } }
.chat-quote { margin: 10px 0 0; padding: 8px 12px; border-inline-start: 3px solid var(--accent-strong); border-radius: 8px; background: #fff; font-size: 12.5px; line-height: 1.55; color: var(--text-mid); white-space: pre-line; }
.chat-copy { border: 1px solid var(--border-2); background: #fff; }
.chat-copy:hover { background: var(--bg-tint); }
@media (prefers-reduced-motion: reduce) { .chat-msg { animation: none; } }

.chat-teaser.is-leaving { opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }

/* Services stacking (enabled by script.js on desktop): sticky = no layout shifts */


/* marquee: sticky instead of GSAP pin (no layout shifts) */
.marquee-sticky .project-marquee.is-pinned { position: sticky; top: 96px; }
/* chat: readable timestamp on the blue user bubble (WCAG AA) */
.chat-user .chat-time { opacity: 0.9; }


/* robot icon (chat button): idle animation — float, blink, antenna ping, occasional "talking" mouth */
.fab-whatsapp .robot-eyes, .fab-whatsapp .robot-mouth, .fab-whatsapp .antenna { transform-box: fill-box; transform-origin: center; }
.fab-whatsapp .robot-body { animation: robot-float 3.2s ease-in-out infinite; }
.fab-whatsapp .robot-eyes { animation: robot-blink 4.5s ease-in-out infinite; }
.fab-whatsapp .antenna { animation: robot-ping 2s ease-in-out infinite; }
.fab-whatsapp .robot-mouth { animation: robot-talk 6s ease-in-out infinite; }
@keyframes robot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes robot-blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(0.1); } }
@keyframes robot-ping { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.45); opacity: 0.55; } }
@keyframes robot-talk { 0%, 68%, 100% { transform: scaleY(1); } 72% { transform: scaleY(0.4); } 76% { transform: scaleY(1.2); } 80% { transform: scaleY(0.5); } 84% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .fab-whatsapp .robot-body, .fab-whatsapp .robot-eyes, .fab-whatsapp .antenna, .fab-whatsapp .robot-mouth { animation: none; } }

/* ═══════════════════════════════════════════════════════════════════
   AURAX additions
   Everything below extends the original design system (same tokens,
   same radii / shadows / motion). Nothing above this line was removed.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Brand: official AURAX logo (SVG wordmark) ───── */
.logo-img { display: block; height: 26px; width: auto; }
.footer-brand .logo-img { height: 34px; }
@media (max-width: 480px) { .logo-img { height: 22px; } .footer-brand .logo-img { height: 28px; } }
.preloader-logo { display: block; width: min(520px, 78vw); height: auto; }
.preloader-role { text-align: center; }

/* ─── Navigation: 10 links + CTA ───────────────────── */
.title-row { white-space: normal; }
.nav-inner { gap: 20px; }
.nav-link { padding: 8px 12px; white-space: nowrap; }
@media (max-width: 1360px) {
  .nav-cta { display: none; }
  .nav-link { padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 1100px) {
  .nav-desktop { display: none; }
}
.mobile-nav-inner { padding: 92px 28px 28px; }
.mobile-link { padding: 12px 0; font-size: 24px; }
.mobile-nav-footer .mobile-cta { font-weight: 600; color: var(--text-hi); }

/* ─── Hero — full-bleed video background ────────────────────────────────────
   Intro video fills the hero; a dark scrim keeps the white headline readable. The headline reveal,
   typewriter line and scroll-drift of the original hero are kept; the floating cards are gone. */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: 100vh; min-height: 100svh;
  padding: 128px 0 124px;
  background: var(--bg-night);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero-media { position: absolute; z-index: -2; left: 0; right: 0; top: -10%; height: 120%; background: var(--bg-night); will-change: transform; }
.hero-video-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.hero-video { opacity: 0; transition: opacity 1s var(--ease); background: transparent; }
.hero-video-wrap.is-playing .hero-video { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 78% 62% at 50% 46%, rgba(6, 10, 22, 0.5), rgba(6, 10, 22, 0.16) 72%),
    radial-gradient(60% 38% at 50% 100%, rgba(27, 77, 255, 0.26), transparent 72%),
    linear-gradient(180deg, rgba(6, 10, 22, 0.58) 0%, rgba(6, 10, 22, 0.34) 34%, rgba(6, 10, 22, 0.5) 68%, rgba(6, 10, 22, 0.86) 100%);
}

.nav:not(.scrolled) .nav-inner { background: rgba(255, 255, 255, 0.95); }
.nav .menu-btn { background: transparent; border-color: rgba(16, 16, 16, 0.14); }
.nav .menu-btn:hover { background: rgba(16, 16, 16, 0.05); }
.hero-container { width: 100%; }
.hero-text { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 980px; margin: 0 auto; }
.hero-title-v2 {
  font-size: clamp(36px, 5.6vw, 80px); font-weight: 500; line-height: 1.04; letter-spacing: -0.045em;
  margin-bottom: 22px; text-wrap: balance;
  color: #fff;
  text-shadow: 0 2px 34px rgba(0, 0, 0, 0.35);
}
.hero-typing-line { font-size: 0.4em; font-weight: 400; min-height: 1.35em; margin-top: 18px; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.86); text-shadow: none; }
.hero .typing-text { color: var(--accent-on-dark); font-weight: 500; }
.hero .typing-cursor { color: var(--accent-on-dark); }
.hero-desc-v2 { max-width: 640px; margin: 0 auto 36px; font-size: clamp(16px, 1.3vw, 19px); color: rgba(255, 255, 255, 0.8); text-shadow: 0 1px 18px rgba(0, 0, 0, 0.3); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.hero .btn { padding: 16px 28px; }
.hero .btn-primary { background: #fff; color: #101010; border-color: #fff; }
.hero .btn-primary:hover { background: #F4F1EA; border-color: #F4F1EA; }
.hero .btn-ghost {
  background: rgba(6, 10, 22, 0.42); color: #fff; border: 1px solid rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.2); color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.hero .btn:focus-visible, .hero-scroll:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Bottom strip: scroll cue + Instagram + pause/play */
.hero-foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 30px; }
.hero-foot-inner { position: relative; display: flex; align-items: center; justify-content: flex-end; min-height: 44px; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.24em; color: rgba(255, 255, 255, 0.72);
  transition: color var(--dur-fast) var(--ease);
}
.hero-scroll:hover { color: #fff; }
.hero-scroll i { position: relative; display: block; width: 1px; height: 36px; background: rgba(255, 255, 255, 0.28); overflow: hidden; }
.hero-scroll i::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--accent-on-dark); animation: hero-scroll-cue 2.2s var(--ease) infinite; }
@keyframes hero-scroll-cue { 0% { transform: translateY(-14px); } 100% { transform: translateY(36px); } }
.hero-video-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hero-video-ig {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 17px 0 14px;
  border-radius: var(--radius-full);
  font-size: 12px; letter-spacing: 0.04em; color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  transition: background var(--dur-fast) var(--ease);
}
.hero-video-ig:hover { background: rgba(255, 255, 255, 0.26); }
.hero-video-ig:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-video-toggle {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.hero-video-toggle:hover { background: rgba(255, 255, 255, 0.26); }
.hero-video-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-video-toggle .i-play { display: none; margin-left: 2px; }
.hero-video-toggle[aria-pressed="true"] .i-play { display: block; }
.hero-video-toggle[aria-pressed="true"] .i-pause { display: none; }
.hero-video-progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.14); }
.hero-video-progress i { display: block; width: 100%; height: 100%; background: var(--accent-on-dark); transform-origin: left center; transform: scaleX(0); }

@media (max-width: 1100px) {
  .hero { padding: 120px 0 120px; }
}
@media (max-width: 760px) {
  .hero { padding: 112px 0 116px; }
  .hero-desc-v2 { margin-bottom: 30px; }
  .hero-foot { bottom: 22px; }
  .hero-video-ig { width: 44px; padding: 0; justify-content: center; }
  .hero-video-ig .mono { display: none; }
}
@media (max-width: 640px) {
  .hero-title-v2 { font-size: clamp(34px, 9.4vw, 44px); }
  .hero-typing-line { min-height: 1.5em; font-size: 0.5em; margin-top: 12px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 14px; width: 100%; max-width: 360px; margin: 0 auto; }
  .hero-video-ig, .hero-video-toggle { width: 40px; height: 40px; }
  .hero-video-actions { gap: 8px; }
  .hero-foot-inner { min-height: 40px; }
  .hero-scroll i { height: 30px; }
}
@media (max-width: 360px) { .hero-typing-line { font-size: 0.45em; } }
@media (max-height: 640px) and (min-width: 761px) {
  .hero { padding: 108px 0 112px; }
  .hero-scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { transition: none; }
  .hero-scroll i::after { animation: none; transform: translateY(10px); }
}

/* ─── Marquee: technology icons ─── */
.marquee { display: flex; flex-direction: column; }

/* ─── About ────────────────────────────────────────── */
.about-stats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 560px) { .about-stats { grid-template-columns: repeat(4, 1fr); } }
.about-stat-num.is-word { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.2; font-weight: 500; }
.about-visual { position: relative; overflow: hidden; background: var(--bg-night); }
.about-hero { grid-template-columns: 0.95fr 1.05fr; align-items: center; }
@media (max-width: 900px) { .about-hero { grid-template-columns: 1fr; align-items: start; } }
.about-photo { aspect-ratio: 1 / 1; }
.about-photo .about-visual-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── Technologies ─────────────────────────────────── */
.tech-groups { display: flex; flex-direction: column; gap: 16px; }
.tech-group {
  padding: 24px 26px;
  background: var(--bg-soft);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.tech-group:hover { box-shadow: var(--shadow-elevated); }
.tech-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tech-group-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--bg-tint);
  border: 1px solid var(--border-2);
  color: var(--accent-orig);
}
.tech-group-head h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-hi); }
.tech-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 9px;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-hi);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.tech-chip:hover { border-color: var(--text-hi); transform: translateY(-1px); }
.tech-chip img { width: 22px; height: 22px; object-fit: contain; }

/* ─── Process: step label stays tidy without durations ─ */
.step-text small { display: block; }

/* ─── Selected work ────────────────────────────────── */
.projects-note { margin-top: 18px; font-size: 12.5px; color: var(--text-faint); }
.projects-page-body .projects-note { margin-top: 28px; text-align: center; }
.stat-num.is-word { font-size: clamp(20px, 2.05vw, 30px); font-weight: 400; line-height: 1.15; letter-spacing: -0.03em; display: block; overflow-wrap: anywhere; }
.stat-num-group:has(.is-word) { display: block; min-height: 2.4em; }
.project-more-num { font-variant-numeric: tabular-nums; }

/* Project details modal — structured case study */
.pm-media-label {
  position: absolute; left: 16px; bottom: 14px;
  padding: 5px 12px;
  font: 500 10.5px/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(6, 10, 22, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
}
.pm-section { margin-bottom: 24px; }
.pm-section:last-child { margin-bottom: 0; }
.pm-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-hi);
}
.pm-label .pm-n { font: 500 11px/1 var(--font-mono); color: var(--accent-orig); letter-spacing: 0.04em; }
.pm-section p { font-size: 14px; line-height: 1.7; color: var(--text-mid); }
.pm-features { display: flex; flex-direction: column; gap: 8px; }
.pm-features li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.5; color: var(--text-mid); }
.pm-features li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 15px; height: 15px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pm-tech { margin-bottom: 0; }
.pm-live {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--bg-tint); border: 1px solid var(--border-1); border-radius: var(--radius-lg);
}
.pm-live-url { font: 500 12.5px/1.4 var(--font-mono); color: var(--text-hi); overflow-wrap: anywhere; }
.pm-dialog { width: min(720px, 100%); }
.pm-btn-ghost { display: inline-flex; }

/* ─── Engineering principles ───────────────────────── */
.cap-list li { align-items: flex-start; }
.cap-num { font-family: var(--font-mono); font-size: 12px; padding-top: 2px; }
.cap-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cap-text strong { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.cap-text small { font-size: 12.5px; line-height: 1.5; color: var(--text-mid); }

/* ─── Why AURAX: richer cards + closing call to action ─── */
.why-item { display: flex; flex-direction: column; }
.why-item p { font-size: 14.5px; margin-bottom: 20px; }
.why-points {
  list-style: none; margin: auto 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--border-1);
  display: flex; flex-direction: column; gap: 10px;
}
.why-points li { position: relative; padding-left: 26px; font-size: 13.5px; line-height: 1.45; color: var(--text-hi); }
.why-points li::before {   /* same tick as the Solutions / Engagement lists (.check-list) */
  content: ''; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; background: var(--accent-orig);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.why-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 40px; padding: 28px 32px;
  background: var(--text-hi); color: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated);
}
.why-cta-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.why-cta-text strong { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.why-cta-text span { font-size: 14.5px; color: rgba(255, 255, 255, 0.72); }
.why-cta .btn-primary { background: #fff; color: #101010; border-color: #fff; flex-shrink: 0; }
.why-cta .btn-primary:hover { background: #F4F1EA; border-color: #F4F1EA; }
@media (max-width: 760px) { .why-cta { flex-direction: column; align-items: flex-start; padding: 26px 24px; } .why-cta .btn { width: 100%; justify-content: center; } }
@media (max-width: 600px) { .why-item { padding: 26px; } }

/* ─── Insights ─────────────────────────────────────── */
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .insight-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .insight-grid { grid-template-columns: 1fr; } }
.insight-card {
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.insight-card:hover { box-shadow: var(--shadow-elevated); transform: translateY(-3px); }
.insight-media { margin: 0; aspect-ratio: 8 / 5; overflow: hidden; border-bottom: 1px solid var(--border-1); background: #F6F5F2; }
.insight-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.insight-card:hover .insight-media img { transform: scale(1.045); }
.insight-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 22px 26px 26px; }
.insight-card h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; color: var(--text-hi); }
.insight-card p { font-size: 14px; line-height: 1.6; color: var(--text-mid); }
.insight-status {
  align-self: flex-start; margin-top: auto;
  padding: 4px 10px;
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--text-low);
  border: 1px dashed var(--border-3, var(--border-2));
  border-radius: var(--radius-full);
}
.insight-card p { margin-bottom: 8px; }
.insight-note { margin-top: 28px; text-align: center; font-size: 13px; color: var(--text-low); }

/* Solutions cards: photo, merged description and checklist */
.sol-card .insight-body { gap: 12px; padding-bottom: 26px; }
.sol-card .check-list { margin-top: 4px; display: grid; gap: 9px; }
.sol-card .check-list li { font-size: 14px; }
#solutions .section-title { text-wrap: balance; }

/* ─── Consultation ─────────────────────────────────── */
.status-pill .mono { font-size: 11px; letter-spacing: 0.12em; }
.consult-cta { margin-top: 28px; }

/* ─── Engagement models ────────────────────────────── */
.checklist-grid--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .checklist-grid--three { grid-template-columns: 1fr; } }
.engage-note { margin-top: 24px; font-size: 13px; color: var(--text-low); text-align: center; }

/* ─── FAQ accordion ────────────────────────────────── */
.faq-list { border-top: 1px solid var(--border-1); }
.faq-item { border-bottom: 1px solid var(--border-1); transition: background var(--dur-fast) var(--ease); }
.faq-item.is-open, .faq-item:hover { background: rgba(255, 255, 255, 0.5); }
.faq-heading { font-size: inherit; font-weight: inherit; }
.faq-q {
  display: flex; align-items: center; gap: 20px;
  width: 100%;
  padding: 26px 8px 26px 0;
  text-align: left;
  font: inherit;
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-hi);
  cursor: pointer;
  background: none;
  border: 0;
}
.faq-num { flex-shrink: 0; min-width: 28px; font-size: 12px; color: var(--accent-orig); }
.faq-q-text { flex: 1; min-width: 0; }
.faq-icon {
  position: relative; flex-shrink: 0;
  width: 36px; height: 36px;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform 0.4s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.5px;
  background: var(--text-hi);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease), background var(--dur-fast) var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon { background: var(--text-hi); border-color: var(--text-hi); transform: rotate(180deg); }
.faq-q[aria-expanded="true"] .faq-icon::before, .faq-q[aria-expanded="true"] .faq-icon::after { background: #fff; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-q:hover .faq-icon { border-color: var(--text-hi); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.45s var(--ease), visibility 0s linear 0.45s;
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a p { max-width: 760px; padding: 0 64px 28px 48px; font-size: 15.5px; line-height: 1.7; color: var(--text-mid); }
@media (max-width: 640px) {
  .faq-q { gap: 14px; padding: 22px 0; }
  .faq-a p { padding: 0 8px 24px 42px; font-size: 15px; }
  .faq-icon { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-a, .faq-icon, .faq-icon::before, .faq-icon::after { transition: none; }
}

/* ─── Contact / inquiry form ───────────────────────── */
.contact-info-card[hidden] { display: none; }
.social-icon[hidden] { display: none; }
.footer-col li[hidden] { display: none; }
.footer-col .footer-static { padding-block: 4px; font-size: 14px; color: var(--text-mid); }   /* plain-text item (not a link) in the Connect list */
.contact-info-card .status-dot, .contact-info-card .status-dot::after { background: var(--color-success); }
.contact-info-text .value--wrap { display: block; font-size: 13.5px; font-weight: 400; line-height: 1.5; color: var(--text-mid); }
.field select {
  width: 100%;
  font-family: var(--font-display);
  font-size: 14px;
  padding: 12px 40px 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-field);
  background-color: var(--bg-white);
  color: var(--text-hi);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B6A67' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.field select:focus { outline: 2px solid var(--accent-strong); outline-offset: 1px; border-color: var(--accent-strong); background-color: var(--bg-white); }
.field.invalid select { border-color: var(--color-danger); }
.field .optional { font-weight: 400; font-size: 12px; color: var(--text-faint); }
.form-feedback a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form-feedback .fb-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-top: 8px; }
.form-feedback .fb-text { display: block; }

/* ─── Footer: four columns ─────────────────────────── */
.footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .footer-brand { grid-column: 1 / -1; max-width: 480px; }
}

/* ─── Chat assistant: brand colour (was WhatsApp green) ─ */
.chat-status::before { background: var(--accent); }
.chat-link { background: var(--accent-strong); color: #fff; }
.chat-link:hover { background: var(--color-primary-hover); }
.chat-avatar { border-radius: 14px; }
.form-feedback .fb-copy { min-height: 24px; padding: 2px 0; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; }

/* ─── Chat header/chips fit + longer AURAX section headings on small screens ─ */
.chat-head { gap: 10px; }
.chat-avatar { width: 40px; height: 40px; border-radius: 12px; }
.chat-status { white-space: nowrap; }
.chat-chips { max-height: 190px; }   /* room for four rows so the first-screen chips are all visible */
@media (max-width: 640px) { .section-title { font-size: 30px; } }
@media (max-width: 380px) { .section-title { font-size: 27px; } }

/* ─── Buttons: no movement on hover — only a simple background colour change ─── */
.btn { transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); transform: none; box-shadow: none; }
.btn-ghost:hover { background: rgba(16, 16, 16, 0.06); border-color: rgba(16, 16, 16, 0.3); color: var(--text-hi); transform: none; }
.btn-primary svg, .btn-ghost svg { transition: none; }
.btn-primary:hover svg, .btn-ghost:hover svg { transform: none; }
.pm-close:hover { transform: none; }
.social-icon:hover { transform: none; }
.project-more-tile:hover .project-more-arrow { transform: none; }


/* ─── About Us page ─────────────────────────────────── */
.about-hero--flip { grid-template-columns: 1.05fr 0.95fr; }
.about-hero--flip .about-photo { order: 2; }
@media (max-width: 900px) {
  .about-hero--flip { grid-template-columns: 1fr; }
  .about-hero--flip .about-photo { order: 0; max-width: 520px; }
}
.about-page-hero .about-hero { margin-bottom: 0; margin-top: 8px; }
.about-page-hero .about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .mv-grid { grid-template-columns: 1fr; } }
.mv-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 40px; background: #fff; color: var(--text-hi);
  border: 1px solid var(--border-1); border-radius: var(--radius-xl); box-shadow: var(--shadow-card);
}
.mv-card .card-label { margin-bottom: 4px; }
.mv-card h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.mv-card p { font-size: 16px; line-height: 1.65; color: var(--text-mid); }
.mv-card.is-dark { background: var(--text-hi); color: #fff; border-color: transparent; box-shadow: var(--shadow-elevated); }
.mv-card.is-dark .card-label { color: var(--accent-on-dark); }
.mv-card.is-dark p { color: rgba(255, 255, 255, 0.78); }
@media (max-width: 560px) { .mv-card { padding: 28px 24px; } }

.tech-groups--row { flex-direction: row; flex-wrap: wrap; align-items: stretch; }
.tech-groups--row .tech-group { flex: 1 1 320px; }

.contact-teaser-inner h2 { line-height: 1.15; }


/* Navigation between pages */
section[id] { scroll-margin-top: 80px; }
.mobile-link.active { color: var(--accent-orig); }
.mobile-link.active::before { color: var(--accent-orig); }

/* About page: "What we do" cards reuse the Insights card design */
.do-grid { margin-top: 8px; grid-template-columns: repeat(3, 1fr); }   /* six equal cards: 3 x 2 */
@media (max-width: 900px) { .do-grid { grid-template-columns: repeat(2, 1fr); } }   /* 2 x 3 */
@media (max-width: 600px) { .do-grid { grid-template-columns: 1fr; } }

/* ─── Intro greeting: "Hello" in 20 languages, flashing under the logo ─── */
.preloader-hello {
  display: flex; align-items: center; justify-content: center;
  height: 44px; margin-top: 10px; padding: 0 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.3; text-align: center; white-space: nowrap;
  color: var(--text-hi);
  opacity: 0;
}
.preloader-hello.is-on { opacity: 1; }

/* ═════════════════════════════════════════════════════════════════
   SERVICES — six equal cards, technical visuals with live motion
   (original inline-SVG compositions; colours come from --k-* tokens)
   ═════════════════════════════════════════════════════════════════ */
.sv-section .section-head { margin-bottom: 26px; }
.sv-accent { font-style: normal; color: var(--accent-strong); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .sv-accent, .sv-accent .word-inner {
    background-image: linear-gradient(96deg, #1744E8 0%, #1B4DFF 52%, var(--accent-on-dark) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}
#services .section-title { text-wrap: balance; }

.sv-statement {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 44px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mid);
}
.sv-statement::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); flex: none; }
.sv-statement::after { content: ''; flex: 1 1 80px; height: 1px; background: linear-gradient(90deg, var(--border-3), transparent); }
.sv-statement span + span::before { content: '/'; margin-right: 14px; color: var(--text-faint); }
.sv-statement span:last-of-type { color: var(--accent-strong); }

/* grid: 3 × 2 on desktop, 2 × 3 on tablet, 1 column on mobile — all six cards identical */
.sv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.sv-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; isolation: isolate; overflow: hidden;
  background: var(--bg-soft);; border: 1px solid var(--border-2); border-radius: var(--radius-xl); box-shadow: var(--shadow-card);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.4s var(--ease);
}
.sv-card::before {          /* pointer-following glow (position set by script.js) */
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.45s var(--ease);
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), rgba(27, 77, 255, 0.11), transparent 62%);
}
.sv-card:hover::before { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .sv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-elevated); border-color: rgba(27, 77, 255, 0.32); }
}

/* — visual panel — */
.sv-vis {
  --k-win: #fff; --k-ti: #F6F5F2; --k-bd: rgba(16, 16, 16, 0.13); --k-gl: rgba(16, 16, 16, 0.07);
  --k-ln: rgba(16, 16, 16, 0.08); --k-ln2: rgba(16, 16, 16, 0.16); --k-l2: rgba(16, 16, 16, 0.28);
  --k-ink: #101010; --k-mut: #6B6A67; --k-acc: #1B4DFF; --k-acc-t: #1744E8; --k-accd: rgba(27, 77, 255, 0.13);
  --k-ok: var(--color-success-fill); --k-okd: rgba(16, 185, 129, 0.18); --k-wrn: var(--color-warning); --k-wrd: rgba(245, 158, 11, 0.2);
  --k-wfs: rgba(16, 16, 16, 0.34); --k-grid: rgba(16, 16, 16, 0.055); --k-panel: #F6F5F2;
  position: relative; z-index: 1; margin: 10px 10px 0; overflow: hidden; aspect-ratio: 400 / 230;
  border-radius: calc(var(--radius-xl) - 8px); border: 1px solid var(--border-1);
  background: radial-gradient(120% 100% at 50% 0%, #fff 0%, var(--k-panel) 100%);
}
.sv-vis::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--k-grid) 1px, transparent 1px), linear-gradient(90deg, var(--k-grid) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse at 50% 45%, #000 25%, transparent 78%);
}
.sv-vis svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* — SVG drawing classes (order matters: later rules win) — */
.k-tx { font-family: var(--font-mono); fill: var(--k-ink); }
.k-w { fill: var(--k-win); stroke: var(--k-bd); stroke-width: 1; }
.k-ph { stroke: var(--k-l2); stroke-width: 1.8; }
.k-ti { fill: var(--k-ti); }
.k-bg { fill: var(--k-win); }
.k-chip { fill: var(--k-ti); stroke: var(--k-bd); }
.k-bd { stroke: var(--k-bd); stroke-width: 1; }
.k-gl { stroke: var(--k-gl); stroke-width: 1; }
.k-ln { fill: var(--k-ln); }
.k-ln2 { fill: var(--k-ln2); }
.k-l2 { fill: var(--k-l2); }
.k-ak { fill: var(--k-acc); }
.k-ad { fill: var(--k-accd); }
.k-ink { fill: var(--k-ink); }
.k-mut { fill: var(--k-mut); }
.k-ac { fill: var(--k-acc-t); }
.k-ok { fill: var(--k-ok); }
.k-okd { fill: var(--k-okd); }
.k-wrn { fill: var(--k-wrn); }
.k-wrd { fill: var(--k-wrd); }
.k-dot2 { fill: var(--k-acc); }
.k-wh, .k-whf { fill: #fff; }
.k-wh2 { fill: rgba(255, 255, 255, 0.62); }
.k-wh3 { fill: rgba(255, 255, 255, 0.14); }
.k-whs { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.k-bag { fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.k-sh { fill: rgba(255, 255, 255, 0.86); }
.k-ring { fill: none; stroke: var(--k-l2); stroke-width: 1.2; }
.k-ring2 { stroke: var(--k-acc); stroke-width: 1; }
.k-selring { fill: none; stroke: var(--k-acc); stroke-width: 1.6; }
.k-sel3 { stroke: var(--k-win); stroke-width: 1.5; }
.k-drw { stroke: var(--k-acc); stroke-opacity: 0.45; }
.k-line, .k-spark { fill: none; stroke: var(--k-acc); stroke-linecap: round; stroke-linejoin: round; }
.k-line { stroke-width: 2.2; }
.k-spark { stroke-width: 1.4; }
.k-fill { stroke: none; }
.k-dot { fill: var(--k-acc); stroke: var(--k-win); stroke-width: 2; }
.k-ping, .k-ping2 { fill: none; stroke: var(--k-acc); stroke-width: 1.4; }
.k-dash { fill: none; stroke: var(--k-l2); stroke-width: 1.2; stroke-dasharray: 2 3; }
.k-ico { fill: none; stroke: var(--k-acc); stroke-width: 1.3; }
.k-sel { fill: none; stroke: var(--k-acc); stroke-width: 1.4; stroke-dasharray: 4 3; }
.k-hdl { fill: #fff; stroke: var(--k-acc); stroke-width: 1.3; }
.k-cur { fill: var(--k-ink); stroke: var(--k-win); stroke-width: 1.3; stroke-linejoin: round; }
.k-aa { font-family: var(--font-display); font-weight: 700; }
.k-conn { fill: none; stroke: var(--k-l2); stroke-width: 1.3; }
.k-flow { fill: none; stroke: var(--k-acc); stroke-width: 1.7; stroke-dasharray: 3 8; stroke-linecap: round; }
.k-hub { stroke: var(--k-acc); stroke-width: 1.4; }
.k-glowr { fill: none; stroke: var(--k-acc); stroke-width: 2; opacity: 0.18; }
.k-brace { font-weight: 700; }
.k-ln-s { fill: none; stroke: var(--k-bd); }
.k-sync { fill: none; stroke: var(--k-acc); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.k-ring3 { fill: none; stroke: var(--k-ln2); stroke-width: 8; }
.k-arc { fill: none; stroke: var(--k-ok); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 0.82 1; transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; }
.k-tick { fill: none; stroke: var(--k-ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.k-grow { transform-box: fill-box; transform-origin: left center; }

/* layers: transition for hover, keyframes for the entrance (no-JS shows the final state) */
.ly, .lp { transform-box: fill-box; transform-origin: center; }
.ly { transition: transform 0.7s var(--ease); }
.svc-anim .sv-card:not(.is-in) .ly { opacity: 0; }
.svc-anim .sv-card.is-in .ly { animation: k-ly 0.95s var(--ease) backwards; }
.svc-anim .sv-card.is-in .d1 { animation-delay: 0.05s; }
.svc-anim .sv-card.is-in .d2 { animation-delay: 0.16s; }
.svc-anim .sv-card.is-in .d3 { animation-delay: 0.27s; }
.svc-anim .sv-card.is-in .d4 { animation-delay: 0.38s; }
.svc-anim .sv-card.is-in .d5 { animation-delay: 0.49s; }
.svc-anim .sv-card.is-in .d6 { animation-delay: 0.6s; }
@keyframes k-ly { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
.svc-anim .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.svc-anim .sv-card.is-in .draw { animation: k-draw 1.7s var(--ease) 0.7s forwards; }
@keyframes k-draw { to { stroke-dashoffset: 0; } }
.svc-anim .sv-card:not(.is-in) .k-grow { transform: scaleX(0); }
.svc-anim .sv-card.is-in .k-grow { animation: k-grow 1.2s var(--ease) 0.75s backwards; }
@keyframes k-grow { from { transform: scaleX(0); } }

/* hover choreography */
@media (hover: hover) and (pointer: fine) {
  .sv-card:hover .ly-win { transform: translate(-6px, 2px); }
  .sv-card:hover .ly-code { transform: translate(8px, -4px); }
  .sv-card:hover .ly-db { transform: translate(8px, 5px); }
  .sv-card:hover .ly-ph { transform: translate(-4px, -7px) rotate(-2deg); }
  .sv-card:hover .ly-pc1 { transform: translateY(-5px); }
  .sv-card:hover .ly-pc2 { transform: translateY(-9px); transition-delay: 0.05s; }
  .sv-card:hover .ly-pc3 { transform: translateY(-5px); transition-delay: 0.1s; }
  .sv-card:hover .ly-cart { transform: scale(1.08); }
  .sv-card:hover .ly-link { transform: scale(1.12); }
  .sv-card:hover .ly-cal { transform: translateY(-4px); }
  .sv-card:hover .ly-list { transform: translateY(-4px); transition-delay: 0.06s; }
  .sv-card:hover .ly-hub { transform: scale(1.05); }
  .sv-card:hover .ly-gauge { transform: scale(1.06); }
}

/* live motion: every drawing keeps moving while its card is on screen (.is-live is set by script.js) */
@media (prefers-reduced-motion: no-preference) {
  .sv-card.is-live .k-flow { animation: k-flow 1.5s linear infinite; }
  .sv-card.is-live .lp-m7 { animation: lp-m7 1.1s linear infinite; }
  .sv-card.is-live .lp-m5 { animation: lp-m5 1.4s linear infinite; }
  .sv-card.is-live .lp-navhl2 { animation: lp-navhl2 10s var(--ease) infinite; }
  .sv-card.is-live .lp-ping { animation: lp-ping 2.4s ease-out infinite; }
  .sv-card.is-live .lp-caret { animation: lp-caret 1.05s steps(1) infinite; }
  .sv-card.is-live .lp-pulse { animation: lp-pulse 2.2s ease-in-out infinite; }
  .sv-card.is-live .lp-float { animation: lp-float 3.4s ease-in-out infinite; }
  .sv-card.is-live .lp-blink { animation: lp-blink 2s ease-in-out infinite; }
  .sv-card.is-live .lp-beat { animation: lp-beat 2.2s ease-in-out infinite; }
  .sv-card.is-live .lp-cell { animation: lp-cell 3s ease-in-out infinite; }
  .sv-card.is-live .lp-spk { animation: lp-spk 5s var(--ease) infinite; }
  .sv-card.is-live .lp-glow { animation: lp-glow 2.8s ease-in-out infinite; }
  .sv-card.is-live .lp-d1 { animation-delay: 0s; }
  .sv-card.is-live .lp-d2 { animation-delay: 0.35s; }
  .sv-card.is-live .lp-d3 { animation-delay: 0.7s; }
  .sv-card.is-live .lp-d4 { animation-delay: 1.05s; }
  .sv-card.is-live .lp-d5 { animation-delay: 1.4s; }
}
@keyframes k-flow { to { stroke-dashoffset: -22; } }
@keyframes lp-m7 { to { stroke-dashoffset: -14; } }
@keyframes lp-m5 { to { stroke-dashoffset: -10; } }
@keyframes lp-navhl2 { 0%, 16% { transform: translateY(0); } 22%, 38% { transform: translateY(24px); } 44%, 60% { transform: translateY(48px); } 66%, 82% { transform: translateY(24px); } 100% { transform: translateY(0); } }
@keyframes lp-ping { 0% { transform: scale(1); opacity: 0.75; } 75%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes lp-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes lp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes lp-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes lp-beat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.55); } 40% { transform: scale(1); } }
@keyframes lp-cell { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes lp-spk { 0% { stroke-dasharray: 1; stroke-dashoffset: 1; } 38%, 86% { stroke-dasharray: 1; stroke-dashoffset: 0; } 100% { stroke-dasharray: 1; stroke-dashoffset: -1; } }
@keyframes lp-glow { 0%, 100% { opacity: 0.1; } 50% { opacity: 0.85; } }
/* — body — */
.sv-body { display: flex; flex-direction: column; flex: 1; padding: 20px 26px 26px; min-width: 0; }
.sv-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sv-num { font-size: 12px; letter-spacing: 0.1em; color: var(--accent-strong); }
.sv-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-3), transparent); }
.sv-go { display: block; flex: none; color: inherit; text-decoration: none; }
.sv-go::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: var(--radius-xl); }
.sv-go:focus-visible { outline: none; }
.sv-go:focus-visible::after { outline: 2px solid var(--accent-strong); outline-offset: -3px; }
.sv-go-ic {
  position: relative; z-index: 4; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--text-hi); background: #fff; border: 1px solid var(--border-2); pointer-events: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform 0.5s var(--ease);
}
.sv-go-ic svg { transform: rotate(-45deg); transition: transform 0.5s var(--ease); }
.sv-card:hover .sv-go-ic, .sv-go:focus-visible .sv-go-ic { background: var(--text-hi); color: #fff; border-color: var(--text-hi); }
.sv-card:hover .sv-go-ic svg, .sv-go:focus-visible .sv-go-ic svg { transform: rotate(0deg); }

.sv-title .nw { white-space: nowrap; }
.sv-title { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--text-hi); text-wrap: balance; }
.sv-headline { margin: 0; font-size: 15.5px; font-weight: 500; line-height: 1.4; letter-spacing: -0.005em; color: var(--accent-strong); text-wrap: balance; }
.sv-desc { margin: 12px 0 20px; font-size: 14px; line-height: 1.62; color: var(--text-mid); }
.sv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 0; list-style: none; }
.sv-tags li {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.01em; line-height: 1.3;
  color: var(--text-mid); background: var(--bg-tint); border: 1px solid var(--border-2); border-radius: var(--radius-full);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.sv-tags li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-orig); flex: none; }
.sv-card:hover .sv-tags li { border-color: rgba(27, 77, 255, 0.2); background: #fff; color: var(--text-hi); }

/* — bottom CTA — */
.sv-cta {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  margin-top: 20px; padding: 36px 40px; color: #fff; background: var(--text-primary); border-radius: var(--radius-xl); box-shadow: var(--shadow-elevated);
}
.sv-cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 88%) var(--my, 40%), rgba(126, 154, 255, 0.32), transparent 62%);
}
.sv-cta::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px; -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%); mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
}
.sv-cta-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sv-cta-text strong { font-size: clamp(24px, 3vw, 34px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.sv-cta-text span { font-size: 15.5px; color: rgba(255, 255, 255, 0.74); }
.sv-cta .btn-primary { flex: none; background: #fff; color: #101010; border-color: #fff; }
.sv-cta .btn-primary:hover { background: #F4F1EA; border-color: #F4F1EA; color: #101010; }

/* — responsive — */
@media (max-width: 1023px) {
  .sv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .sv-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sv-statement { margin-bottom: 32px; }
  .sv-statement::after, .sv-statement span + span::before { display: none; }
  .sv-body { padding: 18px 22px 24px; }
  .sv-title { font-size: 21px; }
  .sv-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 22px; }
  .sv-cta .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-card, .sv-go-ic, .sv-go-ic svg, .ly, .sv-tags li { transition: none; }
  .sv-card:hover { transform: none; }
}

/* ── v3: website being built (01), design tool (03), hopping check (04), clickable shop (02) ── */
.k-tag { fill: var(--k-acc); }
.k-tool { fill: none; stroke: var(--k-ink); stroke-width: 1.4; }
.k-cur2 { fill: var(--k-ink); }
.k-ibeam { fill: none; stroke: var(--k-ink); stroke-width: 1.5; stroke-linecap: round; }
.k-ibeam-bg { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.k-addok, .k-plus1 { opacity: 0; }
.k-plus1 { font-weight: 700; transform-box: fill-box; transform-origin: center; }
.is-added .k-addok { opacity: 1; }
.is-added .k-addplus { opacity: 0; }
.ly-pc { cursor: pointer; }
.sv-c2 .sv-vis { z-index: 5; }          /* sits above the card link so the products can be clicked */
/* static state of the design-tool drawing (no JS / reduced motion / off-screen): hero selected, arrow cursor */
.lp-s2, .lp-s3, .lp-cst, .lp-csx { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .sv-card.is-live .lp-check { animation: lp-check 8s var(--ease) infinite; }
  .sv-card.is-live .lp-cur2 { animation: lp-t-cur 12s ease-in-out infinite; }
  .sv-card.is-live .lp-csa { animation: lp-t-a 12s linear infinite; }
  .sv-card.is-live .lp-cst { animation: lp-t-i 12s linear infinite; }
  .sv-card.is-live .lp-csx { animation: lp-t-x 12s linear infinite; }
  .sv-card.is-live .lp-s1 { animation: lp-t-s1 12s linear infinite; }
  .sv-card.is-live .lp-s2 { animation: lp-t-s2 12s linear infinite; }
  .sv-card.is-live .lp-s3 { animation: lp-t-s3 12s linear infinite; }
  .sv-card.is-live .lp-tool { animation: lp-t-tool 12s var(--ease) infinite; }
  .sv-card.is-live .lp-layer { animation: lp-t-layer 12s var(--ease) infinite; }
  .sv-card.is-live .lp-b3 { animation: lp-b3 11s ease infinite; }
  .sv-card.is-live .lp-b7 { animation: lp-b7 11s ease infinite; }
  .sv-card.is-live .lp-b11 { animation: lp-b11 11s ease infinite; }
  .sv-card.is-live .lp-b14 { animation: lp-b14 11s ease infinite; }
  .sv-card.is-live .lp-b15 { animation: lp-b15 11s ease infinite; }
  .sv-card.is-live .lp-b19 { animation: lp-b19 11s ease infinite; }
  .sv-card.is-live .lp-b20 { animation: lp-b20 11s ease infinite; }
  .sv-card.is-live .lp-b23 { animation: lp-b23 11s ease infinite; }
  .sv-card.is-live .lp-b26 { animation: lp-b26 11s ease infinite; }
  .sv-card.is-live .lp-b27 { animation: lp-b27 11s ease infinite; }
  .sv-card.is-live .lp-b31 { animation: lp-b31 11s ease infinite; }
  .sv-card.is-live .lp-b32 { animation: lp-b32 11s ease infinite; }
  .sv-card.is-live .lp-b38 { animation: lp-b38 11s ease infinite; }
  .sv-card.is-live .lp-b42 { animation: lp-b42 11s ease infinite; }
  .sv-card.is-live .lp-b46 { animation: lp-b46 11s ease infinite; }
  .sv-card.is-live .lp-b52 { animation: lp-b52 11s ease infinite; }
  .sv-card .lp-bump.is-hit { animation: lp-hit 0.5s var(--ease); }
  .sv-card .k-plus1.is-go { animation: lp-plus1 0.9s ease-out; }
}
@keyframes lp-check { 0%, 20% { transform: translate(0, 0); } 25%, 45% { transform: translate(-78px, 19px); } 50%, 70% { transform: translate(0, 38px); } 75%, 95% { transform: translate(19.5px, -19px); } 100% { transform: translate(0, 0); } }
@keyframes lp-t-cur { 0%, 30% { transform: translate(0, 0); } 36%, 64% { transform: translate(-36px, -14px); } 70%, 96% { transform: translate(-68px, 40px); } 100% { transform: translate(0, 0); } }
@keyframes lp-t-a { 0%, 29% { opacity: 1; } 31%, 95% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes lp-t-i { 0%, 29% { opacity: 0; } 31%, 65% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes lp-t-x { 0%, 65% { opacity: 0; } 67%, 95% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes lp-t-s1 { 0% { opacity: 0; } 4%, 28% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes lp-t-s2 { 0%, 34% { opacity: 0; } 38%, 62% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes lp-t-s3 { 0%, 68% { opacity: 0; } 72%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes lp-t-tool { 0%, 30% { transform: translateY(0); } 36%, 64% { transform: translateY(24px); } 70%, 96% { transform: translateY(48px); } 100% { transform: translateY(0); } }
@keyframes lp-t-layer { 0%, 30% { transform: translateY(0); } 36%, 64% { transform: translateY(14px); } 70%, 96% { transform: translateY(28px); } 100% { transform: translateY(0); } }
@keyframes lp-hit { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.5); } }
@keyframes lp-plus1 { 0% { opacity: 0; transform: translateY(4px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes lp-b3 { 0%, 3% { opacity: 0; transform: translateY(5px); } 7%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes lp-b7 { 0%, 7% { opacity: 0; transform: translateY(5px); } 11%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes lp-b11 { 0%, 11% { opacity: 0; transform: translateY(5px); } 15%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes lp-b14 { 0%, 14% { opacity: 0; transform: translateY(5px); } 18%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes lp-b15 { 0%, 15% { opacity: 0; transform: translateY(5px); } 19%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes lp-b19 { 0%, 19% { opacity: 0; transform: translateY(5px); } 23%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes lp-b20 { 0%, 20% { opacity: 0; transform: translateY(5px); } 24%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes lp-b23 { 0%, 23% { opacity: 0; transform: translateY(5px); } 27%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes lp-b26 { 0%, 26% { opacity: 0; transform: translateY(5px); } 30%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes lp-b27 { 0%, 27% { opacity: 0; transform: translateY(5px); } 31%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes lp-b31 { 0%, 31% { opacity: 0; transform: translateY(5px); } 35%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes lp-b32 { 0%, 32% { opacity: 0; transform: translateY(5px); } 36%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes lp-b38 { 0%, 38% { opacity: 0; transform: translateY(5px); } 42%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes lp-b42 { 0%, 42% { opacity: 0; transform: translateY(5px); } 46%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes lp-b46 { 0%, 46% { opacity: 0; transform: translateY(5px); } 50%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes lp-b52 { 0%, 52% { opacity: 0; transform: translateY(5px); } 56%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* ── v4: cart demo (02) — script.js adds products, moves the selection ring and grows the cart list ── */
.k-selring { transition: transform 0.65s var(--ease); }
.k-selring.r0 { transform: translateX(-72px); }
.k-selring.r2 { transform: translateX(72px); }
.k-item { transition: transform 0.55s var(--ease), opacity 0.45s var(--ease); }
.k-item.s0 { transform: translateY(0); }
.k-item.s1 { transform: translateY(16px); }
.k-item.s2 { transform: translateY(32px); }
.k-item.s3 { transform: translateY(48px); opacity: 0; }
.k-item.sx { transform: translateY(-16px); opacity: 0; }
.k-cartn { font-weight: 700; }
.k-checkout { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .sv-card .lp-pop.is-pop { animation: lp-pop1 0.6s var(--ease); }
  .sv-card .k-checkout.is-press { animation: lp-press 0.7s var(--ease); }
}
@media (prefers-reduced-motion: reduce) { .k-selring, .k-item { transition: none; } }
@keyframes lp-pop1 { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.35); } }
@keyframes lp-press { 0%, 100% { transform: scale(1); } 35% { transform: scale(0.9); } }

/* ── v5: API & Database (05) — a request travels client → REST API → database; Optimization (06) — indicators that improve ── */
.k-okt { fill: var(--color-success); }
.k-wrt { fill: var(--color-warning-text); }
.sv-c5 .sv-vis { z-index: 5; }          /* sits above the card link so the endpoints can be clicked */

/* 05 · static look (no JS / reduced motion / off-screen): POST /orders answered with 201 Created, the new row is in the table */
.ap-rbg { fill: var(--k-ti); stroke: transparent; stroke-width: 1; transition: fill 0.35s var(--ease), stroke 0.35s var(--ease); }
.ap-row { cursor: pointer; }
.ap-cyl { fill: none; stroke: var(--k-ink); stroke-width: 1.2; }
.ap-rel { fill: none; stroke: var(--k-acc); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; stroke-opacity: 0.6; }
.ap-reld { fill: var(--k-acc); }
.ap-port { fill: var(--k-win); stroke: var(--k-l2); stroke-width: 1.2; }
.ap-hu { fill: var(--k-accd); }
.ap-hn { fill: var(--k-wrd); }
.ap-nb { fill: var(--k-okd); }
.ap-c { fill: none; stroke: var(--k-acc); stroke-width: 1.7; stroke-dasharray: 3 7; stroke-linecap: round; opacity: 0; transition: opacity 0.35s var(--ease); }
.ap-pk { fill: var(--k-acc); opacity: 0; }
.ap-pkres { fill: var(--k-ok); }
.ap-v, .ap-op, .ap-hu, .ap-hn, .ap-new { opacity: 0; transition: opacity 0.4s var(--ease); }
.ap-new { transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.6s var(--ease); }
.ap-res, .ap-wait { transition: opacity 0.35s var(--ease); }
.ap-wait { opacity: 0; }

/* which endpoint is active */
.ap[data-ep="0"] .ap-r0 .ap-rbg, .ap[data-ep="1"] .ap-r1 .ap-rbg, .ap[data-ep="2"] .ap-r2 .ap-rbg { fill: var(--k-accd); stroke: var(--k-acc); }
.ap[data-ep="0"] .ap-c0, .ap[data-ep="1"] .ap-c1, .ap[data-ep="2"] .ap-c2 { opacity: 1; }
.ap[data-ep="0"] .ap-cu, .ap[data-ep="2"] .ap-cu, .ap[data-ep="1"] .ap-co { opacity: 1; }
.ap[data-ep="0"] .ap-v0, .ap[data-ep="1"] .ap-v1, .ap[data-ep="2"] .ap-v2 { opacity: 1; }
/* phase of the call */
.ap:not([data-ph="3"]) .ap-res { opacity: 0; }
.ap:is([data-ph="0"], [data-ph="1"], [data-ph="2"]) .ap-wait { opacity: 1; }
.ap[data-ep="0"]:is([data-ph="2"], [data-ph="3"]) .ap-hu { opacity: 1; }
.ap[data-ep="2"]:is([data-ph="2"], [data-ph="3"]) .ap-hn { opacity: 1; }
.ap[data-ep="1"]:is([data-ph="2"], [data-ph="3"]) .ap-new { opacity: 1; transform: none; }
.ap[data-ep="0"]:is([data-ph="1"], [data-ph="2"], [data-ph="3"]) .ap-opu0,
.ap[data-ep="2"]:is([data-ph="1"], [data-ph="2"], [data-ph="3"]) .ap-opu2,
.ap[data-ep="1"]:is([data-ph="1"], [data-ph="2"], [data-ph="3"]) .ap-opo1 { opacity: 1; }
.ap[data-ep="1"] .ap-new { transition-delay: 0s; }
.ap[data-ep="0"] .ap-new, .ap[data-ep="2"] .ap-new { transform: translateY(8px); }

@media (prefers-reduced-motion: no-preference) {
  .sv-card.is-live .ap-c { animation: k-flow 1.2s linear infinite; }
  .ap[data-ph="1"] .ap-glow { animation: ap-glow 0.8s var(--ease); }
}
@keyframes ap-glow { 0%, 100% { opacity: 0.18; } 40% { opacity: 0.9; } }
@supports (offset-path: path('M0 0L1 1')) {
  .ap-pk { offset-rotate: 0deg; }
  .ap[data-ep="0"] .ap-pkreq { offset-path: path('M142 50C158 50 156 104 172 104'); }
  .ap[data-ep="1"] .ap-pkreq { offset-path: path('M142 74C158 74 158 111 172 111'); }
  .ap[data-ep="2"] .ap-pkreq { offset-path: path('M142 98C158 98 156 118 172 118'); }
  .ap[data-ep="0"] .ap-pkdb, .ap[data-ep="2"] .ap-pkdb { offset-path: path('M232 104C250 104 248 66 266 66'); }
  .ap[data-ep="1"] .ap-pkdb { offset-path: path('M232 118C250 118 248 138 266 138'); }
  .ap-pkres { offset-path: path('M172 128C158 128 158 151 142 151'); }
  @media (prefers-reduced-motion: no-preference) {
    .ap[data-ph="0"] .ap-pkreq { animation: ap-go 0.7s linear forwards; }
    .ap[data-ph="1"] .ap-pkdb { animation: ap-go 0.7s linear forwards; }
    .ap[data-ph="2"] .ap-pkres { animation: ap-go 0.6s linear forwards; }
  }
}
@keyframes ap-go { 0% { offset-distance: 0%; opacity: 0; } 14%, 86% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@media (hover: hover) and (pointer: fine) {
  .sv-card:hover .ly-req { transform: translateX(-4px); }
  .sv-card:hover .ly-dbs { transform: translateX(4px); }
}

/* 06 · indicators — static look is the finished state (data-st="2"); script.js cycles 0 → 1 → 2 while the card is on screen */
.ob-v { opacity: 0; transition: opacity 0.4s var(--ease); }
.ob[data-st="0"] .ob-v0, .ob[data-st="1"] .ob-v1, .ob[data-st="2"] .ob-v2 { opacity: 1; }
.ob-bang { fill: none; stroke: var(--k-wrn); stroke-width: 4; stroke-linecap: round; }
.ob-arc { transition: stroke-dasharray 1s var(--ease), stroke 0.5s var(--ease); }
.ob[data-st="0"] .ob-arc { stroke-dasharray: 0.3 1; stroke: var(--k-wrn); }
.ob[data-st="1"] .ob-arc { stroke-dasharray: 0.6 1; stroke: var(--k-acc); }
.ob[data-st="2"] .ob-arc { stroke-dasharray: 0.82 1; stroke: var(--k-ok); }
.ob-fill { fill: var(--k-acc); transform-box: fill-box; transform-origin: left center; transition: transform 1.1s var(--ease), fill 0.5s var(--ease); }
.ob[data-st="0"] .ob-fill { transform: scaleX(0.28); fill: var(--k-wrn); }
.ob[data-st="1"] .ob-fill { transform: scaleX(0.66); fill: var(--k-acc); }
.ob[data-st="2"] .ob-fill.ob-fs { fill: var(--k-ok); }
.ob-dg { transition: transform 1.1s var(--ease); }
.ob[data-st="1"] .ob-dg { transform: translateY(14px); }
.ob[data-st="2"] .ob-dg { transform: translateY(28px); }
.ob-la { stroke: var(--k-wrn); }
.ob[data-st="0"] .ob-dg .k-dot { fill: var(--k-wrn); }
.ob[data-st="0"] .ob-dg .k-ping { stroke: var(--k-wrn); }
.ob-dg .k-dot, .ob-dg .k-ping { transition: fill 0.5s var(--ease), stroke 0.5s var(--ease); }
.ob-dot { fill: var(--k-ok); transition: fill 0.5s var(--ease); }
.ob[data-st="0"] .ob-dot { fill: var(--k-wrn); }
.ob[data-st="1"] .ob-dot { fill: var(--k-acc); }
.ob-seg { fill: var(--k-ln2); transition: fill 0.5s var(--ease); }
.ob[data-st="0"] .ob-sg0 { fill: var(--k-wrn); }
.ob[data-st="1"] .ob-sg0, .ob[data-st="1"] .ob-sg1 { fill: var(--k-acc); }
.ob[data-st="2"] .ob-seg { fill: var(--k-ok); }
.ob-t { transition: fill 0.4s var(--ease); }
.ob[data-st="0"] .ob-t0, .ob[data-st="1"] .ob-t1, .ob[data-st="2"] .ob-t2 { fill: var(--k-ink); }
@media (prefers-reduced-motion: reduce) {
  .ob-v, .ob-arc, .ob-fill, .ob-dg, .ob-dot, .ob-seg, .ob-t, .ap-v, .ap-op, .ap-hu, .ap-hn, .ap-new, .ap-res, .ap-wait, .ap-c, .ap-rbg { transition: none; }
}

/* ─── Language switcher — globe dropdown (native <details>, works without JavaScript) ───────────────
   Used on every page (English → Arabic and back). The menu opens below the button, aligned to the end edge. */
.lang-sw { position: relative; }
.lang-sw > summary { list-style: none; }
.lang-sw > summary::-webkit-details-marker { display: none; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 11px 0 12px;
  border: 1px solid var(--border-2); border-radius: var(--radius-full); background: #fff; color: var(--text-hi);
  font: 500 13px/1 var(--font-display); white-space: nowrap; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.lang-btn svg { flex: none; }
.lang-btn:hover, .lang-sw[open] > .lang-btn { background: var(--text-hi); border-color: var(--text-hi); color: #fff; }
.lang-btn:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.lang-chev { opacity: 0.75; transition: transform var(--dur-fast) var(--ease); }
.lang-sw[open] .lang-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 120; min-width: 168px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--border-2); border-radius: 16px; box-shadow: var(--shadow-elevated);
  animation: lang-pop 0.2s var(--ease);
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--text-mid);
}
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--bg-tint); color: var(--text-hi); }
.lang-menu a:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: -2px; }
.lang-menu a.is-current { color: var(--text-hi); font-weight: 600; }
.lang-check { color: var(--accent-strong); flex: none; }
@keyframes lang-pop { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .lang-menu { animation: none; } .lang-chev { transition: none; } }
@media (max-width: 380px) { .lang-cur { display: none; } .lang-btn { padding: 0 10px; gap: 5px; } }


/* AURAX content refresh — clearer type hierarchy without changing the brand system. */
.hero-eyebrow {
  margin: 0 0 18px;
  color: var(--text-mid);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-title-v2 { font-weight: 700; line-height: 1.16; }
.hero-typing-line { font-weight: 500; line-height: 1.45; }
.section-title { font-weight: 600; line-height: 1.12; }
.section-title strong, .section-title em { font-weight: 600; }
.about-heading { font-weight: 600; }
.btn, .nav-link, .mobile-link { font-weight: 600; }
@media (max-width: 768px) {
  .hero-eyebrow { font-size: 10px; margin-bottom: 14px; }
  .hero-title-v2 { line-height: 1.2; }
  .about-heading {   font-size: clamp(20px, 2.4vw, 32px);
}

}

/* User-requested refinement: keep the services heading fully black and
   make only each service card's circular arrow link interactive. */
.sv-section .sv-accent,
.sv-section .sv-accent .word-inner {
  background: none !important;
  background-image: none !important;
  color: #101010 !important;
  -webkit-text-fill-color: #101010 !important;
}

.sv-section .sv-go {
  position: relative;
  z-index: 5;
  display: inline-flex;
  flex: none;
}
.sv-section .sv-go::after {
  content: none !important;
}
.sv-section .sv-go:focus-visible::after {
  content: none !important;
}
.sv-section .sv-go-ic {
  pointer-events: auto;
}
.sv-section .sv-go:focus-visible .sv-go-ic {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════════
   AURAX navigation refinement — WAVÉS warm-neutral + electric-blue
   Shared by English and Arabic pages; preserves the existing nav logic.
   ═══════════════════════════════════════════════════════════════════ */
.nav {
  top: 14px;
}
.nav .nav-inner {
  background: rgba(246, 245, 242, 0.94);
  border: 1px solid rgba(214, 212, 206, 0.88);
  box-shadow:
    0 8px 28px rgba(16, 16, 16, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.nav.scrolled .nav-inner,
.nav:not(.scrolled) .nav-inner {
  background: rgba(246, 245, 242, 0.96);
  border-color: rgba(214, 212, 206, 0.94);
}
.nav.scrolled .nav-inner {
  background: rgba(244, 241, 234, 0.98);
  box-shadow: 0 12px 32px rgba(16, 16, 16, 0.085), inset 0 1px 0 rgba(255, 255, 255, 0.84);
}
.nav .nav-link {
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.nav .nav-link:hover,
.nav .nav-link:focus-visible {
  color: var(--color-primary);
  background: var(--accent-dim);
}
.nav .nav-link.active {
  color: var(--color-primary);
  background: rgba(27, 77, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(27, 77, 255, 0.12);
  font-weight: 700;
}
.nav .nav-link:focus-visible,
.nav .menu-btn:focus-visible,
.nav .lang-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.nav .nav-cta {
  border-radius: var(--radius-button);
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 5px 14px rgba(27, 77, 255, 0.16);
}
.nav .nav-cta:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: 0 8px 20px rgba(27, 77, 255, 0.22);
  transform: translateY(-1px);
}
.nav .lang-btn {
  background: var(--bg-surface);
  border-color: var(--border-soft);
  color: var(--text-primary);
}
.nav .lang-btn:hover,
.nav .lang-sw[open] > .lang-btn {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--color-primary);
}
.nav .lang-menu {
  background: var(--bg-surface);
  border-color: var(--border-soft);
  box-shadow: var(--shadow-soft);
}
.nav .lang-menu a:hover,
.nav .lang-menu a:focus-visible,
.nav .lang-menu a.is-current {
  color: var(--color-primary);
  background: var(--accent-dim);
}
.nav .lang-check { color: var(--color-primary); }
.nav .menu-btn {
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: 11px;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.nav .menu-btn span { background: var(--color-primary); }
.nav .menu-btn:hover,
.nav .menu-btn.active {
  background: var(--accent-dim);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(27, 77, 255, 0.10);
}

.mobile-nav {
  background: var(--bg-page);
  border-color: var(--border-soft);
  box-shadow: -18px 0 48px rgba(16, 16, 16, 0.08);
}
.mobile-nav-inner {
  background: var(--bg-page);
}
.mobile-link {
  color: var(--text-primary);
  border-bottom-color: var(--border-soft);
  border-radius: 12px;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), padding var(--dur-fast) var(--ease);
}
.mobile-link::before {
  color: var(--text-faint);
  transition: color var(--dur-fast) var(--ease);
}
.mobile-link:hover {
  padding-left: 0;
  color: var(--color-primary);
  background: rgba(27, 77, 255, 0.055);
}
.mobile-link.active {
  padding-inline: 14px;
  color: var(--color-primary);
  background: var(--accent-dim);
  border-bottom-color: var(--accent-border);
  font-weight: 700;
}
.mobile-link.active::before { color: var(--color-primary); }
.mobile-nav-footer {
  border-top-color: var(--border-soft);
  color: var(--text-secondary);
}
.mobile-nav-footer .mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-button);
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(27, 77, 255, 0.16);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.mobile-nav-footer .mobile-cta:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(27, 77, 255, 0.22);
}
.mobile-socials a { color: var(--text-secondary); }
.mobile-socials a:hover { color: var(--color-primary); }

[dir="rtl"] .mobile-link:hover { padding-right: 0; }
@media (max-width: 1100px) {
  .nav .nav-inner { background: rgba(246, 245, 242, 0.97); }
}
@media (prefers-reduced-motion: reduce) {
  .nav .nav-inner,
  .nav .nav-link,
  .nav .menu-btn,
  .mobile-link,
  .mobile-nav-footer .mobile-cta { transition: none; }
}


/* ─── Navbar color-balance correction ──────────────────────────────────
   Keep the filled brand blue reserved for the primary CTA. Navigation
   states use typography only, avoiding a second competing blue pill. */
.nav .nav-inner,
.nav.scrolled .nav-inner,
.nav:not(.scrolled) .nav-inner {
  background: rgba(246, 245, 242, 0.96);
  border-color: rgba(214, 212, 206, 0.92);
  box-shadow: 0 8px 24px rgba(16, 16, 16, 0.055),
              inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.nav .nav-link {
  color: var(--text-secondary);
  background: transparent;
  box-shadow: none;
}
.nav .nav-link:hover,
.nav .nav-link:focus-visible {
  color: var(--color-primary);
  background: transparent;
  box-shadow: none;
}
.nav .nav-link.active,
.nav .nav-link.active:hover,
.nav .nav-link.active:focus-visible {
  color: var(--color-primary);
  background: rgba(27, 77, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(27, 77, 255, 0.12);
  font-weight: 700;
}

/* Keep language control neutral; the primary CTA owns the filled blue. */
.nav .lang-btn {
  background: var(--bg-surface);
  border-color: var(--border-soft);
  color: var(--text-primary);
}
.nav .lang-btn:hover,
.nav .lang-sw[open] > .nav .lang-btn,
.nav .lang-sw[open] > .lang-btn {
  background: rgba(16, 16, 16, 0.035);
  border-color: var(--border-soft);
  color: var(--text-primary);
}
.nav .lang-menu a:hover,
.nav .lang-menu a:focus-visible,
.nav .lang-menu a.is-current {
  color: var(--color-primary);
  background: transparent;
}

/* Neutral hamburger control; preserve the blue brand accent in the CTA. */
.nav .menu-btn {
  background: var(--bg-surface);
  border-color: var(--border-soft);
  box-shadow: none;
}
.nav .menu-btn span { background: var(--text-primary); }
.nav .menu-btn:hover,
.nav .menu-btn.active {
  background: rgba(16, 16, 16, 0.035);
  border-color: var(--border-soft);
  box-shadow: none;
}

/* Mobile navigation follows the same single-accent rule. */
.mobile-link:hover,
.mobile-link.active {
  color: var(--color-primary);
  background: transparent;
  border-bottom-color: var(--border-soft);
  box-shadow: none;
}
.mobile-link.active { font-weight: 700; }
.mobile-link.active::before { color: var(--text-faint); }

@media (max-width: 1100px) {
  .nav .nav-inner,
  .nav.scrolled .nav-inner,
  .nav:not(.scrolled) .nav-inner {
    background: rgba(246, 245, 242, 0.97);
  }
}

/* Contact area: remove the blue radial glow and all panel shadows.
   Keep one flat, warm-neutral surface across the full contact section. */
.contact {
  background: var(--bg-page) !important;
}
.contact::before,
.contact::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
}
.contact .contact-form,
.contact .contact-info-card,
.contact a.contact-info-card:hover,
.contact .contact-info-card:hover {
  box-shadow: none !important;
  filter: none !important;
}

/* ==========================================================================
   Mobile drawer thumbnails
   One small image per link (assets/images/nav/*.webp, ~3 KB each). Decorative
   only, so they are CSS backgrounds: no alt text to maintain, and they are
   requested only below 1100px where the drawer exists. No colour is changed;
   the border and placeholder use the existing tokens. Paths are relative to
   this stylesheet, so they resolve for /ar/ pages too.
   ========================================================================== */
@media (max-width: 1100px) {
  .mobile-link { align-items: center; padding-block: 9px; }
  .mobile-link::after {
    content: "";
    flex: none;
    width: 76px;
    height: 48px;
    margin-inline-start: auto;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background-color: var(--bg-soft);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
  /* the active row is inset by 14px; keep its thumbnail on the same edge as the others */
  .mobile-link.active::after { margin-inline-end: -14px; }
  .mobile-link[data-thumb="home"]::after      { background-image: url("assets/images/nav/home.webp"); }
  .mobile-link[data-thumb="about"]::after     { background-image: url("assets/images/nav/about.webp"); }
  .mobile-link[data-thumb="solutions"]::after { background-image: url("assets/images/nav/solutions.webp"); }
  .mobile-link[data-thumb="services"]::after  { background-image: url("assets/images/nav/services.webp"); }
  .mobile-link[data-thumb="projects"]::after  { background-image: url("assets/images/nav/projects.webp"); }
  .mobile-link[data-thumb="process"]::after   { background-image: url("assets/images/nav/process.webp"); }
  .mobile-link[data-thumb="why"]::after       { background-image: url("assets/images/nav/why.webp"); }
  .mobile-link[data-thumb="contact"]::after   { background-image: url("assets/images/nav/contact.webp"); }
}

/* ==========================================================================
   Motion polish
   Small, calm additions on top of the existing GSAP system. Rules of the road:
   - Only the individual `translate` / `scale` properties are used, so a plain
     CSS `transform` never fights the project-card tilt. GSAP also writes inline
     `translate: none; scale: none` on every .reveal element, which would beat a
     normal rule; the hover/press states below are therefore marked !important
     (a stylesheet !important wins over a non-important inline value).
   - Everything is switched off for `prefers-reduced-motion: reduce`.
   - Hover effects only apply where a real hover exists (not on touch).
   - No colour is introduced; the progress bar uses --color-primary.
   ========================================================================== */
:root { --dir-sign: 1; }
:root[dir="rtl"] { --dir-sign: -1; }

/* 1. Reading-progress bar. Scroll-driven animation where supported; elsewhere
      script.js feeds the same bar through --scroll-p. Hidden at the very top. */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 9990;
  background: var(--color-primary);
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll-p, 0));
  pointer-events: none;
}
:root[dir="rtl"] body::before { transform-origin: 100% 50%; }
@supports (animation-timeline: scroll()) {
  body::before {
    transform: scaleX(0);
    animation: scroll-progress linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes scroll-progress { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { body::before { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* 2. Soft cross-fade when moving between pages (Home / About / Projects, EN / AR).
        Browsers without cross-document view transitions simply navigate as before. */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 0.2s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in 0.35s var(--ease) both; }

  /* 3. Mobile drawer: links, thumbnails and CTA arrive one after another. */
  .mobile-nav.open .mobile-link,
  .mobile-nav.open .mobile-nav-footer { animation: drawer-in 0.55s var(--ease) both; }
  .mobile-nav.open .mobile-link::after { animation: thumb-in 0.6s var(--ease) both; animation-delay: inherit; }
  .mobile-nav.open .mobile-link:nth-child(1) { animation-delay: 0.12s; }
  .mobile-nav.open .mobile-link:nth-child(2) { animation-delay: 0.17s; }
  .mobile-nav.open .mobile-link:nth-child(3) { animation-delay: 0.22s; }
  .mobile-nav.open .mobile-link:nth-child(4) { animation-delay: 0.27s; }
  .mobile-nav.open .mobile-link:nth-child(5) { animation-delay: 0.32s; }
  .mobile-nav.open .mobile-link:nth-child(6) { animation-delay: 0.37s; }
  .mobile-nav.open .mobile-link:nth-child(7) { animation-delay: 0.42s; }
  .mobile-nav.open .mobile-link:nth-child(8) { animation-delay: 0.47s; }
  .mobile-nav.open .mobile-nav-footer { animation-delay: 0.56s; }

  /* 4. Press feedback. Hover does not exist on touch, so this is what a tap feels like. */
  .btn:active, .filter-chip:active, .mobile-cta:active,
  .contact-info-card:active, .chat-chip:active, .faq-q:active { scale: 0.97 !important; }
  .mobile-link:active { scale: 0.985 !important; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@keyframes drawer-in { from { opacity: 0; translate: calc(28px * var(--dir-sign)) 0; } }
@keyframes thumb-in { from { opacity: 0; scale: 0.82; } }

/* 5. Gentle hover lift for the cards that had no hover feedback, and the logo. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mv-card, .philosophy-mini-card {
    transition: translate var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  }
  .mv-card:hover, .philosophy-mini-card:hover { translate: 0 -4px !important; box-shadow: var(--shadow-elevated); }
  .logo-img { transition: scale var(--dur-fast) var(--ease); }
  .logo:hover .logo-img { scale: 1.04; }
}

/* ==========================================================================
   Motion polish II
   Things that play once as a block scrolls into view hang off the `.is-in`
   class that the reveal system in script.js adds, so they only exist when
   motion is allowed and they never repeat. Same rules as the first block:
   individual `translate` / `scale` / `rotate` properties only (CSS animations
   beat GSAP's inline values, so no !important is needed here), nothing
   under `prefers-reduced-motion: reduce`, no new colours.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* 1. Check-list ticks pop as each row appears (rows cascade via data-stagger). */
  .check-list li.is-in::before { animation: tick-pop 0.55s var(--ease) 0.1s both; }

  /* 2. Icon chips settle in with a small spring. */
  .reveal.is-in .contact-info-icon,
  .reveal.is-in .tech-group-icon,
  .reveal.is-in .philosophy-icon { animation: icon-pop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both; }

  /* 3. Solutions / services photos settle from a slight zoom (clipped by .insight-media). */
  .reveal.is-in .insight-media img { animation: img-settle 1.3s var(--ease) both; }
}
@keyframes tick-pop { 0% { scale: 0; } 60% { scale: 1.25; } 100% { scale: 1; } }
@keyframes icon-pop { from { scale: 0.5; rotate: -12deg; opacity: 0; } }
@keyframes img-settle { from { scale: 1.14; } }

/* 4. Desktop hover refinements: a soft light sweep across the blue buttons (the white
      hero / dark-panel buttons are left alone) and an underline that grows under
      footer links. The sweep starts from the reading direction in RTL too. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn-primary:not(.hero .btn-primary):not(.more-panel .btn-primary):not(.why-cta .btn-primary) {
    position: relative;
    overflow: hidden;
  }
  .btn-primary:not(.hero .btn-primary):not(.more-panel .btn-primary):not(.why-cta .btn-primary)::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 55%;
    background: linear-gradient(100deg, transparent 0%, rgb(255 255 255 / 0.3) 50%, transparent 100%);
    translate: calc(-130% * var(--dir-sign)) 0;
    pointer-events: none;
  }
  .btn-primary:not(.hero .btn-primary):not(.more-panel .btn-primary):not(.why-cta .btn-primary):hover::after {
    animation: btn-sheen 1s ease-in-out;
  }

  .footer-col a {
    background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 3px) / 0 1px;
    transition: color var(--dur-fast) var(--ease), background-size 0.3s var(--ease);
  }
  :root[dir="rtl"] .footer-col a { background-position: 100% calc(100% - 3px); }
  .footer-col a:hover { background-size: 100% 1px; }
}
@keyframes btn-sheen { to { translate: calc(260% * var(--dir-sign)) 0; } }
