/* ═══════════════════════════════════════
   VLSI EXPERT® — Shared Design System
   Option A: Precision Institute
   DM Serif Display (headings) + DM Sans (body)
   Palette: Ink / Paper / Orange
═══════════════════════════════════════ */

:root {
  --ink:       #0d0d0d;
  --paper:     #f5f0e8;
  --white:     #ffffff;
  --orange:    #e8510a;
  --orange2:   #ff6b2b;
  --orange-bg: #fff3ed;
  --mid:       #1c1c1c;
  --grey:      #6b6b6b;
  --rule:      #d4cfc6;
  --rule-dark: #2a2a2a;
  --footer-bg: #080808;

  /* Font stack */
  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-cond: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.35;
}

/* ═══════════════════════════════════════
   TOP BAR
═══════════════════════════════════════ */
.top-bar {
  background: var(--orange); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  padding: 9px 40px; font-family: var(--font-body);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  position: relative; z-index: 510;
}
.tb-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1400px; gap: 16px; }
.tb-msg { color: var(--white); flex: 1; }
.tb-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.tb-cta { color: var(--white); text-decoration: none; font-weight: 700; background: rgba(0,0,0,.15); padding: 3px 10px; }
.tb-cta:hover { background: rgba(0,0,0,.25); }
.tb-divider { opacity: 0.4; }
.tb-phone { color: var(--white); text-decoration: none; opacity: .85; }

/* ═══════════════════════════════════════
   SITE NAV
═══════════════════════════════════════ */
.site-nav {
  background: var(--ink);
  position: sticky; top: 0; z-index: 500;
  border-bottom: 3px solid var(--orange);
  display: flex; align-items: stretch;
  padding: 0 28px; height: 64px; gap: 0;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
  padding-right: 24px; border-right: 1px solid var(--rule-dark);
  margin-right: 4px;
}
.nav-logo-img { height: 44px; width: auto; display: block; object-fit: contain; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px; background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 14px;
  font-weight: 400; color: var(--white); flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-body); font-size: 14px;
  font-weight: 700; color: var(--white); letter-spacing: .04em;
  line-height: 1;
}
.logo-name sup { font-size: 8px; color: var(--orange); vertical-align: super; }
.logo-tag {
  font-family: var(--font-body); font-size: 9px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); margin-top: 4px;
}

/* Menu items */
.nav-menu { display: flex; list-style: none; align-items: stretch; flex: 1; gap: 0; }
.nav-menu > li { position: relative; display: flex; align-items: stretch; overflow: visible; }
.nav-menu > li > a {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.65); text-decoration: none;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; padding: 0 11px;
  border-bottom: 3px solid transparent; margin-bottom: -3px;
  transition: all .2s; white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { color: var(--white); border-bottom-color: var(--orange); }
.nav-menu > li > a .chevron { font-size: 9px; opacity: .45; margin-top: 1px; }

/* Hamburger toggle */
.mob-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: auto; flex-shrink: 0;
}
.mob-toggle span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,.7); border-radius: 2px; transition: all .25s;
}
.mob-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mob-toggle.open span:nth-child(2) { opacity: 0; }
.mob-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.mob-nav {
  display: none; flex-direction: column;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--ink); z-index: 800;
  overflow-y: auto; padding: 60px 24px 32px;
}
.mob-nav.open { display: flex; }
.mob-nav a {
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  color: rgba(255,255,255,.8); text-decoration: none; padding: 13px 0;
  border-bottom: 1px solid var(--rule-dark); letter-spacing: .04em;
}
.mob-nav a:hover { color: var(--orange); }
.mob-nav a.mob-sub {
  font-size: 12px; font-weight: 400; color: rgba(255,255,255,.4);
  padding: 8px 0 8px 16px; border-bottom-color: transparent;
}
.mob-nav a.mob-sub::before { content: '↳  '; color: var(--orange); }
.mob-nav a.mob-sub:hover { color: var(--orange); }
.mob-nav a.mob-cta {
  margin-top: 20px; background: var(--orange); color: var(--white);
  text-align: center; padding: 14px; font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; border: none;
}

/* Dropdown */
.dropdown-panel {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border-top: 3px solid var(--orange);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  min-width: 260px; z-index: 600;
  overflow: visible;
}
.nav-menu > li:hover .dropdown-panel { display: block; }
.dropdown-panel a,
.dropdown-panel span.has-flyout {
  display: block; padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 13px; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid #f0ebe3;
  transition: all 0.15s; font-weight: 500;
  position: relative; overflow: visible; cursor: pointer;
}
.dropdown-panel a:last-child,
.dropdown-panel span.has-flyout:last-child { border-bottom: none; }
.dropdown-panel a:hover,
.dropdown-panel span.has-flyout:hover { background: var(--orange); color: var(--white); padding-left: 26px; }
.dropdown-panel a span.sub {
  display: block; font-size: 11px; font-weight: 400;
  opacity: 0.55; margin-top: 2px;
  font-family: var(--font-body);
}
.dropdown-panel a:hover span.sub { opacity: 0.8; }

/* Flyout — second level */
.has-flyout { position: relative; overflow: visible; }
.flyout-arrow { float: right; font-size: 10px; opacity: 0.45; margin-top: 2px; }
.flyout-panel {
  display: none; position: absolute; top: -3px; left: 100%;
  background: var(--white); border-top: 3px solid var(--orange);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  min-width: 220px; z-index: 700;
  overflow: visible;
}
.has-flyout:hover > .flyout-panel { display: block; }
.flyout-panel a {
  display: block; padding: 11px 20px;
  font-family: var(--font-body); font-size: 13px;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid #f0ebe3; font-weight: 500; transition: all 0.15s;
}
.flyout-panel a:last-child { border-bottom: none; }
.flyout-panel a:hover { background: var(--orange); color: var(--white); padding-left: 26px; }

/* CTA */
.nav-cta-wrap {
  display: flex; align-items: center;
  margin-left: auto; padding-left: 16px;
  border-left: 1px solid var(--rule-dark);
}
.nav-cta {
  background: var(--orange); color: var(--white);
  padding: 9px 18px; font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
  transition: background 0.2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--orange2); }

/* Hamburger */
.hamburger {
  display: none; align-items: center; justify-content: center;
  margin-left: auto; cursor: pointer; padding: 10px; flex-direction: column;
}
.hamburger span { width: 22px; height: 2px; background: var(--white); margin: 3px 0; display: block; transition: 0.3s; }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; background: var(--ink);
  z-index: 800; flex-direction: column; overflow-y: auto; padding: 80px 6% 40px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close {
  position: fixed; top: 22px; right: 5%;
  font-size: 26px; color: var(--white); cursor: pointer; background: none; border: none; z-index: 850;
}
.mobile-nav a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-family: var(--font-head); font-size: 22px; font-weight: 400;
  padding: 14px 0; border-bottom: 1px solid var(--rule-dark); transition: color 0.2s; display: block;
}
.mobile-nav a:hover { color: var(--orange); }
.mobile-nav a.mob-sub {
  font-family: var(--font-body); font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,0.45); padding: 9px 0 9px 16px;
}
.mobile-nav a.mob-sub::before { content: '↳  '; color: var(--orange); }
.mobile-nav a.cta-mob {
  color: var(--orange); font-family: var(--font-body);
  font-size: 15px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-top: 10px; border-bottom: none;
}

/* ═══════════════════════════════════════
   SECTION SHELLS
═══════════════════════════════════════ */
.section { padding: 100px 5%; }
.section.dark { background: var(--ink); color: var(--white); }
.section.tinted { background: var(--orange-bg); }

.section-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-kicker-line { width: 32px; height: 2px; background: var(--orange); flex-shrink: 0; }
.section-kicker-text {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange);
}
.section-h2 {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 50px); font-weight: 400;
  line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 16px;
}
.section-sub {
  font-family: var(--font-body);
  font-size: 16px; font-weight: 300;
  color: var(--grey); max-width: 520px; line-height: 1.75;
}
.section.dark .section-sub { color: rgba(255,255,255,0.5); }

/* Buttons */
.btn-fire {
  background: var(--orange); color: var(--white);
  padding: 14px 30px; font-family: var(--font-body);
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  border-radius: 2px; transition: all 0.2s;
  box-shadow: 0 4px 24px rgba(232,81,10,0.3);
  display: inline-block;
}
.btn-fire:hover { background: var(--orange2); transform: translateY(-2px); }
.btn-ghost-light {
  background: transparent; color: rgba(255,255,255,0.8);
  padding: 14px 30px; font-family: var(--font-body);
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 2px;
  transition: all 0.2s; display: inline-block;
}
.btn-ghost-light:hover { border-color: var(--orange); color: var(--orange); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer { background: var(--footer-bg); color: var(--white); border-top: 3px solid var(--orange); }

/* Partner strip */
.footer-partners {
  border-bottom: 1px solid var(--rule-dark);
  padding: 28px 5%; display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.footer-partners-label {
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); flex-shrink: 0; white-space: nowrap;
}
.footer-partner-badge {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); border: 1px solid var(--rule-dark);
  padding: 7px 18px; transition: all 0.2s; text-decoration: none;
}
.footer-partner-badge:hover { border-color: var(--orange); color: var(--orange); }
.footer-partner-divider { width: 1px; height: 24px; background: var(--rule-dark); flex-shrink: 0; }
.footer-stat-pill {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.28); margin-left: auto; letter-spacing: 0.04em;
}

/* Main grid */
.footer-main {
  padding: 60px 5% 48px;
  display: grid; grid-template-columns: 2fr 1.4fr 1.3fr 1.3fr;
  gap: 48px; border-bottom: 1px solid var(--rule-dark);
}

/* Brand col */
.footer-brand-logo { display: flex; align-items: center; gap: 13px; margin-bottom: 10px; text-decoration: none; }
.footer-brand-logo img { height: 34px; width: 34px; background: var(--white); border-radius: 5px; padding: 2px; object-fit: contain; }
.footer-brand-name {
  font-family: var(--font-head); font-size: 18px; font-weight: 400;
  color: var(--white); line-height: 1;
}
.footer-brand-name sup { font-family: var(--font-body); font-size: 9px; font-weight: 500; vertical-align: super; color: var(--orange); }
.footer-brand-name span {
  display: block; font-family: var(--font-body); font-size: 9px;
  font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); margin-top: 5px;
}
.footer-tagline {
  font-family: var(--font-body); font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.38); line-height: 1.7; max-width: 270px; margin-bottom: 24px;
}
.footer-address-block { margin-bottom: 22px; }
.footer-address-item { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; }
.footer-address-icon { color: var(--orange); font-size: 14px; flex-shrink: 0; margin-top: 2px; }
.footer-address-text { font-size: 12.5px; color: rgba(255,255,255,0.42); line-height: 1.65; font-weight: 300; font-family: var(--font-body); }
.footer-address-text strong {
  display: block; font-family: var(--font-body); font-size: 11px;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.32); margin-bottom: 3px;
}
.footer-address-text .upcoming {
  font-family: var(--font-body); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange); opacity: 0.7; margin-left: 6px;
}
.footer-contact-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.footer-contact-item {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.2s; font-family: var(--font-body);
}
.footer-contact-item:hover { color: var(--orange); }
.footer-contact-item span { color: var(--orange); font-size: 14px; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.soc {
  width: 34px; height: 34px; border: 1px solid var(--rule-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; font-family: var(--font-body);
  text-decoration: none; color: rgba(255,255,255,0.4);
  transition: all 0.2s; border-radius: 2px;
}
.soc:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

/* Link columns */
.footer-col-head {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--white); margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-dark);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a {
  font-size: 13px; font-family: var(--font-body); font-weight: 300;
  color: rgba(255,255,255,0.42); text-decoration: none;
  transition: color 0.2s; display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--orange); }
.footer-links a.highlight {
  color: var(--orange); font-weight: 600; font-size: 13px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.footer-links a .ext-icon { font-size: 10px; opacity: 0.5; }

/* Bottom bar */
.footer-bottom {
  padding: 18px 5%; display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom-copy { font-size: 12px; font-family: var(--font-body); color: rgba(255,255,255,0.25); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  font-size: 12px; font-family: var(--font-body);
  color: rgba(255,255,255,0.25); text-decoration: none; transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--orange); }

/* ═══════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1200px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 900px) {
  .nav-menu, .nav-cta-wrap { display: none; }
  .mob-toggle { display: flex; }
  .top-bar .tb-msg { display: none; }
}
@media (max-width: 768px) {
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-partners { gap: 16px; }
  .footer-stat-pill { margin-left: 0; }
}
