/* Parisi Industries — shared styles */
:root {
  --bg: #101418;
  --bg-2: #0c0f13;
  --panel: #161b22;
  --line: #232b35;
  --line-2: #313b47;
  --text: #ffffff;
  --muted: #9aa6b4;
  --steel: #e4e8ed;
  --cyan: #19bdf2;
  --cyan-2: #0f98c9;
  --glow: 0 0 24px rgba(25, 189, 242, .35);
  --radius: 14px;
  --max: 1160px;
  --display: "Orbitron", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: .02em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: #000; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 20, 24, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 900; font-size: 1.2rem; letter-spacing: .08em; }
.brand-sub { font-family: var(--display); font-size: .52rem; letter-spacing: .55em; color: var(--steel); margin-top: 5px; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 8px;
  font-size: .92rem; color: var(--muted); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-links a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 8px 8px 0 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 14px 8px; font-size: 1rem; }
  .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--cyan); border-radius: 0; padding-left: 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 10px;
  font-weight: 600; font-size: .95rem;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--text);
  transition: transform .15s, box-shadow .2s, border-color .2s, background .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); border-color: var(--steel); }
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--cyan-2)); border-color: transparent; color: #001018; }
.btn-primary:hover { box-shadow: var(--glow); border-color: transparent; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 10vw, 120px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(25, 189, 242, .14), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(195, 203, 213, .07), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero-mark { width: min(320px, 70%); justify-self: center; filter: drop-shadow(0 20px 60px rgba(25, 189, 242, .25)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: .72rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 58ch; }
.accent { color: var(--cyan); text-shadow: var(--glow); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.page-hero { padding: clamp(64px, 9vw, 110px) 0 clamp(40px, 6vw, 64px); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { grid-row: 1; width: 150px; justify-self: start; }
}

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 100px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 26px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-size: 1.9rem; color: var(--text); }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Division cards ---------- */
.divisions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.division {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  transition: border-color .25s, transform .25s, box-shadow .25s;
  overflow: hidden;
}
.division::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand, var(--cyan)), transparent);
  opacity: .0; transition: opacity .25s;
}
.division:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.division:hover::before { opacity: 1; }
.division-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.division-logo {
  width: 64px; height: 64px; flex: none; border-radius: 14px;
  display: grid; place-items: center; overflow: hidden;
  background: #0a0d12; border: 1px solid var(--line-2);
}
.division-logo img { width: 78%; height: 78%; object-fit: contain; }
.division-logo.fill img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  display: inline-block; font-family: var(--display); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--brand, var(--cyan)); margin-bottom: 4px;
}
.division h3 { margin: 0; font-size: 1.3rem; }
.division p { color: var(--muted); }
.division .links { margin-top: auto; display: flex; gap: 18px; flex-wrap: wrap; padding-top: 8px; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--text); }
.link::after { content: "→"; color: var(--brand, var(--cyan)); transition: transform .2s; }
.link:hover::after { transform: translateX(4px); }
.status { font-size: .8rem; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 10px; margin-left: auto; white-space: nowrap; }
@media (max-width: 760px) { .divisions { grid-template-columns: 1fr; } }

/* Full-width division rows (Companies page) */
.division-row { display: grid; grid-template-columns: 220px 1fr; gap: 36px; padding: 40px 0; border-top: 1px solid var(--line); }
.division-row:last-child { border-bottom: 1px solid var(--line); }
.division-row .division-logo { width: 120px; height: 120px; border-radius: 22px; }
.division-row ul { margin: 0 0 1.2em; padding-left: 1.1em; color: var(--muted); }
.division-row li { margin-bottom: .3em; }
.division-row li::marker { color: var(--brand, var(--cyan)); }
@media (max-width: 760px) { .division-row { grid-template-columns: 1fr; gap: 18px; } .division-row .division-logo { width: 84px; height: 84px; } }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.pillar .num { font-family: var(--display); color: var(--cyan); font-size: .8rem; letter-spacing: .3em; }
.pillar p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Split / prose ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: var(--glow); }
.timeline b { display: block; font-family: var(--display); font-size: .95rem; }
.timeline span { color: var(--muted); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; border: 1px solid var(--line-2); border-radius: 20px;
  padding: clamp(32px, 6vw, 64px);
  background: radial-gradient(80% 120% at 100% 0%, rgba(25, 189, 242, .16), transparent 55%), var(--panel);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta h2 { margin-bottom: .3em; }
.cta p { color: var(--muted); margin: 0; max-width: 52ch; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { display: grid; gap: 8px; font-size: .9rem; color: var(--steel); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(25, 189, 242, .18); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-2); display: none; }
.form-status.ok { display: block; border-color: rgba(25, 189, 242, .5); background: rgba(25, 189, 242, .08); }
.form-status.err { display: block; border-color: rgba(255, 90, 90, .5); background: rgba(255, 90, 90, .08); }

.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.contact-card .division-logo { width: 44px; height: 44px; border-radius: 10px; }
.contact-card b { display: block; }
.contact-card span { color: var(--muted); font-size: .9rem; }
.contact-card:hover { border-color: var(--line-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-family: var(--display); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--steel); margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); font-size: .93rem; }
.footer-grid a:hover { color: var(--cyan); }
.footer-blurb { color: var(--muted); font-size: .93rem; max-width: 36ch; margin-top: 16px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-mark { animation: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--display); font-size: clamp(4rem, 16vw, 9rem); font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--steel); }

/* ---------- Brand strategy additions ---------- */
.kicker-line { display: block; width: 120px; height: 3px; background: var(--cyan); margin: 22px 0 26px; box-shadow: var(--glow); }
.slogan { font-family: var(--display); font-weight: 700; letter-spacing: .04em; }
.triad { font-family: var(--display); font-size: .78rem; letter-spacing: .35em; text-transform: uppercase; color: var(--steel); }
.triad span { color: var(--cyan); padding: 0 .4em; }

/* Brand architecture diagram */
.arch { text-align: center; }
.arch-parent { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 34px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); }
.arch-parent b { font-family: var(--display); letter-spacing: .25em; font-size: 1rem; }
.arch-parent span { color: var(--cyan); font-size: .9rem; }
.arch-lines { display: block; width: 100%; max-width: 760px; height: 44px; margin: 0 auto; }
.arch-children { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.arch-child { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.arch-child b { display: block; font-family: var(--display); font-size: 1rem; margin-bottom: 4px; }
.arch-child span { color: var(--muted); font-size: .92rem; }
.arch-note { margin-top: 26px; color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .arch-lines { display: none; } .arch-children { grid-template-columns: 1fr; margin-top: 16px; } }

/* "A Parisi Industries Company" badge */
.pi-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; color: var(--steel); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px 6px 8px; }
.pi-badge img { width: 16px; height: 16px; }

/* Principles band */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border-block: 1px solid var(--line); }
.principles div { padding: 30px 16px; font-family: var(--display); font-size: .95rem; letter-spacing: .08em; }
.principles div + div { border-left: 1px solid var(--line); }
.principles small { display: block; margin-top: 6px; font-family: var(--body); letter-spacing: 0; color: var(--muted); font-size: .88rem; }
@media (max-width: 700px) { .principles { grid-template-columns: 1fr; } .principles div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Project / lab cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards-3, .cards-2 { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color .25s, transform .25s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.card .code { font-family: var(--display); font-size: .62rem; letter-spacing: .3em; color: var(--cyan); text-transform: uppercase; }
.card p { color: var(--muted); }
.card .links { margin-top: auto; }
.pill { font-size: .72rem; font-weight: 600; letter-spacing: .04em; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--line-2); color: var(--steel); white-space: nowrap; }
.pill.live { border-color: rgba(25, 189, 242, .55); color: var(--cyan); }
.icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(25, 189, 242, .1); color: var(--cyan); margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }

/* News */
.news-list { display: grid; gap: 18px; }
.news-item { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-item time { font-family: var(--display); font-size: .75rem; letter-spacing: .2em; color: var(--cyan); padding-top: 6px; }
.news-item h2, .news-item h3 { font-size: 1.35rem; }
.news-item p { color: var(--muted); }
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr; gap: 8px; } }

/* Hero wordmark */
.hero-tag { margin-top: 22px; }
.empty-state { padding: 40px; border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* Four-brand layouts */
.cards-3.cards-4 { grid-template-columns: repeat(4, 1fr); }
.arch-children.four { grid-template-columns: repeat(4, 1fr); max-width: 1100px; }
@media (max-width: 1100px) { .cards-3.cards-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .arch-children.four { grid-template-columns: 1fr 1fr; } .arch-lines { display: none; } }
@media (max-width: 640px) { .cards-3.cards-4, .arch-children.four { grid-template-columns: 1fr; } }

/* ---------- Wordmark (PARISI with the triangle A) ---------- */
.wm { display: inline-flex; align-items: baseline; font-family: var(--display); font-weight: 900; letter-spacing: .06em; line-height: 1; }
.wm-a { display: inline-block; width: .92em; height: .74em; margin: 0 .05em; vertical-align: baseline; }
.wm-a .ink { fill: currentColor; }
.wm-a .arc { fill: var(--cyan); }
.brand-name.wm { font-size: 1.25rem; }
.brand-sub { display: flex; align-items: center; gap: 6px; }
.brand-sub::before, .brand-sub::after { content: ""; width: 10px; height: 2px; background: var(--cyan); }

/* ---------- HUD hero visual ---------- */
.hud { position: relative; width: min(380px, 80vw); aspect-ratio: 1; justify-self: center; }
.hud > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hud .hud-mark { inset: 18%; width: 64%; height: 64%; filter: drop-shadow(0 0 40px rgba(25, 189, 242, .35)); }
.hud .ring { fill: none; stroke-linecap: round; transform-origin: 50% 50%; }
.hud .r1 { stroke: var(--cyan); stroke-width: 1.2; stroke-dasharray: 40 18 6 18; opacity: .7; animation: spin 38s linear infinite; }
.hud .r2 { stroke: var(--steel); stroke-width: .6; stroke-dasharray: 2 6; opacity: .35; animation: spin 60s linear infinite reverse; }
.hud .r3 { stroke: var(--cyan); stroke-width: 2.4; stroke-dasharray: 22 260; opacity: .9; animation: spin 9s linear infinite; }
.hud .ticks line { stroke: var(--steel); stroke-width: .8; opacity: .45; }
.hud .scan { stroke: var(--cyan); stroke-width: .5; opacity: .5; animation: scan 6s ease-in-out infinite; }
.hud .label { font-family: var(--display); font-size: 3.2px; letter-spacing: .4em; fill: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { 0%, 100% { transform: translateY(-34px); opacity: 0; } 15%, 85% { opacity: .55; } 50% { transform: translateY(34px); } }
.hero { min-height: min(86vh, 820px); display: flex; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.hero-wm { font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--steel); margin-bottom: 26px; display: flex; flex-direction: column; gap: 8px; }
.hero-wm .wm { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--text); }
.hero-wm small { font-family: var(--display); font-size: .7rem; letter-spacing: .62em; color: var(--steel); display: flex; align-items: center; gap: 12px; }
.hero-wm small::before, .hero-wm small::after { content: ""; width: 26px; height: 2px; background: var(--cyan); }
@media (max-width: 860px) { .hud { width: 220px; justify-self: start; } .hero { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .hud .ring, .hud .scan { animation: none; } }

/* ---------- Section index numbers & misc ---------- */
.sec-num { font-family: var(--display); font-size: .7rem; letter-spacing: .3em; color: var(--muted); margin-left: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.game-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2em; padding: 0; list-style: none; }
.game-list li { margin: 0; font-size: .85rem; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; color: var(--steel); }
.game-list li::marker { content: none; }

/* ---------- Polish pass ---------- */
/* Header firms up after scrolling */
.site-header { transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(12, 15, 19, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0; transition: opacity .3s; }
.site-header.scrolled::after { opacity: .6; }
@media (min-width: 901px) {
  .nav-links a { position: relative; }
  .nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
  .nav-links a:hover::after { transform: scaleX(1); }
  .nav-links a[aria-current="page"] { box-shadow: none; }
  .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
}

/* Cursor-following glow on cards */
.card, .division, .arch-child, .pillar, .contact-card { --mx: 50%; --my: 50%; }
.card::after, .arch-child::after, .pillar::after, .contact-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(25, 189, 242, .12), transparent 60%);
}
.card:hover::after, .arch-child:hover::after, .pillar:hover::after, .contact-card:hover::after { opacity: 1; }
.arch-child, .pillar, .contact-card { position: relative; }
.card:hover, .arch-child:hover, .pillar:hover { border-color: rgba(25, 189, 242, .35); }

/* HUD readouts */
.hud-read { position: absolute; font-family: var(--display); font-size: .58rem; letter-spacing: .22em; color: var(--muted); white-space: nowrap; pointer-events: none; }
.hud-read b { color: var(--cyan); font-weight: 700; }
.hud-read.tl { top: 2%; left: -6%; }
.hud-read.br { bottom: 2%; right: -6%; text-align: right; }
.hud-read .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: var(--glow); margin-right: 8px; animation: blink 2.4s ease-in-out infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: .25; } }
@media (max-width: 860px) { .hud-read { display: none; } }

/* Architecture children with logos */
.arch-child { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.arch-child img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; margin-bottom: 10px; background: #0a0d12; border: 1px solid var(--line-2); padding: 6px; }
.arch-child img.fill { padding: 0; object-fit: cover; }

/* Footer wordmark band */
.footer-band { overflow: hidden; border-top: 1px solid var(--line); padding: 34px 0 8px; margin-top: 40px; }
.footer-band p { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 6.4vw, 5.2rem); letter-spacing: .06em; line-height: 1; white-space: nowrap; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(228, 232, 237, .18); }
.footer-band p span { -webkit-text-stroke: 1px rgba(25, 189, 242, .55); }

/* Back to top */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(22, 27, 34, .9); color: var(--text); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s, border-color .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--cyan); }
.to-top svg { width: 18px; height: 18px; }

/* Page fade-in */
@media (prefers-reduced-motion: no-preference) { main { animation: pagein .5s ease both; } @keyframes pagein { from { opacity: 0; transform: translateY(6px); } } }
.product-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.product-head img { width: 48px; height: 48px; border-radius: 12px; }
.product-head h3 { margin: 0; }
.cards-3.cards-4 .card h3 { font-size: 1rem; }
.hud > .hud-read { inset: auto; width: auto; height: auto; }
.hud > .hud-read.tl { top: 0; left: 0; }
.hud > .hud-read.br { bottom: 0; right: 0; }
.footer-band p { font-size: clamp(1rem, calc((100vw - 32px) / 24), 3rem); }

/* Press kit */
.press-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .press-grid { grid-template-columns: 1fr; } }
.press-item { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color .2s, transform .2s; }
.press-item:hover { border-color: rgba(25, 189, 242, .45); transform: translateY(-2px); }
.press-item b { font-size: .95rem; margin-top: 8px; }
.press-item > span:last-child { color: var(--muted); font-size: .85rem; }
.press-thumb { display: grid; place-items: center; height: 150px; border-radius: 10px; padding: 18px; }
.press-thumb.dark { background: #0b0e11; border: 1px solid var(--line); }
.press-thumb.light { background: #fff; }
.press-thumb img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.swatch { display: flex; flex-direction: column; gap: 2px; font-size: .85rem; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.swatch i { display: block; height: 54px; border-radius: 10px; background: var(--c); border: 1px solid var(--line-2); margin-bottom: 6px; }
.swatch b { font-family: var(--body); color: var(--text); font-size: .92rem; }
.press-thumb { display: flex; align-items: center; justify-content: center; overflow: hidden; box-sizing: border-box; }
.press-thumb img { max-height: 114px; max-width: 100%; width: auto; height: auto; }

/* Numbers band */
.numbers { padding: clamp(36px, 5vw, 56px) 0; }
.stat b { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--cyan); text-shadow: var(--glow); }

/* Newsletter */
.subscribe { margin-top: 22px; max-width: 380px; }
.subscribe label { font-size: .85rem; color: var(--steel); }
.subscribe-row { display: flex; gap: 8px; margin-top: 8px; }
.subscribe-row input { flex: 1; min-width: 0; padding: 10px 12px; }
.subscribe-row .btn { padding: 10px 16px; }
.subscribe .form-status { margin-top: 10px; padding: 10px 12px; font-size: .88rem; }

/* Milestones */
.milestones { list-style: none; margin: 0; padding: 0; position: relative; }
.milestones::before { content: ""; position: absolute; left: 118px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--cyan), var(--line-2)); }
.milestones li { display: grid; grid-template-columns: 100px 1fr; gap: 40px; padding: 0 0 28px; position: relative; }
.milestones li::before { content: ""; position: absolute; left: 113px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); }
.milestones li.next::before { border-style: dashed; border-color: var(--steel); }
.milestones time { font-family: var(--display); font-size: .8rem; letter-spacing: .15em; color: var(--cyan); text-align: right; padding-top: 2px; }
.milestones b { display: block; font-family: var(--display); font-size: 1rem; margin-bottom: 4px; }
.milestones span { color: var(--muted); }
@media (max-width: 600px) {
  .milestones::before { left: 6px; } .milestones li { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; }
  .milestones li::before { left: 1px; } .milestones time { text-align: left; }
}
.hero-grid > * { min-width: 0; }
.hero > .wrap { flex: 0 0 auto; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .triad { letter-spacing: .18em; font-size: .7rem; } }

/* Labs pipeline */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: none; }
.pipeline li { position: relative; padding: 26px 22px; border: 1px solid var(--line); background: var(--panel); }
.pipeline li + li { border-left: 0; }
.pipeline li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.pipeline li:last-child { border-radius: 0 var(--radius) var(--radius) 0; background: linear-gradient(180deg, rgba(25, 189, 242, .12), var(--panel)); border-color: rgba(25, 189, 242, .35); }
.pipeline li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%) rotate(45deg); background: var(--panel); border-top: 1px solid var(--line); border-right: 1px solid var(--line); z-index: 1; }
.pipeline .step { display: block; font-family: var(--display); font-size: .7rem; letter-spacing: .3em; color: var(--cyan); margin-bottom: 10px; }
.pipeline b { display: block; font-family: var(--display); font-size: 1.05rem; margin-bottom: 6px; }
.pipeline span:last-child { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) {
  .pipeline { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pipeline li, .pipeline li + li { border: 1px solid var(--line); border-radius: var(--radius); }
  .pipeline li::after { display: none; }
}
@media (max-width: 520px) { .pipeline { grid-template-columns: 1fr; } }

/* Inner page headers: HUD grid + corner brackets */
.page-hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 6vw, 64px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(50% 90% at 90% 10%, rgba(25, 189, 242, .14), transparent 60%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
}
.page-hero .wrap { position: relative; }
.page-hero .wrap::after {
  content: ""; position: absolute; right: 0; top: -14px; width: 120px; height: 120px; pointer-events: none;
  border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); opacity: .55;
  mask-image: linear-gradient(225deg, #000 30%, transparent 70%); -webkit-mask-image: linear-gradient(225deg, #000 30%, transparent 70%);
}
@media (max-width: 700px) { .page-hero .wrap::after { width: 60px; height: 60px; } }
.page-hero + section[style*="padding-top:0"] { padding-top: 0; }

/* 404 */
.notfound .hud { width: min(260px, 60vw); margin: 0 auto 28px; }
.notfound .hud .scan { animation-duration: 2.2s; }
.notfound .code { font-size: clamp(3rem, 12vw, 6rem); }
.notfound .sig { font-family: var(--display); font-size: .75rem; letter-spacing: .4em; color: var(--cyan); margin-bottom: 10px; }
.notfound .sig .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff5a5a; margin-right: 10px; animation: blink 1.2s infinite; vertical-align: middle; }
.notfound .code { margin: 0 0 .15em; line-height: 1; }
.card > .code { display: block; margin-bottom: 10px; }

/* Game gallery + brand banners */
.game-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 6px 0 16px; }
@media (max-width: 1000px) { .game-gallery { grid-template-columns: 1fr 1fr; } }
.game-tile { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #0a0d12; aspect-ratio: 16 / 9; }
.game-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.game-tile span { position: absolute; inset: auto 0 0 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(8, 10, 13, .92)); display: flex; flex-direction: column; }
.game-tile b { font-size: .85rem; }
.game-tile small { font-size: .72rem; color: var(--steel); }
.game-tile:hover { border-color: var(--brand, var(--cyan)); }
.game-tile:hover img { transform: scale(1.05); }
.brand-banner { display: block; margin-top: 18px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); max-width: 560px; }
.brand-banner img { width: 100%; height: auto; transition: transform .4s ease; }
.brand-banner:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .game-tile img, .brand-banner img { transition: none; } }
