:root {
  --brand-blue: #043baa;
  --text: #151515;
  --page-bg: #ffffff;
  --logo-width: clamp(320px, 55vw, 900px);
  --display-font: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.logo-stage {
  width: min(var(--logo-width), calc(100vw - 48px));
}

.logo-trigger {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.logo-trigger:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 18px;
}

.logo-animation {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2172 / 724;
  overflow: visible;
  transform-origin: center;
}

.logo-animation img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.logo-part {
  opacity: 0;
  transform: translate3d(var(--from-x), var(--from-y), 0) scale(0.985);
  filter: blur(1px);
  animation: part-arrive 680ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: var(--delay);
}

.logo-complete {
  opacity: 0;
  animation: complete-reveal 520ms ease forwards;
  animation-delay: var(--complete-delay, 2600ms);
}

.logo-animation.is-complete .logo-part {
  opacity: 0;
  transition: opacity 240ms ease;
}

.logo-animation.is-complete {
  animation: logo-pulse 5s ease-in-out 1s infinite;
}

.services {
  min-height: 100svh;
  padding: clamp(58px, 8vw, 96px) clamp(24px, 5vw, 88px) clamp(72px, 8vw, 110px);
  background: #ffffff;
}

.services-header {
  max-width: 1600px;
  margin: 0 auto clamp(56px, 8vw, 92px);
}

.services h1 {
  margin: 0;
  color: var(--brand-blue);
  font-family: var(--display-font);
  font-size: clamp(72px, 10.2vw, 210px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 82px);
  max-width: 1600px;
  margin: 0 auto;
}

.service-card {
  min-width: 0;
}

.service-card img {
  display: block;
  width: clamp(104px, 9vw, 148px);
  height: auto;
  margin: 0 0 clamp(28px, 4vw, 52px);
}

.service-card h2 {
  margin: 0 0 28px;
  color: var(--brand-blue);
  font-family: var(--display-font);
  font-size: clamp(28px, 1.9vw, 36px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-card p {
  margin: 0;
  max-width: 36ch;
  font-size: clamp(18px, 1.2vw, 22px);
  line-height: 1.28;
  color: #202020;
}

.project-showcase {
  min-height: 100svh;
  padding: clamp(64px, 7vw, 104px) clamp(24px, 4.5vw, 72px);
  background: #ffffff;
}

.project-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 54px);
  max-width: 1600px;
  margin: 0 auto;
}

.project-card {
  min-width: 0;
}

.project-media {
  width: 100%;
  aspect-ratio: 2.05 / 1;
  margin-bottom: 24px;
  background: #d4d4d4;
}

.project-card h3 {
  margin: 0 0 28px;
  color: var(--brand-blue);
  font-family: var(--display-font);
  font-size: clamp(86px, 10vw, 160px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-kicker {
  margin: 0 0 16px;
  max-width: 160px;
  border-top: 8px solid #6b6b6b;
  padding-top: 18px;
  color: #6b6b6b;
  font-weight: 700;
  text-transform: uppercase;
}

.project-card p:not(.project-kicker) {
  margin: 0;
  max-width: 44ch;
  color: #202020;
  font-size: clamp(18px, 1.15vw, 22px);
  line-height: 1.24;
}

.timeline-section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(56px, 7vw, 96px) clamp(24px, 4.5vw, 72px) 28px;
  background: var(--brand-blue);
  color: #fffdf1;
}

.timeline-list {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.timeline-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(180px, 1.35fr) minmax(150px, 0.85fr) minmax(180px, 1.35fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
  padding: clamp(26px, 3vw, 44px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.timeline-row h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(24px, 1.8vw, 34px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.timeline-row p {
  margin: 0;
  max-width: 28ch;
  color: #8b8b8b;
  font-size: clamp(16px, 1vw, 20px);
  line-height: 1.2;
}

.timeline-image {
  width: 100%;
  max-width: 230px;
  aspect-ratio: 2.25 / 1;
  justify-self: center;
  background: #d4d4d4;
}

.timeline-section h2 {
  max-width: 1600px;
  width: 100%;
  margin: clamp(44px, 6vw, 80px) auto 0;
  color: #fffdf1;
  font-family: var(--display-font);
  font-size: clamp(92px, 12.2vw, 216px);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
}

@keyframes part-arrive {
  0% {
    opacity: 0;
    transform: translate3d(var(--from-x), var(--from-y), 0) scale(0.985);
    filter: blur(1px);
  }

  70% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes complete-reveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes logo-pulse {
  0%,
  78%,
  100% {
    transform: scale(1);
  }

  84% {
    transform: scale(1.035);
  }

  90% {
    transform: scale(1);
  }

  94% {
    transform: scale(1.018);
  }
}

@media (max-width: 1180px) {
  .services h1 {
    white-space: normal;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card h3 {
    font-size: clamp(72px, 9vw, 110px);
  }

  .timeline-row {
    grid-template-columns: 1fr 1.2fr;
  }

  .timeline-image {
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .home {
    padding: 24px;
  }

  .services {
    padding: 52px 24px 76px;
  }

  .services-header {
    margin-bottom: 48px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .service-card img {
    margin-bottom: 22px;
  }

  .service-card p {
    max-width: 44ch;
  }

  .service-card h2 {
    white-space: normal;
  }

  .project-showcase,
  .timeline-section {
    padding-inline: 24px;
  }

  .project-pair {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .project-card h3 {
    font-size: clamp(64px, 22vw, 104px);
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .timeline-image {
    max-width: none;
  }

  .timeline-section h2 {
    font-size: clamp(76px, 21vw, 116px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-part {
    display: none;
  }

  .logo-complete {
    opacity: 1;
    animation: none;
  }

  .logo-animation.is-complete {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
