:root {
  --ink: #071015;
  --ink-2: #102620;
  --paper: #f2efe7;
  --muted: #a8b0ad;
  --line: rgba(242, 239, 231, 0.14);
  --signal: #4d9ed1;
  --signal-action: #2f6f9f;
  --signal-soft: rgba(77, 158, 209, 0.2);
  --green: #123a31;
  --green-deep: #0b201b;
  --copper: #c57c45;
  --steel: #75827f;
  --max: 1160px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 760;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(7, 16, 21, 0.9), rgba(7, 16, 21, 0));
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(242, 239, 231, 0.1);
  background: rgba(7, 16, 21, 0.88);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 720;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(47, 111, 159, 0.56);
  background: rgba(7, 16, 21, 0.76);
  color: var(--signal);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.brand-name {
  font-size: 0.98rem;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
  color: rgba(242, 239, 231, 0.74);
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--signal);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 1px;
  background: var(--copper);
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.nav-links a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.scroll-depth {
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  right: clamp(20px, 4vw, 56px);
  bottom: 0;
  height: 12px;
  pointer-events: none;
}

.scroll-depth-track,
.scroll-depth-remaining {
  position: absolute;
  left: var(--scroll-start, 0px);
  right: auto;
  top: 6px;
  height: 1px;
}

.scroll-depth-track {
  width: var(--scroll-track, 100%);
  background: rgba(242, 239, 231, 0.12);
}

.scroll-depth-remaining {
  width: var(--scroll-progress, 0px);
  background: linear-gradient(90deg, rgba(197, 124, 69, 0.7), rgba(77, 158, 209, 0.86));
}

.scroll-depth-marker {
  position: absolute;
  top: 3px;
  left: var(--scroll-marker, var(--scroll-start, 0px));
  width: 7px;
  height: 7px;
  border: 1px solid var(--copper);
  background: var(--ink);
  transform: translateX(-50%);
  box-shadow: 0 0 16px rgba(197, 124, 69, 0.42);
}

.language-switch {
  display: inline-flex;
  border: 1px solid rgba(242, 239, 231, 0.18);
  background: rgba(7, 16, 21, 0.7);
}

.language-switch button {
  width: 42px;
  height: 36px;
  border: 0;
  border-right: 1px solid rgba(242, 239, 231, 0.14);
  background: transparent;
  color: rgba(242, 239, 231, 0.62);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 760;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.language-switch button:last-child {
  border-right: 0;
}

.language-switch button[aria-pressed="true"] {
  background: var(--signal-action);
  color: #f7fbff;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 84svh;
  overflow: hidden;
  padding: 112px clamp(22px, 6vw, 76px) 72px;
  border-bottom: 1px solid var(--line);
}

#network-canvas,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#network-canvas {
  z-index: 0;
  background:
    radial-gradient(circle at 70% 38%, rgba(47, 111, 159, 0.18), transparent 30%),
    linear-gradient(120deg, #071015 0%, #0b201b 56%, #123a31 100%);
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 16, 21, 0.96) 0%, rgba(7, 16, 21, 0.72) 45%, rgba(7, 16, 21, 0.04) 100%),
    linear-gradient(180deg, rgba(7, 16, 21, 0.24), rgba(7, 16, 21, 0.58));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  animation: heroIn 520ms ease-out both;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--signal);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  max-width: 760px;
  font-size: 4.85rem;
  line-height: 1;
  letter-spacing: 0;
}

.hero-line {
  margin-bottom: 16px;
  color: var(--copper);
  font-size: 1.55rem;
  font-weight: 680;
}

.hero-copy {
  max-width: 620px;
  color: rgba(242, 239, 231, 0.84);
  font-size: 1.06rem;
}

.response-note {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(242, 239, 231, 0.66);
  font-size: 0.95rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(242, 239, 231, 0.18);
  font-weight: 720;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.button.primary {
  background: var(--signal-action);
  color: #f7fbff;
  border-color: var(--signal-action);
}

.button.secondary {
  background: rgba(242, 239, 231, 0.06);
  color: var(--paper);
}

.button.secondary:hover {
  border-color: rgba(197, 124, 69, 0.62);
}

.hero-motto {
  position: absolute;
  right: clamp(22px, 4vw, 54px);
  bottom: 26px;
  z-index: 2;
  margin: 0;
  color: rgba(242, 239, 231, 0.62);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.section-pad {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 112px) clamp(22px, 4vw, 44px);
}

.intro-grid,
.proof-layout,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: start;
}

h2 {
  margin-bottom: 28px;
  font-size: 3.7rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--paper);
  font-size: 1.24rem;
  letter-spacing: 0;
}

.intro p,
.proof-copy p,
.contact-panel p {
  color: rgba(242, 239, 231, 0.76);
  font-size: 1.12rem;
}

.services {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.offers,
.cases,
.safety {
  border-top: 1px solid var(--line);
}

.signal {
  border-top: 1px solid var(--line);
}

.signal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: start;
}

.signal-layout p {
  max-width: 620px;
  color: rgba(242, 239, 231, 0.76);
  font-size: 1.12rem;
}

.pulse-panel {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border: 1px solid rgba(242, 239, 231, 0.16);
  background:
    linear-gradient(135deg, rgba(16, 38, 32, 0.92), rgba(7, 16, 21, 0.94)),
    var(--green-deep);
}

.pulse-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(47, 111, 159, 0.16), transparent);
  opacity: 0.55;
  transform: translateY(-100%);
  animation: pulseScan 5.2s linear infinite;
}

.pulse-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

#pulse-state {
  color: var(--copper);
}

.pulse-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.pulse-tabs button {
  min-width: 0;
  min-height: 48px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid rgba(242, 239, 231, 0.12);
  background: rgba(7, 16, 21, 0.22);
  color: rgba(242, 239, 231, 0.64);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.pulse-tabs button:last-child {
  border-right: 0;
}

.pulse-tabs button.is-active,
.pulse-tabs button:hover {
  background: var(--signal-action);
  color: #f7fbff;
}

#pulse-console {
  min-height: 210px;
  margin: 0;
  padding: 22px;
  overflow: hidden;
  color: rgba(242, 239, 231, 0.78);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.offer-list,
.case-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

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

.offer-list article,
.case-list article {
  min-height: 310px;
  padding: 28px 24px;
  background: var(--green-deep);
}

.offer-list span {
  display: block;
  margin-bottom: 42px;
  color: var(--signal);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
}

.offer-list p,
.case-list p,
.safety-list {
  color: rgba(242, 239, 231, 0.72);
}

.offer-list small {
  display: block;
  margin-top: 24px;
  color: var(--copper);
  font-size: 0.86rem;
  line-height: 1.45;
}

.case-list article {
  min-height: 360px;
}

.case-list p {
  margin-bottom: 16px;
}

.case-list strong {
  color: var(--paper);
}

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 34px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.inline-cta p {
  max-width: 650px;
  margin: 0;
  color: rgba(242, 239, 231, 0.72);
}

.service-list article {
  min-height: 300px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  transition:
    background 220ms ease,
    transform 220ms ease;
}

.service-list article:last-child {
  border-right: 0;
}

.service-list article:hover {
  background: rgba(18, 58, 49, 0.38);
  transform: translateY(-4px);
}

.service-list span {
  display: block;
  margin-bottom: 52px;
  color: var(--signal);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
}

.service-list p,
.process-list p,
.quote-row blockquote,
.quote-row figcaption {
  color: rgba(242, 239, 231, 0.7);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
}

.metrics div {
  min-height: 126px;
  min-width: 0;
  padding: 22px clamp(18px, 2vw, 24px);
  background: var(--green-deep);
}

.metrics strong {
  display: block;
  color: var(--signal);
  font-size: 2rem;
  line-height: 1;
  white-space: nowrap;
}

.metrics span {
  display: block;
  margin-top: 12px;
  color: rgba(242, 239, 231, 0.66);
  font-size: 0.9rem;
}

.process {
  border-top: 1px solid var(--line);
}

.safety-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: start;
}

.safety-list {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 1.08rem;
}

.safety-list li {
  margin-bottom: 14px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--line);
}

.process-list li {
  min-height: 230px;
  padding: 28px;
  background: var(--ink-2);
}

.process-list span {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--copper);
  font-size: 1.15rem;
  font-weight: 760;
}

.quotes {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.quote-source {
  margin: -14px 0 24px;
}

figure {
  min-height: 270px;
  padding: 30px;
  margin: 0;
  background: var(--green-deep);
}

blockquote {
  min-height: 130px;
  margin: 0 0 26px;
  color: var(--paper);
  font-size: 1.18rem;
  line-height: 1.35;
}

figcaption {
  font-size: 0.9rem;
}

.contact {
  max-width: var(--max);
}

.contact-panel {
  padding-top: 8px;
}

.contact-panel .button {
  margin: 18px 0 22px;
}

.text-link {
  display: block;
  color: var(--muted);
  transition: color 180ms ease;
}

.text-link:hover,
.site-footer a:hover {
  color: var(--signal);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(22px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: rgba(242, 239, 231, 0.56);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.mobile-contact {
  display: none;
}

@keyframes heroIn {
  from {
    opacity: 0.74;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseScan {
  to {
    transform: translateY(100%);
  }
}

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

@media (max-width: 920px) {
  h1 {
    font-size: 3.8rem;
  }

  h2 {
    font-size: 3rem;
  }

  .hero-line {
    font-size: 1.42rem;
  }

  .nav-links {
    display: none;
  }

  .scroll-depth {
    display: none;
  }

  .header-actions {
    gap: 12px;
  }

  .intro-grid,
  .signal-layout,
  .proof-layout,
  .safety-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-list,
  .offer-list,
  .case-list,
  .process-list,
  .quote-row {
    grid-template-columns: 1fr;
  }

  .service-list article,
  .offer-list article,
  .case-list article {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-list article:last-child,
  .offer-list article:last-child,
  .case-list article:last-child {
    border-bottom: 0;
  }

  .service-list span,
  .offer-list span,
  .process-list span {
    margin-bottom: 30px;
  }

  .inline-cta {
    align-items: stretch;
    flex-direction: column;
  }

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

  .pulse-panel {
    position: relative;
    top: auto;
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: 76px;
  }

  .hero {
    min-height: 84svh;
    padding-top: 96px;
    padding-bottom: 118px;
  }

  h1 {
    font-size: 2.95rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-motto {
    right: auto;
    left: 24px;
    bottom: 24px;
    z-index: 2;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .language-switch button {
    width: 38px;
    height: 34px;
  }

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

  .pulse-tabs button {
    border-bottom: 1px solid rgba(242, 239, 231, 0.12);
  }

  .response-note {
    display: none;
  }

  #pulse-console {
    min-height: 180px;
  }

  .quote-row figure:nth-child(n + 4) {
    display: none;
  }

  .mobile-contact {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid var(--signal-action);
    background: rgba(47, 111, 159, 0.96);
    color: #f7fbff;
    font-weight: 760;
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .mobile-contact.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.has-mobile-contact {
    padding-bottom: 76px;
  }
}
