/*
  Nexus System Template
  https://templatemo.com/tm-629-nexus-system
*/

:root {
  --titanium: #F4F5F6; /* brushed titanium, cool metallic light grey */
  --carbon: #0D0E15; /* carbon matte, deep light-absorbing dark */
  --volt: #D1FF00; /* acid volt, electric neon accent */
  --steel: #D9E0E4; /* muted steel lines and borders */
  --graphite: #1A1D1A; /* deep graphite grey with a whisper of green */
  --white: #FFFFFF;
  --hud-h: 60px;
  --ease-silk: cubic-bezier(0.16, 1, 0.3, 1);
  --off-white: #F0F0F0;
  --neon-chartreuse: #DFFF00;
  --font-spine: 'Anton', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --ease-heavy: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html { scroll-behavior: auto; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--titanium);
  color: var(--carbon);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }

.mono { font-family: 'JetBrains Mono', monospace; }

/* ---------- scroll spacer creates the 400vh track ---------- */
.scroll-spacer { height: 400vh; }

/* ---------- z-depth card engine ---------- */
.zcard {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform-origin: top center;
  will-change: transform, opacity;
  overflow: hidden;
}

.zcard[data-card="1"] { z-index: 10; }
.zcard[data-card="2"] { z-index: 20; transform: translateY(100%); }
.zcard[data-card="3"] { z-index: 30; transform: translateY(100%); }
.zcard[data-card="4"] { z-index: 40; transform: translateY(100%); }

/* ---------- card 1: the floating hero ---------- */
.card-hero {
  background: var(--titanium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stage {
  position: relative;
  text-align: center;
  z-index: 5;
  padding: 0 24px;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--carbon);
  background: var(--volt);
  display: inline-block;
  padding: 7px 14px 7px 18px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(42px, 9.5vw, 140px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--carbon);
}

.hero-sub {
  margin: 32px auto 0;
  max-width: 480px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #4B515C;
}

.hero-scroll-hint {
  position: absolute;
  bottom: calc(var(--hud-h) + 28px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #6A7077;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-scroll-hint::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--carbon), transparent);
  animation: hint-drop 2.2s var(--ease-silk) infinite;
}

@keyframes hint-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* floating translucent glass shapes */
.glass-shape {
  position: absolute;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--steel);
  overflow: hidden;
  z-index: 2;
}

.glass-shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glass-a {
  width: 220px;
  height: 220px;
  top: 12%;
  left: 8%;
  border-radius: 32px;
  overflow: hidden;
  animation: bob-a 9s ease-in-out infinite;
}

.glass-b {
  width: 150px;
  height: 150px;
  bottom: 18%;
  right: 10%;
  border-radius: 50%;
  animation: bob-b 7s ease-in-out infinite;
}

.glass-c {
  width: 110px;
  height: 110px;
  top: 20%;
  right: 22%;
  border-radius: 20px;
  transform: rotate(18deg);
  animation: bob-c 11s ease-in-out infinite;
}

@keyframes bob-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-26px); }
}

@keyframes bob-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(22px); }
}

@keyframes bob-c {
  0%, 100% { transform: translateY(0) rotate(18deg); }
  50% { transform: translateY(-18px) rotate(24deg); }
}

/* faint engineering grid behind the hero */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--steel) 1px, transparent 1px), linear-gradient(90deg, var(--steel) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  z-index: 1;
}

/* ---------- card 2: the engineered image overlay ---------- */
.card-macro { background: var(--carbon); }

.macro-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.macro-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 14, 21, 0.25), rgba(13, 14, 21, 0.05) 40%, rgba(13, 14, 21, 0.35));
  pointer-events: none;
}

/* interactive SVG hotspots on lion head, eye, mouth */
.lion-hotspots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.hotspot-item {
  cursor: pointer;
  outline: none;
}

.hotspot-hit {
  fill: transparent;
  stroke: transparent;
}

.hotspot-ring {
  fill: rgba(209, 255, 0, 0.15);
  stroke: var(--volt);
  stroke-width: 1.5;
  transition: transform 0.3s var(--ease-silk), fill 0.3s var(--ease-silk), r 0.3s var(--ease-silk);
}

.hotspot-dot {
  fill: var(--volt);
  transition: fill 0.3s var(--ease-silk);
}

.hotspot-tag {
  opacity: 0;
  transition: opacity 0.25s var(--ease-silk);
  pointer-events: none;
}

.hotspot-tag rect {
  fill: rgba(13, 14, 21, 0.88);
  stroke: var(--volt);
  stroke-width: 1;
}

.hotspot-tag text {
  fill: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hotspot-item:hover .hotspot-ring,
.hotspot-item:focus-visible .hotspot-ring {
  fill: rgba(209, 255, 0, 0.38);
  r: 14;
}

.hotspot-item:hover .hotspot-tag,
.hotspot-item:focus-visible .hotspot-tag {
  opacity: 1;
}

/* floating info popup on hotspot hover */
.lion-info-popup {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 310px;
  max-width: calc(100vw - 32px);
  background: rgba(13, 14, 21, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(209, 255, 0, 0.45);
  border-left: 3px solid var(--volt);
  color: var(--titanium);
  padding: 18px 20px;
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease-silk), transform 0.25s var(--ease-silk);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.lion-info-popup.visible {
  opacity: 1;
  transform: translateY(0);
}

.lion-popup-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--volt);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.lion-popup-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(244, 245, 246, 0.92);
  margin-bottom: 12px;
}

.lion-popup-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #E3FF7A;
  padding-top: 10px;
  border-top: 1px solid rgba(217, 224, 228, 0.18);
}

.macro-caption {
  position: absolute;
  left: 40px;
  bottom: calc(var(--hud-h) + 36px);
  color: var(--titanium);
  max-width: 420px;
}

.macro-caption .mono {
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #E3FF7A;
  display: block;
  margin-bottom: 14px;
}

.macro-caption h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ---------- card 3: the matrix tabs and signature ---------- */
.card-matrix {
  background: var(--graphite);
  color: var(--titanium);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.matrix-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px clamp(28px, 5vw, 80px) calc(var(--hud-h) + 40px);
}

.matrix-left .mono-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 20px;
}

.matrix-left h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 40px;
}

.matrix-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 22px 24px;
  border-left: 2px solid rgba(217, 224, 228, 0.2);
  transition: border-color 0.5s var(--ease-silk), background 0.5s var(--ease-silk);
}

.matrix-tab .tab-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.matrix-tab .tab-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #6A7077;
  transition: color 0.5s var(--ease-silk);
}

.matrix-tab .tab-name {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(244, 245, 246, 0.55);
  transition: color 0.5s var(--ease-silk);
}

.matrix-tab p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 245, 246, 0.6);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.7s var(--ease-silk), opacity 0.7s var(--ease-silk);
}

.matrix-tab.active {
  border-left-color: var(--volt);
  background: rgba(209, 255, 0, 0.08);
}

.matrix-tab.active .tab-num { color: var(--volt); }

.matrix-tab.active .tab-name { color: var(--titanium); }

.matrix-tab.active p { max-height: 120px; opacity: 1; }

.matrix-tab:focus-visible { outline: 2px solid var(--volt); outline-offset: -2px; }

.matrix-right { position: relative; overflow: hidden; }

.matrix-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s var(--ease-silk), transform 1.4s var(--ease-silk);
}

.matrix-img.active { opacity: 1; transform: scale(1); }

.matrix-img-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 29, 26, 0.55), rgba(26, 29, 26, 0) 45%);
  pointer-events: none;
}

.matrix-caption {
  position: absolute;
  right: 28px;
  bottom: calc(var(--hud-h) + 24px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--titanium);
  background: rgba(26, 29, 26, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(217, 224, 228, 0.25);
  padding: 10px 16px;
}

/* ===========================================
   MEGA FOOTER (NewDesign Birebir İmza Bölümü)
   =========================================== */
.mega-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  height: auto;
  --footer-pad: 36px;
  padding: 28px var(--footer-pad) calc(var(--hud-h) + 14px);
  background:
    radial-gradient(85% 65% at 50% 0%, #1545aa 0%, #0d2d77 28%, #071b4e 52%, transparent 80%),
    linear-gradient(180deg, #092364 0%, #05143a 28%, #030b22 55%, #020614 85%, #01030a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transform: translateY(100%);
  will-change: transform;
}

/* Hero CTA Area */
.mega-footer__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto 2px;
  padding: 0 16px;
}

.mega-footer__hero-text {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 500;
  line-height: 1.65;
  color: #ffffff;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.mega-footer__cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.mega-footer__pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  text-decoration: none;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.mega-footer__pill-btn i {
  font-size: 0.95rem;
}

.mega-footer__pill-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

/* Nav & Social bar */
.mega-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 4px;
}

.mega-footer__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 36px;
}

.mega-footer__nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s var(--ease-heavy), text-shadow 0.3s var(--ease-heavy);
}

.mega-footer__nav a:hover {
  color: var(--neon-chartreuse);
  text-shadow: 0 0 10px rgba(223, 255, 0, 0.6);
}

.mega-footer__social {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.mega-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s var(--ease-heavy), transform 0.3s var(--ease-heavy);
}

.mega-footer__social a:hover {
  color: var(--neon-chartreuse);
  transform: translateY(-2px);
}

/* Middle: giant, centered, bottom-fading wordmark */
.mega-footer__title {
  margin: 0;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, calc((100vw - 2 * var(--footer-pad)) / 8.6), 26rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  padding-top: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  user-select: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 35%, rgba(0, 0, 0, 0.65) 60%, rgba(0, 0, 0, 0.2) 80%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 0%, #000 35%, rgba(0, 0, 0, 0.65) 60%, rgba(0, 0, 0, 0.2) 80%, transparent 95%);
}

/* --- Title hover FX: blueprint / dashed-outline reveal --- */
.mega-footer__title-wrap {
  position: relative;
  width: 100%;
  --mx: -9999px;
  --my: -9999px;
  --mr: 0px;
  --title-fade: linear-gradient(180deg, #000 0%, #000 35%, rgba(0, 0, 0, 0.65) 60%, rgba(0, 0, 0, 0.2) 80%, transparent 95%);
}

.title-fx__outline,
.title-fx__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: var(--title-fade);
  mask-image: var(--title-fade);
}

.title-fx__outline {
  visibility: hidden;
  overflow: visible;
}

.title-fx__outline text {
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.3px;
  stroke-dasharray: 3 3.5;
  stroke-linejoin: round;
}

/* Filled text gets a soft transparent "hole" under the cursor */
.mega-footer__title-wrap.is-fx .mega-footer__title {
  -webkit-mask-image:
    var(--title-fade),
    radial-gradient(circle var(--mr) at var(--mx) var(--my), transparent 0, transparent 58%, #000 100%);
  mask-image:
    var(--title-fade),
    radial-gradient(circle var(--mr) at var(--mx) var(--my), transparent 0, transparent 58%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Dashed outline shows only inside that same region */
.mega-footer__title-wrap.is-fx .title-fx__outline {
  visibility: visible;
  -webkit-mask-image:
    var(--title-fade),
    radial-gradient(circle var(--mr) at var(--mx) var(--my), #000 0, #000 58%, transparent 100%);
  mask-image:
    var(--title-fade),
    radial-gradient(circle var(--mr) at var(--mx) var(--my), #000 0, #000 58%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Bottom row: credits */
.mega-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mega-footer__credit {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
}

/* ===========================================
   MODALS (:target & .is-open)
   =========================================== */
html:has(.modal-overlay:target),
html:has(.modal-overlay.is-open) {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s var(--ease-heavy),
    visibility 0s linear 0.5s;
}

.modal-overlay:target,
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.5s var(--ease-heavy),
    visibility 0s linear 0s;
}

.modal-overlay:target .modal__content,
.modal-overlay.is-open .modal__content {
  opacity: 1;
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 28px;
  right: 36px;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--off-white);
  font-family: var(--font-mono);
  font-size: 1.4rem;
  border: 1px solid #4A4A4A;
  border-radius: 0;
  transition:
    border-color 0.3s var(--ease-heavy),
    color 0.3s var(--ease-heavy);
}

.modal__close:hover {
  border-color: var(--neon-chartreuse);
  color: var(--neon-chartreuse);
}

.modal__content {
  max-width: 680px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.5s var(--ease-heavy) 0.1s,
    transform 0.5s var(--ease-heavy) 0.1s;
  scrollbar-width: thin;
  scrollbar-color: #4A4A4A transparent;
}

.modal__content::-webkit-scrollbar {
  width: 4px;
}

.modal__content::-webkit-scrollbar-track {
  background: transparent;
}

.modal__content::-webkit-scrollbar-thumb {
  background: #4A4A4A;
  border-radius: 0;
}

.modal__content::-webkit-scrollbar-thumb:hover {
  background: #6B6B6B;
}

.modal__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neon-chartreuse);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal__label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--neon-chartreuse);
}

.modal__heading {
  font-family: var(--font-spine);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  text-transform: uppercase;
  color: var(--off-white);
  line-height: 0.95;
  margin-bottom: 36px;
}

.modal__text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.9;
  color: rgba(240, 240, 240, 0.6);
  margin-bottom: 24px;
}

.modal__text strong {
  color: var(--off-white);
  font-weight: 700;
}

.modal__text a {
  color: var(--off-white);
  text-decoration: none;
  border-bottom: 1px solid #4A4A4A;
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease-heavy);
}

.modal__text a:hover {
  border-color: var(--neon-chartreuse);
}

.modal__divider {
  width: 48px;
  height: 1px;
  background: #4A4A4A;
  margin: 36px 0;
  border: none;
}

.modal__contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 40px;
}

.modal__contact-item {
  font-family: var(--font-mono);
}

.modal__contact-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4A4A4A;
  margin-bottom: 8px;
}

.modal__contact-value {
  font-size: 0.8rem;
  color: var(--off-white);
}

.modal__contact-value a {
  color: var(--off-white);
  text-decoration: none;
  border-bottom: 1px solid #4A4A4A;
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease-heavy);
}

.modal__contact-value a:hover {
  border-color: var(--neon-chartreuse);
  color: var(--neon-chartreuse);
}

/* ---------- the permanent hud signature bar ---------- */
.hud {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--hud-h);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 40px);
  background: rgba(244, 245, 246, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--steel);
}

.hud-brand {
  font-weight: 300;
  letter-spacing: 0.22em;
  font-size: 13px;
  color: var(--carbon);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.hud-brand .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 0 1px rgba(13, 14, 21, 0.35);
}

.hud-credit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #6A7077;
  white-space: nowrap;
}

.hud-credit a { color: var(--carbon); border-bottom: 1px solid var(--volt); padding-bottom: 1px; }

.hud-progress {
  flex: 1;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hud-track {
  flex: 1;
  height: 2px;
  background: var(--steel);
  position: relative;
  overflow: hidden;
}

.hud-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--volt);
}

.hud-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--carbon);
  min-width: 44px;
  text-align: right;
}

.hud-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 20px;
  border-left: 1px solid var(--steel);
}

.hud-arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--steel);
  background: var(--white);
  color: var(--carbon);
  transition: background 0.4s var(--ease-silk), border-color 0.4s var(--ease-silk), color 0.4s var(--ease-silk), opacity 0.4s var(--ease-silk);
}

.hud-arrow svg { width: 14px; height: 14px; display: block; }

.hud-arrow:hover:not(:disabled) {
  background: var(--volt);
  border-color: var(--carbon);
  color: var(--carbon);
}

.hud-arrow:disabled { opacity: 0.3; cursor: default; }

.hud-arrow:focus-visible { outline: 2px solid var(--carbon); outline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .glass-a { width: 140px; height: 140px; left: 4%; }
  .glass-b { width: 100px; height: 100px; right: 6%; }
  .glass-c { width: 80px; height: 80px; right: 12%; }
  .crosshair-v { left: 50%; }
  .node-dot { left: 50%; }
  .node-box { left: 24px; right: 24px; width: auto; top: calc(40% + 28px); }
  .macro-caption { left: 24px; right: 24px; }
  .accordion { flex-direction: column; }
  .slice { border-right: none; border-bottom: 1px solid var(--steel); }
  .slice:last-child { border-bottom: none; }
  .slice-idle { flex-direction: row; align-items: center; justify-content: space-between; padding: 0 24px; }
  .slice-idle-title { writing-mode: horizontal-tb; letter-spacing: 0.08em; }
  .slice-reveal { left: 24px; right: 24px; bottom: 20px; }
  .slice-reveal h3 { white-space: normal; }
  .fold-head { padding: 20px 24px 0; flex-direction: column; gap: 6px; }
  .accordion { margin-top: 16px; }
  .card-matrix { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .matrix-left { padding: 40px 24px 24px; justify-content: flex-start; }
  .matrix-left h2 { margin-bottom: 20px; }
  .matrix-tab { padding: 14px 16px; }
  .matrix-caption { right: 16px; bottom: calc(var(--hud-h) + 16px); }
  .mega-footer {
    --footer-pad: 20px;
    padding: 44px var(--footer-pad) calc(var(--hud-h) + 16px);
    gap: 24px;
  }
  .mega-footer__hero { gap: 18px; margin-bottom: 6px; padding: 0; }
  .mega-footer__hero-text { font-size: 0.95rem; }
  .mega-footer__cta-row { gap: 10px; }
  .mega-footer__pill-btn { padding: 8px 16px; font-size: 0.8rem; }
  .mega-footer__nav { gap: 10px 22px; }
  .mega-footer__nav a { font-size: 0.65rem; }
  .mega-footer__social { gap: 22px; }
  .mega-footer__bottom { flex-direction: column; align-items: flex-start; }
  .modal__content { padding: 40px 24px 60px; max-height: 100vh; margin-top: 40px; }
  .modal-overlay { align-items: flex-start; }
  .modal__close { top: 20px; right: 24px; width: 40px; height: 40px; font-size: 1.2rem; }
  .hud-credit { display: none; }
  .hud-pct { display: none; }
}

@media (max-height: 540px) {
  .hero-title { font-size: clamp(40px, 10vh, 90px); }
  .hero-sub { display: none; }
  .matrix-tab p { display: none; }
}

/* ---------- reduced motion: collapse to a calm static document ---------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-spacer { display: none; }
  .zcard {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100vh;
    transform: none !important;
    opacity: 1 !important;
  }
  .mega-footer {
    position: relative;
    transform: none !important;
  }
  .glass-a, .glass-b, .glass-c, .node-dot, .hero-scroll-hint::after { animation: none !important; }
  .slice, .slice-img, .slice-shade, .slice-reveal, .matrix-img, .matrix-tab p { transition: none !important; }
  .card-macro, .matrix-right { min-height: 100vh; }
}
