:root {
  /* ===== v2.0 INDUSTRIAL FUTURE CIVILIZATION (IRON ONI base) ===== */
  /* layers */
  --bg: #080909;
  --bg-2: #101213;
  --surface: #171A1B;
  --surface-2: #1E2223;
  --text: #E7E9EC;
  --text-dim: #9299A2;
  --text-faint: #666C74;
  /* steel hairlines */
  --border: #2A2E31;
  --border-soft: rgba(42, 46, 49, .75);
  --border-strong: #383D41;
  /* brand accents (from IRON ONI plate) */
  --accent: #F97316;
  --accent-red: #C42B1C;
  --accent-yellow: #F2A33C;
  --orange-deep: #E8631A;
  --accent-soft: rgba(249, 115, 22, .14);
  --red-soft: rgba(196, 43, 28, .14);
  --amber-soft: rgba(242, 163, 60, .12);
  /* gradients */
  --metal-h: linear-gradient(180deg, #1C2022 0%, #141719 55%, #0E1011 100%);
  --metal-diag: linear-gradient(135deg, #17191B 0%, #101214 60%, #0C0E0F 100%);
  --flame: linear-gradient(160deg, #F2A33C 0%, #E8631A 45%, #C42B1C 100%);
  --hairline-glow: 0 0 14px rgba(232, 99, 26, .35);
  /* type */
  --font-sans: "Segoe UI", -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  /* type scale (bigger, confident) */
  --fs-display: clamp(2.4rem, 6vw, 4.2rem);
  --fs-h1: clamp(1.9rem, 4vw, 3rem);
  --fs-h2: clamp(1.45rem, 2.6vw, 2.1rem);
  --fs-h3: 1.15rem;
  --fs-body: 1rem;
  --fs-small: .86rem;
  --fs-micro: .74rem;
  /* spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  /* shapes: industrial chamfers instead of roundness */
  --radius: 4px;
  --radius-sm: 2px;
  --chamfer: 14px;
  /* misc */
  --nav-height: 66px;
  --container: 1240px;
  --container-text: 720px;
  --shadow-glow: 0 0 22px rgba(232, 99, 26, .12);
  --shadow-plate: 0 18px 50px rgba(0, 0, 0, .55);
}

/* language font adjustments */
html:lang(ru) body { font-stretch: normal; }
html:lang(en) body { letter-spacing: 0.01em; }

@media (prefers-reduced-motion: reduce) {
  :root { --hairline-glow: none; }
}

/* VI Industries v2.0 — INDUSTRIAL FUTURE CIVILIZATION
   Visual language: black anodized metal (IRON ONI plate) + Future
   Civilization world. Chamfered geometry, steel hairlines, technical
   markers, flame accents used sparingly. classes-anchors preserved. */

/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(196, 43, 28, .06), transparent 60%),
    radial-gradient(900px 400px at 5% 5%, rgba(232, 99, 26, .05), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { margin: 0 0 1.05em; }
:lang(ru) h1, :lang(ru) h2 { letter-spacing: -0.01em; }

/* focus / a11y */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #14070a; padding: 10px 18px; z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ============ layout ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }
.container--text { max-width: var(--container-text); }
.section { padding-block: clamp(64px, 10vh, 120px); position: relative; }
.section--tight { padding-block: clamp(44px, 7vh, 76px); }
.section--alt { background: linear-gradient(180deg, transparent 0%, var(--bg-2) 14%, var(--bg-2) 100%); }
.section--alt + .section--alt { border-top: 1px solid var(--border-soft); }
.section-topline { position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 18%, var(--border-strong) 82%, transparent); }
.grid { display: grid; gap: var(--space-5); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* ============ technical markers ============ */
.secno {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .22em;
  color: var(--text-faint); display: inline-flex; align-items: center; gap: 10px;
}
.secno::before { content: ""; width: 34px; height: 1px; background: var(--orange-deep); display: inline-block; }
.secno b { color: var(--orange-deep); font-weight: 600; }
.section-head { margin-bottom: clamp(40px, 7vh, 72px); }
.section-head .eyebrow { margin-bottom: var(--space-3); }
.section-head h2 { max-width: 22ch; }
.section-head p { color: var(--text-dim); max-width: 66ch; }
.secno-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: var(--space-3);
  color: var(--accent); font-family: var(--font-mono); font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase;
}
.secno-link .chev { width: 12px; height: 12px; transition: transform .15s ease; }
.secno-link:hover { color: var(--accent-yellow); text-decoration: none; }
.secno-link:hover .chev { transform: translateX(3px); }
.eyebrow {
  display: inline-block; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .22em; color: var(--text-dim); margin-bottom: var(--space-3);
}
.eyebrow--accent { color: var(--accent); }
.kicker-line {
  display: block; width: 64px; height: 2px; margin-top: var(--space-4);
  background: var(--flame); border: 0;
}
.lead { font-size: 1.18rem; color: var(--text-dim); max-width: 58ch; }
.notice {
  display: flex; gap: var(--space-3); align-items: flex-start;
  border: 1px solid var(--border); border-left: 3px solid var(--accent-yellow);
  background: var(--surface); padding: var(--space-4) var(--space-5);
  color: var(--text-dim); font-size: .92rem;
}
.notice code { font-family: var(--font-mono); font-size: .85rem; color: var(--text); }
main pre { max-width: 100%; overflow-x: auto; font-family: var(--font-mono); font-size: .84rem;
  background: var(--surface); border: 1px solid var(--border-soft); padding: var(--space-4);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
main code { font-family: var(--font-mono); overflow-wrap: anywhere; word-break: break-word; }

/* technical corner ticks on panels */
.techframe { position: relative; }
.techframe::before, .techframe::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--border-strong); border-style: solid;
}
.techframe::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.techframe::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* flat hairline chamfer helper (used on plates/cards) */
.chamfer {
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
}

/* ============ navbar ============ */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-height);
  display: flex; align-items: center;
  background: rgba(8, 9, 9, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: background .25s ease;
}
.navbar.scrolled { background: rgba(8, 9, 9, .93); }
.navbar__inner { display: flex; align-items: center; gap: var(--space-4); width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: .04em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand__logo {
  width: 42px; height: 42px; flex: none;
  padding: 4px; box-sizing: content-box;
  background: linear-gradient(140deg, #232729 0%, #101213 55%, #1B1F20 100%);
  border: 1px solid #3A4145;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.6)) drop-shadow(0 0 12px rgba(232,99,26,.22));
}
.brand__name { font-size: 1.05rem; letter-spacing: .05em; }
.brand__name small { display: block; font-size: .55rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--text-dim); margin-top: 3px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: var(--space-4); margin-left: auto; }
.nav a:not(.btn) { color: var(--text-dim); font-size: .9rem; position: relative; padding-block: 6px; transition: color .15s ease; white-space: nowrap; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--flame); transition: right .2s ease;
}
.nav a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav a:not(.btn):hover::after { right: 100%; }
.nav a.navlink--active { color: var(--text); }
.nav a.navlink--active::after { right: 0; }
.nav__cta { margin-left: var(--space-3); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* burger (mobile) */
.burger { display: none; margin-left: auto; background: 0; border: 1px solid var(--border-strong); width: 44px; height: 44px; cursor: pointer; padding: 9px; }
.burger span { display: block; height: 2px; background: var(--text); margin: 4px 0; }
@media (max-width: 1024px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center;
    background: rgba(8,9,9,.98); gap: var(--space-6); font-size: 1.2rem;
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { font-size: 1.3rem; }
  .navbar__inner { position: relative; z-index: 101; }
  body.menu-open { overflow: hidden; }
}

/* ============ buttons (chamfered, flame) ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  font-size: .95rem; font-weight: 700; border: 1px solid transparent;
  cursor: pointer; text-decoration: none !important;
  transition: filter .15s ease, color .15s ease, background .15s ease, border-color .15s ease;
}
.btn .chev { width: 14px; height: 14px; stroke-width: 2.2; }
.btn--primary { background: var(--flame); color: #14070a; }
.btn--primary:hover { filter: brightness(1.1); }
.btn--ghost {
  border-color: var(--border-strong); color: var(--text);
  background: linear-gradient(180deg, rgba(28,32,34,.5), rgba(12,14,15,.5));
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--outline {
  border-color: rgba(232, 99, 26, .55); color: var(--accent);
  background: rgba(232, 99, 26, .06); padding: 10px 20px; font-size: .88rem;
}
.btn--outline:hover { background: rgba(232, 99, 26, .14); color: var(--accent-yellow); }
.btn--sm { padding: 9px 16px; font-size: .85rem; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ============ hero v3 (approved reference: full-bleed panorama) ============ */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
  background: #0A0B0C;
  min-height: clamp(540px, 74vh, 760px);
  display: flex; align-items: stretch;
}
.hero__scene { position: absolute; inset: var(--nav-height) 0 0 0; z-index: 0; pointer-events: none; }
.hero__scene img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero__scene::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,9,9,.92) 0%, rgba(8,9,9,.72) 26%, rgba(8,9,9,0) 55%),
    linear-gradient(180deg, rgba(8,9,9,.55) 0%, rgba(8,9,9,0) 22%, rgba(8,9,9,.18) 70%, rgba(8,9,9,.9) 100%);
}
.hero__frame { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__frame::before, .hero__frame::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 0 solid var(--border-strong);
}
.hero__frame::before { top: calc(var(--nav-height) + 14px); right: 14px; border-right-width: 1px; border-top-width: 1px; }
.hero__frame::after { bottom: 14px; left: 14px; border-left-width: 1px; border-bottom-width: 1px; }
.hero__marker {
  position: absolute; z-index: 2; top: calc(var(--nav-height) + 48px); right: 22px;
  writing-mode: vertical-rl; font-family: var(--font-mono);
  font-size: .64rem; letter-spacing: .42em; color: var(--text-faint); text-transform: uppercase;
}
.hero__marker b { color: var(--accent); font-weight: 600; letter-spacing: .42em; }
.hero__content {
  position: relative; z-index: 2; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: 780px;
  padding-block: calc(var(--nav-height) + var(--space-7)) var(--space-8);
  margin-bottom: 60px;
}
.hero__content .eyebrow { color: var(--text-dim); margin-bottom: var(--space-4); }
.hero__tick {
  display: block; width: 44px; height: 5px; background: var(--flame);
  margin-bottom: var(--space-4);
  clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
.hero h1 {
  font-size: var(--fs-display); max-width: 14ch; margin-bottom: var(--space-4);
  text-wrap: balance;
}
.hero h1 .hero__slogan-sep { color: var(--orange-deep); font-weight: 300; padding: 0 .06em; }
.hero__tagline { font-size: 1.18rem; color: var(--text-dim); max-width: 46ch; margin-bottom: var(--space-7); }
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero__caption {
  position: absolute; z-index: 2; right: 24px; bottom: 26px;
  font-family: var(--font-mono); font-size: .66rem; line-height: 1.7;
  letter-spacing: .22em; text-transform: uppercase; color: rgba(231, 233, 236, .6);
  text-align: right;
}
@media (max-width: 900px) {
  .hero { min-height: 0; display: block; }
  .hero__marker, .hero__caption { display: none; }
  .hero__content { padding-block: calc(var(--nav-height) + var(--space-6)) var(--space-7); }
  .hero h1 { font-size: clamp(2.3rem, 9.5vw, 3.4rem); }
  .hero__tagline { font-size: 1.08rem; }
}
@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ============ roadmap strip (reference: horizontal engineering chain) ============ */
.roadstrip {
  display: grid; grid-template-columns: 300px 1fr; gap: var(--space-7); align-items: center;
}
.roadstrip__head .rm-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-3);
}
.roadstrip__head .rm-label::before {
  content: ""; width: 8px; height: 8px; background: var(--accent);
  clip-path: polygon(25% 0, 100% 38%, 75% 100%, 0 62%);
}
.roadstrip__head h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 2rem); max-width: 14ch; text-wrap: balance; }
.roadchain { display: flex; align-items: stretch; gap: 6px; min-width: 0; }
.stagechip {
  flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--metal-diag); border: 1px solid var(--border);
  padding: var(--space-4);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.stagechip:hover { border-color: rgba(232,99,26,.5); box-shadow: var(--shadow-glow); }
.stagechip__icon {
  width: 34px; height: 34px; color: var(--accent);
  background: rgba(232, 99, 26, .08); display: grid; place-items: center;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.stagechip__icon svg { width: 18px; height: 18px; }
.stagechip h3 { margin: 0; font-size: .99rem; }
.stagechip p { margin: 0; color: var(--text-dim); font-size: .8rem; line-height: 1.5; }
.stagesep {
  flex: none; align-self: center; width: 20px; height: 20px; color: var(--accent); opacity: .8;
}
.stagesep svg { width: 100%; height: 100%; }
.roadstrip + * { margin-top: 0; }
@media (max-width: 1100px) {
  .roadstrip { grid-template-columns: 1fr; gap: var(--space-5); }
  .roadchain { flex-wrap: wrap; }
  .stagechip { flex: 1 1 46%; }
  .stagesep { display: none; }
}
@media (max-width: 640px) {
  .stagechip { flex: 1 1 100%; }
}

/* ============ future civilization band (reference: split with divider) ============ */
.fcband {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  border-top: 1px solid var(--border-soft);
  align-items: stretch;
}
.fcband__text {
  padding-block: clamp(48px, 9vh, 96px);
  padding-right: var(--space-8);
  padding-left: max(var(--space-5), calc((100% - var(--container)) / 2 + var(--space-5)));
  display: flex; flex-direction: column; gap: var(--space-4); justify-content: center;
}
.fcband__text .rm-label {
  display: inline-flex; align-items: start; gap: 8px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: var(--space-2);
}
.fcband__text .rm-label::before, .fcband__text .rm-label::after {
  content: ""; width: 10px; height: 14px; margin-top: -4px;
  border: 1px solid var(--accent); border-width: 1px 0;
}
.fcband__text h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); max-width: 16ch; text-wrap: balance; }
.fcband__text p { color: var(--text-dim); max-width: 44ch; }
.fcband__media {
  position: relative; min-height: 420px;
  border-left: 1px solid var(--border-soft);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%);
}
.fcband__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; filter: brightness(1.18) saturate(1.05); }
@media (max-width: 900px) {
  .fcband { grid-template-columns: 1fr; }
  .fcband__media { min-height: 280px; order: -1; border-left: 0; border-bottom: 1px solid var(--border-soft); mask-image: none; -webkit-mask-image: none; }
  .fcband__text { padding-inline: var(--space-5); }
}
/* ============ page hero (inner pages) ============ */
.pagehero {
  position: relative; padding-top: calc(var(--nav-height) + clamp(40px, 8vh, 84px));
  padding-bottom: clamp(36px, 7vh, 72px);
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(900px 320px at 88% 0%, rgba(196,43,28,.08), transparent 62%),
    linear-gradient(180deg, #0C0E0F 0%, var(--bg) 100%);
  overflow: hidden;
}
.pagehero__grid { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(59,64,69,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,64,69,.14) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}
.pagehero__breadcrumbs { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--space-4); }
.pagehero__breadcrumbs a { color: var(--text-dim); }
.pagehero__breadcrumbs a:hover { color: var(--text); text-decoration: none; }
.pagehero h1 { font-size: var(--fs-h1); max-width: 20ch; margin-bottom: var(--space-3); }
.pagehero p { color: var(--text-dim); max-width: 62ch; margin: 0; }

/* ============ direction cards (reference layout: image + body) ============ */
.dircard {
  position: relative; display: grid; grid-template-columns: 116px 1fr;
  background: var(--metal-h); border: 1px solid var(--border);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  min-height: 172px; overflow: hidden;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.dircard:hover {
  border-color: rgba(232,99,26,.55); transform: translateY(-3px);
  box-shadow: var(--shadow-glow), var(--shadow-plate);
}
.dircard:hover .chev { transform: translateX(4px); }
.dircard__img { position: relative; height: 100%; min-height: 120px; border-right: 1px solid var(--border-soft); }
.dircard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dircard__body { display: flex; flex-direction: column; gap: 8px; padding: var(--space-4); position: relative; }
.dircard__top { display: flex; align-items: center; gap: 10px; }
.dircard__no { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; color: var(--text-faint); }
.dircard h3 { margin: 0; font-size: 1.1rem; line-height: 1.25; }
.dircard p { margin: 0; color: var(--text-dim); font-size: .88rem; line-height: 1.55; flex: 1; }
.dircard__foot { display: flex; align-items: flex-end; justify-content: flex-end; margin-top: auto; }
.dircard .chev {
  width: 18px; height: 18px; color: var(--accent); transition: transform .16s ease;
}
.card__chev--corner { position: absolute; top: 10px; right: 16px; width: 26px; height: 26px;
  border-top: 1px solid var(--border-strong); border-right: 1px solid var(--border-strong); opacity: .55; }
@media (max-width: 1024px) and (min-width: 641px) {
  .dircard { grid-template-columns: 126px 1fr; }
}
@media (max-width: 640px) {
  .dircard { grid-template-columns: 1fr; min-height: 0; }
  .dircard__img { height: 150px; border-right: 0; border-bottom: 1px solid var(--border-soft); }
}
.chev, .chev-lg { stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ============ cards (industrial) ============ */
.card {
  position: relative; background: var(--metal-h);
  border: 1px solid var(--border);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.card:hover {
  border-color: rgba(232,99,26,.55);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow), var(--shadow-plate);
}
.card::after {
  content: ""; position: absolute; top: 0; right: 0; width: 46px; height: 2px;
  background: var(--flame); opacity: 0; transition: opacity .16s ease;
}
.card:hover::after { opacity: 1; }
.card--active::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--flame);
}
.card__icon { width: 42px; height: 42px; color: var(--accent); }
.card__icon svg { width: 100%; height: 100%; }
.card h3 { margin: 0; font-size: 1.12rem; max-width: 30ch; }
.card p { margin: 0; color: var(--text-dim); font-size: .94rem; flex: 1; }
.card__meta { margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-2);
  font-size: .82rem; color: var(--text-dim);
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.card__link { color: var(--accent); font-weight: 600; white-space: nowrap; }
.card__no { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; color: var(--text-faint); white-space: nowrap; }
.card__thumb {
  width: 54px; height: 54px; flex: none; display: grid; place-items: center;
  color: var(--accent); background: linear-gradient(150deg, rgba(232,99,26,.08), rgba(196,43,28,.05));
  border: 1px solid var(--border-strong);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.card__thumb svg { width: 26px; height: 26px; }
.card__head { display: flex; align-items: flex-start; gap: var(--space-3); }

/* ============ knowledge list (calm reading rows) ============ */
.publist { display: grid; gap: 0; border-top: 1px solid var(--border-soft); }
.pubrow {
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); align-items: baseline;
  padding-block: var(--space-5); border-bottom: 1px solid var(--border-soft);
  color: inherit; transition: background .15s ease;
}
.pubrow:hover { background: rgba(23,26,27,.7); text-decoration: none; }
.pubrow:hover h3 { color: var(--accent-yellow); }
.pubrow .badge { justify-self: end; }
.pubrow h3 { margin: 0 0 6px; font-size: 1.22rem; transition: color .15s ease; }
.pubrow p { margin: 0; color: var(--text-dim); font-size: .94rem; max-width: 78ch; }
.pubrow__meta {
  grid-column: 1 / -1; display: flex; gap: var(--space-4); flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-faint); margin-top: 10px;
}
.prose { max-width: 72ch; }
@media (max-width: 640px) {
  .pubrow { grid-template-columns: 1fr; }
  .pubrow .badge { justify-self: start; }
  .pubrow__meta { grid-column: auto; }
}

/* ============ fc atlas (illustrated blocks) ============ */
.fc-hero { position: relative; border: 1px solid var(--border); overflow: hidden; background: var(--bg-2);
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px); }
.fc-hero img { width: 100%; height: clamp(260px, 42vh, 460px); object-fit: cover; display: block; }
.fc-hero figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-3) var(--space-5);
  background: linear-gradient(180deg, transparent, rgba(8,9,9,.9));
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim);
}
.fc-block { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-7); align-items: center;
  padding-block: clamp(36px, 6vh, 64px); border-top: 1px solid var(--border-soft); }
.fc-block:nth-child(even) .fc-block__media { order: -1; }
.fc-block__body .rm-label { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-3); }
.fc-block__body h2 { margin: 0 0 var(--space-3); font-size: clamp(1.4rem, 2.4vw, 1.95rem); }
.fc-block__body p { color: var(--text-dim); max-width: 58ch; }
.fc-block__media { border: 1px solid var(--border); overflow: hidden; background: var(--metal-h);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.fc-block__media img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .fc-block { grid-template-columns: 1fr; gap: var(--space-4); }
  .fc-block:nth-child(even) .fc-block__media { order: 0; }
}

/* ============ roadmap plan panels ============ */
.plangrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-7); }
.plangrid .card__icon { width: 38px; height: 38px; color: var(--accent); }
.plangrid .card__icon svg { width: 100%; height: 100%; }
.plangrid h3 { font-size: 1.02rem; letter-spacing: .02em; }
.plangrid .card p { font-size: .9rem; }
.plangrid .plan-src { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-faint); margin-top: auto; padding-top: var(--space-3);
  border-top: 1px solid var(--border-soft); }
@media (max-width: 900px) { .plangrid { grid-template-columns: 1fr; } }

/* ============ badges (angular chips) ============ */
.badge {
  display: inline-block; padding: 3px 10px; font-family: var(--font-mono);
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--border-strong); color: var(--text-dim); background: transparent;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.badge--accent { border-color: rgba(232,99,26,.6); color: var(--accent); background: var(--accent-soft); }
.badge--concept { border-color: rgba(242,163,60,.5); color: var(--accent-yellow); }
.badge--dim { opacity: .72; }
.badge--risk { border-color: rgba(196,43,28,.6); color: var(--accent-red); }

/* ============ timeline (engineering plan) ============ */
.timeline { position: relative; display: grid; gap: var(--space-6); padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--orange-deep), var(--border-strong)); }
.node { position: relative; }
.node::before { content: ""; position: absolute; left: -32px; top: 9px; width: 14px; height: 14px;
  background: var(--bg); border: 1px solid var(--border-strong);
  transform: rotate(45deg); /* diamond node */
}
.node--done::before { background: var(--orange-deep); border-color: var(--orange-deep); }
.node--active::before { border-color: var(--orange-deep); box-shadow: 0 0 10px rgba(232,99,26,.5); }
.node__head { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.node__head h3 { font-size: 1.16rem; }
.node__body { color: var(--text-dim); font-size: .95rem; max-width: 74ch; }
.node__gate { margin-top: 8px; font-size: .82rem; color: var(--text-faint); font-family: var(--font-mono); }
.node__gate b { color: var(--text); font-weight: 600; font-family: var(--font-sans); }

/* ============ dashboard (tech modules) ============ */
.statgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
@media (max-width: 1024px) { .statgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .statgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .stat { min-width: 0; } .statlist li { flex-wrap: wrap; } }
.stat {
  position: relative; background: var(--metal-diag); border: 1px solid var(--border);
  padding: var(--space-4) var(--space-5);
}
.stat::before { content: ""; position: absolute; top: 0; left: 0; width: 26px; height: 2px; background: var(--flame); }
.stat__value { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; font-family: var(--font-mono); color: var(--text); line-height: 1.08; }
.stat__value--nodata { font-size: 1rem; color: var(--text-dim); }
.stat__label { color: var(--text-dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-top: 8px; }
.stat--flush { grid-column: span 2; }
@media (max-width: 560px) { .stat--flush { grid-column: span 2; } }
.statlist { margin: 0; padding: 0; list-style: none; color: var(--text-dim); font-size: .9rem; }
.statlist li { padding: 7px 0; border-bottom: 1px dotted var(--border-soft); display: flex; justify-content: space-between; gap: 12px; }
.statlist li:last-child { border-bottom: 0; }
.statlist time { color: var(--text-faint); font-family: var(--font-mono); font-size: .74rem; white-space: nowrap; }

/* ============ city band / split media ============ */
.city-band {
  position: relative; border: 1px solid var(--border); overflow: hidden;
  margin-bottom: clamp(40px, 7vh, 72px);
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
  background: var(--bg-2);
}
.city-band img { width: 100%; height: auto; }
.city-band__caption {
  position: absolute; inset: auto 0 0 0; padding: var(--space-4) var(--space-5);
  font-size: .82rem; color: var(--text-dim);
  background: linear-gradient(180deg, transparent, rgba(8,9,9,.92));
}
.split { display: grid; grid-template-columns: 1.12fr 1fr; gap: var(--space-7); align-items: center; }
.split__media {
  border: 1px solid var(--border); overflow: hidden; background: var(--surface);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}
.split__media img { width: 100%; height: auto; display: block; }
.split__body .eyebrow { margin-bottom: var(--space-3); }
.split__body h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--space-5); } }

.featurelist { display: grid; gap: var(--space-3); margin: var(--space-4) 0; padding: 0; list-style: none; }
.featurelist li { display: flex; gap: 11px; color: var(--text-dim); font-size: .96rem; }
.featurelist svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 5px; }

/* energy line (thin glow strip, brand element) */
.energyline {
  height: 2px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--orange-deep) 20%, var(--accent-red) 50%, var(--orange-deep) 80%, transparent);
  opacity: .8;
}

/* ============ forms ============ */
.form { display: grid; gap: var(--space-4); max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  background: var(--bg-2); border: 1px solid var(--border-strong);
  color: var(--text); padding: 12px 14px; font: inherit; font-size: .95rem; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); outline: none; box-shadow: var(--hairline-glow);
}
.field .hint { color: var(--text-faint); font-size: .78rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .9rem; color: var(--accent-yellow); display: none; }
.form-status.show { display: block; }

/* ============ footer (minimal industrial) ============ */
.footer {
  border-top: 1px solid var(--border-soft); margin-top: 0;
  background: #0A0B0C;
}
.footer::before { content: ""; display: block; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(232,99,26,.5) 30%, rgba(196,43,28,.5) 70%, transparent); }
.footer__bar {
  display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap;
  padding-block: var(--space-5) var(--space-4);
}
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.footer__brand svg, .footer__brand img { width: 32px; height: 32px; }
.footer__links {
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-right: auto;
}
.footer__links a { color: var(--text-dim); font-size: .86rem; }
.footer__links a:hover { color: var(--text); text-decoration: none; }
.footer__sig {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--text-faint); white-space: nowrap;
}
.footer__sig b { color: var(--text-dim); font-weight: 600; }
.footer__bottom {
  border-top: 1px solid var(--border-soft); padding-block: var(--space-4);
  display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  color: var(--text-faint); font-size: .76rem;
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.footer__legal a { color: var(--text-faint); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.footer__legal a:hover { color: var(--text-dim); }
@media (max-width: 720px) {
  .footer__bar { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .footer__sig { order: -1; }
}

/* ============ misc ============ */
.lang-switch {
  display: inline-flex; border: 1px solid var(--border-strong); overflow: hidden;
  font-size: .76rem; font-weight: 700; font-family: var(--font-mono);
}
.lang-switch a { padding: 4px 11px; color: var(--text-dim); }
.lang-switch a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }
.lang-switch a:hover { text-decoration: none; color: var(--text); }

figure { margin: 0; }
figcaption { color: var(--text-dim); font-size: .82rem; padding-top: var(--space-2); }

.prose { max-width: 72ch; }
.prose h2 { scroll-margin-top: calc(var(--nav-height) + 16px); }
.prose blockquote { margin: 0 0 1em 0; padding: 6px 0 6px 18px; border-left: 2px solid var(--orange-deep); color: var(--text-dim); }
.prose ul li { margin-bottom: .35em; }

.toc {
  background: var(--surface); border: 1px solid var(--border);
  padding: var(--space-4) var(--space-5); margin-bottom: var(--space-6);
}
.toc h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .18em; color: var(--text-dim); margin-bottom: var(--space-2); font-family: var(--font-mono); }
.toc ul { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: .92rem; }

.filterbar { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-6); align-items: center; min-width: 0; }
.filterbar > * { flex: 1 1 200px; min-width: 0; max-width: 100%; }
@media (min-width: 900px) { .filterbar > * { flex: 0 1 320px; } }
.filterbar select, .filterbar input {
  background: var(--bg-2); border: 1px solid var(--border-strong);
  color: var(--text); padding: 10px 12px; font: inherit; font-size: .9rem;
}
.filterbar select { text-overflow: ellipsis; }
.filterbar select:focus, .filterbar input:focus { border-color: var(--accent); outline: none; }

/* reveal animation (one-shot) */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* print */
@media print {
  .navbar, .footer, .hero__bg, .hero__grid, .burger { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .stat, .toc, .city-band { break-inside: avoid; }
}
