/* ============================================================
   JSIT — Redesign Concept
   Dark cyberpunk-meets-corporate · obsidian + neon cyan
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&display=swap');
/* Brand font — Ubuntu (Regular + Bold + BoldItalic) */
@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/Ubuntu-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/Ubuntu-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/Ubuntu-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/Ubuntu-BoldItalic.ttf') format('truetype');
  font-weight: 700; font-style: italic; font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Obsidian palette */
  --obsidian:   #04060B;
  --carbon:     #080C14;
  --gunmetal:   #0F1620;
  --depth:      #0B1B2E;

  /* Neon */
  --cyan:       #00E5FF;
  --cyan-soft:  #5AF0FF;
  --blue:       #2D7BFF;
  --blue-deep:  #0A4FCC;
  --glow:       #B8E8FF;

  /* Neutrals — tuned cooler/darker so the page reads as a single cyber-dark
     tone rather than punching out bright white text */
  --ink-100:    #C9D8EE;
  --ink-300:    #8FA0BC;
  --ink-500:    #5A6A85;
  --ink-700:    #2F3A4D;
  --line:       rgba(0, 229, 255, 0.18);
  --line-soft:  rgba(255, 255, 255, 0.06);

  /* Typography — Ubuntu (uploaded brand font) as both display and body.
     JetBrains Mono for terminal/code accents. */
  --f-display:  'Ubuntu', system-ui, sans-serif;
  --f-body:     'Ubuntu', system-ui, sans-serif;
  --f-mono:     'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --max:        1440px;
  --gutter:     48px;
}

html, body {
  background: var(--obsidian);
  color: var(--ink-100);
  font-family: var(--f-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(45, 123, 255, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 80% 60%, rgba(0, 229, 255, 0.06) 0%, transparent 60%),
    var(--obsidian);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font-family: inherit; }

/* Subtle grain overlay across the page */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 2px);
  mix-blend-mode: screen;
}

/* Matrix canvas — visible only in advanced mode */
#matrix {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease-out;
}
body.depth-advanced #matrix { opacity: 0.45; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed; top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 36px);
  max-width: 1380px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 16px 12px 22px;
  background: rgba(8, 12, 20, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 0 40px rgba(0, 229, 255, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.4);
}

.nav__brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px;
}
.nav__brand .mark {
  width: 32px; height: 32px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, var(--cyan) 0%, var(--blue) 40%, var(--depth) 80%);
  box-shadow:
    0 0 0 1px rgba(0,229,255,0.4),
    0 0 16px rgba(0,229,255,0.4);
  position: relative;
}
.nav__brand .mark::after {
  content: ""; position: absolute; inset: 6px;
  border-radius: 50%;
  background: var(--obsidian);
  border: 1px solid var(--cyan);
}
.nav__brand .name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-100);
}
.nav__brand .name em {
  color: var(--cyan);
  font-style: normal;
}

.nav__items {
  display: flex; justify-content: center;
  gap: 4px;
}
.nav__items a {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-300);
  padding: 8px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: color 200ms, background 200ms;
  position: relative;
  white-space: nowrap;
}
.nav__items a:hover {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
}
.nav__items a.active {
  color: var(--ink-100);
  background: rgba(0, 229, 255, 0.10);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.25) inset;
}

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

.depth-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-300);
  border-radius: 100px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.02);
  transition: all 200ms;
}
.depth-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.depth-toggle .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-500);
  transition: all 200ms;
}
body.depth-advanced .depth-toggle .dot {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
body.depth-advanced .depth-toggle .label-beginner { display: none; }
body:not(.depth-advanced) .depth-toggle .label-advanced { display: none; }

.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--obsidian);
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  border-radius: 100px;
  position: relative;
  transition: transform 150ms, box-shadow 200ms;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgba(0,229,255,0.4),
    0 0 24px rgba(0,229,255,0.35);
}
.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(0,229,255,0.6),
    0 0 40px rgba(0,229,255,0.5);
}
.btn-cta:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-100);
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
  transition: all 200ms;
}
.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(0,229,255,0.06);
  color: var(--cyan);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

#scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  pointer-events: none;
}
.hero__inner > * { pointer-events: auto; }

.hero__chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(0, 229, 255, 0.04);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
}
.hero__chip .ping {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0,229,255,0.6);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(0,229,255,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(0,229,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,229,255,0); }
}

.hero h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink-100);
  max-width: 18ch;
  text-align: center;
}
.hero h1 .glow {
  color: var(--cyan);
  text-shadow:
    0 0 24px rgba(0, 229, 255, 0.5),
    0 0 60px rgba(0, 229, 255, 0.25);
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 60%, #5A7DBF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 {
  color: #B4CBEC;  /* never pure white — keep it cool/dim */
}

.hero__sub {
  font-family: var(--f-body);
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-300);
  line-height: 1.6;
  max-width: 56ch;
}

.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 720px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
  margin-top: 16px;
}
.hero__stat {
  text-align: center;
  display: flex; flex-direction: column; gap: 4px;
}
.hero__stat .num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 28px;
  color: var(--cyan);
  letter-spacing: -0.02em;
}
.hero__stat .lab {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
  pointer-events: none;
  opacity: 0.6;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 32px;
  background: linear-gradient(180deg, transparent, var(--cyan));
  animation: cue 2s infinite;
}
@keyframes cue {
  0%   { transform: translateY(-6px); opacity: 0.3; }
  50%  { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(6px); opacity: 0.3; }
}

/* ============================================================
   SECTIONS — general
   ============================================================ */

.section {
  position: relative;
  z-index: 1;
  padding: 120px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.section-head__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.section-head__eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.section-head__eyebrow::after {
  content: "";
  width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.section-head h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-100);
  max-width: 22ch;
}
.section-head h2 .glow { color: var(--cyan); }
.section-head p {
  color: var(--ink-300);
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.6;
}

/* ============================================================
   SERVICES — glass cards with hover micro-scenes
   ============================================================ */

.services {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  perspective: 1400px;
}
.svc {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 28px;
  min-height: 280px;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition:
    border-color 250ms,
    box-shadow 300ms,
    background 300ms,
    transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transform-style: preserve-3d;
  will-change: transform;
}

.svc:hover {
  border-color: rgba(0, 229, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(0,229,255,0.06), rgba(0,229,255,0.01)),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  box-shadow:
    0 0 0 1px rgba(0,229,255,0.15) inset,
    0 30px 80px rgba(0, 229, 255, 0.10),
    0 0 100px rgba(0, 229, 255, 0.05);
  transform: translateY(-4px);
}

.svc__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-500);
}

.svc__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-100);
  margin-top: 12px;
}

.svc__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-300);
  margin-top: 10px;
  flex: 1;
}

.svc__tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 16px;
}
.svc__tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--line-soft);
  color: var(--ink-300);
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
}

.svc__scene {
  position: absolute;
  top: 0; right: 0;
  width: 60%;
  height: 100%;
  opacity: 0.35;
  transition: opacity 400ms, transform 400ms;
  pointer-events: none;
}
.svc:hover .svc__scene {
  opacity: 1;
  transform: scale(1.05);
}

/* The full-card click-through link (transparent, layered above content) */
.svc__deep {
  position: absolute; inset: 0;
  z-index: 4;
  background: transparent;
  border-radius: inherit;
}
.svc__deep::after {
  content: "Open detail →";
  position: absolute;
  bottom: 18px; right: 22px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  opacity: 0;
  transition: opacity 200ms;
  text-transform: uppercase;
}
.svc:hover .svc__deep::after { opacity: 1; }

/* Service tile sizes (asymmetric grid) */
.svc--big { grid-column: span 7; }
.svc--med { grid-column: span 5; min-height: 280px; }
.svc--sm  { grid-column: span 4; min-height: 240px; }

/* Advanced mode adds terminal frame */
body.depth-advanced .svc {
  border-radius: 4px;
}
body.depth-advanced .svc::before {
  content: "▸ svc.run --id=" attr(data-id);
  position: absolute;
  top: 12px; right: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--cyan);
  opacity: 0.7;
  z-index: 2;
}

/* Show only on the right mode */
[data-beginner], [data-advanced] { display: block; }
body:not(.depth-advanced) [data-advanced] { display: none; }
body.depth-advanced [data-beginner] { display: none; }

/* In advanced mode, body uses mono font for tech blocks */
body.depth-advanced .svc__desc,
body.depth-advanced .svc__title {
  font-family: var(--f-mono);
  letter-spacing: 0;
}

/* ============================================================
   PROCESS — horizontal step diagram
   ============================================================ */

.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.process::before {
  content: "";
  position: absolute;
  top: 28px; left: 5%; right: 5%; height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--cyan) 20%, var(--cyan) 80%, transparent);
  z-index: 0;
}
.step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 12px;
}
.step__node {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--obsidian);
  border: 1px solid var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 15px;
  color: var(--cyan);
  box-shadow:
    0 0 0 4px var(--obsidian),
    0 0 24px rgba(0, 229, 255, 0.3);
}
.step__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink-100);
}
.step__desc {
  font-size: 13px;
  color: var(--ink-300);
  line-height: 1.5;
  max-width: 22ch;
}

/* ============================================================
   DIAGNOSTIC — booking form as system check
   ============================================================ */

.diag {
  position: relative;
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
}

.diag__panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 36px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.diag__panel.terminal {
  border-radius: 4px;
  font-family: var(--f-mono);
}
.diag__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink-100);
  margin-bottom: 4px;
}
.diag__sub {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
}

.diag__group {
  margin-bottom: 22px;
}
.diag__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.diag__label::before {
  content: "▸";
  color: var(--cyan);
}

.diag__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.field {
  position: relative;
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--ink-100);
  font-size: 14px;
  font-family: var(--f-body);
  transition: all 200ms;
  outline: 0;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--cyan);
  background: rgba(0,229,255,0.04);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-500);
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}

/* Service chip selector */
.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-300);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all 200ms;
  user-select: none;
  white-space: nowrap;
}
.chip:hover { color: var(--cyan); border-color: var(--cyan); }
.chip[aria-pressed="true"] {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.10);
  border-color: var(--cyan);
  box-shadow:
    0 0 0 1px rgba(0,229,255,0.3),
    0 0 16px rgba(0,229,255,0.2);
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-700);
  transition: all 200ms;
}
.chip[aria-pressed="true"] .dot {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.diag__submit {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.diag__submit .btn-cta {
  font-size: 13px;
  padding: 14px 24px;
}
.diag__submit .hint {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-500);
}

/* Right sidebar — live diagnostic readout */
.readout {
  position: sticky; top: 100px;
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-300);
}
.readout__head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-500);
  text-transform: uppercase;
}
.readout__head .lights { display: flex; gap: 4px; }
.readout__head .lights i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-700);
}
.readout__head .lights i.on { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.readout__line {
  display: flex; justify-content: space-between;
  border-bottom: 1px dashed var(--line-soft);
  padding: 6px 0;
}
.readout__line .k { color: var(--ink-500); }
.readout__line .v { color: var(--cyan); }
.readout__bar {
  margin-top: 14px;
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}
.readout__bar::after {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 0 20px var(--cyan);
  transition: width 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.readout__bar-label {
  display: flex; justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-500);
  margin-top: 8px;
  text-transform: uppercase;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  position: relative;
  z-index: 1;
  margin-top: 80px;
  padding: 80px var(--gutter) 40px;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand {
  display: flex; flex-direction: column; gap: 14px;
}
.footer__brand .name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-100);
}
.footer__brand p { color: var(--ink-300); font-size: 14px; line-height: 1.6; max-width: 38ch; }
.footer__col h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.footer__col a {
  display: block;
  font-size: 13px;
  color: var(--ink-300);
  padding: 4px 0;
}
.footer__col a:hover { color: var(--cyan); }
.footer__copy {
  max-width: var(--max);
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-500);
}

/* ============================================================
   SCROLL REVEAL — content is always visible; reveal adds a subtle
   entry animation. Default state is `in-view` so screenshots and
   no-JS users see everything immediately.
   ============================================================ */
[data-reveal] {
  opacity: 1;
  transform: none;
}
[data-reveal].pre {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-reveal].pre.in-view {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-delay="1"] { transition-delay: 80ms; }
[data-reveal][data-delay="2"] { transition-delay: 160ms; }
[data-reveal][data-delay="3"] { transition-delay: 240ms; }
[data-reveal][data-delay="4"] { transition-delay: 320ms; }

/* ============================================================
   RESPONSIVE — mobile-first hardening
   ============================================================ */

/* Tablet — 980px */
@media (max-width: 980px) {
  .nav__items { display: none; }
  .nav { grid-template-columns: auto 1fr auto; }
  .services > .svc { grid-column: span 12; }
  .diag { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* Mobile — 720px */
@media (max-width: 720px) {
  :root {
    --gutter: 18px;
  }

  /* Nav — brand + CTA only, simpler chrome */
  .nav {
    top: 10px;
    width: calc(100% - 20px);
    padding: 8px 10px 8px 14px;
    gap: 8px;
    border-radius: 100px;
  }
  .nav__brand .name { font-size: 12px; }
  .nav__brand .mark { width: 26px; height: 26px; }
  .depth-toggle { padding: 7px 10px; font-size: 10px; }
  .depth-toggle .label-beginner, .depth-toggle .label-advanced { display: none; }
  .depth-toggle::after { content: "DEPTH"; }
  body.depth-advanced .depth-toggle::after { content: "ENG"; color: var(--cyan); }
  .btn-cta { padding: 8px 14px; font-size: 11px; gap: 6px; }
  .btn-cta svg { width: 12px; height: 12px; }

  /* Hero — tighter rhythm, shorter pad-top */
  .hero {
    padding: 110px 18px 60px;
    min-height: auto;
  }
  .hero h1 { font-size: 38px; max-width: none; }
  .hero__sub { font-size: 15px; }
  .hero__chip { font-size: 10px; padding: 6px 12px; }
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__ctas .btn-cta,
  .hero__ctas .btn-ghost { justify-content: center; padding: 14px 18px; font-size: 12px; }
  .hero__stats { gap: 14px; padding-top: 24px; }
  .hero__stat .num { font-size: 22px; }
  .hero__stat .lab { font-size: 9px; }

  /* Tone down the 3D hero scene — keep visible but less dominant.
     The Three.js scene itself remains, but is dimmed via CSS. */
  #scene { opacity: 0.55; }

  /* Sections — compress vertical rhythm */
  .section { padding: 64px 18px; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 30px; }

  /* Services — single column, looser inside */
  .services { gap: 14px; perspective: none; }
  .svc {
    grid-column: span 12 !important;
    padding: 22px;
    min-height: 220px;
    border-radius: 18px;
    /* Disable tilt + 3D scene perspective on mobile to keep paint costs low */
    transform: none !important;
    transform-style: flat;
  }
  .svc__title, .svc__num, .svc__desc, .svc__tags { transform: none; }
  .svc__scene--3d { opacity: 0.18 !important; width: 50% !important; }
  .svc__title { font-size: 18px; }
  .svc__desc { font-size: 13px; }

  /* Process — single column timeline (line hidden) */
  .process { grid-template-columns: 1fr; gap: 32px; }
  .process::before { display: none; }
  .step__node { width: 48px; height: 48px; }

  /* Diagnostic — stack, bigger targets */
  .diag { grid-template-columns: 1fr; gap: 18px; }
  .diag__panel { padding: 22px; border-radius: 16px; }
  .diag__row { grid-template-columns: 1fr; }
  .field input, .field textarea { padding: 14px; font-size: 16px; }  /* 16px prevents iOS zoom */
  .chip { padding: 12px 16px; font-size: 12px; min-height: 44px; }
  .diag__submit { flex-direction: column; align-items: stretch; gap: 12px; }
  .diag__submit .btn-cta { justify-content: center; padding: 16px; }
  .readout { position: static; padding: 18px; font-size: 11px; }

  /* Footer — single column, looser */
  .footer { padding: 60px 18px 24px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__copy { flex-direction: column; gap: 8px; text-align: center; }

  /* Hover overlays — hide entirely on mobile (no hover, save paint cost) */
  .hover-overlay { display: none !important; }

  /* Service card click-through hint always visible (no hover state) */
  .svc__deep::after { opacity: 1; bottom: 14px; right: 18px; }

  /* Pause matrix bg on mobile in dark mode — only enable in advanced */
  body:not(.depth-advanced) #matrix { display: none; }
}

/* Small phone — 420px */
@media (max-width: 420px) {
  .hero h1 { font-size: 32px; }
  .section-head h2 { font-size: 26px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .nav { padding: 8px 8px 8px 12px; }
  .nav__brand .name { font-size: 11px; letter-spacing: 0.14em; }
  .btn-cta span:not(:first-of-type) { display: none; }
}

/* ============================================================
   NAV ENHANCEMENTS (nav.js additions)
   ============================================================ */

/* Real logo image */
.nav__brand .logo-img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* Scroll-to-solid */
.nav--scrolled {
  background: rgba(4, 6, 11, 0.96);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-color: rgba(0, 229, 255, 0.16);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 0 60px rgba(0,229,255,0.06),
    0 16px 48px rgba(0,0,0,0.7);
}

/* ── Page transitions ── */
body {
  transition: opacity 280ms ease, transform 280ms ease;
}
body.page-entering {
  opacity: 0;
  transform: translateY(8px);
  transition: none;
}
body.page-leaving {
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
}

/* ── Hamburger button ── */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px; height: 38px;
  padding: 9px 8px;
  border-radius: 100px;
  border: 1px solid var(--line-soft);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 200ms, background 200ms;
}
.nav__burger:hover {
  border-color: rgba(0,229,255,0.28);
  background: rgba(0,229,255,0.06);
}
.nav__burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink-300);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 180ms ease, width 180ms ease;
  transform-origin: center;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile nav drawer ── */
.mobile-nav {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(4, 6, 11, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.mobile-nav[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav ul {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 4px; text-align: center;
  padding: 0; margin: 0;
  width: 100%; max-width: 360px;
}
.mobile-nav li a {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink-500);
  padding: 14px 28px;
  border-radius: 12px;
  transition: color 150ms, background 150ms;
  white-space: nowrap;
}
.mobile-nav li a:hover,
.mobile-nav li a.active { color: var(--cyan); background: rgba(0,229,255,0.06); }
.mobile-nav__cta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: center;
}
.mobile-nav__cta a { font-size: 14px !important; padding: 13px 28px !important; }
body.mobile-nav-open { overflow: hidden; }

@media (max-width: 980px) {
  .nav__burger { display: flex; }
}
