/* =========================================================
   BRIDGEPORT NETWORKS — Corporate Identity Stylesheet
   Aesthetic: deep navy / steel-blue / blueprint-grade
   Type: Instrument Serif (display) · IBM Plex Sans (body) · JetBrains Mono (data)
   ========================================================= */

:root {
  /* Core palette — lightened slate */
  --ink:          #1a2d48;
  --ink-deep:     #142339;
  --steel-900:    #213655;
  --steel-800:    #2a4163;
  --steel-700:    #355077;
  --steel-600:    #466292;
  --steel-500:    #5e7aa8;
  --steel-400:    #8094b7;
  --steel-300:    #a3b3cc;
  --steel-200:    #c4cfde;
  --steel-100:    #dee5ee;
  --bone:         #eef2f7;
  --paper:        #fdfeff;

  /* Accents */
  --signal:       #6aa9f0;
  --signal-glow:  #9cc6ff;
  --signal-soft:  rgba(106, 169, 240, 0.5);
  --copper:       #d4a47a;
  --copper-dim:   #a07a52;
  --green-live:   #79c6a0;

  /* Grid + atmosphere */
  --grid:         rgba(255,255,255,0.04);
  --grid-strong:  rgba(255,255,255,0.075);
  --grid-dark:    rgba(8,17,31,0.06);
  --rule:         rgba(163,179,204,0.18);
  --rule-strong:  rgba(163,179,204,0.32);

  /* Type scale */
  --serif:        'Instrument Serif', 'Times New Roman', serif;
  --sans:         'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono:         'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --gutter:       clamp(1.25rem, 4vw, 3rem);
  --maxw:         1240px;
  --maxw-narrow:  920px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--bone);
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(70, 98, 146, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(53, 80, 119, 0.22) 0%, transparent 65%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  background-attachment: fixed;
  line-height: 1.55;
  font-feature-settings: 'kern' 1, 'liga' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Background blueprint grid — global atmosphere */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
}

/* Subtle vignette — softer now that base is lighter */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(20, 35, 57, 0.55) 100%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer, section, nav { position: relative; z-index: 1; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -0.01em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.2;
}

h4 {
  font-size: 1.05rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--paper);
}

p {
  color: var(--steel-200);
  font-size: 1.02rem;
  max-width: 62ch;
}

p.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--steel-100);
  line-height: 1.5;
  font-weight: 300;
  max-width: 56ch;
}

a {
  color: var(--signal-glow);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover { color: var(--paper); }

strong { color: var(--paper); font-weight: 500; }

em { font-style: italic; color: var(--steel-100); }

/* Section eyebrow — engineering style */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.eyebrow::before {
  content: '';
  width: 1.5em;
  height: 1px;
  background: var(--signal);
  display: inline-block;
}

.section-mark {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--steel-400);
  text-transform: uppercase;
}

/* =========================================================
   LAYOUT PRIMITIVES
   ========================================================= */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.divider {
  height: 1px;
  background: var(--rule);
  border: none;
  margin: 0;
}

.divider-strong {
  background: var(--rule-strong);
}

/* Two-column layouts */
.split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.split-even {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 900px) {
  .split, .split-even { grid-template-columns: 1fr; }
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 45, 72, 0.78);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--paper);
}

.brand:hover { color: var(--paper); }

.brand-logo {
  display: block;
  width: clamp(150px, 18vw, 220px);
  height: auto;
  flex-shrink: 0;
}

.brand-name { font-weight: 400; }
.brand-name .sub {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-400);
  display: block;
  line-height: 1;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--steel-200);
  padding: 0.5rem 0.85rem;
  border-radius: 2px;
  letter-spacing: 0.01em;
  position: relative;
  transition: color .2s ease;
}

.nav-links a:hover { color: var(--paper); }

.nav-links a.active {
  color: var(--paper);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -1.1rem;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--signal);
}

.nav-cta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--rule-strong);
  color: var(--paper);
  border-radius: 1px;
  transition: all .2s ease;
}

.nav-cta:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

@media (max-width: 760px) {
  .nav-links a { padding: 0.5rem 0.6rem; font-size: 0.78rem; }
  .nav-links { gap: 0.2rem; }
  .nav-cta { display: none; }
  .brand-name .sub { display: none; }
}

@media (max-width: 520px) {
  .nav-inner { padding: 1rem var(--gutter); }
  .nav-links { display: none; }
  .nav-menu-mobile { display: flex; gap: 0.15rem; }
  .nav-menu-mobile a {
    font-size: 0.72rem;
    padding: 0.4rem 0.5rem;
    color: var(--steel-200);
    border: 1px solid var(--rule);
  }
}

/* =========================================================
   HERO + PAGE INTROS
   ========================================================= */

.hero {
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: 1.6rem 0 1.4rem;
  max-width: 18ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--signal-glow);
}

.hero .lead {
  margin-bottom: 2.4rem;
  max-width: 56ch;
}

.hero-meta {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2.4rem;
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
}

.hero-meta .item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hero-meta .item .label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel-400);
}

.hero-meta .item .value {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--paper);
}

/* Decorative hero diagram zone */
.hero-figure {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 620px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 1100px) {
  .hero-figure { opacity: 0.18; right: -15%; }
}

/* Page intro (for subpages) */
.page-intro {
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}

.page-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.page-intro-copy {
  min-width: 0;
}

.page-intro h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 1.4rem 0 1.2rem;
  max-width: 18ch;
}

.page-intro .lead { max-width: 56ch; }

.page-intro-media {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 28px 80px rgba(8,17,31,0.28);
}

.page-intro-media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (max-width: 860px) {
  .page-intro-layout {
    grid-template-columns: 1fr;
  }

  .page-intro-media {
    max-width: 620px;
  }
}

/* =========================================================
   FEATURE / PILLAR CARDS
   ========================================================= */

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
}

.pillar {
  padding: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(28,48,82,0.15) 0%, transparent 100%);
  border-right: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  transition: background .3s ease;
}

.pillar:last-child { border-right: none; }

.pillar:hover {
  background: linear-gradient(180deg, rgba(74,144,226,0.08) 0%, transparent 100%);
}

.pillar-mark {
  position: absolute;
  top: 1.6rem; right: 1.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--steel-400);
  letter-spacing: 0.15em;
}

.pillar h3 {
  margin: 2.5rem 0 1.2rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
}

.pillar p { margin-bottom: 1.4rem; }

.pillar-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--steel-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--signal-glow);
}

.pillar-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--signal-glow);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.6rem;
}

.pillar-link::after {
  content: '→';
  font-family: var(--sans);
  transition: transform .2s ease;
}

.pillar-link:hover::after { transform: translateX(4px); }

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--rule); }
  .pillar:last-child { border-bottom: none; }
}

/* =========================================================
   FEATURE LISTS / DELIVERABLES
   ========================================================= */

.feature-list {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 2rem 0;
}

.feature-list li {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: start;
}

.feature-list li:last-child { border-bottom: none; }

.feature-list .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--steel-400);
  letter-spacing: 0.1em;
  padding-top: 0.25rem;
  min-width: 2.5rem;
}

.feature-list .body h4 {
  margin-bottom: 0.4rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  color: var(--paper);
  letter-spacing: 0.005em;
}

.feature-list .body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--steel-200);
}

/* =========================================================
   SPEC SHEET — technical specifications display
   ========================================================= */

.specsheet {
  border: 1px solid var(--rule);
  background: rgba(12,28,46,0.5);
  margin: 2.5rem 0;
}

.specsheet-header {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7,17,31,0.4);
}

.specsheet-header .title {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
}

.specsheet-header .doc-id {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--steel-400);
  letter-spacing: 0.12em;
}

.specsheet-body {
  padding: 0.5rem 1.4rem 1.5rem;
}

.specsheet-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 0.85rem;
  align-items: baseline;
}

.specsheet-row:last-child { border-bottom: none; }

.specsheet-row .key {
  color: var(--steel-300);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.specsheet-row .val {
  color: var(--paper);
  font-size: 0.92rem;
  letter-spacing: 0;
  font-feature-settings: 'tnum' 1;
  font-variant-numeric: tabular-nums;
}

.specsheet-row .val .unit {
  color: var(--steel-300);
  font-size: 0.78rem;
  margin-left: 0.3em;
}

/* =========================================================
   VERTICAL TILES — target verticals / use cases
   ========================================================= */

.verticals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.vertical {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.8rem 1.6rem;
  background: rgba(12,28,46,0.25);
  transition: background .25s ease;
}

.vertical:hover { background: rgba(28,48,82,0.45); }

.vertical .vmark {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--copper);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.vertical h4 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
  color: var(--paper);
  letter-spacing: -0.01em;
}

.vertical p {
  font-size: 0.88rem;
  color: var(--steel-300);
  margin: 0;
  line-height: 1.45;
}

/* =========================================================
   STAT BLOCK / METRICS
   ========================================================= */

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
}

.metric {
  padding: 1.8rem 1.6rem;
  border-right: 1px solid var(--rule);
  text-align: left;
}

.metric:last-child { border-right: none; }

.metric .value {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.5vw, 2.8rem);
  color: var(--paper);
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum' 1;
}

.metric .value .small {
  font-size: 0.5em;
  color: var(--steel-300);
  margin-left: 0.1em;
}

.metric .label {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--steel-400);
  margin-top: 0.8rem;
}

@media (max-width: 760px) {
  .metric { border-right: none; border-bottom: 1px solid var(--rule); }
  .metric:last-child { border-bottom: none; }
}

/* =========================================================
   STACK DIAGRAM (Together page)
   ========================================================= */

.stack-diagram {
  border: 1px solid var(--rule);
  padding: 2rem;
  background: linear-gradient(180deg, rgba(12,28,46,0.6), rgba(7,17,31,0.4));
  margin: 2.5rem 0;
}

.stack-layer {
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--rule);
  background: rgba(28,48,82,0.25);
  margin-bottom: 0.6rem;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  align-items: center;
  position: relative;
}

.stack-layer:last-child { margin-bottom: 0; }

.stack-layer:hover { background: rgba(40,72,113,0.35); }

.stack-layer .layer-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--signal);
  text-transform: uppercase;
}

.stack-layer .layer-content h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.stack-layer .layer-content p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--steel-200);
}

@media (max-width: 700px) {
  .stack-layer { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* =========================================================
   PULL QUOTE
   ========================================================= */

.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  color: var(--paper);
  max-width: 28ch;
  margin: 3rem 0;
  padding-left: 1.6rem;
  border-left: 2px solid var(--signal);
  font-style: italic;
}

.pullquote .attr {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel-400);
  display: block;
  margin-top: 1rem;
}

/* =========================================================
   CTA BANNER
   ========================================================= */

.cta-banner {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: linear-gradient(180deg, rgba(12,28,46,0.5), rgba(7,17,31,0.2));
}

.cta-banner h2 {
  margin-bottom: 1.4rem;
}

.cta-banner .actions {
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95rem 1.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--paper);
  color: var(--paper);
  background: transparent;
  transition: all .2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--paper);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--signal-glow);
  color: var(--ink);
  border-color: var(--signal-glow);
}

.btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  border-top: 1px solid var(--rule);
  padding: 3rem 0 2rem;
  background: rgba(20, 35, 57, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.footer-grid h5 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-bottom: 1.1rem;
  font-weight: 500;
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.footer-grid li a {
  color: var(--steel-200);
  font-size: 0.9rem;
  transition: color .2s ease;
}

.footer-grid li a:hover { color: var(--paper); }

.footer-tag {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--steel-100);
  margin-bottom: 1.2rem;
  max-width: 32ch;
}

.footer-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--steel-400);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
}

.footer-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green-live);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--steel-400);
  letter-spacing: 0.08em;
}

/* =========================================================
   INQUIRY FORM
   ========================================================= */

.inquiry-form {
  margin: 2.5rem 0 0;
  border: 1px solid var(--rule);
  background: rgba(20, 35, 57, 0.45);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field.full { grid-column: 1 / -1; }

.field label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-300);
}

.field label .req { color: var(--signal); }

.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--paper);
  background: rgba(20, 35, 57, 0.6);
  border: 1px solid var(--rule-strong);
  border-radius: 1px;
  padding: 0.8rem 0.9rem;
  width: 100%;
  transition: border-color .2s ease, background .2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--signal);
  background: rgba(20, 35, 57, 0.9);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--steel-400); }

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238094b7' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.2rem;
}

.form-actions {
  margin-top: 1.7rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.form-note {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--steel-400);
}

.form-secondary {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: var(--steel-300);
}

.form-secondary a {
  color: var(--signal-glow);
  border-bottom: 1px solid var(--rule);
}

.form-secondary a:hover {
  color: var(--paper);
  border-color: var(--paper);
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   PAGE-SPECIFIC: CONTACT
   ========================================================= */

.contact-layout {
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  gap: 1.4rem;
  align-items: stretch;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 9vw, 7rem);
}

@media (max-width: 880px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* --- Left: direct-contact panel --- */
.contact-card {
  background: linear-gradient(165deg, rgba(33,54,85,0.6), rgba(20,35,57,0.5));
  border: 1px solid var(--rule);
  padding: clamp(1.8rem, 3.4vw, 2.6rem);
  display: flex;
  flex-direction: column;
}

.contact-card-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  color: var(--paper);
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
}

.contact-card-intro {
  font-size: 0.96rem;
  color: var(--steel-300);
  line-height: 1.55;
  margin-bottom: 1.8rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--rule);
  align-items: flex-start;
}

.contact-detail:last-of-type { border-bottom: 1px solid var(--rule); }

.contact-detail-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--steel-600);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--signal-glow);
}

.contact-detail-text { padding-top: 0.15rem; }

.contact-detail-text .label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-bottom: 0.32rem;
}

.contact-detail-text .value {
  font-size: 0.98rem;
  color: var(--steel-100);
  line-height: 1.5;
  word-break: break-word;
}

.contact-detail-text a.value {
  color: var(--signal-glow);
  transition: color .2s ease;
}

.contact-detail-text a.value:hover { color: var(--paper); }

.contact-card-foot {
  margin-top: auto;
  padding-top: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--steel-400);
}

.contact-card-foot .brand-logo {
  width: 190px;
  max-width: 100%;
}

.contact-card-foot span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* --- Right: form panel --- */
.form-card {
  background: rgba(20,35,57,0.5);
  border: 1px solid var(--rule);
  padding: clamp(1.8rem, 3.4vw, 2.8rem);
}

.form-card-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  color: var(--paper);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.form-card-sub {
  font-size: 0.95rem;
  color: var(--steel-300);
  margin-bottom: 1.8rem;
}

/* =========================================================
   ANIMATIONS (subtle, infrastructure-feel)
   ========================================================= */

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-up.delay-1 { animation-delay: 0.12s; }
.fade-up.delay-2 { animation-delay: 0.24s; }
.fade-up.delay-3 { animation-delay: 0.36s; }
.fade-up.delay-4 { animation-delay: 0.48s; }
.fade-up.delay-5 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Mesh diagram — refined, beautiful, faded */
.mesh-node {
  animation: nodeBreathe 5.5s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.mesh-node:nth-child(2) { animation-delay: 0.5s; }
.mesh-node:nth-child(3) { animation-delay: 1.0s; }
.mesh-node:nth-child(4) { animation-delay: 1.5s; }
.mesh-node:nth-child(5) { animation-delay: 2.0s; }
.mesh-node:nth-child(6) { animation-delay: 2.5s; }
.mesh-node:nth-child(7) { animation-delay: 3.0s; }
.mesh-node:nth-child(8) { animation-delay: 3.5s; }
.mesh-node:nth-child(9) { animation-delay: 4.0s; }
.mesh-node:nth-child(10) { animation-delay: 4.5s; }

@keyframes nodeBreathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

.mesh-halo {
  animation: haloBreathe 5.5s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.mesh-halo:nth-of-type(2n) { animation-delay: 1.5s; }
.mesh-halo:nth-of-type(3n) { animation-delay: 3s; }

@keyframes haloBreathe {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50%      { opacity: 0.7;  transform: scale(1.1); }
}

.mesh-link {
  stroke-dasharray: 2 6;
  animation: linkFlow 18s linear infinite;
}

@keyframes linkFlow {
  to { stroke-dashoffset: -200; }
}

/* Constellation micro-dots in the background */
.mesh-micro {
  animation: microFlicker 7s ease-in-out infinite;
}

.mesh-micro:nth-child(odd)  { animation-delay: 1.2s; }
.mesh-micro:nth-child(3n)   { animation-delay: 3.6s; }
.mesh-micro:nth-child(5n)   { animation-delay: 5.4s; }

@keyframes microFlicker {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.55; }
}

/* =========================================================
   UTILITIES
   ========================================================= */

.text-paper { color: var(--paper); }
.text-signal { color: var(--signal-glow); }
.text-steel { color: var(--steel-300); }
.text-copper { color: var(--copper); }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

/* Selection styling */
::selection {
  background: var(--signal);
  color: var(--paper);
}

/* Focus states for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--signal-glow);
  outline-offset: 3px;
}
