/* ============================================================
   Mesh — meshtek.com.tr · v4
   Dark, mono-led, electric. Heavy motion. Sharp corners.
   ============================================================ */

@import url('/assets/fonts/fonts.css');

:root {
  /* Carbon palette */
  --ink-0:        #06070A;
  --ink-1:        #0B0D11;
  --ink-2:        #12151B;
  --ink-3:        #1B1F27;
  --ink-4:        #262B35;
  --ink-5:        #3A4150;
  --fog-1:        #6B7280;
  --fog-2:        #9AA3B2;
  --fog-3:        #C7CDD8;
  --bone:         #EDE7D7;
  --paper:        #F4EBD8;
  --white:        #F8F6F1;

  /* Accents */
  --saffron:      #F5B924;
  --saffron-deep: #C68C18;
  --signal:       #00E5C7;
  --signal-2:     #66FFE0;
  --terra:        #E0654E;
  --pulse:        #C2FF3D;
  --nexus:        #E14B3F;
  --nexus-deep:   #DC2626;

  /* Typography */
  --f-display:    'Fraunces', 'Times New Roman', serif;
  --f-sans:       'Geist', system-ui, -apple-system, sans-serif;
  --f-mono:       'Geist Mono', ui-monospace, 'JetBrains Mono', monospace;

  /* Layout */
  --pad-x:        clamp(20px, 4vw, 56px);
  --maxw:         1440px;

  /* Motion */
  --ease:         cubic-bezier(.2,.7,.3,1);
  --ease-in:      cubic-bezier(.4,0,.7,.2);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; background: none; border: 0; outline: none; border-radius: 0; -webkit-appearance: none; appearance: none; }
ul, ol { list-style: none; }

/* ---------- Body ---------- */
body {
  background: var(--ink-1);
  color: var(--fog-3);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Subtle fixed grid overlay (very subtle, decorative) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--saffron); color: var(--ink-0);
  padding: 10px 16px;
  font-family: var(--f-mono); font-weight: 600; font-size: 12px;
  letter-spacing: 0.04em; text-transform: uppercase;
  z-index: 200;
}
.skip-link:focus { left: 16px; }

/* ---------- Layout shell ---------- */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
  z-index: 2;
}

/* ---------- Common pieces ---------- */
.mono {
  font-family: var(--f-mono);
  letter-spacing: 0.02em;
}
.mono-up {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fog-1);
}
.mono-up--saf { color: var(--saffron); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog-2);
  padding: 5px 12px;
  border: 1px solid var(--ink-4);
  border-radius: 100px;
  background: rgba(11,13,17,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
  animation: v4-pulse 1.6s ease-in-out infinite;
}

.saf-dot {
  display: inline-block;
  width: 0.18em;
  height: 0.18em;
  background: var(--saffron);
  border-radius: 50%;
  vertical-align: baseline;
  margin-left: 0.05em;
}

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,13,17,0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--ink-4); }
.site-header.is-hidden { transform: translateY(-100%); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.nav-brand {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.055em;
  line-height: 0.82;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  color: var(--bone);
}
.nav-brand::after { content: '.'; color: var(--saffron); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--fog-2);
  transition: color .2s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--saffron); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switch {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog-1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lang-switch a {
  padding: 4px 6px;
  transition: color .2s var(--ease);
}
.lang-switch a[aria-current="true"] { color: var(--bone); font-weight: 600; }
.lang-switch a:hover { color: var(--saffron); }
.lang-switch span { opacity: 0.4; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
  white-space: nowrap;
}
.btn--saf {
  background: var(--saffron);
  color: var(--ink-0);
}
.btn--saf:hover { background: var(--signal); color: var(--ink-0); }
.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--ink-4);
}
.btn--ghost:hover { border-color: var(--saffron); color: var(--saffron); }
.btn--lg { padding: 16px 26px; font-size: 13px; }
.btn--nexus { background: var(--nexus); color: var(--ink-0); }
.btn--nexus:hover { background: #EF4444; color: var(--ink-0); }
.btn--nexus-ghost { background: transparent; color: var(--bone); border-color: rgba(244,235,216,0.18); }
.btn--nexus-ghost:hover { border-color: var(--nexus); color: var(--nexus); }
.btn:active { transform: translateY(1px); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 1.5px;
  background: var(--bone);
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--ink-0);
  z-index: 49;
  padding: 96px var(--pad-x) 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  visibility: hidden;
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); visibility: visible; }
.mobile-drawer-links {
  display: flex; flex-direction: column;
  gap: 4px;
  font-family: var(--f-display);
  font-size: clamp(36px, 9vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  color: var(--bone);
}
.mobile-drawer-links a {
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-4);
  transition: padding-left .25s var(--ease), color .2s var(--ease);
}
.mobile-drawer-links a:active { padding-left: 8px; color: var(--saffron); }
.mobile-drawer-meta {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--ink-4);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 11vw, 120px) 0 clamp(60px, 9vw, 100px);
  overflow: hidden;
  min-height: clamp(560px, 75vh, 720px);
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: -1;
}
.hero-orb-layer {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: -1;
  transition: transform 1.4s var(--ease);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  animation: v4-orb-drift 12s ease-in-out infinite alternate;
}
.orb--saf {
  top: -200px; right: -150px;
  width: clamp(360px, 50vw, 720px); height: clamp(360px, 50vw, 720px);
  background: radial-gradient(circle, rgba(245,185,36,0.18), transparent 60%);
}
.orb--cyan {
  bottom: -300px; left: -200px;
  width: clamp(300px, 40vw, 600px); height: clamp(300px, 40vw, 600px);
  background: radial-gradient(circle, rgba(0,229,199,0.08), transparent 60%);
  animation-duration: 16s;
  animation-delay: 2s;
  animation-direction: alternate-reverse;
}

.hero-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(40px, 7vw, 80px);
  position: relative;
}
.hero-coords {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fog-1);
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(44px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  color: var(--bone);
  font-variation-settings: "SOFT" 50, "WONK" 1;
  position: relative;
  margin: 0;
  max-width: 1320px;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--fog-2);
}
.hero-title .saf-dot {
  width: 0.16em; height: 0.16em;
  margin-left: 0.04em;
  animation: v4-stop-in 1.4s 1s var(--ease) both, v4-stop-pulse 4s 2.4s ease-in-out infinite;
}

/* Kinetic line wrapper for word-rise */
.kw-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
}
.kw-line .kw-word {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  animation: v4-rise 1s var(--ease) both;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-top: clamp(32px, 5vw, 56px);
  opacity: 0;
  transform: translateY(20px);
  animation: v4-fade-up 1s 1.2s var(--ease) forwards;
}
.hero-cta-note {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fog-1);
  letter-spacing: 0.04em;
  margin-left: 0;
}

/* ---------- Hero engineering console (HeroConsole) ---------- */
.hero-console {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  width: 100%;
  margin-top: clamp(40px, 6vw, 80px);
  font-family: var(--f-mono);
  opacity: 0;
  animation: v4-fade-up 1s 1.6s var(--ease) forwards;
}

/* Terminal */
.term {
  background: var(--ink-0);
  border: 1px solid var(--ink-4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  min-height: 460px;
  max-height: 460px;
}
.term-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-4);
  background: var(--ink-1);
}
.term-dots { display: flex; gap: 6px; }
.term-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  opacity: 0.85;
}
.term-dot--r { background: #FF5F57; }
.term-dot--y { background: #FEBC2E; }
.term-dot--g { background: #28C840; }
.term-title {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--fog-1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.term-status {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--saffron);
  text-transform: uppercase;
}
.term-status.is-live { color: var(--signal); }
.term-lines {
  flex: 1;
  padding: 20px 22px;
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.85;
  color: var(--fog-3);
}
.term-line { margin-bottom: 4px; }
.term-prompt { color: var(--saffron); }
.term-cmd-text { color: var(--bone); }
.term-cursor {
  color: var(--saffron);
  animation: term-blink 1s steps(1) infinite;
}
.term-log { color: var(--fog-1); padding-left: 14px; }
.term-card-msg { color: var(--signal); padding-left: 14px; }
.term-done {
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(245, 185, 36, 0.08);
  border-left: 2px solid var(--saffron);
  color: var(--bone);
}
.term-done .term-prompt { margin-right: 4px; }
@keyframes term-blink { 50% { opacity: 0; } }

/* Service cards */
.console-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.console-cards-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fog-1);
  margin-bottom: 4px;
}
.console-card,
.console-card-empty {
  height: 92px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.console-card-empty {
  border: 1px dashed var(--ink-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-5);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.console-card {
  border: 1px solid var(--ink-4);
  background: var(--ink-2);
  animation: card-in 0.6s var(--ease) both;
}
.console-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--saffron);
}
.console-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.console-card-num {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--fog-1);
  letter-spacing: 0.14em;
}
.console-card-status {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--saffron);
}
.console-card-status.is-live { color: var(--signal); }
.console-card-name {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--bone);
  letter-spacing: -0.025em;
  line-height: 1;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.console-card-name::after { content: '.'; color: var(--saffron); }
.console-card-stack {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--fog-2);
  letter-spacing: 0.12em;
  margin-top: 6px;
}
@keyframes card-in {
  0%   { opacity: 0; transform: translateY(12px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--ink-4);
  border-bottom: 1px solid var(--ink-4);
  background: var(--ink-2);
  padding: 22px 0;
  font-family: var(--f-mono);
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--bone);
  letter-spacing: -0.005em;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
  white-space: nowrap;
  animation: v4-marquee 45s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .sep { color: var(--saffron); }

/* ---------- Section frame ---------- */
.section {
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
  z-index: 1;
}
.section--bordered { border-bottom: 1px solid var(--ink-4); }

.section-num {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--saffron);
  margin-bottom: 16px;
}
.section-h {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--bone);
  font-variation-settings: "SOFT" 50, "WONK" 1;
  max-width: 1100px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-h em { font-style: italic; color: var(--saffron); }
.section-h .saf-dot { animation: none; }
.section-h-after-dot::after { content: '.'; color: var(--saffron); }

.section-lead {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.45;
  color: var(--fog-2);
  max-width: 760px;
  margin-bottom: 24px;
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-4);
}
.stat-cell {
  padding: 40px 0;
  padding-right: 32px;
  border-right: 1px solid var(--ink-4);
}
.stat-cell:last-child { border-right: 0; padding-right: 0; }
.stat-cell + .stat-cell { padding-left: 32px; }
.stat-num {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(56px, 7vw, 96px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--bone);
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.stat-num .suf { color: var(--saffron); }
.stat-num .unit {
  font-size: 22px;
  color: var(--fog-1);
  margin-left: 8px;
  font-weight: 400;
}
.stat-d {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fog-1);
  margin-top: 16px;
  letter-spacing: 0.04em;
}

/* ---------- Services grid ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink-4);
  border: 1px solid var(--ink-4);
}
.svc-card {
  background: var(--ink-2);
  padding: 48px 40px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background .35s var(--ease);
  cursor: default;
}
.svc-card:hover { background: var(--ink-3); }
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--saffron);
  transition: width .6s var(--ease);
}
.svc-card:hover::before { width: 100%; }

.svc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: auto;
}
.svc-num {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fog-1);
  transition: color .3s var(--ease);
}
.svc-card:hover .svc-num { color: var(--saffron); }
.svc-arrow {
  color: var(--saffron);
  font-size: 20px;
  line-height: 1;
  transition: transform .35s var(--ease);
}
.svc-card:hover .svc-arrow { transform: translate(4px, -4px); }

.svc-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--bone);
  margin-top: 60px;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.svc-title::after { content: '.'; color: var(--saffron); }

.svc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
}
.svc-card:hover .svc-body { max-height: 240px; }
.svc-body p {
  font-size: 15px;
  color: var(--fog-2);
  line-height: 1.6;
  margin-top: 16px;
  margin-bottom: 16px;
}

.svc-stack {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fog-1);
  letter-spacing: 0.04em;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-4);
}

/* ---------- Nexus block ---------- */
.nexus {
  position: relative;
  background: #0A0708;
  border: 1px solid #1A0E10;
  padding: clamp(48px, 7vw, 80px) clamp(28px, 5vw, 64px);
  min-height: clamp(440px, 60vw, 560px);
  overflow: hidden;
  isolation: isolate;
  margin-top: clamp(40px, 6vw, 60px);
}
.nexus::before {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(220,38,38,0.32), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  animation: v4-orb-drift 14s ease-in-out infinite alternate;
  z-index: 0;
}
.nexus::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(220,38,38,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(220,38,38,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.nexus-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: flex-start;
}
.nexus-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nexus-deep);
}
.nexus-id svg { flex-shrink: 0; }
.nexus-h {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(56px, 10vw, 144px);
  letter-spacing: -0.055em;
  line-height: 0.9;
  color: #F4EBD8;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  margin: 0;
}
.nexus-h .nexus-letter {
  display: inline-block;
}
.nexus-h::after { content: '.'; color: var(--nexus-deep); }
.nexus-body {
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(244,235,216,0.68);
  line-height: 1.55;
  max-width: 540px;
  margin-top: 32px;
}
.nexus-cta {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.nexus-spec {
  background: rgba(220,38,38,0.04);
  border: 1px solid rgba(220,38,38,0.18);
  padding: 28px;
  align-self: center;
}
.nexus-spec-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--nexus-deep);
  margin-bottom: 18px;
}
.nexus-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid rgba(244,235,216,0.06);
  font-family: var(--f-mono);
}
.nexus-spec-row:first-child { border-top: 0; }
.nexus-spec-row .k {
  font-size: 11px;
  color: rgba(244,235,216,0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nexus-spec-row .v {
  font-size: 12px;
  color: #F4EBD8;
}

/* ---------- Innovatex band ---------- */
.partner-band {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: 32px 0;
  border-top: 1px solid var(--ink-4);
  border-bottom: 1px solid var(--ink-4);
  flex-wrap: wrap;
}
.partner-band .label {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--saffron);
  min-width: 200px;
}
.partner-band .body {
  flex: 1 1 320px;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--bone);
  letter-spacing: -0.01em;
  line-height: 1.5;
}
.partner-band .body em {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
}
.partner-band .body .mute { color: var(--fog-1); }
.partner-band .more {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--saffron);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.partner-band .more:hover { border-bottom-color: var(--saffron); }

/* ---------- Principles 3-up ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.principles li {
  list-style: none;
  padding-top: 24px;
  border-top: 1px solid var(--saffron);
  max-width: 360px;
}
.principles .pn {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saffron);
}
.principles .pt {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--bone);
  margin-top: 16px;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.principles .pt::after { content: '.'; color: var(--saffron); }
.principles .pd {
  font-size: 15px;
  color: var(--fog-2);
  line-height: 1.6;
  margin-top: 14px;
}

/* ---------- Contact block ---------- */
.contact-card {
  position: relative;
  padding: clamp(56px, 8vw, 88px) clamp(28px, 5vw, 64px);
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  overflow: hidden;
  isolation: isolate;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: -150px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,185,36,0.15), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  animation: v4-orb-drift 12s ease-in-out infinite alternate;
  z-index: 0;
}
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: flex-end;
}
.contact-h {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 96px);
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--bone);
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.contact-h::after { content: '.'; color: var(--saffron); }
.contact-lede {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--fog-2);
  max-width: 540px;
  margin-top: 20px;
  line-height: 1.55;
}
.email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 4vw, 36px);
  letter-spacing: -0.02em;
  color: var(--saffron);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--saffron);
  word-break: break-all;
  transition: color .2s var(--ease);
}
.email-link:hover { color: var(--signal); border-bottom-color: var(--signal); }
.email-link .arr { font-size: 0.7em; }
.contact-meta {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fog-1);
  margin-top: 20px;
  letter-spacing: 0.04em;
}

/* Contact form (kept from v1, re-skinned dark) */
.contact-form {
  margin-top: clamp(40px, 6vw, 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  position: relative;
  z-index: 1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog-1);
}
.field label .req { color: var(--saffron); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--ink-4);
  background: transparent;
  color: var(--bone);
  transition: border-color .2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--fog-1); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--saffron); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23C7CDD8' stroke-width='1.5' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}
.field select option { background: var(--ink-2); color: var(--bone); }
.field-error {
  color: var(--terra);
  font-size: 12px;
  font-family: var(--f-mono);
  letter-spacing: 0.05em;
  display: none;
}
.field.has-error .field-error { display: block; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-bottom-color: var(--terra); }
.form-msg {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--bone);
  border-left: 2px solid var(--saffron);
  padding: 4px 0 4px 20px;
  display: none;
  grid-column: 1 / -1;
}
.form-msg.is-visible { display: block; }
.form-msg.is-error { color: var(--terra); border-left-color: var(--terra); }

.contact-aside {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(40px, 6vw, 60px);
}
.contact-aside-card {
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
}
.contact-aside-card h4 {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 4px;
}
.contact-aside-card .lines {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--bone);
  line-height: 1.7;
}
.contact-aside-card a { transition: color .2s var(--ease); }
.contact-aside-card a:hover { color: var(--saffron); }

/* ---------- About / inner page elements ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: flex-start;
}
.story-grid h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--bone);
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.story-grid p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fog-3);
  margin-bottom: 20px;
}
.story-grid p:last-child { margin-bottom: 0; }

.timeline {
  border-top: 1px solid var(--ink-4);
}
.timeline-row {
  display: grid;
  grid-template-columns: 120px 1fr 2fr;
  gap: clamp(20px, 4vw, 48px);
  padding: 28px 0;
  border-bottom: 1px solid var(--ink-4);
  align-items: baseline;
}
.timeline-y {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.04em;
  color: var(--saffron);
  line-height: 1;
}
.timeline-h {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
}
.timeline-d {
  font-size: 15px;
  color: var(--fog-2);
  line-height: 1.55;
}

.principles--full {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 64px;
}
.principles--full li { max-width: 480px; }

/* ---------- Products list (inner page) ---------- */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--ink-4);
}
.product-row {
  background: var(--ink-1);
  padding: clamp(28px, 4vw, 48px) 0;
  display: grid;
  grid-template-columns: 80px 1fr 2fr 200px;
  gap: clamp(20px, 4vw, 48px);
  align-items: baseline;
}
.product-row .pno {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fog-1);
  letter-spacing: 0.06em;
}
.product-row .pname {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.035em;
  color: var(--bone);
  line-height: 1;
}
.product-row .pname::after { content: '.'; color: var(--accent, var(--saffron)); }
.product-row.is-nexus { --accent: var(--nexus); }
.product-row .ptag {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, var(--saffron));
  margin-top: 10px;
}
.product-row .pdesc {
  font-size: 15px;
  color: var(--fog-2);
  line-height: 1.6;
}
.product-row .pside {
  text-align: right;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fog-1);
  letter-spacing: 0.04em;
}
.product-row .pside .tag {
  border-color: var(--accent, var(--ink-4));
  color: var(--accent, var(--fog-2));
  margin-bottom: 10px;
}
.product-row .pside .tag .dot { background: var(--accent, var(--signal)); }

/* ---------- Services full (inner) ---------- */
.svc-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.svc-full-card {
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  padding: 36px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.svc-full-card .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.svc-full-card h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.03em;
  color: var(--bone);
}
.svc-full-card h3::after { content: '.'; color: var(--saffron); }
.svc-full-card p {
  font-size: 15px;
  color: var(--fog-2);
  line-height: 1.55;
}
.svc-full-card .stack {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fog-1);
  padding-top: 14px;
  border-top: 1px solid var(--ink-4);
  margin-top: auto;
  letter-spacing: 0.04em;
}

/* ---------- Process card ---------- */
.process-card {
  margin-top: clamp(40px, 6vw, 60px);
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.process-card h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.04em;
  color: var(--bone);
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.process-card h2::after { content: '.'; color: var(--saffron); }
.process-list { display: flex; flex-direction: column; gap: 18px; }
.process-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  align-items: baseline;
}
.process-list .n {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--saffron);
  letter-spacing: 0.06em;
  font-weight: 600;
}
.process-list .t {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--bone);
  line-height: 1.55;
}

/* ---------- Insights (empty state) + Careers (empty state) ---------- */
.empty-card {
  padding: clamp(40px, 6vw, 80px);
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 720px;
}
.empty-card p {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.45;
  color: var(--fog-2);
}
.subscribe {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--saffron);
  padding-bottom: 8px;
  max-width: 480px;
}
.subscribe input {
  flex: 1;
  padding: 10px 0;
  font-size: 15px;
  background: transparent;
  color: var(--bone);
}
.subscribe button {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 18px;
  background: var(--saffron);
  color: var(--ink-0);
  transition: background .2s var(--ease);
}
.subscribe button:hover { background: var(--signal); }

.profile-list {
  border-top: 1px solid var(--ink-4);
}
.profile-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--ink-4);
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(18px, 1.7vw, 22px);
  color: var(--bone);
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.careers-note {
  margin-top: 36px;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--fog-2);
  max-width: 640px;
  border-left: 2px solid var(--saffron);
  padding-left: 24px;
}
.careers-note a {
  color: var(--bone);
  border-bottom: 1px solid var(--saffron);
  font-style: normal;
  font-weight: 500;
}
.careers-note a:hover { color: var(--saffron); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(60px, 8vw, 120px);
  padding: clamp(48px, 7vw, 80px) 0 28px;
  border-top: 1px solid var(--ink-4);
  background: var(--ink-1);
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(32px, 4vw, 60px);
  margin-bottom: 60px;
}
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fog-1);
  margin-bottom: 20px;
}
.footer-brand {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.82;
  color: var(--bone);
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.footer-brand::after { content: '.'; color: var(--saffron); }
.footer-tagline {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  color: var(--fog-2);
  margin-top: 12px;
  margin-bottom: 24px;
  max-width: 240px;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink-4);
  color: var(--fog-1);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.footer-social a:hover {
  color: var(--saffron);
  border-color: var(--saffron);
  transform: translateY(-2px);
}
.footer-social svg { width: 14px; height: 14px; }

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--fog-2);
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--saffron); }

.footer-strip {
  padding-top: 28px;
  border-top: 1px solid var(--ink-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fog-1);
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--saffron); }

/* ---------- 404 ---------- */
.error-page {
  padding: clamp(80px, 14vw, 200px) 0 clamp(60px, 10vw, 140px);
  text-align: left;
  max-width: 720px;
  position: relative;
}
.error-page h1 {
  font-family: var(--f-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(64px, 12vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--saffron);
  margin-bottom: 24px;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.error-page p {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--fog-2);
  margin-bottom: 32px;
  max-width: 480px;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: clamp(12px, 2vw, 24px);
  left: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  max-width: 560px;
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  color: var(--bone);
  padding: 18px 22px;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
  transform: translateY(20px);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.cookie-banner.is-visible { display: flex; transform: translateY(0); opacity: 1; }
.cookie-banner p {
  font-size: 13px;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
  color: var(--fog-3);
}
.cookie-banner-actions { display: flex; gap: 8px; }
.cookie-btn {
  padding: 8px 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: opacity .2s var(--ease);
}
.cookie-btn--accept { background: var(--saffron); color: var(--ink-0); }
.cookie-btn--decline { background: transparent; color: var(--fog-2); border: 1px solid var(--ink-4); }
.cookie-btn:hover { opacity: 0.85; }

/* ---------- Legal pages ---------- */
.legal-page {
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px);
  max-width: 760px;
}
.legal-page h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--bone);
  margin-bottom: 12px;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.legal-page h1::after { content: '.'; color: var(--saffron); }
.legal-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fog-1);
  margin-bottom: 48px;
}
.legal-page h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 26px);
  letter-spacing: -0.02em;
  color: var(--bone);
  margin-top: 40px;
  margin-bottom: 14px;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.legal-page p,
.legal-page li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--fog-3);
  margin-bottom: 14px;
}
.legal-page ul { padding-left: 0; }
.legal-page li {
  padding-left: 22px;
  position: relative;
  list-style: none;
}
.legal-page li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--saffron);
}
.legal-page strong { color: var(--bone); font-weight: 600; }
.legal-page a {
  color: var(--saffron);
  border-bottom: 1px solid var(--saffron);
  transition: color .2s var(--ease);
}
.legal-page a:hover { color: var(--signal); border-bottom-color: var(--signal); }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
}
::selection { background: var(--saffron); color: var(--ink-0); }

/* ============================================================
   KEYFRAMES
   ============================================================ */

@keyframes v4-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}
@keyframes v4-orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.08); }
}
@keyframes v4-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.6; }
}
@keyframes v4-stop-in {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.6); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes v4-stop-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}
@keyframes v4-rise {
  0%   { transform: translateY(105%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes v4-tag-blink {
  0%, 100% { border-color: var(--ink-4); color: var(--fog-2); }
  50%      { border-color: var(--saffron); color: var(--saffron); }
}
@keyframes v4-fade-up {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .nexus-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; align-items: flex-start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2n) { border-right: 0; padding-right: 0; }
  .stat-cell:nth-child(2n+1) { border-right: 1px solid var(--ink-4); }
  .stat-cell:nth-child(n+3) { border-top: 1px solid var(--ink-4); }
  .product-row { grid-template-columns: 60px 1fr; }
  .product-row .pdesc { grid-column: 2; }
  .product-row .pside { grid-column: 2; text-align: left; }
}

@media (max-width: 980px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { min-height: auto; }
  .svc-card .svc-body { max-height: 240px; }
  .svc-full-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principles--full { grid-template-columns: 1fr; }
  .principles li { max-width: none; }
  .story-grid { grid-template-columns: 1fr; }
  .process-card { grid-template-columns: 1fr; }
  .timeline-row { grid-template-columns: 100px 1fr; gap: 16px; }
  .timeline-row .timeline-d { grid-column: 1 / -1; padding-top: 8px; color: var(--fog-2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr; gap: 24px; }
  .contact-aside { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .hero-console { grid-template-columns: 1fr; }
  .term { min-height: 360px; max-height: 360px; }
}

@media (max-width: 720px) {
  :root { --pad-x: 22px; }
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-actions .lang-switch { display: none; }
  .nav-toggle { display: inline-flex; }
  .stats { grid-template-columns: 1fr; }
  .stat-cell { padding: 28px 0 !important; border-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
  .stat-cell + .stat-cell { border-top: 1px solid var(--ink-4); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-strip { flex-direction: column; align-items: flex-start; }
  .nexus { padding: 36px 24px; }
  .nexus-h { font-size: clamp(48px, 16vw, 72px); }
  .partner-band { gap: 16px; }
  .partner-band .label { min-width: 0; }
  .timeline-row { grid-template-columns: 1fr; padding: 18px 0; }
  .timeline-y { font-size: 32px; }
  .hero-console { gap: 14px; margin-top: 32px; }
  .term { min-height: 300px; max-height: 320px; }
  .term-lines { font-size: 12px; padding: 14px 16px; }
  .console-card, .console-card-empty { height: 80px; padding: 14px; }
  .console-card-name { font-size: 18px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: clamp(40px, 13vw, 56px); }
  .section-h { font-size: clamp(34px, 10vw, 44px); }
  .nexus-h { font-size: clamp(44px, 16vw, 64px); }
}

@supports (padding: max(0px)) {
  .shell {
    padding-left: max(var(--pad-x), env(safe-area-inset-left));
    padding-right: max(var(--pad-x), env(safe-area-inset-right));
  }
  .cookie-banner { bottom: max(clamp(12px, 2vw, 24px), env(safe-area-inset-bottom)); }
}
