:root {
  color-scheme: light;
  --ink: #111113;
  --muted: #6e6e73;
  --soft: #a1a1a6;
  --line: #d8d8dc;
  --paper: #f5f5f7;
  --panel: #ffffff;
  --dark: #1d1d1f;
  --accent: #7b705d;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: calc(var(--scroll-progress, 0) * 100%);
  height: 2px;
  background: var(--ink);
  transform-origin: left;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 14px clamp(20px, 5vw, 84px);
  background: rgba(245, 245, 247, 0.78);
  border-bottom: 1px solid rgba(17, 17, 19, 0.08);
  backdrop-filter: blur(24px) saturate(1.45);
}

.brand {
  font-size: 14px;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: clamp(14px, 2.5vw, 32px);
  color: var(--muted);
  font-size: 12px;
}

.nav a {
  transition: color 180ms ease, opacity 180ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 6vw, 72px);
  min-height: calc(100svh - 50px);
  padding: clamp(58px, 8vw, 108px) clamp(20px, 5vw, 84px) clamp(46px, 7vw, 92px);
  text-align: center;
}

.hero__copy {
  max-width: 980px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin: 0 auto 24px;
  font-size: clamp(42px, 7.4vw, 104px);
  font-weight: 700;
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4.8vw, 72px);
  line-height: 1.05;
}

h3 {
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.2;
}

.hero__lead {
  max-width: 740px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 21px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 17, 19, 0.18);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button--dark {
  background: var(--ink);
  color: var(--panel);
}

.button--light {
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

.hero__stage {
  position: relative;
  width: min(1120px, 100%);
  min-height: clamp(380px, 54vw, 680px);
  margin: 0 auto;
  perspective: 1400px;
  transform: translate3d(0, calc(var(--scroll-y, 0) * 0.08px), 0);
}

.hero__image {
  margin: 0 auto;
}

.stage-card {
  border: 1px solid rgba(17, 17, 19, 0.1);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.3);
}

.stage-card--primary {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 34px;
  transform:
    rotateX(calc(3deg + var(--stage-y, 0) * -3deg))
    rotateY(calc(var(--stage-x, 0) * 4deg))
    scale(calc(1 - min(var(--scroll-y, 0) * 0.00005, 0.045)));
  transition: transform 120ms linear;
}

.stage-card--primary img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.035);
}

.stage-card--small {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: min(240px, 54vw);
  border-radius: 22px;
  padding: 18px 20px;
  text-align: left;
}

.stage-card--small span {
  color: var(--muted);
  font-size: 12px;
}

.stage-card--small strong {
  font-size: 15px;
}

.stage-card--one {
  top: 10%;
  left: -3%;
  transform: translate3d(calc(var(--scroll-y, 0) * -0.03px), calc(var(--scroll-y, 0) * 0.04px), 0);
}

.stage-card--two {
  right: -2%;
  bottom: 12%;
  transform: translate3d(calc(var(--scroll-y, 0) * 0.03px), calc(var(--scroll-y, 0) * -0.035px), 0);
}

.hero__image figcaption {
  position: absolute;
  right: 18px;
  bottom: -32px;
  color: var(--soft);
  font-size: 12px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - clamp(40px, 10vw, 168px)));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 19, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(20px);
}

.quick-stats div {
  min-height: 118px;
  padding: 24px;
}

.quick-stats div + div {
  border-left: 1px solid rgba(17, 17, 19, 0.08);
}

.quick-stats strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1;
}

.quick-stats span {
  color: var(--muted);
  font-size: 13px;
}

.positioning,
.section,
.contact {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(82px, 10vw, 150px) clamp(20px, 5vw, 84px);
}

.positioning {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(34px, 8vw, 120px);
}

.positioning__intro {
  position: sticky;
  top: 104px;
  align-self: start;
}

.positioning__cards {
  display: grid;
  gap: 16px;
}

.positioning__cards article,
.service-grid article {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border: 1px solid rgba(17, 17, 19, 0.08);
  border-radius: 28px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.62);
  transition: transform 280ms ease, box-shadow 280ms ease, background 280ms ease;
}

.positioning__cards article:hover,
.service-grid article:hover {
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.positioning__cards span,
.service-grid span,
.project__meta {
  color: var(--soft);
  font-size: 12px;
  text-transform: uppercase;
}

.positioning__cards h3 {
  margin: 58px 0 12px;
}

.positioning__cards p,
.section__note,
.two-col p,
.project p,
.project dd,
.service-grid p {
  color: var(--muted);
}

.section__heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.5fr);
  gap: clamp(28px, 7vw, 110px);
  margin-bottom: clamp(44px, 6vw, 82px);
}

.section__heading--row {
  align-items: end;
}

.section__note {
  margin: 0;
  align-self: end;
  font-size: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 6vw, 92px);
  max-width: 1080px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(38px, 6vw, 90px) clamp(18px, 3vw, 34px);
}

.project {
  display: grid;
  gap: 14px;
  align-content: start;
}

.project--wide {
  grid-column: span 2;
}

.project__image {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 19, 0.1);
  border-radius: 30px;
  background: #e2e2e6;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.08);
}

.project__image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scale(1.03) translate3d(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px), 0);
  transition: transform 500ms ease;
}

.project--wide .project__image img {
  aspect-ratio: 16 / 7.4;
}

.project:hover .project__image img {
  transform: scale(1.065) translate3d(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px), 0);
}

.project__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.project h3 {
  margin: 0;
}

.project p {
  max-width: 760px;
  margin: 0;
  font-size: 14px;
}

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

.project dl div {
  min-height: 116px;
  border: 1px solid rgba(17, 17, 19, 0.08);
  border-radius: 18px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.48);
}

.project dt {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.project dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.services {
  width: 100%;
  max-width: none;
  background: #fff;
}

.services > * {
  max-width: 1280px;
  margin-inline: auto;
}

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

.service-grid article {
  min-height: 250px;
}

.service-grid h3 {
  margin: 64px 0 12px;
  font-size: 22px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.48fr);
  gap: clamp(32px, 8vw, 120px);
  max-width: none;
  background: var(--dark);
  color: var(--panel);
}

.contact > * {
  max-width: 760px;
}

.contact .eyebrow {
  color: rgba(255, 255, 255, 0.56);
}

.contact p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.contact__links {
  display: grid;
  align-content: end;
  gap: 12px;
}

.contact__links a {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  transition: color 180ms ease, padding-left 180ms ease;
}

.contact__links a:hover {
  color: #fff;
  padding-left: 8px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 84px);
  color: var(--muted);
  font-size: 12px;
}

[data-animate] {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.985);
  transition: opacity 700ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.project:nth-child(2),
.positioning__cards article:nth-child(2),
.service-grid article:nth-child(2),
.service-grid article:nth-child(5) {
  transition-delay: 90ms;
}

.project:nth-child(3),
.positioning__cards article:nth-child(3),
.service-grid article:nth-child(3),
.service-grid article:nth-child(6) {
  transition-delay: 160ms;
}

@media (max-width: 980px) {
  .site-header {
    position: static;
  }

  .positioning,
  .section__heading,
  .contact,
  .two-col {
    grid-template-columns: 1fr;
  }

  .positioning__intro {
    position: static;
  }

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

  .quick-stats div:nth-child(3) {
    border-left: 0;
  }

  .quick-stats div:nth-child(n + 3) {
    border-top: 1px solid rgba(17, 17, 19, 0.08);
  }

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

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

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nav {
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .button {
    width: 100%;
  }

  .hero__stage {
    min-height: 420px;
  }

  .stage-card--primary {
    border-radius: 24px;
  }

  .stage-card--small {
    min-width: min(220px, 78vw);
    border-radius: 18px;
    padding: 14px 16px;
  }

  .stage-card--one {
    left: 4%;
    top: 7%;
  }

  .stage-card--two {
    right: 4%;
    bottom: 9%;
  }

  .hero__image figcaption {
    left: 0;
    right: 0;
    bottom: -38px;
    text-align: center;
  }

  .quick-stats,
  .project-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .quick-stats div,
  .quick-stats div + div {
    border-left: 0;
    border-top: 1px solid rgba(17, 17, 19, 0.08);
  }

  .quick-stats div:first-child {
    border-top: 0;
  }

  .project--wide {
    grid-column: auto;
  }

  .project--wide .project__image img,
  .project__image img {
    aspect-ratio: 4 / 3;
  }

  .project dl {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}

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

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}
