:root {
  --bg: #0a0b0d;
  --bg2: #101216;
  --bg3: #15181d;
  --line: #2a2e35;
  --line-bright: #3d434c;
  --primary: #ff2e44;
  --primary-dim: rgba(255, 46, 68, 0.55);
  --primary-faint: rgba(255, 46, 68, 0.12);
  --secondary: #c9d7f0;
  --secondary-dim: rgba(201, 215, 240, 0.50);
  --secondary-faint: rgba(201, 215, 240, 0.08);
  --gold: #f2b13d;
  --gold-bright: #ffcf6a;
  --gold-dim: rgba(242, 177, 61, 0.45);
  --blood: #ff2e44;
  --blood-dim: rgba(255, 46, 68, 0.55);
  --blood-faint: rgba(255, 46, 68, 0.10);
  --text: #d8dad3;
  --text-dim: #8d939c;
  --text-faint: #5c6168;
  --display: "Rajdhani", sans-serif;
  --label: "Chakra Petch", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --notch: 16px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.14) 3px 4px);
  opacity: 0.5;
}

::selection { background: var(--primary); color: #fff; }

a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-dim); transition: border-color 0.15s, color 0.15s; }
a:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1.1; letter-spacing: 0.03em; }

kbd {
  font-family: var(--mono);
  font-size: 0.78em;
  background: var(--bg3);
  border: 1px solid var(--line-bright);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 0.15em 0.5em;
  color: var(--primary);
  white-space: nowrap;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 13, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 62px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: none;
  margin-right: auto;
}
.brand:hover { border-bottom: none; }

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.brand-name b { color: var(--primary); font-weight: 700; }

.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }

.nav-links a {
  font-family: var(--label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 13px;
  border-bottom: none;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  background: var(--primary);
}

.nav-cta {
  font-family: var(--label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  border: 1px solid var(--secondary-dim);
  padding: 8px 16px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.15s, color 0.15s;
}
.nav-cta:hover { background: var(--secondary); color: #000; border-bottom-color: transparent; }

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("img/city.jpg");
  background-size: cover;
  background-position: center 30%;
  filter: saturate(1.08) contrast(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 13, 0.78) 0%, rgba(10, 11, 13, 0.45) 45%, rgba(10, 11, 13, 0.96) 100%);
}

.hero-sweep {
  position: absolute;
  left: 0;
  right: 0;
  top: -4px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  opacity: 0;
  animation: sweep 2.6s cubic-bezier(0.6, 0, 0.3, 1) 0.4s 1;
}
@keyframes sweep {
  0% { top: 0; opacity: 0.9; }
  100% { top: 100%; opacity: 0; }
}

.hero-inner { position: relative; padding: 120px 0 90px; }

.hero-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-kicker::before { content: ""; width: 42px; height: 1px; background: var(--secondary-dim); }

.hero-title {
  font-size: clamp(56px, 10vw, 124px);
  letter-spacing: 0.02em;
  color: #f4f5ef;
  text-shadow: 0 0 42px rgba(255, 46, 68, 0.16);
  animation: glitch-in 0.7s steps(8) 0.15s both;
}
.hero-title .amp { color: var(--blood); padding: 0 0.06em; }

@keyframes glitch-in {
  0% { opacity: 0; transform: translateX(-8px); clip-path: inset(0 0 70% 0); text-shadow: -4px 0 var(--blood), 4px 0 var(--secondary); }
  35% { opacity: 1; clip-path: inset(30% 0 20% 0); text-shadow: 3px 0 var(--blood), -3px 0 var(--secondary); }
  70% { clip-path: inset(0 0 0 0); transform: translateX(2px); text-shadow: -2px 0 var(--blood), 2px 0 var(--secondary); }
  100% { transform: none; text-shadow: 0 0 42px rgba(255, 46, 68, 0.16); }
}

.hero-tag {
  font-family: var(--label);
  font-weight: 600;
  font-size: clamp(15px, 2.2vw, 21px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 18px 0 30px;
}

.hero-sub { max-width: 560px; color: var(--text-dim); font-size: 18px; margin-bottom: 42px; }

.btn-row { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  font-family: var(--label);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: none;
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform 0.12s, filter 0.12s, background 0.15s, color 0.15s;
  display: inline-block;
}
.btn:hover { transform: translate(-1px, -1px); border-bottom-color: transparent; }
.btn:active { transform: translate(1px, 1px); }

.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { filter: brightness(1.08); color: #000; }

.btn-ghost { background: transparent; color: var(--secondary); box-shadow: inset 0 0 0 1px var(--secondary-dim); }
.btn-ghost:hover { background: var(--secondary-faint); color: var(--secondary); }

.stat-strip { border-bottom: 1px solid var(--line); background: var(--bg2); }

.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 26px 24px;
  border-left: 1px solid var(--line);
  text-align: center;
}
.stat:first-child { border-left: none; }

.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 0.03em;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 7px;
}
.stat span {
  font-family: var(--label);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
}

section.block { padding: 96px 0 30px; }
section.block:last-of-type { padding-bottom: 96px; }

.sec-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 18px; }

.sec-tag {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--primary);
  white-space: nowrap;
}
.sec-tag::before { content: "// "; color: var(--text-faint); }

.sec-head .rule { flex: 1; height: 1px; background: var(--line); }

.sec-title { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 18px; }
.sec-title .accent { color: var(--primary); }

.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 50px 0;
}
.pillar.flip .pillar-media { order: -1; }

.pillar-copy p { color: var(--text-dim); margin-bottom: 18px; }
.pillar-copy p strong { color: var(--text); }

.feature-list { list-style: none; }
.feature-list li {
  padding: 9px 0 9px 26px;
  position: relative;
  color: var(--text-dim);
  border-top: 1px dashed rgba(61, 67, 76, 0.5);
}
.feature-list li:first-child { border-top: none; }
.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 2px;
  color: var(--primary);
}
.feature-list li strong { color: var(--text); font-weight: 600; }

.frame { position: relative; padding: 10px; }
.frame img {
  width: 100%;
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
  filter: saturate(1.05);
}
.frame::before, .frame::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  pointer-events: none;
}
.frame::before { top: 0; left: 0; border-top: 2px solid var(--primary); border-left: 2px solid var(--primary); }
.frame::after { bottom: 0; right: 0; border-bottom: 2px solid var(--primary); border-right: 2px solid var(--primary); }

.frame figcaption {
  position: absolute;
  bottom: 20px;
  left: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(216, 218, 211, 0.85);
  background: rgba(10, 11, 13, 0.72);
  padding: 4px 10px;
}

.panel {
  position: relative;
  background: var(--line);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
  padding: 1px;
}
.panel-in {
  background: var(--bg2);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
  padding: 34px 34px 30px;
  height: 100%;
}

.profiles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 44px; }

.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.profile-head h3 { font-size: 26px; }
.profile-chip {
  font-family: var(--label);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 3px 9px;
  text-transform: uppercase;
}
.profile-immersive .profile-chip { background: var(--blood-faint); color: var(--blood); box-shadow: inset 0 0 0 1px var(--blood-dim); }
.profile-standard .profile-chip { background: var(--secondary-faint); color: var(--secondary); box-shadow: inset 0 0 0 1px var(--secondary-dim); }
.profile-immersive .panel { background: linear-gradient(160deg, var(--blood-dim), var(--line) 40%); }
.profile-standard .panel { background: linear-gradient(160deg, var(--secondary-dim), var(--line) 40%); }
.profile-sub { color: var(--text-faint); font-family: var(--label); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }

.callout {
  display: block;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-left: 14px solid;
  border-image: repeating-linear-gradient(-45deg, var(--secondary) 0 9px, #15161a 9px 18px) 14;
  padding: 20px 24px;
  margin: 28px 0;
  color: var(--text-dim);
}
.callout strong { color: var(--secondary); }
.callout.red { border-image: repeating-linear-gradient(-45deg, var(--blood) 0 9px, #15161a 9px 18px) 14; }
.callout.red strong { color: var(--blood); }
.callout p + p { margin-top: 10px; }

.quote-band {
  text-align: center;
  padding: 86px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 90% at 50% 110%, rgba(255, 34, 76, 0.10), transparent),
    var(--bg2);
}
.quote-band .big {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: 0.04em;
  max-width: 880px;
  margin: 0 auto 14px;
}
.quote-band .big em { font-style: normal; color: var(--primary); }
.quote-band .sign {
  font-family: var(--label);
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--blood);
  font-size: 15px;
}

.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }

.link-card {
  border: 1px solid var(--line);
  background: var(--bg2);
  padding: 24px 26px;
  display: block;
  color: var(--text);
  position: relative;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.link-card:hover { border-color: var(--primary-dim); background: var(--bg3); border-bottom-color: var(--primary-dim); transform: translateY(-2px); }
.link-card .lc-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 8px;
}
.link-card .lc-name { font-family: var(--display); font-weight: 700; font-size: 21px; text-transform: uppercase; letter-spacing: 0.04em; }
.link-card .lc-arrow { position: absolute; right: 20px; bottom: 16px; color: var(--primary); font-family: var(--mono); transition: transform 0.15s; }
.link-card:hover .lc-arrow { transform: translateX(5px); }

.ack-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 56px; margin-top: 32px; }
.ack-cols .feature-list li::before { content: "+"; color: var(--secondary); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 40px; }
.g-cell {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.g-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease, filter 0.35s ease; }
.g-cell:hover { border-color: var(--primary-dim); }
.g-cell:hover img { transform: scale(1.05); filter: saturate(1.15); }
.gallery-credit {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 16px;
}

.rel-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line-bright);
  border-left: 3px solid var(--primary);
  background: rgba(10, 11, 13, 0.6);
  padding: 8px 14px;
  margin-bottom: 34px;
}
.rel-chip b { color: var(--primary); font-weight: 500; }
.rel-chip i { color: var(--secondary); font-style: normal; }

.ticker { border-bottom: 1px solid var(--line); background: #0c0d10; overflow: hidden; }
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  padding: 9px 0;
  animation: tick 55s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0 30px;
}
.ticker-track span::after { content: "◆"; color: var(--primary-dim); margin-left: 60px; font-size: 8px; vertical-align: 1px; }
.ticker-track span b { color: var(--primary); font-weight: 500; }
.ticker-track span i { color: var(--secondary); font-style: normal; }
@keyframes tick { to { transform: translateX(-50%); } }

.reveal.in .frame img { animation: feed-lock 0.6s ease both; }
@keyframes feed-lock {
  0% { filter: saturate(0) brightness(1.7) contrast(1.2); transform: scale(1.03); }
  55% { filter: saturate(1.35) brightness(1.12); }
  100% { filter: saturate(1.05) brightness(1); transform: none; }
}

.cta-band {
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 55% 80% at 50% -20%, rgba(201, 215, 240, 0.06), transparent),
    var(--bg2);
}
.cta-band h2 { font-size: clamp(28px, 4.6vw, 44px); margin-bottom: 10px; }
.cta-band h2 .accent { color: var(--primary); }
.cta-band p { color: var(--text-dim); margin-bottom: 34px; }
.cta-band .btn-row { justify-content: center; }

.flatline {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 28px;
}
.flatline .code {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(90px, 18vw, 190px);
  line-height: 1;
  color: var(--primary);
  letter-spacing: 0.04em;
  animation: glitch-in 0.7s steps(8) 0.1s both;
}
.flatline .label {
  font-family: var(--label);
  font-weight: 600;
  font-size: clamp(14px, 2.4vw, 20px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 14px 0 18px;
}
.flatline p { color: var(--text-dim); max-width: 460px; margin-bottom: 38px; }

.site-footer { border-top: 1px solid var(--line); background: #07080a; padding: 64px 0 46px; }
.footer-sign {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 52px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.footer-sign .lh { color: var(--text); }
.footer-sign .dc { color: var(--blood); }
.footer-quote { color: var(--text-faint); font-style: italic; margin-bottom: 36px; }
.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.footer-meta a { color: var(--text-dim); }
.footer-meta a:hover { color: var(--secondary); }

.page-head { border-bottom: 1px solid var(--line); background: var(--bg2); padding: 64px 0 42px; position: relative; overflow: hidden; }
.page-head::after {
  content: "";
  position: absolute;
  top: 0;
  right: -60px;
  width: 340px;
  height: 100%;
  background: repeating-linear-gradient(-55deg, var(--primary-faint) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.page-head h1 { font-size: clamp(36px, 6vw, 62px); }
.page-head .crumb { font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--secondary); margin-bottom: 14px; display: block; }
.page-head .lede { color: var(--text-dim); max-width: 640px; margin-top: 12px; }

.doc { padding: 56px 0 100px; }
.doc-grid { display: grid; grid-template-columns: 1fr; gap: 0; }

.steps { counter-reset: step; list-style: none; margin: 26px 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 18px 22px 18px 76px;
  border: 1px solid var(--line);
  background: var(--bg2);
  margin-bottom: 12px;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 16px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 21px;
  color: var(--primary);
}
.steps > li strong { color: var(--text); }
.steps > li p { color: var(--text-dim); }
.steps .substeps { margin: 8px 0 0 18px; color: var(--text-dim); }
.steps .substeps li { padding: 3px 0; }

.spec-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0; }
.spec-cell { border: 1px solid var(--line); background: var(--bg2); padding: 18px; text-align: center; }
.spec-cell b { display: block; font-family: var(--mono); font-size: 22px; color: var(--secondary); margin-bottom: 6px; }
.spec-cell span { font-family: var(--label); font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }

table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 16px; }
th {
  font-family: var(--label);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
  color: var(--primary);
  border-bottom: 1px solid var(--line-bright);
  padding: 10px 14px;
}
td { border-bottom: 1px solid var(--line); padding: 11px 14px; color: var(--text-dim); vertical-align: top; }
td:first-child { white-space: nowrap; }
tr:hover td { background: rgba(252, 238, 10, 0.025); }

details.fold { border: 1px solid var(--line); background: var(--bg2); margin: 14px 0; }
details.fold summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  padding: 15px 20px;
}
details.fold summary::before { content: "▸ "; color: var(--primary); }
details.fold[open] summary::before { content: "▾ "; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold .fold-body { padding: 4px 22px 20px; color: var(--text-dim); }

.md { max-width: 880px; }
.md h1 { font-size: 34px; margin: 40px 0 18px; }
.md h2 {
  font-size: 25px;
  margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--primary);
}
.md h3 { font-size: 20px; margin: 30px 0 12px; }
.md p { margin: 13px 0; color: var(--text-dim); }
.md strong { color: var(--text); }
.md ul, .md ol { margin: 13px 0 13px 24px; color: var(--text-dim); }
.md li { margin: 5px 0; }
.md hr { border: none; border-top: 1px dashed var(--line-bright); margin: 34px 0; }
.md code { font-family: var(--mono); font-size: 0.84em; background: var(--bg3); border: 1px solid var(--line); padding: 0.1em 0.4em; color: var(--secondary); }
.md pre { background: var(--bg3); border: 1px solid var(--line); padding: 16px 18px; overflow-x: auto; margin: 16px 0; }
.md pre code { border: none; background: none; padding: 0; }
.md blockquote { border-left: 3px solid var(--primary-dim); padding: 6px 0 6px 18px; margin: 16px 0; color: var(--text-dim); }
.md img { border: 1px solid var(--line); margin: 14px 0; }
.md details {
  border: 1px solid var(--line);
  background: var(--bg2);
  margin: 18px 0;
  padding: 0;
}
.md details summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  padding: 16px 22px;
  background: var(--bg3);
  transition: color 0.15s;
}
.md details summary:hover { color: var(--primary); }
.md details summary::before { content: "▸ "; color: var(--primary); }
.md details[open] summary::before { content: "▾ "; }
.md details summary::-webkit-details-marker { display: none; }
.md details > *:not(summary) { margin-left: 22px; margin-right: 22px; }
.md details > h2:first-of-type { margin-top: 20px; }
.md details > *:last-child { padding-bottom: 6px; margin-bottom: 18px; }

.lo-controls { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 30px 0 10px; }
.lo-tabs { display: flex; gap: 8px; }
.lo-tab {
  font-family: var(--label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 9px 18px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.lo-tab:hover { color: var(--text); }
.lo-tab.active { color: var(--primary); border-color: var(--primary-dim); background: var(--primary-faint); }
.lo-search {
  flex: 1;
  min-width: 220px;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 10px 14px;
}
.lo-search:focus { outline: none; border-color: var(--primary-dim); }
.lo-search::placeholder { color: var(--text-faint); }
.lo-meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 26px; }
.lo-group { margin: 14px 0; }
.lo-group summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--label);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--line);
  background: var(--bg2);
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  transition: border-color 0.15s;
}
.lo-group summary:hover { border-color: var(--primary-dim); }
.lo-group summary::before { content: "▸ "; }
.lo-group[open] summary::before { content: "▾ "; }
.lo-group summary::-webkit-details-marker { display: none; }
.lo-group summary small { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--text-faint); letter-spacing: 0.1em; margin-left: auto; }
.lo-group .lo-list { padding: 4px 6px 10px; }
.lo-list { list-style: none; }
.lo-row { display: flex; align-items: baseline; gap: 14px; padding: 7px 6px; border-bottom: 1px dashed rgba(61, 67, 76, 0.45); }
.lo-row .idx { font-family: var(--mono); font-size: 11px; color: var(--text-faint); min-width: 34px; text-align: right; flex: none; }
.lo-row .nm { color: var(--text-dim); }
.lo-row a.nm { color: var(--text-dim); }
.lo-row a.nm:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }
.lo-row .vv { font-family: var(--mono); font-size: 12px; color: var(--secondary-dim); margin-left: auto; flex: none; }
.lo-row.hide, .lo-group.hide { display: none; }

.ver-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.ver-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-bottom: 1px solid var(--line);
}
.ver-nav a:hover { color: var(--primary); border-color: var(--primary-dim); }

.loading {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  padding: 60px 0;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

body::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 150px;
  pointer-events: none;
  z-index: 9998;
  background: linear-gradient(180deg, transparent, rgba(201, 215, 240, 0.045), transparent);
  transform: translateY(-150px);
  will-change: transform;
  animation: scanroll 7.5s linear infinite;
}
@keyframes scanroll { from { transform: translateY(-150px); } to { transform: translateY(100vh); } }

.link-card::before, .link-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.link-card::before { top: 7px; left: 7px; border-top: 2px solid var(--primary); border-left: 2px solid var(--primary); }
.link-card::after { bottom: 7px; right: 7px; border-bottom: 2px solid var(--primary); border-right: 2px solid var(--primary); }
.link-card:hover::before, .link-card:hover::after { opacity: 1; }

.btn-primary:hover { animation: btn-glitch 0.32s steps(2, end) 1; }
@keyframes btn-glitch {
  0% { text-shadow: -2px 0 var(--secondary), 2px 0 #7a0d18; }
  45% { text-shadow: 2px 0 var(--secondary), -2px 0 #7a0d18; }
  100% { text-shadow: none; }
}

.cb-wipe {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.cb-wipe::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(255, 46, 68, 0.05) 2px 4px);
}
.cb-wipe.show { opacity: 1; }

.cb-sound {
  font-family: var(--label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: none;
  border: 1px solid var(--line);
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.15s, border-color 0.15s;
}
.cb-sound:hover { color: var(--secondary); border-color: var(--secondary-dim); }
.cb-sound[aria-pressed="true"] { color: var(--secondary); border-color: var(--secondary-dim); }
.cb-sound .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); flex: none; }
.cb-sound[aria-pressed="true"] .dot { background: var(--secondary); box-shadow: 0 0 7px var(--secondary); }

.cb-lb {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 7, 9, 0.95);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cb-lb.open { opacity: 1; }
.cb-lb[hidden] { display: none; }
.cb-lb-stage { position: relative; margin: 0; padding: 10px; }
.cb-lb-stage img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; display: block; border: 1px solid var(--line-bright); }
.cb-lb-stage::before, .cb-lb-stage::after { content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none; }
.cb-lb-stage::before { top: 0; left: 0; border-top: 2px solid var(--primary); border-left: 2px solid var(--primary); }
.cb-lb-stage::after { bottom: 0; right: 0; border-bottom: 2px solid var(--primary); border-right: 2px solid var(--primary); }
.cb-lb-btn {
  position: absolute;
  background: rgba(10, 11, 13, 0.7);
  border: 1px solid var(--line-bright);
  color: var(--secondary);
  font-family: var(--display);
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.cb-lb-btn:hover { color: var(--primary); border-color: var(--primary-dim); background: rgba(10, 11, 13, 0.9); }
.cb-lb-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 26px; }
.cb-lb-prev, .cb-lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 64px; font-size: 36px; }
.cb-lb-prev { left: 20px; }
.cb-lb-next { right: 20px; }
.cb-lb-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(10, 11, 13, 0.7);
  border: 1px solid var(--line);
  padding: 6px 14px;
}
.cb-lb-counter b { color: var(--primary); font-weight: 500; }
body.cb-lb-open { overflow: hidden; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .pillar, .profiles-grid, .ack-cols { grid-template-columns: 1fr; }
  .pillar { gap: 28px; }
  .pillar.flip .pillar-media { order: 0; }
  .stat-strip .wrap { grid-template-columns: 1fr 1fr; }
  .stat { border-top: 1px solid var(--line); }
  .links-grid { grid-template-columns: 1fr 1fr; }
  .spec-row { grid-template-columns: 1fr 1fr; }
  section.block { padding: 64px 0 20px; }
}

@media (max-width: 700px) {
  .site-nav { position: static; }
  html { scroll-padding-top: 12px; }
}

@media (max-width: 560px) {
  .links-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 80px 0 60px; }
  .panel-in { padding: 24px 22px; }
  .steps > li { padding-left: 60px; }
  .steps > li::before { left: 14px; }
  .cb-lb-prev, .cb-lb-next { width: 42px; height: 54px; font-size: 30px; }
  .cb-lb-prev { left: 8px; }
  .cb-lb-next { right: 8px; }
  .cb-lb-close { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title, .hero-sweep, .flatline .code { animation: none !important; opacity: 1; }
  .hero-sweep { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal.in .frame img { animation: none; }
  .ticker-track { animation: none; }
  .loading { animation: none; }
  body::before { display: none; }
  .btn-primary:hover { animation: none; }
  .cb-wipe { transition: none; }
  .cb-lb { transition: none; }
}
