:root {
  --ink: oklch(0.24 0.015 210);
  --ink-2: oklch(0.32 0.024 210);
  --paper: oklch(0.98 0.008 91);
  --paper-soft: oklch(0.94 0.018 88);
  --teal: oklch(0.68 0.135 194);
  --teal-deep: oklch(0.38 0.07 203);
  --cyan: oklch(0.84 0.143 203);
  --gold: oklch(0.76 0.125 75);
  --tan: oklch(0.67 0.075 45);
  --olive: oklch(0.69 0.062 104);
  --line: oklch(0.83 0.022 91);
  --shadow: 0 24px 60px oklch(0.22 0.02 210 / 0.16);
  --font-display: "Gelasio", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 18px;
  color: oklch(0.98 0.006 91);
  background: oklch(0.22 0.018 210 / 0.84);
  border: 1px solid oklch(0.9 0.02 91 / 0.22);
  border-radius: 8px;
  backdrop-filter: blur(18px);
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: oklch(0.98 0.008 91 / 0.94);
  box-shadow: 0 16px 40px oklch(0.24 0.015 210 / 0.12);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: oklch(0.19 0.018 210);
  background: var(--gold);
  border-radius: 6px;
  font-size: 0.84rem;
}

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

.footer-brand .brand-copy {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-sub {
  margin-top: 3px;
  color: oklch(0.72 0.014 91);
  font-size: 0.66rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a {
  padding: 12px 14px;
  border-radius: 6px;
}

.site-nav a:hover {
  background: oklch(0.78 0.08 193 / 0.18);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  overflow: hidden;
  padding: clamp(140px, 18vw, 210px) clamp(20px, 5vw, 72px) clamp(34px, 5vw, 64px);
  color: oklch(0.98 0.006 91);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroDrift 18s ease-out forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, oklch(0.2 0.022 210 / 0.94) 0%, oklch(0.26 0.05 202 / 0.78) 42%, oklch(0.49 0.08 76 / 0.38) 100%),
    linear-gradient(0deg, oklch(0.16 0.015 210 / 0.88), transparent 58%);
  animation: overlaySettle 1400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 980px;
}

.reveal-group > * {
  opacity: 0;
  transform: translateY(22px);
  animation: heroReveal 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-group > :nth-child(1) {
  animation-delay: 160ms;
}

.reveal-group > :nth-child(2) {
  animation-delay: 280ms;
}

.reveal-group > :nth-child(3) {
  animation-delay: 420ms;
}

.reveal-group > :nth-child(4) {
  animation-delay: 560ms;
}

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

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

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

h1 {
  max-width: 920px;
  margin-bottom: 28px;
  font-size: clamp(3.25rem, 8vw, 7.9rem);
  font-weight: 700;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5vw, 5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.18;
}

.hero-lede {
  max-width: 720px;
  color: oklch(0.92 0.018 91);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  color: oklch(0.19 0.016 210);
  background: var(--gold);
}

.button.secondary {
  color: inherit;
  border-color: oklch(0.96 0.012 91 / 0.42);
  background: oklch(0.98 0.008 91 / 0.09);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(780px, 100%);
  margin-top: clamp(54px, 8vw, 120px);
  background: oklch(0.92 0.018 91 / 0.2);
  border: 1px solid oklch(0.92 0.018 91 / 0.24);
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  animation: panelArrive 900ms cubic-bezier(0.16, 1, 0.3, 1) 760ms forwards;
}

.hero-panel div {
  position: relative;
  min-height: 132px;
  padding: 22px;
  background: oklch(0.18 0.016 210 / 0.42);
  overflow: hidden;
}

.hero-panel div::after {
  content: "";
  position: absolute;
  inset: auto 18px 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-panel.is-visible div::after {
  transform: scaleX(1);
}

.hero-panel.is-visible div:nth-child(2)::after {
  transition-delay: 120ms;
}

.hero-panel.is-visible div:nth-child(3)::after {
  transition-delay: 240ms;
}

.hero-panel span {
  display: block;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
}

.hero-panel p {
  margin: 10px 0 0;
  color: oklch(0.91 0.016 91);
  font-size: 0.92rem;
}

.logos {
  padding: clamp(40px, 6vw, 68px) 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.logos-eyebrow {
  margin: 0 0 clamp(22px, 3vw, 34px);
  padding: 0 clamp(20px, 5vw, 72px);
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.logos-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logos-track {
  display: flex;
  width: max-content;
  animation: logosScroll 42s linear infinite;
}

.logos-viewport:hover .logos-track {
  animation-play-state: paused;
}

.logos-row {
  display: flex;
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
  padding: 0;
  margin: 0;
  padding-right: clamp(36px, 6vw, 72px);
  list-style: none;
}

.logos-row li {
  flex: 0 0 auto;
}

.logos-row img {
  width: auto;
  height: clamp(46px, 6vw, 74px);
  object-fit: contain;
  transition: transform 220ms ease;
}

.logos-row img:hover {
  transform: scale(1.06);
}

@keyframes logosScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.section-pad {
  padding: clamp(76px, 10vw, 140px) clamp(20px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: end;
  background: var(--paper);
}

.intro-copy h2 {
  max-width: 900px;
}

.intro-grid {
  display: grid;
  gap: 24px;
  color: var(--ink-2);
  font-size: 1.05rem;
}

.section-heading {
  max-width: 880px;
  margin-bottom: clamp(34px, 6vw, 72px);
}

.section-heading.compact {
  max-width: 720px;
}

.expertise {
  background: oklch(0.21 0.02 210);
  color: oklch(0.97 0.008 91);
}

.practice-board {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-auto-rows: minmax(230px, auto);
  gap: 14px;
}

.practice {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  padding: clamp(22px, 4vw, 38px);
  color: oklch(0.95 0.012 91);
  background: oklch(0.31 0.033 205);
  border: 1px solid oklch(0.78 0.06 193 / 0.16);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease;
}

.primary-practice {
  grid-row: span 2;
  background:
    linear-gradient(145deg, oklch(0.41 0.092 198), oklch(0.23 0.024 210) 72%),
    var(--teal-deep);
}

.practice:hover {
  border-color: oklch(0.84 0.143 203 / 0.48);
  transform: translateY(-4px);
}

.infographic.is-visible .practice,
.infographic.is-visible.process-steps li {
  opacity: 1;
  transform: translateY(0);
}

.infographic.is-visible .practice:nth-child(2),
.infographic.is-visible.process-steps li:nth-child(2) {
  transition-delay: 110ms;
}

.infographic.is-visible .practice:nth-child(3),
.infographic.is-visible.process-steps li:nth-child(3) {
  transition-delay: 220ms;
}

.infographic.is-visible .practice:nth-child(4),
.infographic.is-visible.process-steps li:nth-child(4) {
  transition-delay: 330ms;
}

.practice-index {
  color: var(--gold);
  font-weight: 900;
}

.practice h3 {
  margin: auto 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4.6rem);
}

.practice p {
  max-width: 54ch;
  margin-bottom: 0;
  color: oklch(0.9 0.016 91);
}

.clients {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: center;
  background: var(--paper-soft);
}

.client-image {
  min-height: 560px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.client-image img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.client-copy h2 {
  margin-bottom: 36px;
}

.client-list {
  display: grid;
  gap: 22px;
}

.client-list div {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.client-list p {
  max-width: 64ch;
  margin-bottom: 0;
  color: var(--ink-2);
}

.process {
  background: var(--paper);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.process-steps li {
  min-height: 310px;
  padding: clamp(22px, 3vw, 34px);
  background: oklch(0.98 0.008 91);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.process-steps span {
  display: inline-block;
  margin-bottom: 72px;
  color: var(--teal-deep);
  font-weight: 900;
}

.process-steps p {
  color: var(--ink-2);
}

.reach {
  padding: clamp(80px, 10vw, 150px) clamp(20px, 5vw, 72px);
  color: oklch(0.98 0.006 91);
  background:
    linear-gradient(135deg, oklch(0.26 0.032 210 / 0.94), oklch(0.36 0.08 193 / 0.82)),
    url("assets/delivery-infrastructure.png") center / cover;
}

.reach-inner {
  max-width: 980px;
}

.reach-inner p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 24px;
  color: oklch(0.92 0.016 91);
  font-size: 1.1rem;
}

.region-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.region-row span {
  padding: 10px 14px;
  border: 1px solid oklch(0.9 0.02 91 / 0.28);
  border-radius: 999px;
  background: oklch(0.98 0.006 91 / 0.1);
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 88px);
  background: oklch(0.19 0.016 210);
  color: oklch(0.98 0.006 91);
}

.contact-copy {
  align-self: start;
  position: sticky;
  top: 110px;
}

.contact-copy p:not(.eyebrow) {
  max-width: 58ch;
  margin-top: 24px;
  color: oklch(0.88 0.018 91);
}

.contact-note {
  display: grid;
  gap: 8px;
  max-width: 520px;
  margin-top: 36px;
  padding: 24px;
  color: oklch(0.94 0.014 91);
  background: oklch(0.28 0.03 205);
  border: 1px solid oklch(0.72 0.07 193 / 0.24);
  border-radius: 8px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(22px, 4vw, 38px);
  color: var(--ink);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  font-size: 0.83rem;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 13px;
  color: var(--ink);
  background: oklch(0.96 0.01 91);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid oklch(0.84 0.143 203 / 0.32);
  border-color: var(--teal);
}

.full {
  grid-column: 1 / -1;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--teal-deep);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 38px clamp(20px, 5vw, 72px);
  color: oklch(0.9 0.014 91);
  background: oklch(0.16 0.012 210);
}

.site-footer p {
  max-width: 520px;
  margin: 16px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 18px;
  font-weight: 800;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(320px, 100%);
    padding: 8px;
    color: var(--ink);
    background: var(--paper);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .hero-panel,
  .intro,
  .clients,
  .contact {
    grid-template-columns: 1fr;
  }

  .practice-board,
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .primary-practice {
    grid-row: span 1;
  }

  .contact-copy {
    position: static;
  }
}

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

  .brand-copy {
    max-width: 112px;
    line-height: 1.1;
  }

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

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.1rem);
  }

  .hero-panel,
  .practice-board,
  .process-steps,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .client-image,
  .client-image img {
    min-height: 360px;
  }

  .process-steps li {
    min-height: 240px;
  }

  .process-steps span {
    margin-bottom: 38px;
  }

  .site-footer {
    display: grid;
  }
}

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

  .reveal-group > *,
  .hero-panel,
  .practice,
  .process-steps li {
    opacity: 1 !important;
    transform: none !important;
  }

  .logos-track {
    animation: none !important;
    transform: none !important;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.08) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.01) translate3d(-1.2%, -1%, 0);
  }
}

@keyframes overlaySettle {
  from {
    opacity: 0.62;
  }

  to {
    opacity: 1;
  }
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelArrive {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
