:root {
  --ink: #0a1018;
  --surface: #17232f;
  --light-text: #edf5fb;
  --muted: #c0cdd8;
  --line: #3c5163;
  --blue: #80def9;
  --metal-sheen: linear-gradient(150deg, #87a2b852, #27374755 31%, #0d1520b0 70%, #40779573);
}

body {
  background:
    linear-gradient(165deg, #0a1018 8%, #141f2bce 35%, #0a1018ca 75%, #16273aee),
    url("./assets/nexatech-metal.webp") center top / 100% auto repeat-y,
    #0a1018;
}
.site-header {
  background: linear-gradient(180deg, #1c2b39fc, #0a1018f5);
  border-bottom-color: #7c96ad69;
  box-shadow: 0 10px 25px #0004;
}
.wordmark { text-shadow: 0 2px 8px #000; }
.header-contact { background: linear-gradient(135deg, #526d8638, #151e29); }
.button-primary { background: linear-gradient(145deg, #b5f2ff, #61caee 68%, #46a5d1); box-shadow: inset 0 1px #f2fcff, 0 8px 22px #040c14a0; }

.hero-metal {
  --hero-art-height: clamp(31rem, 54vw, 58rem);
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 0;
  min-height: max(43rem, calc(100svh - 5rem));
  padding: 0;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background: #111a23;
}
.hero-artwork { position: absolute; inset: 0 0 auto; height: var(--hero-art-height); z-index: -2; pointer-events: none; mask-image: linear-gradient(#000 72%, transparent 100%); }
.hero-artwork img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; transform: translateY(var(--cover-shift, 0)); }
.hero-metal::after {
  position: absolute;
  content: "";
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #0b121b 1%, #0b121bf4 13%, #0b121bd4 25%, #0b121b50 49%, transparent 70%);
  pointer-events: none;
}
.hero-metal-inner { padding-block: clamp(23rem, 35vw, 39rem) clamp(3rem, 6vw, 6.5rem); }
.hero-metal .hero-copy { width: min(100%, 52rem); }
.hero-metal h1 { font-size: clamp(3.05rem, 5.45vw, 6rem); max-width: 17ch; }
.hero-metal h1 em { display: block; text-shadow: 0 3px 24px #041523; }
.hero-metal .hero-summary { color: #d8e5ed; margin-block: 1.15rem 1.65rem; }
.hero-metal .hero-copy .kicker { margin-bottom: 1rem; }

.company, .founder, .work, .services {
  color-scheme: dark;
  color: var(--light-text);
  background: linear-gradient(135deg, #24364555, #0c141c92 54%, #17263096);
  border-top: 1px solid #819cb250;
  box-shadow: inset 0 1px #bfe5fe10, inset 0 24px 42px -30px #000d;
}
.founder { background: linear-gradient(110deg, #101e2af0, #283e5255); }
.company .kicker, .founder .kicker, .company h2 em, .founder h2 em { color: var(--blue); }
.company .company-copy > p:not(.eyebrow), .founder .founder-story p, .company figcaption, .founder figcaption { color: var(--muted); }
.timeline { border-color: #6593ad; }
.timeline li::before { background: var(--blue); box-shadow: 0 0 0 3px #112331, 0 0 12px #44b4e8a0; }
.company-photo .media-frame, .founder-photo .media-frame {
  border: 1px solid #8ba7ba80;
  border-radius: .75rem .1rem .75rem .1rem;
  box-shadow: 0 23px 55px #0008, inset 0 1px #a4cbe0;
}
.company-photo img, .founder-photo img { filter: saturate(.82); }

.services { background: linear-gradient(136deg, #1f354aa0, #0a141ddb 60%, #193e5778); }
.service-station { position: sticky; top: 7.2rem; }
.service-index { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.6rem; }
.service-index a {
  display: inline-flex;
  border: 1px solid #7790a778;
  border-radius: .3rem;
  padding: .48rem .7rem;
  background: #111d27;
  font-size: .94rem;
  font-weight: 800;
  text-decoration: none;
}
.service-index a:hover, .service-index a[aria-current="location"] { color: #e1f9ff; border-color: var(--blue); background: #1a4257; }
.service-journey { position: relative; min-width: 0; padding-left: clamp(1.15rem, 4vw, 3.35rem); }
.service-track { position: absolute; inset: 0 auto 0 0; width: clamp(1rem, 3.6vw, 2.9rem); height: 100%; overflow: visible; fill: none; pointer-events: none; }
.track-base, .track-live { stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.track-base { stroke: #8ba9bc61; }
.track-live { stroke: var(--blue); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--track-progress, 1)); filter: drop-shadow(0 0 5px #70daf2); }
.service-list { display: grid; gap: clamp(.82rem, 2.5vw, 1.7rem); }
.service-list article, .service-list article:last-child {
  min-height: 10.5rem;
  padding: clamp(1.05rem, 2.7vw, 2.2rem);
  border: 1px solid #526a7c;
  border-left: 2px solid #7390a3;
  border-radius: .55rem 0 .55rem 0;
  background: var(--metal-sheen), #14202b;
  box-shadow: inset 0 1px #d1e8ff36, 0 10px 26px #0005;
}
.service-list article:is(.panel-current, :hover, :target) {
  border-color: #6ed4f1;
  box-shadow: inset 0 1px #dbf7ff6b, inset 6px 0 24px -10px #7edaff, 0 11px 26px #0009;
}
.service-list p { color: #cbd8e3; }
.has-motion .service-list article[data-reveal]:not(.is-visible):not(:focus-within) { opacity: .58; transform: translateY(1rem); }
.project { background: var(--metal-sheen), #14202b; border-color: #657d908c; border-radius: .65rem .1rem .65rem .1rem; overflow: hidden; box-shadow: 0 16px 32px #0006; }
.contact { background: linear-gradient(125deg, #203d52c4, #101f2bd9 67%, #1c3b53); }
.documents-section { background: #0d1821c9; }
.site-footer { background: #0a1018db; }

@supports (animation-timeline: view()) and (animation-range: entry 5% cover 35%) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-metal { view-timeline-name: --metal-cover; view-timeline-axis: block; }
    .hero-artwork img {
      animation: cover-depth auto linear both;
      animation-timeline: --metal-cover;
      animation-range: exit 0% exit 90%;
    }
    .has-motion .project-image img {
      animation: panel-image auto linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 45%;
    }
  }
}
@keyframes cover-depth { from { transform: translateY(0) scale(1); } to { transform: translateY(5.25rem) scale(1.045); } }
@keyframes panel-image { from { transform: scale(1.12); } to { transform: scale(1); } }

@media (max-width: 780px) {
  body { background-size: auto, auto 50rem, auto; }
  .hero-metal { --hero-art-height: clamp(15.75rem, 62vw, 27.5rem); min-height: 0; }
  .hero-artwork img { object-position: 50% 48%; }
  .hero-metal-inner { padding-block: calc(var(--hero-art-height) - 2rem) 3rem; }
  .hero-metal::after { background: linear-gradient(180deg, transparent 18%, #0b121b 48%); }
  .hero-metal .hero-copy h1 { max-width: 16ch; }
  .hero-metal .hero-summary { margin-block: 1rem 1.35rem; }
  .service-station { position: static; }
  .service-list article, .service-list article:last-child { min-height: 8.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .track-live { stroke-dashoffset: 0; }
  .hero-artwork img { transform: none; }
}
