/* ============================================================
   SILOGIX — Well Engineered Solutions
   Stylesheet v1.0
   ============================================================ */

:root {
  /* ===== BRAND PALETTE (from logo) ===== */
  --navy: #1E2A6B;           /* Primary SILogix blue */
  --navy-deep: #0A1128;      /* Deep background navy */
  --navy-mid: #15204A;       /* Mid-depth navy */
  --red: #E63946;            /* Signal red accent */
  --red-deep: #C81D25;       /* Darker red for hover */

  /* ===== NEUTRALS ===== */
  --paper: #F4F5F8;          /* Blueprint off-white */
  --paper-soft: #EAECF2;     /* Slightly dimmer paper */
  --ink: #0A1128;            /* Text on light */
  --ink-soft: #3A4568;       /* Secondary text */
  --mute: #8892B0;           /* Technical label gray */
  --mute-light: #C9CFE0;     /* Very soft gray */
  --line: rgba(30, 42, 107, 0.15);  /* Divider lines */
  --line-strong: rgba(30, 42, 107, 0.35);

  /* ===== TYPE ===== */
  --font-display: 'Archivo', 'Helvetica Neue', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* ===== LAYOUT ===== */
  --max: 1280px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;       /* Keep sharp / technical */
  --radius-lg: 4px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

/* ============ BLUEPRINT GRID BACKGROUND ============ */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(30, 42, 107, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 42, 107, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 245, 248, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo { color: var(--navy); display: flex; align-items: center; }
.nav__logo-img { height: 60px; width: auto; display: block; }
/* Footer logo: transparent PNG with navy text needs a light plate on dark footer */
.footer__logo-img {
  height: 52px;
  width: auto;
  display: block;
  background: var(--paper);
  padding: 10px 18px;
  border-radius: var(--radius);
  box-sizing: content-box;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}
.nav__links a {
  position: relative;
  padding: 0.25rem 0;
  transition: color .25s;
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .3s ease;
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  background: var(--navy);
  color: var(--paper);
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius);
  transition: background .25s;
}
.nav__cta:hover { background: var(--red); }
.nav__cta span { margin-left: 0.35rem; transition: transform .25s; display: inline-block; }
.nav__cta:hover span { transform: translateX(3px); }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  transition: transform .3s, opacity .3s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ GENERIC ============ */
.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.hl {
  color: var(--red);
  position: relative;
  font-style: italic;
  font-weight: 700;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) var(--pad) clamp(4rem, 10vw, 7rem);
  max-width: var(--max);
  margin: 0 auto;
  z-index: 1;
}
.hero__schematic {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  overflow: hidden;
}
.hero__schematic svg { width: 100%; height: 100%; }

.hero__inner { position: relative; }

.hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
}
.tag--dot::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 0 6px rgba(230, 57, 70, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin-bottom: 1.75rem;
}
.hero__line-1, .hero__line-2 { display: block; }
.hero__line-2 { padding-left: clamp(1rem, 5vw, 4rem); }

.hero__sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 640px;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all .28s cubic-bezier(.2, .8, .2, 1);
  position: relative;
  cursor: pointer;
}
.btn svg { transition: transform .28s; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary {
  background: var(--navy);
  color: var(--paper);
}
.btn--primary:hover { background: var(--red); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn--ghost:hover {
  background: var(--navy);
  color: var(--paper);
}
.btn--submit { width: 100%; justify-content: center; padding: 1.1rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.stat__num span {
  font-size: 0.7em;
  color: var(--red);
  font-weight: 500;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: var(--pad);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero__scroll span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--mute);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--mute), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  animation: scrollLine 2.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ============ MARQUEE ============ */
.marquee {
  background: var(--navy-deep);
  color: var(--paper);
  padding: 1.25rem 0;
  overflow: hidden;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  position: relative;
  z-index: 1;
}
.marquee__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
.marquee__track span:nth-child(even) { color: var(--red); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ SECTION HEAD ============ */
.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) var(--pad) 3rem;
  position: relative;
  z-index: 1;
}
.section-head--light { color: var(--paper); }
.section-head__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  position: relative;
}
.section-head__tag::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 12px; height: 1px;
  background: var(--red);
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: inherit;
  margin-bottom: 1rem;
}
.section-head__sub {
  max-width: 620px;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-top: 1rem;
  line-height: 1.6;
}
.section-head--light .section-head__sub { color: var(--mute-light); }

/* ============ ABOUT ============ */
.about {
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
}
.about__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about__copy .lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.about__copy p { margin-bottom: 1.25rem; color: var(--ink-soft); }

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.pillar {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  transition: transform .35s, border-color .35s;
}
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--red);
}
.pillar:hover { transform: translateY(-4px); border-color: var(--navy); }
.pillar__icon {
  width: 40px; height: 40px;
  color: var(--navy);
  margin-bottom: 1rem;
}
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.pillar p { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.55; }

/* ABOUT PANEL (technical card) */
.about__panel {
  background: var(--navy-deep);
  color: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.about__panel-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.03);
}
.about__panel-header::before {
  content: "● ● ●";
  letter-spacing: 0.3rem;
  color: var(--red);
  font-size: 0.6rem;
}
.about__panel-header .mono { color: var(--mute-light); }
.about__panel-body { padding: 0.5rem 1.25rem; }
.panel-row {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  font-size: 0.875rem;
  align-items: baseline;
}
.panel-row:last-child { border-bottom: none; }
.panel-row span {
  color: var(--mute-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.panel-row strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--paper);
  text-align: right;
}
.about__panel-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.03);
}
.panel-waveform {
  width: 80px; height: 24px;
  color: var(--red);
}

/* ============ SERVICES (dark block, flow) ============ */
.services {
  background: var(--navy-deep);
  color: var(--paper);
  margin-top: 5rem;
  padding-bottom: clamp(4rem, 8vw, 6rem);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
/* Faded P&ID overlay — sits above the grid but under content */
.services__pid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
  pointer-events: none;
  overflow: hidden;
}
.services__pid svg { width: 100%; height: 100%; }
.services .section-head { position: relative; z-index: 2; }

.flow {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
}
.flow__node {
  padding: 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  transition: all .35s;
  position: relative;
}
.flow__node::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .5s ease;
}
.flow__node:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--red);
  transform: translateY(-6px);
}
.flow__node:hover::before { width: 100%; }
.flow__node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
}
.flow__node-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.15);
}
.flow__node h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.flow__node p {
  color: var(--mute-light);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.flow__list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  border-top: 1px dashed rgba(255,255,255,0.1);
  padding-top: 1rem;
}
.flow__list li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--mute-light);
}
.flow__list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--red);
}
.flow__connectors {
  display: none;
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 40px;
  color: var(--red);
  opacity: 0.5;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ============ CAPABILITIES ============ */
.capabilities {
  position: relative;
  z-index: 1;
  padding-bottom: 4rem;
}
.cap-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cap {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  transition: all .4s cubic-bezier(.2, .8, .2, 1);
  overflow: hidden;
}
.cap::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.cap:hover {
  transform: translateY(-6px);
  border-color: var(--navy);
  box-shadow: 0 20px 40px -20px rgba(30, 42, 107, 0.25);
}
.cap:hover::after { transform: scaleX(1); }
.cap__code {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--mute);
  letter-spacing: 0.05em;
}
.cap__icon {
  width: 48px; height: 48px;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.cap h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.cap__full {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--red);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.cap__desc {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.55;
}
.cap--feature {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}
.cap--feature .cap__code { color: var(--red); font-size: 2rem; top: 1rem; }
.cap--feature h3 { color: #fff; }
.cap--feature .cap__desc { color: var(--mute-light); margin-bottom: 1.25rem; }
.cap--feature .cap__link {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--red);
  font-size: 0.9rem;
  display: inline-block;
  transition: transform .25s;
}
.cap--feature .cap__link:hover { transform: translateX(4px); }

/* ============ INDUSTRIES ============ */
.industries {
  position: relative;
  z-index: 1;
  padding-bottom: 5rem;
}
.ind-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.ind {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transition: background .3s;
  position: relative;
  cursor: default;
}
.ind:hover { background: #fff; }
.ind:hover .ind__bar { transform: scaleX(1); }
.ind__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mute);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}
.ind h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.ind p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.ind__bar {
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
  width: 100%;
}

/* ============ PROJECTS ============ */
.projects {
  background: var(--navy-deep);
  color: var(--paper);
  position: relative;
  z-index: 1;
  padding-bottom: 5rem;
  overflow: hidden;
}
.projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(230, 57, 70, 0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(30, 42, 107, 0.6), transparent 50%);
  pointer-events: none;
}
.proj-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}
.proj {
  padding: 2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  transition: all .35s;
  display: flex;
  flex-direction: column;
}
.proj:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--red);
  transform: translateY(-4px);
}
.proj__meta {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
}
.proj h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.proj p {
  color: var(--mute-light);
  font-size: 0.93rem;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1.25rem;
}
.proj__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.proj__tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  letter-spacing: 0.03em;
  color: var(--mute-light);
}
.proj--feature {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-color: var(--red);
}
.proj--feature::before {
  content: "FLAGSHIP";
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--red);
  letter-spacing: 0.15em;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--red);
  border-radius: var(--radius);
}
.proj--feature { position: relative; }
.proj--feature h3 { font-size: 1.5rem; }

.proj-cta {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding: 2rem var(--pad);
  text-align: center;
  position: relative;
  z-index: 2;
}
.proj-cta p {
  color: var(--mute-light);
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* ============ CAREERS ============ */
.careers {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 8vw, 7rem) var(--pad);
  background: var(--paper);
}
.careers .proj-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0 var(--pad);
}
/* Override .proj inheritance for light-section careers context */
.careers .proj {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
}
.careers .proj:hover {
  background: #fff;
  border-color: var(--red);
}
.careers .proj h3 { color: var(--ink); }
.careers .proj p { color: var(--ink-soft); }
.careers .proj__meta {
  border-bottom-color: var(--line);
}
.careers .proj__meta .mono { color: var(--ink-soft); }
.careers .proj__tags span {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink-soft);
}
/* ROLE.02 retains the dark gradient — but text needs to be light-on-dark */
.careers .proj--feature { color: #fff; }
.careers .proj--feature h3 { color: #fff; }
.careers .proj--feature p { color: var(--mute-light); }
.careers .proj--feature .proj__meta { border-bottom-color: rgba(255,255,255,0.18); }
.careers .proj--feature .proj__meta .mono { color: rgba(255,255,255,0.7); }
.careers .proj--feature .role__cols { border-top-color: rgba(255,255,255,0.18); }
.careers .proj--feature .role__list li { color: var(--mute-light); }
.careers .proj--feature .proj__tags span {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: var(--mute-light);
}
/* Suppress the auto FLAGSHIP label for the careers feature card */
.careers .proj--feature::before { content: none; }
.role__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.role__col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.role__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.role__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.role__list li {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
  padding-left: 1.1rem;
  position: relative;
}
.role__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 1px;
  background: var(--red);
}
.role__apply {
  margin-top: 1.5rem;
  display: inline-flex;
  width: auto;
}
.careers__note {
  max-width: 720px;
  margin: 2.5rem auto 0;
  text-align: center;
  padding: 1.5rem 1.75rem;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  background: var(--paper-soft);
}
.careers__note p {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.6;
}
.careers__note a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}
.careers__note a:hover {
  color: var(--navy);
}
@media (max-width: 720px) {
  .role__cols { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============ CONTACT ============ */
.contact {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 8vw, 7rem) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact__intro h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 1rem 0 1.25rem;
}
.contact__intro > p {
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  max-width: 480px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: all .28s;
}
.contact__item:not(.contact__item--static):hover {
  border-color: var(--navy);
  transform: translateX(4px);
}
.contact__item-icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--paper-soft);
  color: var(--navy);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.contact__item-icon svg { width: 20px; height: 20px; }
.contact__item div:last-child { display: flex; flex-direction: column; }
.contact__item strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

/* ============ FORM ============ */
.contact__form {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}
.contact__form::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: var(--red);
}
.contact__form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed var(--line-strong);
}
.contact__form-dot {
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color .25s, background .25s;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--mute);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--navy-deep);
  color: var(--paper);
  padding: 4rem var(--pad) 0;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--navy);
}
.footer__top {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__logo { height: 40px; color: var(--paper); }
.footer__tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--mute-light);
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer__cols h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.footer__cols a, .footer__cols span {
  display: block;
  font-size: 0.9rem;
  color: var(--mute-light);
  margin-bottom: 0.5rem;
  transition: color .25s;
}
.footer__cols a:hover { color: #fff; }

.footer__bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__bar .mono { color: var(--mute); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .nav__links { gap: 1.25rem; font-size: 0.8rem; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .about__grid { grid-template-columns: 1fr; }
  .about__panel { position: static; }
  .flow { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-list { grid-template-columns: repeat(2, 1fr); }
  .proj--feature { grid-column: span 2; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__logo-img { height: 44px; }
  .nav.nav--open .nav__links {
    display: flex;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 2rem var(--pad);
    border-bottom: 1px solid var(--line);
    gap: 1.5rem;
    align-items: flex-start;
  }
  .hero__line-2 { padding-left: 0; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .proj-list { grid-template-columns: 1fr; }
  .proj--feature { grid-column: span 1; }
  .footer__cols { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .footer__bar { justify-content: flex-start; }
  .footer__bar .mono { font-size: 0.65rem; }
}

/* ============ REVEAL ANIMATIONS (on-scroll) ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2, .8, .2, 1),
              transform .8s cubic-bezier(.2, .8, .2, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
