:root {
  --blue: #0047ab;
  --blue-mid: #003a8c;
  --blue-deep: #001f4d;
  --ink: #07111f;
  --orange: #ff6a00;
  --orange-soft: #ff8f3d;
  --fog: #e8eef8;
  --paper: #f4f6fa;
  --white: #ffffff;
  --mute: rgba(7, 17, 31, 0.62);
  --display: "Sora", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —— Top bar —— */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.75rem);
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.top.is-on {
  background: rgba(7, 17, 31, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.brand img {
  height: 40px;
  width: auto;
  border-radius: 4px;
  background: #fff;
  padding: 0.2rem 0.35rem;
}

.top nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.top nav a:hover {
  color: var(--orange-soft);
}

.pill {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--orange);
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pill:hover {
  background: var(--orange-soft);
  transform: translateY(-1px);
}

@media (min-width: 860px) {
  .top nav {
    display: flex;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 35%;
  transform: scale(1.08);
  animation: drift 22s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7, 17, 31, 0.94) 0%, rgba(0, 31, 77, 0.72) 42%, rgba(0, 71, 171, 0.35) 70%, rgba(255, 106, 0, 0.22) 100%),
    linear-gradient(0deg, rgba(7, 17, 31, 0.82) 0%, transparent 50%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  padding: clamp(6.5rem, 16vh, 9rem) clamp(1.25rem, 5vw, 3.5rem) clamp(3.2rem, 8vh, 5rem);
}

.hero-mark {
  width: min(300px, 72vw);
  background: #fff;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  animation: up 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kicker {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-soft);
}

.kicker.dark {
  color: var(--orange);
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.15rem, 5.6vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  animation: up 0.85s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lede {
  margin: 0 0 1.7rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  animation: up 0.85s 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: up 0.85s 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.solid {
  background: var(--orange);
  color: #fff;
}

.btn.solid:hover {
  background: var(--orange-soft);
}

.btn.line {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn.line:hover {
  border-color: #fff;
}

.btn.wide {
  width: 100%;
  margin-top: 1.5rem;
}

.proof {
  background: linear-gradient(100deg, var(--blue-deep), var(--blue) 55%, #0a3d8f);
  color: #fff;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 5vw, 3.5rem);
}

.proof-grid {
  display: grid;
  gap: 1.25rem 1.5rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 900px) {
  .proof-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.proof-grid strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--orange-soft);
  margin-bottom: 0.35rem;
}

.proof-grid span {
  display: block;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 16rem;
  line-height: 1.35;
}

.inline-link {
  color: var(--orange);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 106, 0, 0.45);
}

.inline-link:hover {
  color: var(--blue);
}

/* —— Expertise —— */
.expertise {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 5vw, 3.5rem);
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(0, 71, 171, 0.08), transparent 60%),
    radial-gradient(700px 380px at 100% 30%, rgba(255, 106, 0, 0.07), transparent 55%),
    var(--white);
}

.expertise-intro {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.expertise-intro h2,
.infra-copy h2,
.services-head h2,
.field-copy h2,
.contact-panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--blue-deep);
}

.expertise-intro p:last-child {
  margin: 0;
  color: var(--mute);
  font-size: 1.08rem;
  max-width: 38rem;
}

.capability {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(0, 71, 171, 0.14);
}

.capability article {
  display: grid;
  gap: 0.45rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid rgba(0, 71, 171, 0.14);
}

@media (min-width: 900px) {
  .capability {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }

  .capability article:nth-child(odd) {
    padding-right: 1rem;
  }
}

.capability h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--blue);
}

.capability p {
  margin: 0;
  color: var(--mute);
  max-width: 36rem;
}

/* —— Field (CLI) —— */
.field {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.field-media {
  position: absolute;
  inset: 0;
}

.field-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.field-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 17, 31, 0.92) 0%, rgba(7, 17, 31, 0.55) 55%, rgba(7, 17, 31, 0.25) 100%);
}

.field-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 5vw, 3.5rem);
}

.field-copy h2 {
  color: #fff;
}

.field-copy p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

/* —— Infra split —— */
.infra {
  display: grid;
  background: var(--ink);
  color: #fff;
}

.infra-visual {
  min-height: 320px;
  background: #0b1628;
}

.infra-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 640px;
  object-fit: cover;
  object-position: center 30%;
}

.infra-copy {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.infra-copy h2 {
  color: #fff;
}

.infra-copy > p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
}

.infra-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.infra-copy li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.infra-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--orange);
}

.infra-copy li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 960px) {
  .infra {
    grid-template-columns: 1.15fr 1fr;
    min-height: 560px;
  }

  .infra-visual,
  .infra-visual img {
    min-height: 100%;
    max-height: none;
    height: 100%;
  }
}

/* —— Services —— */
.services {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 5vw, 3.5rem);
  background:
    linear-gradient(180deg, var(--fog), var(--paper));
}

.services-head {
  max-width: 560px;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.svc {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(0, 71, 171, 0.16);
}

.svc li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(0, 71, 171, 0.16);
  align-items: start;
}

.svc span {
  font-family: var(--display);
  font-weight: 800;
  color: var(--orange);
  padding-top: 0.2rem;
}

.svc h3 {
  margin: 0 0 0.3rem;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--blue-deep);
}

.svc p {
  margin: 0;
  color: var(--mute);
  max-width: 40rem;
}

/* —— Contact —— */
.contact {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.25rem, 5vw, 3.5rem);
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(255, 106, 0, 0.18), transparent 55%),
    linear-gradient(155deg, var(--blue-deep), var(--blue-mid) 55%, #0a2f6e);
  color: #fff;
}

.contact-panel {
  max-width: 560px;
}

.contact-logo {
  width: min(240px, 70vw);
  background: #fff;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  margin-bottom: 1.4rem;
}

.contact-panel h2 {
  color: #fff;
}

.contact-panel > p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.78);
}

.contact-links a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  transition: color 0.2s ease;
}

.contact-links a:last-of-type {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 0.25rem;
}

.contact-links a:hover {
  color: var(--orange-soft);
}

.contact-links em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.contact-links strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem clamp(1.25rem, 5vw, 3.5rem) 1.75rem;
  background: #040913;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  font-family: var(--display);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(-1.2%, -1.2%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg img,
  .hero-mark,
  .hero h1,
  .lede,
  .cta-row,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
