/* 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; } }
