:root {
  --bg: #091014;
  --bg-soft: #0e171c;
  --surface: rgba(14, 21, 25, 0.78);
  --surface-strong: rgba(16, 24, 29, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5efe2;
  --muted: #b6c0c3;
  --accent: #d2a445;
  --accent-strong: #f0c368;
  --accent-soft: rgba(240, 195, 104, 0.22);
  --panel: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --max-width: 1180px;
  --header-height: 88px;
  --pointer-x: 50vw;
  --pointer-y: 18vh;
  --progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 84% 12%, rgba(59, 114, 168, 0.12), transparent 20%),
    radial-gradient(circle at top left, rgba(210, 164, 69, 0.08), transparent 28%),
    linear-gradient(180deg, #0b1216 0%, #071015 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.22;
  animation: gridDrift 36s linear infinite;
}

body::after {
  inset: -12%;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(240, 195, 104, 0.12), transparent 16%),
    radial-gradient(circle at 82% 22%, rgba(76, 124, 168, 0.1), transparent 22%);
  filter: blur(14px);
  opacity: 0.85;
}

body.nav-open {
  overflow: hidden;
}

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

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

figure,
h1,
h2,
h3,
p {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 0.94;
}

h1 {
  font-size: clamp(3.35rem, 7vw, 6.6rem);
  max-width: 9.6ch;
}

h2 {
  font-size: clamp(2.25rem, 4.1vw, 4.1rem);
  max-width: 12ch;
}

h3 {
  font-size: clamp(1.32rem, 2vw, 1.9rem);
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

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

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform-origin: 0 50%;
  transform: scaleX(var(--progress));
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.7));
  box-shadow: 0 0 20px rgba(240, 195, 104, 0.36);
  z-index: 60;
}

.site-header {
  width: min(calc(100% - 2rem), var(--max-width));
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.2rem;
  background: rgba(8, 13, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 195, 104, 0.95), transparent);
  opacity: 0.5;
  animation: scanSweep 8s linear infinite;
}

.site-header.is-scrolled {
  background: rgba(7, 12, 15, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  max-width: min(58vw, 19.5rem);
}

.brand-logo {
  width: 100%;
  height: auto;
  max-height: 2.45rem;
  border-radius: 0.42rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a,
.eyebrow,
.hero-kicker,
.card-index,
.service-outline,
.protocol-step span,
.process-step span,
.hero-ledger-card span,
.signal-row span,
.page-hero-sidebar span,
.footer-title,
.contact-link,
.label-chips span {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.2rem 0;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-strong), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a.is-active::after,
.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.nav-cta {
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 0.34rem 0;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero,
.page-hero {
  position: relative;
  min-height: clamp(42rem, 100svh, 62rem);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: clip;
}

.page-hero {
  min-height: clamp(38rem, 76svh, 54rem);
}

.hero-media,
.page-hero-media,
.hero-grid,
.hero-scanline,
.hero-beam,
.hero-orb {
  position: absolute;
}

.hero-media,
.page-hero-media {
  inset: 0;
  z-index: -4;
}

.hero-media::after,
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 10, 0.92) 0%, rgba(5, 8, 10, 0.76) 34%, rgba(5, 8, 10, 0.4) 64%, rgba(5, 8, 10, 0.7) 100%),
    linear-gradient(180deg, rgba(5, 8, 10, 0.14), rgba(5, 8, 10, 0.68));
}

.hero-media img,
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05) brightness(0.72);
  transform: scale(1.07);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.page-hero-media img {
  object-position: center 32%;
}

.hero-grid {
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.26));
}

.hero-scanline {
  inset: -20% 0 auto;
  height: 22rem;
  z-index: -1;
  background: linear-gradient(180deg, rgba(240, 195, 104, 0.08), transparent 62%);
  opacity: 0.7;
  animation: beamSweep 8s ease-in-out infinite;
}

.hero-orb {
  border-radius: 999px;
  filter: blur(20px);
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}

.hero-orb-a {
  width: 26rem;
  height: 26rem;
  left: -8rem;
  top: 14rem;
  z-index: -3;
  background: radial-gradient(circle, rgba(240, 195, 104, 0.22), transparent 62%);
}

.hero-orb-b {
  width: 20rem;
  height: 20rem;
  right: 6%;
  bottom: 8%;
  z-index: -3;
  background: radial-gradient(circle, rgba(92, 142, 185, 0.18), transparent 60%);
}

.hero-beam {
  width: 8rem;
  height: 150%;
  top: -18%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent);
  opacity: 0.12;
  transform: skewX(-28deg);
  z-index: -1;
}

.hero-beam-a {
  right: 28%;
}

.hero-beam-b {
  right: 14%;
  width: 4rem;
}

.hero-inner,
.page-hero-inner,
.section,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.hero-inner,
.page-hero-inner {
  padding: calc(var(--header-height) + 5rem) 0 3.4rem;
  display: grid;
  gap: 1.8rem;
}

.page-hero-inner {
  min-height: 100%;
  align-content: end;
}

.hero-copy,
.page-hero-copy,
.cta-copy,
.copy-stack {
  display: grid;
  gap: 1rem;
}

.hero-copy,
.page-hero-copy {
  max-width: 45rem;
}

.hero-kicker {
  color: var(--accent-strong);
  font-size: clamp(1rem, 1.8vw, 1.24rem);
}

.hero-lead,
.page-hero-copy p {
  max-width: 42rem;
  font-size: 1.07rem;
  color: rgba(245, 239, 226, 0.82);
}

.hero-lead a,
.inline-link,
.text-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.label-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.label-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.86rem;
}

.hero-actions,
.cta-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  border: 1px solid transparent;
}

.button-primary {
  background: var(--accent);
  color: #121517;
  box-shadow: 0 14px 36px rgba(210, 164, 69, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.hero-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0.8rem;
}

.hero-ledger-card,
.signal-panel,
.capability-card,
.principle-card,
.environment-panel,
.contact-card,
.page-hero-sidebar,
.protocol-step,
.process-step,
.faq-item,
.service-block,
.operations-frame,
.media-frame,
.inline-media {
  position: relative;
  overflow: hidden;
  background: var(--panel), rgba(6, 10, 12, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-ledger-card::before,
.signal-panel::before,
.capability-card::before,
.principle-card::before,
.environment-panel::before,
.contact-card::before,
.page-hero-sidebar::before,
.protocol-step::before,
.process-step::before,
.faq-item::before,
.service-block::before,
.operations-frame::before,
.media-frame::before,
.inline-media::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 195, 104, 0.92), transparent);
  opacity: 0.7;
  animation: scanSweep 8s linear infinite;
}

.hero-ledger-card {
  padding: 1.2rem 1.15rem;
}

.hero-ledger-card span {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--accent-strong);
  font-size: 0.95rem;
}

.section {
  padding: 7rem 0;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 3rem;
  max-width: 52rem;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 0.96rem;
}

.split-intro,
.media-split,
.cta-shell,
.contact-grid,
.page-hero-inner {
  display: grid;
  gap: 2.4rem;
}

.split-intro,
.media-split,
.cta-shell,
.contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.signal-panel {
  padding: 1.35rem;
}

.signal-row + .signal-row {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.signal-row span {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--accent-strong);
  font-size: 0.95rem;
}

.capability-grid,
.principle-grid,
.environment-grid,
.process-grid {
  display: grid;
  gap: 1.2rem;
}

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

.capability-card,
.principle-card,
.environment-panel,
.process-step {
  padding: 1.35rem;
  min-height: 100%;
}

.capability-card,
.principle-card,
.environment-panel,
.process-step,
.protocol-step,
.contact-card,
.service-block {
  display: grid;
  gap: 0.8rem;
}

.card-index,
.service-outline,
.protocol-step span,
.process-step span {
  color: var(--accent-strong);
  font-size: 1rem;
}

.text-link {
  width: fit-content;
  font-weight: 700;
}

.media-frame,
.inline-media {
  padding: 1rem;
}

.media-frame img,
.inline-media img {
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.media-frame img {
  aspect-ratio: 1.18 / 1;
}

.inline-media img {
  aspect-ratio: 1.45 / 1;
}

.media-frame figcaption,
.inline-media figcaption {
  margin-top: 0.85rem;
  color: rgba(182, 192, 195, 0.82);
  font-size: 0.93rem;
}

.copy-stack {
  align-content: center;
}

.bullet-stack {
  display: grid;
  gap: 0.9rem;
}

.bullet-stack li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--text);
}

.bullet-stack li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(240, 195, 104, 0.38);
}

.operations-frame {
  padding: 1.4rem;
}

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

.protocol-step {
  padding: 1.2rem;
}

.faq-preview-grid,
.faq-board {
  display: grid;
  gap: 1rem;
}

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

.faq-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.faq-column {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 1.15rem 1.2rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  padding-right: 2rem;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0.2rem;
  top: 0.68rem;
  width: 0.75rem;
  height: 2px;
  background: var(--accent-strong);
  transition: transform 180ms ease;
}

.faq-item summary::after {
  transform: rotate(90deg);
}

.faq-item[open] summary::after {
  transform: rotate(0deg);
}

.faq-item p {
  margin-top: 0.95rem;
}

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

.service-block {
  grid-template-columns: 5rem minmax(0, 1fr);
  padding: 1.35rem;
}

.service-block-copy {
  display: grid;
  gap: 0.95rem;
}

.service-outline {
  font-size: 1.12rem;
}

.page-hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.5fr);
}

.page-hero-sidebar {
  align-self: end;
  padding: 1.25rem;
}

.page-hero-sidebar span {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--accent-strong);
  font-size: 0.95rem;
}

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

.contact-card {
  padding: 1.35rem;
}

.contact-link {
  color: var(--text);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}

.brief-list {
  display: grid;
  gap: 0.75rem;
}

.brief-list span {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.brief-list strong {
  color: var(--text);
}

.cta-section {
  padding-top: 6rem;
  padding-bottom: 8rem;
}

.cta-shell {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2.3rem;
}

.site-footer {
  padding-bottom: 2.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.15fr 1fr;
  gap: 1.4rem;
  padding: 1.8rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-block {
  display: grid;
  gap: 0.8rem;
}

.footer-title {
  color: var(--text);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
}

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

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

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

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

@keyframes heroDrift {
  from {
    transform: scale(1.07) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.1) translate3d(-0.8rem, -0.4rem, 0);
  }
}

@keyframes gridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-36px, -36px, 0);
  }
}

@keyframes scanSweep {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes beamSweep {
  0%,
  100% {
    transform: translateY(-20%) scaleY(0.85);
    opacity: 0.3;
  }

  50% {
    transform: translateY(130%) scaleY(1);
    opacity: 0.65;
  }
}

@media (max-width: 1080px) {
  .capability-grid,
  .principle-grid,
  .environment-grid,
  .process-grid,
  .protocol-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero-inner,
  .split-intro,
  .media-split,
  .cta-shell,
  .contact-grid,
  .hero-ledger,
  .faq-board,
  .faq-preview-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-block;
    order: 2;
  }

  .nav-cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    display: grid;
    gap: 0.2rem;
    padding: 0.5rem;
    background: rgba(8, 13, 16, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

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

  .site-nav a {
    padding: 0.9rem 0.7rem;
  }

  .site-header.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .brand {
    max-width: min(68vw, 18rem);
  }

  .brand-logo {
    max-height: 2.18rem;
  }

  .hero,
  .page-hero {
    min-height: auto;
  }

  .hero-inner,
  .page-hero-inner {
    padding-top: calc(var(--header-height) + 4.6rem);
    padding-bottom: 3.2rem;
  }

  .hero-media::after,
  .page-hero-media::after {
    background:
      linear-gradient(180deg, rgba(5, 8, 10, 0.52) 0%, rgba(5, 8, 10, 0.74) 34%, rgba(5, 8, 10, 0.9) 100%),
      linear-gradient(90deg, rgba(5, 8, 10, 0.82), rgba(5, 8, 10, 0.38));
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 78px;
  }

  .section,
  .cta-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .hero-actions,
  .cta-actions,
  .section-actions {
    flex-direction: column;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .capability-grid,
  .principle-grid,
  .environment-grid,
  .process-grid,
  .protocol-grid {
    grid-template-columns: 1fr;
  }

  .service-block {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 8ch;
  }

  .brand {
    max-width: min(72vw, 15rem);
  }

  .brand-logo {
    max-height: 2rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
