:root {
  color-scheme: light;
  --ocean: #061826;
  --ocean-2: #0d3040;
  --graphite: #101820;
  --paper: #f4fbff;
  --mist: #e8f2f2;
  --sand: #c8a86a;
  --cyan: #23d7f5;
  --green: #2ee6a6;
  --coral: #e98763;
  --ink: #10222c;
  --muted: #5d6c72;
  --line: rgba(16, 35, 44, 0.14);
  --line-dark: rgba(244, 251, 255, 0.18);
  --max: 1180px;
  --display: "Segoe UI", "Space Grotesk", system-ui, sans-serif;
  --body: Inter, "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", "IBM Plex Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 82px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.58;
}

body.nav-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  max-width: 930px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7.2vw, 7.4rem);
}

h2 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 4.8vw, 4.9rem);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.18rem, 2vw, 1.65rem);
}

p {
  color: inherit;
  font-size: clamp(1rem, 1.25vw, 1.13rem);
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 100;
  top: 14px;
  left: 14px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--paper);
  color: var(--ocean);
}

.section-dark {
  color: var(--paper);
  background: var(--ocean);
}

.site-header {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--paper);
  background: linear-gradient(180deg, rgba(6, 24, 38, 0.86), rgba(6, 24, 38, 0));
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid var(--line-dark);
  background: rgba(6, 24, 38, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(35, 215, 245, 0.72);
  color: var(--cyan);
  font-family: var(--mono);
  font-weight: 700;
}

.brand-text {
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  font-size: 0.92rem;
}

.brand small {
  color: rgba(244, 251, 255, 0.64);
  font-size: 0.74rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  padding: 8px 10px;
  color: rgba(244, 251, 255, 0.76);
  font-size: 0.88rem;
}

.site-nav a:hover {
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line-dark);
  color: var(--paper);
  background: rgba(244, 251, 255, 0.08);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: end;
  overflow: hidden;
  padding: 132px clamp(20px, 6vw, 84px) 74px;
}

.hero picture,
.hero img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05);
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 24, 38, 0.98) 0%, rgba(6, 24, 38, 0.88) 38%, rgba(6, 24, 38, 0.2) 82%),
    linear-gradient(0deg, rgba(6, 24, 38, 0.94) 0%, rgba(6, 24, 38, 0.15) 48%);
}

.signal-line {
  position: absolute;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--green), transparent);
  box-shadow: 0 0 24px rgba(35, 215, 245, 0.72);
  transform-origin: left center;
}

.signal-a {
  right: 14%;
  bottom: 30%;
  width: 34vw;
  rotate: -16deg;
  animation: signalPulse 5s ease-in-out infinite;
}

.signal-b {
  right: 28%;
  bottom: 52%;
  width: 24vw;
  rotate: 12deg;
  animation: signalPulse 6s ease-in-out 650ms infinite;
}

@keyframes signalPulse {
  0%,
  100% {
    opacity: 0.16;
    transform: scaleX(0.22);
  }
  50% {
    opacity: 0.82;
    transform: scaleX(1);
  }
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(960px, 100%);
}

.lead,
.hero-copy p {
  max-width: 760px;
  color: rgba(244, 251, 255, 0.84);
  font-size: clamp(1.12rem, 1.72vw, 1.42rem);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #087b91;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(244, 251, 255, 0.28);
  font-weight: 700;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: var(--ocean);
}

.button.ghost {
  color: var(--paper);
  background: rgba(244, 251, 255, 0.08);
}

.thesis,
.data-band,
.comparison {
  padding: clamp(86px, 10vw, 150px) clamp(20px, 6vw, 84px);
}

.thesis {
  background:
    linear-gradient(90deg, rgba(200, 168, 106, 0.16), transparent 42%),
    var(--paper);
}

.section-copy {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-copy.compact {
  max-width: 900px;
}

.section-copy p {
  max-width: 760px;
  color: var(--muted);
}

.section-dark .section-copy p,
.section-dark .gallery-strip p,
.section-dark .closing-copy p {
  color: rgba(244, 251, 255, 0.74);
}

.split,
.cost {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  padding: clamp(86px, 10vw, 150px) clamp(20px, 6vw, 84px);
  background: var(--mist);
}

.split.image-left,
.cost {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  background: var(--paper);
}

.media,
.wide-media,
.gallery-strip img,
.territory-layout picture,
.closing picture {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 28px 90px rgba(6, 24, 38, 0.14);
}

.media img,
.wide-media img,
.gallery-strip img,
.territory-layout img,
.closing img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media img,
.wide-media img,
.gallery-strip img,
.territory-layout img {
  cursor: zoom-in;
}

.media img:focus-visible,
.wide-media img:focus-visible,
.gallery-strip img:focus-visible,
.territory-layout img:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.rail-list {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.rail-list article {
  display: grid;
  grid-template-columns: 46px 170px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.rail-list span,
.process span,
.comparison-grid span {
  color: #087b91;
  font-family: var(--mono);
  font-weight: 700;
}

.rail-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.solution {
  padding: clamp(86px, 10vw, 150px) clamp(20px, 6vw, 84px);
  background:
    radial-gradient(circle at 18% 22%, rgba(35, 215, 245, 0.16), transparent 34%),
    linear-gradient(135deg, var(--ocean), var(--graphite));
}

.process {
  display: grid;
  width: min(var(--max), 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 46px auto;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.process article {
  min-height: 230px;
  padding: 26px;
  background: rgba(244, 251, 255, 0.07);
}

.process span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(35, 215, 245, 0.5);
  color: var(--cyan);
}

.process p {
  color: rgba(244, 251, 255, 0.72);
}

.wide-media {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.data-band {
  background:
    linear-gradient(180deg, rgba(46, 230, 166, 0.08), transparent 55%),
    var(--paper);
}

.metric-grid {
  display: grid;
  width: min(var(--max), 100%);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 46px auto 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.metric-grid article {
  min-height: 190px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.64);
}

.metric-grid span,
.metric-grid small {
  display: block;
  color: var(--muted);
}

.metric-grid strong {
  display: block;
  margin: 24px 0 4px;
  color: var(--ocean);
  font-family: var(--mono);
  font-size: clamp(2.2rem, 4.2vw, 4.3rem);
  line-height: 0.92;
  overflow-wrap: anywhere;
}

.note {
  width: min(860px, 100%);
  margin: 28px auto 0;
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin-top: 28px;
}

.feature-list span,
.callout {
  border-left: 3px solid var(--sand);
  padding: 12px 0 12px 16px;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(200, 168, 106, 0.16), transparent);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: clamp(86px, 10vw, 150px) clamp(20px, 6vw, 84px);
  background:
    linear-gradient(135deg, var(--graphite), var(--ocean-2));
}

.gallery-strip article {
  min-width: 0;
}

.gallery-strip img {
  margin-bottom: 20px;
}

.gallery-strip p {
  margin-bottom: 0;
}

.red-section {
  background:
    linear-gradient(90deg, rgba(233, 135, 99, 0.1), transparent 42%),
    var(--paper);
}

.callout {
  margin-top: 28px;
}

.callout p {
  margin: 8px 0 0;
}

.comparison-grid {
  display: grid;
  width: min(var(--max), 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 46px auto 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.comparison-grid article {
  min-height: 260px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.68);
}

.comparison-grid article.featured {
  background:
    linear-gradient(180deg, rgba(35, 215, 245, 0.15), rgba(46, 230, 166, 0.12)),
    rgba(255, 255, 255, 0.7);
}

.comparison-grid p {
  color: var(--muted);
}

.territory {
  padding: clamp(86px, 10vw, 150px) clamp(20px, 6vw, 84px);
  background:
    linear-gradient(135deg, rgba(200, 168, 106, 0.12), transparent 45%),
    var(--ocean);
}

.territory-layout {
  display: grid;
  width: min(var(--max), 100%);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  margin: 46px auto 0;
}

.checks {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.checks article {
  display: grid;
  gap: 6px;
  padding: 20px;
  background: rgba(244, 251, 255, 0.07);
}

.checks span {
  color: rgba(244, 251, 255, 0.7);
}

.cost {
  background: var(--mist);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  max-width: 760px;
  margin-top: 32px;
  border: 1px solid var(--line);
}

.timeline span {
  min-height: 70px;
  padding: 14px;
  border-right: 1px solid var(--line);
  color: var(--ocean);
  font-family: var(--mono);
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.55);
}

.timeline span:last-child {
  border-right: 0;
}

.closing {
  position: relative;
  display: grid;
  min-height: 760px;
  align-items: end;
  overflow: hidden;
  padding: clamp(86px, 10vw, 150px) clamp(20px, 6vw, 84px);
}

.closing picture,
.closing picture::after {
  position: absolute;
  inset: 0;
}

.closing picture {
  border: 0;
  box-shadow: none;
}

.closing picture::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(6, 24, 38, 0.96), rgba(6, 24, 38, 0.48)),
    linear-gradient(0deg, rgba(6, 24, 38, 0.96), transparent 50%);
}

.closing img {
  height: 100%;
  object-fit: cover;
}

.closing-copy {
  position: relative;
  z-index: 2;
  width: min(860px, 100%);
}

.closing-copy p {
  max-width: 720px;
  color: rgba(244, 251, 255, 0.78);
}

.image-modal[hidden] {
  display: none;
}

.image-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 15, 0.78);
  backdrop-filter: blur(10px);
}

.image-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 86vw);
  max-height: 86vh;
  overflow: hidden;
  border: 1px solid rgba(244, 251, 255, 0.18);
  background: rgba(6, 24, 38, 0.96);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.42);
}

.image-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(244, 251, 255, 0.14);
  color: var(--paper);
}

.image-modal-bar h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.image-modal-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(244, 251, 255, 0.22);
  color: var(--paper);
  background: rgba(244, 251, 255, 0.08);
  cursor: pointer;
}

.image-modal-close span {
  font-size: 1.6rem;
  line-height: 1;
}

.image-modal figure {
  margin: 0;
}

.image-modal img {
  width: 100%;
  max-height: calc(86vh - 114px);
  object-fit: contain;
  background: rgba(244, 251, 255, 0.04);
}

.image-modal figcaption {
  padding: 12px 16px 16px;
  color: rgba(244, 251, 255, 0.72);
  font-size: 0.95rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 84px);
  color: rgba(244, 251, 255, 0.78);
  background: #020a0f;
}

.site-footer span {
  color: rgba(244, 251, 255, 0.58);
}

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

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

@media (max-width: 1120px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 940px) {
  .menu-toggle {
    position: relative;
    z-index: 62;
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 61;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    transform: translateY(-100%);
    background: rgba(6, 24, 38, 0.96);
    transition: transform 180ms ease;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
  }

  .site-nav a {
    font-size: 1.35rem;
  }

  .split,
  .split.image-left,
  .cost,
  .territory-layout {
    grid-template-columns: 1fr;
  }

  .image-left .media,
  .cost .media {
    order: 2;
  }

  .process,
  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .rail-list article {
    grid-template-columns: 42px 1fr;
  }

  .rail-list article p {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: clamp(2.75rem, 14vw, 4.6rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .brand {
    max-width: calc(100vw - 92px);
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 820px;
    padding-top: 112px;
  }

  .hero-shade {
    background: rgba(6, 24, 38, 0.78);
  }

  .signal-line {
    display: none;
  }

  .actions,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

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

  .metric-grid article,
  .comparison-grid article {
    min-height: auto;
  }

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

  .timeline span {
    min-height: 54px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline span:last-child {
    border-bottom: 0;
  }

  .image-modal {
    padding: 18px;
  }

  .image-modal-panel {
    width: min(100%, 680px);
    max-height: 82vh;
  }

  .image-modal img {
    max-height: calc(82vh - 130px);
  }
}

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

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