:root {
  --navy: #102e62;
  --deep-blue: #174885;
  --blue: #2e93d1;
  --sky: #69c8ee;
  --green: #1f7a3f;
  --bright-green: #68c54a;
  --ink: #061629;
  --muted: #65758b;
  --line: rgba(105, 200, 238, 0.32);
  --paper: #f7fbff;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(6, 22, 41, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.home-page {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(104, 197, 74, 0.2), transparent 24rem),
    radial-gradient(circle at 16% 82%, rgba(105, 200, 238, 0.24), transparent 22rem),
    linear-gradient(135deg, #07162d 0%, #123a75 48%, #1d7fba 100%);
}

#networkCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
}

.inner-header {
  color: var(--ink);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.9;
  text-transform: uppercase;
  min-width: 170px;
}

.brand span {
  font-size: clamp(1.05rem, 2.2vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 0;
}

.brand small {
  margin-top: 7px;
  color: var(--sky);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.inner-header .main-nav {
  border-color: rgba(16, 46, 98, 0.12);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 30px rgba(16, 46, 98, 0.08);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.inner-header .main-nav a {
  color: var(--navy);
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  white-space: nowrap;
}

.inner-header .contact-pill {
  color: var(--navy);
  border-color: rgba(16, 46, 98, 0.12);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(16, 46, 98, 0.08);
}

.home-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  width: min(1180px, calc(100% - 48px));
  height: calc(100vh - 154px);
  margin: 0 auto;
  padding-bottom: 34px;
}

.hero-panel {
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--bright-green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-panel h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.9rem);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 18px 48px rgba(46, 147, 209, 0.26);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.signal-board {
  position: relative;
  padding: clamp(18px, 2.8vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 20, 41, 0.42);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.signal-board::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(105, 200, 238, 0.14) 48% 52%, transparent 52%),
    linear-gradient(0deg, transparent 0 48%, rgba(104, 197, 74, 0.12) 48% 52%, transparent 52%);
  pointer-events: none;
}

.signal-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.signal-word {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 18px;
  border: 1px solid rgba(105, 200, 238, 0.22);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.85rem, 1.2vw, 1.02rem);
  font-weight: 900;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 450ms ease, background 450ms ease, color 450ms ease, box-shadow 450ms ease;
}

.signal-word.active {
  color: var(--white);
  transform: translateY(-5px) scale(1.04);
  background: linear-gradient(135deg, rgba(31, 122, 63, 0.94), rgba(46, 147, 209, 0.9));
  box-shadow: 0 18px 40px rgba(46, 147, 209, 0.28);
}

.metric-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.metric-row div {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.metric-row strong {
  display: block;
  color: var(--sky);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 900;
}

.metric-row span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.home-footer {
  position: fixed;
  z-index: 3;
  right: 24px;
  bottom: 16px;
  left: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  font-weight: 700;
}

.page-hero {
  width: min(1060px, calc(100% - 48px));
  margin: 52px auto 0;
  padding: 64px 0 36px;
}

.page-hero h1 {
  max-width: 920px;
  color: var(--navy);
  font-size: clamp(2.4rem, 6vw, 5.6rem);
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.portfolio-feature,
.about-layout,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  width: min(1060px, calc(100% - 48px));
  margin: 48px auto;
}

.feature-copy h2,
.about-copy h2,
.contact-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.98;
  font-weight: 900;
}

.feature-copy p,
.about-copy p,
.principle-stack p,
.work-card p,
.contact-section p {
  color: var(--muted);
  line-height: 1.75;
}

.feature-media {
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
}

.stats-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.stats-list div {
  padding: 18px;
  border: 1px solid rgba(16, 46, 98, 0.1);
  border-radius: 8px;
  background: var(--white);
}

.stats-list dt {
  color: var(--green);
  font-size: 1.45rem;
  font-weight: 900;
}

.stats-list dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: min(1180px, calc(100% - 48px));
  margin: 56px auto;
}

.work-card {
  min-height: 270px;
  padding: 24px;
  border: 1px solid rgba(16, 46, 98, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 54px rgba(16, 46, 98, 0.08);
}

.work-card span,
.services-strip span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.work-card h2 {
  margin: 28px 0 12px;
  color: var(--navy);
  font-size: 1.35rem;
}

.image-band {
  width: min(1060px, calc(100% - 48px));
  margin: 64px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-band img {
  width: 100%;
  max-height: 780px;
  object-fit: cover;
  object-position: top center;
}

.about-layout {
  align-items: start;
}

.principle-stack {
  display: grid;
  gap: 14px;
}

.principle-stack article {
  padding: 24px;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 54px rgba(16, 46, 98, 0.08);
}

.principle-stack h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
}

.services-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 48px));
  margin: 64px auto;
  background: rgba(16, 46, 98, 0.12);
  border: 1px solid rgba(16, 46, 98, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.services-strip div {
  min-height: 150px;
  padding: 24px;
  background: var(--white);
}

.services-strip strong {
  display: block;
  margin-top: 22px;
  color: var(--navy);
  font-size: 1.06rem;
  line-height: 1.35;
}

.contact-section {
  margin-bottom: 70px;
  padding: 42px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 22, 41, 0.94), rgba(23, 72, 133, 0.94)),
    linear-gradient(90deg, transparent, rgba(105, 200, 238, 0.24));
}

.contact-section h2 {
  color: var(--white);
}

.contact-section address {
  display: grid;
  gap: 14px;
  font-style: normal;
  font-weight: 900;
}

.contact-section address a,
.contact-section address span {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 28px 24px 34px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  border-top: 1px solid rgba(16, 46, 98, 0.1);
}

@media (max-width: 920px) {
  .site-header {
    width: min(100% - 28px, 760px);
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .contact-pill {
    display: none;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .main-nav a {
    flex: 1;
    min-width: 0;
    padding: 0 9px;
    font-size: 0.8rem;
  }

  .home-shell {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 18px;
    width: min(100% - 28px, 760px);
    height: calc(100vh - 145px);
    padding-bottom: 42px;
  }

  .hero-panel h1 {
    font-size: clamp(2.4rem, 12vw, 4.2rem);
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .signal-board {
    padding: 14px;
  }

  .signal-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .signal-word {
    min-height: 58px;
    padding: 10px;
    font-size: 0.72rem;
  }

  .metric-row {
    gap: 6px;
    margin-top: 10px;
  }

  .metric-row div {
    padding: 10px 6px;
  }

  .metric-row span {
    font-size: 0.68rem;
  }

  .home-footer {
    display: none;
  }

  .page-hero,
  .portfolio-feature,
  .about-layout,
  .contact-section,
  .image-band,
  .work-grid,
  .services-strip {
    width: min(100% - 28px, 760px);
  }

  .portfolio-feature,
  .about-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .work-grid,
  .services-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .home-page {
    min-height: 100svh;
  }

  .home-shell {
    height: calc(100svh - 132px);
  }

  .hero-actions {
    margin-top: 18px;
  }

  .button {
    flex: 1;
    min-width: 140px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .signal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .signal-word {
    min-height: 52px;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .metric-row div {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0 0;
  }

  .metric-row span {
    margin: 0;
  }

  .page-hero {
    margin-top: 20px;
    padding-top: 32px;
  }

  .stats-list,
  .work-grid,
  .services-strip {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: auto;
  }

  .contact-section {
    padding: 28px;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
}

@media (max-height: 720px) and (min-width: 921px) {
  .site-header {
    padding: 14px 0;
  }

  .home-shell {
    height: calc(100vh - 118px);
  }

  .hero-panel h1 {
    font-size: clamp(2.8rem, 6vw, 5.3rem);
  }

  .hero-copy {
    margin-top: 18px;
    line-height: 1.5;
  }

  .signal-word {
    min-height: 68px;
  }
}
