:root {
  --ink: #101417;
  --graphite: #151b1f;
  --graphite-2: #20282d;
  --paper: #f4f7f5;
  --paper-2: #e8eee9;
  --muted: #64706b;
  --teal: #18b8a6;
  --teal-dark: #0f766e;
  --amber: #d99b35;
  --steel: #8aa2ad;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 24px 80px rgba(8, 15, 20, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

img,
canvas {
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max));
  min-height: 64px;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(14, 20, 23, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #08201d;
  background: linear-gradient(135deg, #8ff3e7, #dcb262);
  border-radius: 7px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  line-height: 1.2;
}

.brand small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.nav-links a,
.nav-action,
.button {
  cursor: pointer;
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.nav-action {
  padding: 12px 16px;
  color: #06211e;
  background: var(--teal);
  border-radius: 7px;
  font-weight: 750;
  font-size: 14px;
}

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

.hero {
  position: relative;
  min-height: 96svh;
  padding: 118px 24px 54px;
  color: var(--white);
  background: #070d10;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(6, 12, 15, 0.96) 0%, rgba(6, 12, 15, 0.78) 31%, rgba(6, 12, 15, 0.2) 62%, rgba(6, 12, 15, 0.02) 100%),
    url("./assets/hero-systems-workspace.png") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 120px;
  content: "";
  background: linear-gradient(180deg, rgba(244, 247, 245, 0), var(--paper));
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: calc(96svh - 172px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(42px, 4.8vw, 60px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 750px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 1.7vw, 20px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #06211e;
  background: linear-gradient(135deg, #58eadb, #d9b35d);
}

.button.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.24);
}

.button.ghost--light {
  color: var(--white);
}

.role-triad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin-top: 22px;
}

.role-card {
  position: relative;
  min-height: 118px;
  padding: 16px;
  overflow: hidden;
  background: rgba(13, 21, 24, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  backdrop-filter: blur(16px);
}

.role-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 20% 0%, rgba(24, 184, 166, 0.28), transparent 34%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.role-card:hover::before {
  opacity: 1;
}

.role-icon {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(24, 184, 166, 0.95), rgba(217, 155, 53, 0.95));
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.04);
}

.role-card--analyst .role-icon {
  clip-path: polygon(50% 0, 100% 42%, 79% 100%, 21% 100%, 0 42%);
}

.role-card--lead .role-icon {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.role-card--engineer .role-icon {
  border-radius: 50%;
}

.role-card h2,
.role-card p,
.capability h3,
.capability p {
  position: relative;
  z-index: 1;
}

.role-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.2;
}

.role-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 26px;
  left: 50%;
  width: 28px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 16px;
  transform: translateX(-50%);
}

.scroll-cue::after {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  content: "";
  background: var(--teal);
  border-radius: 999px;
  animation: scrollPulse 1.6s infinite;
  transform: translateX(-50%);
}

.band {
  background: var(--graphite);
  color: var(--white);
}

.metrics {
  position: relative;
  padding: 34px 24px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.metric {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.metric strong {
  display: block;
  color: #71f2e7;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: 104px 24px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 64px;
  align-items: center;
}

.split--reverse {
  grid-template-columns: minmax(320px, 1.1fr) minmax(0, 0.9fr);
}

.section-copy h2,
.section-heading h2,
.education-copy h2,
.contact h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
}

.section-copy p:not(.eyebrow),
.contact p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.fusion-map {
  position: relative;
  min-height: 460px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(232, 238, 233, 0.92)),
    linear-gradient(90deg, rgba(16, 20, 23, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(16, 20, 23, 0.07) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  border: 1px solid rgba(16, 20, 23, 0.08);
  box-shadow: var(--shadow);
}

.fusion-map::before,
.fusion-map::after {
  position: absolute;
  inset: 12%;
  content: "";
  border: 1px solid rgba(24, 184, 166, 0.26);
  border-radius: 50%;
  animation: orbit 14s linear infinite;
}

.fusion-map::after {
  inset: 22%;
  border-color: rgba(217, 155, 53, 0.28);
  animation-duration: 18s;
  animation-direction: reverse;
}

.fusion-node,
.fusion-core {
  position: absolute;
  display: grid;
  align-content: center;
  min-width: 156px;
  min-height: 92px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(16, 20, 23, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(14, 26, 30, 0.12);
}

.fusion-node span,
.fusion-core strong {
  color: var(--ink);
  font-weight: 850;
}

.fusion-node small,
.fusion-core span {
  color: var(--muted);
  font-size: 13px;
}

.node-business {
  top: 34px;
  left: 36px;
}

.node-analysis {
  top: 52px;
  right: 40px;
}

.node-development {
  right: 54px;
  bottom: 46px;
}

.node-engineering {
  bottom: 54px;
  left: 42px;
}

.fusion-core {
  top: 50%;
  left: 50%;
  min-width: 210px;
  min-height: 118px;
  color: var(--white);
  background: linear-gradient(135deg, var(--graphite), #0f3a38);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%);
}

.fusion-core strong,
.fusion-core span {
  color: var(--white);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.capability {
  position: relative;
  min-height: 214px;
  padding: 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(16, 20, 23, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(17, 27, 30, 0.08);
}

.capability::after {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.capability:hover::after {
  transform: scaleX(1);
}

.capability-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  place-items: center;
  color: var(--teal-dark);
  background: #e3f7f3;
  border-radius: 8px;
}

.capability-icon::before,
.capability-icon::after {
  content: "";
}

.icon-doc::before {
  width: 18px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 3px;
  box-shadow: inset 0 7px 0 rgba(15, 118, 110, 0.16);
}

.icon-api::before {
  width: 22px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.icon-db::before {
  width: 24px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50% / 28%;
}

.icon-team::before {
  width: 24px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 12px 12px 6px 6px;
}

.icon-quality::before {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 6px -6px 0 rgba(217, 155, 53, 0.3);
}

.icon-hardware::before {
  width: 24px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow:
    -5px 5px 0 -2px currentColor,
    5px 5px 0 -2px currentColor;
}

.capability h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.capability p {
  margin: 0;
  color: var(--muted);
}

.experience {
  color: var(--white);
  background: var(--graphite);
}

.experience .eyebrow,
.contact .eyebrow {
  color: #71f2e7;
}

.experience .section-heading h2 {
  color: var(--white);
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 190px;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, var(--teal), rgba(255, 255, 255, 0.14), var(--amber));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 44px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.timeline-item::before {
  position: absolute;
  top: 35px;
  left: 184px;
  width: 14px;
  height: 14px;
  content: "";
  background: var(--teal);
  border: 4px solid var(--graphite);
  border-radius: 50%;
}

.timeline-item time {
  color: #71f2e7;
  font-weight: 800;
}

.timeline-item h3 {
  margin: 0 0 4px;
  font-size: 25px;
}

.timeline-item p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.timeline-item .role-name {
  margin-top: 0;
  color: var(--white);
  font-weight: 750;
}

.result {
  display: inline-flex;
  margin-top: 14px;
  color: #f5c775;
  font-weight: 750;
}

.skill-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.skill-panel span,
.format-list span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--graphite);
  background: var(--white);
  border: 1px solid rgba(16, 20, 23, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(17, 27, 30, 0.07);
  font-weight: 720;
}

.education {
  padding: 74px 24px;
}

.education-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.education-copy h2 {
  max-width: 480px;
  color: var(--white);
}

.education-item {
  min-height: 174px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.education-item strong,
.education-item span {
  display: block;
}

.education-item strong {
  font-size: 20px;
}

.education-item span {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
}

.format-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.format-list span {
  min-height: 74px;
  padding: 16px 18px;
}

.contact {
  padding: 110px 24px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(12, 18, 21, 0.94), rgba(12, 48, 45, 0.9)),
    url("./assets/hero-systems-workspace.png") center 63% / cover no-repeat;
}

.contact-inner {
  max-width: 860px;
}

.contact p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
}

.message-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 10, 0.72);
  backdrop-filter: blur(12px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(720px, calc(100svh - 44px));
  padding: 30px;
  overflow: auto;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 242, 238, 0.96)),
    linear-gradient(90deg, rgba(16, 20, 23, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(16, 20, 23, 0.05) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.4);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--graphite);
  background: rgba(16, 20, 23, 0.06);
  border-radius: 8px;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(16, 20, 23, 0.1);
  transform: translateY(-1px);
}

.modal-dialog h2 {
  max-width: calc(100% - 48px);
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
}

.modal-recipient {
  margin: 12px 0 0;
  color: var(--muted);
}

.message-form {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.message-form label {
  color: var(--graphite);
  font-weight: 800;
}

.message-form input,
.message-form textarea {
  width: 100%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 20, 23, 0.14);
  border-radius: 8px;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.message-form input {
  min-height: 48px;
  padding: 0 14px;
}

.message-form textarea {
  min-height: 168px;
  padding: 14px;
  resize: vertical;
}

.message-form input:focus,
.message-form textarea:focus {
  background: var(--white);
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(24, 184, 166, 0.16);
}

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

.modal-cancel {
  color: var(--graphite) !important;
  border-color: rgba(16, 20, 23, 0.16) !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

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

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

@keyframes scrollPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

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

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

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

  .hero-content {
    min-height: auto;
  }

  .role-triad,
  .metrics-grid,
  .capability-grid,
  .education-grid,
  .format-list,
  .split,
  .split--reverse {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .split--reverse {
    gap: 42px;
  }

  .education-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .topbar {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
  }

  .brand small,
  .nav-action {
    display: none;
  }

  .hero {
    padding: 116px 18px 54px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(6, 12, 15, 0.98) 0%, rgba(6, 12, 15, 0.86) 48%, rgba(6, 12, 15, 0.48) 100%),
      url("./assets/hero-systems-workspace.png") 62% center / cover no-repeat;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-lead,
  .section-copy p:not(.eyebrow),
  .contact p {
    font-size: 16px;
  }

  .role-triad,
  .metrics-grid,
  .capability-grid,
  .education-grid,
  .format-list,
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }

  .role-card {
    min-height: auto;
  }

  .section {
    padding: 74px 18px;
  }

  .metrics,
  .education,
  .contact {
    padding-right: 18px;
    padding-left: 18px;
  }

  .fusion-map {
    min-height: 520px;
  }

  .fusion-node,
  .fusion-core {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: calc(100% - 32px);
    min-width: 0;
    margin: 16px;
    transform: none;
  }

  .fusion-map::before,
  .fusion-map::after {
    display: none;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 22px 24px 34px;
  }

  .timeline-item::before {
    top: 30px;
    left: 9px;
  }

  .contact h2,
  .section-copy h2,
  .section-heading h2,
  .education-copy h2 {
    font-size: 34px;
  }

  .message-modal {
    align-items: end;
    padding: 12px;
  }

  .modal-dialog {
    width: 100%;
    max-height: calc(100svh - 24px);
    padding: 24px 18px 18px;
  }

  .modal-actions .button {
    width: 100%;
  }
}
