:root {
  --bg: #071326;
  --bg-soft: #0e2850;
  --panel: rgba(11, 29, 57, 0.92);
  --panel-strong: rgba(7, 20, 41, 0.97);
  --line: rgba(165, 194, 241, 0.18);
  --line-soft: rgba(165, 194, 241, 0.1);
  --text: #edf4ff;
  --text-soft: rgba(237, 244, 255, 0.76);
  --text-muted: rgba(237, 244, 255, 0.56);
  --accent: #7fb4ff;
  --accent-soft: rgba(127, 180, 255, 0.16);
  --shadow: 0 24px 56px rgba(4, 12, 27, 0.34);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(127, 180, 255, 0.18), transparent 22%),
    radial-gradient(circle at right 18%, rgba(19, 71, 140, 0.26), transparent 28%),
    linear-gradient(180deg, #061121 0%, #0a1d38 58%, #071326 100%);
  color: var(--text);
}

body.nav-open {
  overflow: hidden;
}

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

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

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 14, 28, 0.84);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand__logo {
  width: 68px;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(127, 180, 255, 0.18));
}

.brand__copy {
  display: grid;
  gap: 0.2rem;
}

.brand__eyebrow {
  margin: 0;
  color: var(--text-muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.62rem;
  font-weight: 800;
}

.brand__name {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  font-family: "Sora", sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  padding: 0.82rem 0.95rem;
  border-radius: 14px;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(127, 180, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(127, 180, 255, 0.1);
}

.site-nav a.active {
  color: var(--accent);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.9rem 1.3rem;
  border-radius: 16px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.header-cta,
.button--solid {
  background: var(--accent);
  color: #06101f;
}

.button--ghost,
.button--outline {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.button:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

.section {
  padding: 5.5rem 0;
}

.section--tight {
  padding-top: 2rem;
}

.hero {
  padding: 1.2rem 0 2rem;
}

.hero--home {
  padding-top: 1rem;
}

.hero--home .hero-shell {
  aspect-ratio: 15.2 / 9;
  min-height: 760px;
  max-height: 92vh;
  align-items: stretch;
}

.hero--compact .hero-panel {
  padding: clamp(1.7rem, 4vw, 2.35rem);
}

.hero--compact .hero-visual {
  min-height: 420px;
}

.hero--compact h1 {
  font-size: clamp(3rem, 5.2vw, 4.8rem);
}

.hero--compact .lead {
  max-width: 46ch;
}

.hero-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  max-height: 78vh;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  background: #02060b;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 19, 38, 0.08) 0%, rgba(7, 19, 38, 0.14) 40%, rgba(7, 19, 38, 0.78) 100%),
    linear-gradient(90deg, rgba(7, 19, 38, 0.5) 0%, rgba(7, 19, 38, 0.1) 52%, rgba(7, 19, 38, 0.36) 100%);
  z-index: 1;
}

.hero-shell video,
.hero-shell__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shell__grid {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(2.8rem, 6vw, 4.3rem) clamp(2rem, 6vw, 4rem) clamp(2rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 1.5rem;
  align-items: end;
}

.hero--home .hero-shell__grid {
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  padding-top: clamp(3.2rem, 6vw, 4.8rem);
}

.hero-copy {
  max-width: 680px;
  padding-top: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.2rem;
  color: rgba(242, 245, 247, 0.78);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.5;
  padding-top: 0.28em;
  padding-bottom: 0.08em;
  overflow: visible;
}

.eyebrow::before {
  content: "";
  width: 3rem;
  height: 1px;
  background: rgba(242, 245, 247, 0.5);
}

h1,
h2 {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0;
}

h1 {
  font-size: clamp(3.8rem, 8vw, 6.6rem);
}

h2 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

h3 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.25;
}

p {
  margin: 0;
  line-height: 1.72;
  color: var(--text-soft);
}

.lead {
  margin-top: 1.3rem;
  max-width: 48ch;
  font-size: 1.04rem;
  font-weight: 500;
  color: rgba(242, 245, 247, 0.82);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.button-row,
.inline-links,
.tag-row,
.meta-list,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button-row {
  margin-top: 1.8rem;
}

.stat-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  max-width: 760px;
}

.stat-line div {
  position: relative;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(200, 169, 107, 0.32);
  background: linear-gradient(180deg, rgba(8, 17, 27, 0.22), rgba(8, 17, 27, 0));
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease;
  opacity: 0.62;
}

.stat-line strong {
  display: block;
  color: var(--text);
  font-size: 1.08rem;
  transition: color 220ms ease;
}

.stat-line span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 220ms ease;
}

.hero-copy h1 {
  display: block;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  letter-spacing: -0.045em;
  max-width: 12.2ch;
  font-size: clamp(2.85rem, 5.5vw, 5rem);
  line-height: 1.08;
  margin-top: 0;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.42);
  padding-top: 0.08em;
  overflow: visible;
}

.hero-stage-card__bar {
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 2px;
  overflow: hidden;
}

.hero-stage-card__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(210, 176, 116, 0.72), rgba(210, 176, 116, 1));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.hero-stage-card.is-active {
  opacity: 1;
  transform: translateY(-1px);
  border-top-color: rgba(210, 176, 116, 0.9);
}

.hero-stage-card.is-active strong {
  color: #f7fbff;
}

.hero-stage-card.is-active span {
  color: rgba(237, 243, 248, 0.78);
}

.panel,
.service-card,
.industry-card,
.quote-card,
.contact-card,
.timeline-card,
.stat-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.quote-card,
.stat-card {
  background: linear-gradient(180deg, rgba(7, 20, 41, 0.98), rgba(12, 35, 67, 0.98));
}

.card-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
}

.service-card__media {
  margin: -1.5rem -1.5rem 1.35rem;
  height: 220px;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  border-bottom: 1px solid var(--line-soft);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.service-card:hover .service-card__media img {
  transform: scale(1.03);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.section-head p {
  max-width: 60ch;
}

.grid-2,
.grid-3,
.grid-4,
.story-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 1.2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.contact-grid {
  grid-template-columns: 1fr 0.9fr;
}

.dark-band {
  background:
    linear-gradient(180deg, rgba(6, 17, 33, 0.98), rgba(13, 39, 73, 0.98)),
    #061121;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.process-list,
.spec-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.process-list li,
.spec-list li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--text-soft);
}

.process-list li::before,
.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
}

.split-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.2rem;
  align-items: stretch;
}

.hero-panel {
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(14, 38, 73, 0.94), rgba(8, 23, 45, 0.98)),
    #0a1830;
  box-shadow: var(--shadow);
}

.hero-visual {
  min-height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 17, 33, 0.08), rgba(6, 17, 33, 0.8));
  z-index: 1;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual__content {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
}

.stack {
  display: grid;
  gap: 1rem;
}

.site-footer {
  padding: 0 0 3rem;
  border-top: 1px solid var(--line-soft);
}

.footer-cta {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: center;
  padding: 2.1rem 0;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line-soft);
}

.footer-cta p {
  max-width: 58ch;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  align-items: start;
}

.footer-title {
  margin: 0 0 0.75rem;
  color: var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-soft);
}

.footer-contact {
  display: grid;
  gap: 0.45rem;
}

.footer-contact a {
  color: var(--text-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 540ms ease, transform 540ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 981px) and (max-width: 1200px) {
  .hero--home .hero-shell {
    min-height: 780px;
  }

  .hero--home .hero-shell__grid {
    padding-top: 2.7rem;
    padding-bottom: 1.7rem;
  }

  .hero--home .eyebrow {
    margin-bottom: 0.95rem;
  }

  .hero--home .hero-copy h1 {
    max-width: 12.8ch;
    font-size: clamp(2.7rem, 5vw, 4.4rem);
    line-height: 1.04;
  }

  .hero--home .lead {
    margin-top: 1rem;
  }

  .hero--home .button-row {
    margin-top: 1.35rem;
  }

  .hero--home .stat-line {
    margin-top: 1.5rem;
  }

}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: 88px 1rem auto;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(6, 11, 17, 0.98);
    border: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a,
  .header-cta {
    width: 100%;
    justify-content: center;
  }

  .hero-shell__grid {
    padding: 2rem 1.5rem 1.6rem;
    gap: 1rem;
  }

  .hero--home .hero-shell__grid {
    align-items: start;
    padding-top: 2.2rem;
  }

  .hero--home .hero-copy {
    transform: scale(0.88);
    transform-origin: top left;
    width: calc(100% / 0.88);
    padding-top: 0.45rem;
  }

  .hero-copy {
    max-width: none;
    padding-top: 0;
  }

  .hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.15rem, 7vw, 3.1rem);
    line-height: 1.08;
    padding-top: 0.14em;
  }

  .hero-copy .lead {
    max-width: 31ch;
  }

  .button-row {
    gap: 0.7rem;
    margin-top: 1.25rem;
  }

  .button-row .button {
    width: 100%;
  }

  .stat-line {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    max-width: none;
    margin-top: 1rem;
  }

  .stat-line div {
    padding-top: 0.8rem;
  }

  .stat-line strong {
    font-size: 0.98rem;
  }

  .stat-line span {
    font-size: 0.86rem;
    line-height: 1.48;
  }

  .hero-panel {
    padding: 1.6rem;
  }

  .hero--compact .hero-panel {
    padding: 1.45rem;
  }

  .hero-panel h1 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 7.8vw, 3.5rem);
    line-height: 1.04;
  }

  .hero-panel .lead {
    max-width: none;
    font-size: 0.98rem;
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero--compact .hero-visual {
    min-height: 300px;
  }

  .contact-card {
    padding: 1.3rem;
  }

  .contact-grid .stack {
    gap: 0.8rem;
  }

  .footer-cta {
    padding: 1.7rem 0 1.5rem;
    margin-bottom: 1.2rem;
  }

  .footer-grid {
    gap: 1.5rem;
  }

  .hero-visual__content {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .hero-visual__content h3 {
    font-size: 1.1rem;
    line-height: 1.25;
  }

  .hero-visual__content p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .hero-shell__grid,
  .split-hero,
  .story-grid,
  .contact-grid,
  .footer-cta,
  .footer-grid,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .hero--compact .hero-visual {
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    min-height: 78px;
  }

  .brand__logo {
    width: 132px;
  }

  .brand__copy,
  .header-cta {
    display: none;
  }

  .hero-shell {
    aspect-ratio: 4 / 5;
    border-radius: 28px;
  }

  .hero--home .hero-shell {
    aspect-ratio: auto;
    min-height: 700px;
    max-height: none;
  }

  .hero-shell__grid {
    padding: 1.3rem 1.1rem 1.15rem;
  }

  .hero--home .hero-shell__grid {
    align-items: start;
    padding-top: 1.9rem;
  }

  .hero--home .hero-copy {
    transform: scale(0.76);
    transform-origin: top left;
    width: calc(100% / 0.76);
    padding-top: 0.35rem;
  }

  .hero-copy h1,
  .hero-panel h1 {
    display: inline-block;
    font-size: clamp(1.95rem, 8.4vw, 2.75rem);
    max-width: 10.5ch;
    line-height: 1.12;
    padding-top: 0.18em;
    overflow: visible;
  }

  .hero-copy .lead,
  .hero-panel .lead {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .button-row {
    margin-top: 1rem;
  }

  .button-row .button {
    min-height: 48px;
  }

  .stat-line {
    margin-top: 0.9rem;
  }

  .hero-panel {
    padding: 1.35rem;
  }

  .hero--compact .hero-panel {
    padding: 1.2rem;
  }

  .hero-visual {
    min-height: 280px;
    border-radius: 24px;
  }

  .hero--compact .hero-visual {
    min-height: 260px;
  }

  .contact-card {
    padding: 1.15rem;
  }

  .contact-card h3 {
    font-size: 1.08rem;
  }

  .contact-card p {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .contact-grid .stack {
    gap: 0.7rem;
  }

  .footer-cta {
    padding: 1.35rem 0 1.2rem;
    margin-bottom: 1rem;
  }

  .footer-grid {
    gap: 1.15rem;
  }

  .footer-title {
    margin-bottom: 0.55rem;
  }

  .footer-links {
    gap: 0.35rem;
  }

  .hero-visual__content {
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.9rem;
  }

  .hero-visual__content h3 {
    font-size: 1.02rem;
  }

  .hero-visual__content p {
    font-size: 0.88rem;
  }

  .hero--home .stat-line {
    margin-top: 0.7rem;
  }

  .hero--home .stat-line div {
    padding-top: 0.65rem;
  }

  .hero--home .stat-line strong {
    font-size: 0.92rem;
  }

  .hero--home .stat-line span {
    font-size: 0.8rem;
    line-height: 1.38;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .stat-line {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 430px) {
  .hero--home .hero-shell {
    min-height: 760px;
  }

  .hero--home .hero-copy {
    transform: scale(0.7);
    width: calc(100% / 0.7);
  }

  .hero--home .hero-shell__grid {
    padding-top: 1.6rem;
  }
}
