:root {
  --ink: #071827;
  --navy: #09243b;
  --navy-2: #0c3454;
  --blue: #2ca7df;
  --blue-soft: #dff4ff;
  --orange: #f39a2f;
  --paper: #f7fafc;
  --white: #ffffff;
  --muted: #6a7a8b;
  --line: rgba(9, 36, 59, 0.14);
  --shadow: 0 18px 48px rgba(7, 24, 39, 0.14);
  --display:
    "Avenir Next", "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  --body:
    "Optima", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  width: min(1240px, calc(100% - 36px));
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 24, 39, 0.86), rgba(9, 52, 84, 0.68)),
    rgba(7, 24, 39, 0.54);
  color: var(--white);
  box-shadow: 0 24px 70px rgba(7, 24, 39, 0.22);
  backdrop-filter: blur(22px);
  overflow: visible;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(44, 167, 223, 0.18), transparent 28%, rgba(243, 154, 47, 0.14)),
    linear-gradient(135deg, transparent 0 62%, rgba(255, 255, 255, 0.08) 62% 63%, transparent 63%);
}

.header-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 14px;
}

.site-header.is-scrolled {
  border-color: rgba(9, 36, 59, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 253, 0.92)),
    rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 270px;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 14px 32px rgba(7, 24, 39, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.34) inset;
}

.brand-mark img {
  display: block;
  width: 58px;
  height: 58px;
}

.brand-text {
  display: block;
}

.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: currentColor;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.22em;
  opacity: 0.76;
  text-transform: uppercase;
}

.nav-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 26px rgba(7, 24, 39, 0.12) inset;
}

.site-header.is-scrolled .main-nav {
  border-color: rgba(9, 36, 59, 0.12);
  background: rgba(9, 36, 59, 0.05);
}

.main-nav a {
  position: relative;
  border-radius: 6px;
  padding: 13px 15px;
  color: currentColor;
  font-size: 14px;
  font-weight: 840;
  opacity: 0.9;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.main-nav a::after {
  position: absolute;
  right: 16px;
  bottom: 7px;
  left: 16px;
  height: 2px;
  border-radius: 99px;
  content: "";
  background: linear-gradient(90deg, var(--orange), var(--blue));
  opacity: 0;
  transform: scaleX(0.45);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
  transform: translateY(-1px);
}

.site-header.is-scrolled .main-nav a:hover {
  background: rgba(44, 167, 223, 0.12);
}

.main-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 13px 18px;
  background: var(--orange);
  color: #071827;
  font-size: 14px;
  font-weight: 920;
  white-space: nowrap;
  box-shadow: 0 16px 36px rgba(243, 154, 47, 0.3);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(243, 154, 47, 0.38);
}

.nav-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
  color: currentColor;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-light {
  background: var(--white);
}

.hero {
  position: relative;
  display: grid;
  min-height: 780px;
  overflow: hidden;
  padding: 150px max(28px, calc((100vw - 1180px) / 2)) 70px;
  isolation: isolate;
}

.hero-bg,
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 24, 39, 0.92) 0%, rgba(7, 24, 39, 0.72) 34%, rgba(7, 24, 39, 0.08) 78%),
    linear-gradient(0deg, rgba(7, 24, 39, 0.8) 0%, transparent 32%),
    radial-gradient(circle at 12% 24%, rgba(44, 167, 223, 0.25), transparent 28%);
}

.hero::after,
.process::after,
.contact::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
}

.hero-content {
  width: min(650px, 100%);
  align-self: center;
  padding-top: 42px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 860;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  font-size: clamp(52px, 7vw, 108px);
}

h2 {
  font-size: clamp(34px, 5vw, 68px);
}

h3 {
  font-size: clamp(23px, 2.5vw, 34px);
}

.hero-copy {
  max-width: 650px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.55vw, 21px);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 13px 18px;
  font-weight: 820;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

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

.button.primary {
  border-color: var(--orange);
  background: var(--orange);
  color: #071827;
  box-shadow: 0 14px 30px rgba(243, 154, 47, 0.28);
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: end;
  width: min(960px, 100%);
  gap: 1px;
  margin-top: 70px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.hero-metrics div {
  min-height: 110px;
  padding: 24px;
  background: rgba(7, 24, 39, 0.32);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--white);
  font-family: var(--display);
  font-size: 27px;
}

.hero-metrics span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.intro,
.services,
.portfolio,
.faq {
  padding: 110px max(28px, calc((100vw - 1180px) / 2));
}

.intro {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 52px;
  background:
    linear-gradient(90deg, rgba(44, 167, 223, 0.1), transparent 42%),
    var(--paper);
}

.section-label {
  color: var(--orange);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.intro h2 {
  max-width: 940px;
  color: var(--navy);
}

.intro p {
  max-width: 790px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.section-heading {
  width: min(820px, 100%);
  margin-bottom: 42px;
}

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

.services {
  background: var(--white);
}

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

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(7, 24, 39, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 54px rgba(7, 24, 39, 0.14);
}

.service-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.card-body {
  padding: 26px;
}

.card-body span,
.step span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--orange);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.card-body h3 {
  color: var(--navy);
  font-size: 28px;
}

.card-body p,
.portfolio-head p,
.split-content p,
.about-panel p,
.step p,
details p,
.contact-content p {
  color: var(--muted);
  font-size: 17px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 64px;
  align-items: center;
  padding: 120px max(28px, calc((100vw - 1180px) / 2));
}

.split-image {
  position: relative;
  min-height: 500px;
}

.split-image::before {
  position: absolute;
  inset: 24px -20px -20px 24px;
  z-index: 0;
  border: 1px solid rgba(44, 167, 223, 0.35);
  border-radius: 8px;
  content: "";
}

.split-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 500px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.split-content h2 {
  color: var(--navy);
}

.split-content > p {
  margin-top: 24px;
}

.academy-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.academy-list div {
  border-left: 3px solid var(--orange);
  padding: 13px 0 13px 18px;
}

.academy-list strong,
.academy-list span {
  display: block;
}

.academy-list strong {
  color: var(--navy);
  font-family: var(--display);
  font-size: 19px;
}

.academy-list span {
  margin-top: 4px;
  color: var(--muted);
}

.process {
  position: relative;
  overflow: hidden;
  padding: 115px max(28px, calc((100vw - 1180px) / 2));
  isolation: isolate;
}

.process .section-heading h2,
.process .step h3 {
  color: var(--white);
}

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

.step {
  min-height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}

.step p {
  color: rgba(255, 255, 255, 0.7);
}

.portfolio {
  background:
    linear-gradient(180deg, var(--paper), #eef6fb 50%, var(--white));
}

.portfolio-head {
  width: min(870px, 100%);
}

.portfolio-head h2 {
  color: var(--navy);
}

.portfolio-showcase {
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portfolio-showcase img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.portfolio-tags span {
  border: 1px solid rgba(9, 36, 59, 0.18);
  border-radius: 6px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy);
  font-size: 14px;
  font-weight: 760;
}

.about {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  padding: 120px max(28px, calc((100vw - 1180px) / 2));
}

.about-bg {
  position: absolute;
  inset: 0;
}

.about-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(247, 250, 252, 0.98), rgba(247, 250, 252, 0.86) 42%, rgba(247, 250, 252, 0.1) 76%),
    linear-gradient(180deg, rgba(247, 250, 252, 0.08), rgba(247, 250, 252, 0.68));
}

.about-panel {
  position: relative;
  width: min(620px, 100%);
}

.about-panel h2 {
  color: var(--navy);
}

.about-panel p {
  margin-top: 20px;
}

.faq {
  background: var(--white);
}

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

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
  background: var(--paper);
}

summary {
  cursor: pointer;
  color: var(--navy);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 850;
}

details p {
  margin: 16px 0 0;
}

.contact {
  position: relative;
  overflow: hidden;
  padding: 120px max(28px, calc((100vw - 1180px) / 2));
  isolation: isolate;
}

.contact::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 24, 39, 0.9), rgba(7, 24, 39, 0.66) 44%, rgba(7, 24, 39, 0.08)),
    linear-gradient(0deg, rgba(7, 24, 39, 0.74), rgba(7, 24, 39, 0.2));
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 0.75fr);
  gap: 52px;
  align-items: start;
}

.contact-content h2 {
  color: var(--white);
}

.contact-content > p {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
}

.contact-form {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 22px;
  background: rgba(7, 24, 39, 0.42);
  backdrop-filter: blur(20px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 13px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(243, 154, 47, 0.2);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px max(28px, calc((100vw - 1180px) / 2));
  background: #071827;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--white);
  font-family: var(--display);
  font-size: 18px;
}

.site-footer a {
  color: var(--orange);
  font-weight: 780;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

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

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

.delay-3 {
  transition-delay: 0.24s;
}

@media (max-width: 1080px) {
  .service-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .split-image,
  .split-image img {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .header-shell {
    min-height: 72px;
    padding: 8px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-mark,
  .brand-mark img {
    width: 52px;
    height: 52px;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand small {
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .nav-cluster {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(9, 36, 59, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

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

  .main-nav {
    display: grid;
    gap: 4px;
    min-height: 0;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .main-nav a {
    padding: 13px 12px;
  }

  .nav-cta {
    width: 100%;
  }

  .hero {
    min-height: 740px;
    padding: 135px 18px 44px;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(7, 24, 39, 0.72), rgba(7, 24, 39, 0.72)),
      linear-gradient(90deg, rgba(7, 24, 39, 0.86), rgba(7, 24, 39, 0.28));
  }

  .hero-content {
    padding-top: 20px;
  }

  .hero-copy,
  .intro p,
  .contact-content > p {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-metrics,
  .intro,
  .service-grid,
  .steps,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    min-height: auto;
  }

  .intro,
  .services,
  .portfolio,
  .faq,
  .process,
  .split,
  .about,
  .contact {
    padding-right: 18px;
    padding-left: 18px;
  }

  .intro,
  .services,
  .portfolio,
  .faq {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .split,
  .process,
  .about,
  .contact {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .split-image,
  .split-image img {
    min-height: 330px;
  }

  .split-image::before {
    inset: 14px -10px -10px 14px;
  }

  .portfolio-showcase img {
    aspect-ratio: 4 / 3;
  }

  .about {
    min-height: 700px;
  }

  .about-bg::after {
    background: linear-gradient(180deg, rgba(247, 250, 252, 0.98), rgba(247, 250, 252, 0.86) 58%, rgba(247, 250, 252, 0.36));
  }

  .contact-form {
    padding: 16px;
  }

  .site-footer {
    display: grid;
    padding: 26px 18px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

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