/* ============ Reset & base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --serif: 'Playfair Display', 'Times New Roman', serif;
  --mono: 'Space Mono', 'Courier New', monospace;
  --blue: #27aae1;
  --blue-deep: #1a8bbd;
  --ink: #17181a;
  --gray-600: #5a5d63;
  --gray-300: #c9cbcd;
  --cream: #eef0ec;
  --container: 1360px;
  --pad: clamp(20px, 5vw, 64px);
}

html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: clip; }

body {
  font-family: var(--mono);
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

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

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }

em { font-style: italic; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
}

.btn-pill {
  background: var(--blue);
  color: #fff;
  padding: 0.75em 1.8em;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-pill:hover { background: var(--blue-deep); transform: translateY(-1px); }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--pad);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow .3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 12px var(--pad);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo img { height: 34px; width: auto; transition: filter .3s ease; }

.site-header.scrolled .logo img { filter: brightness(0) saturate(100%); }

.main-nav {
  display: flex;
  gap: 28px;
  margin: 0 auto;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.main-nav a {
  color: #fff;
  position: relative;
  padding: 4px 0;
  transition: color .3s ease, opacity .2s ease;
}

.site-header.scrolled .main-nav a { color: var(--ink); }

.main-nav a:hover { opacity: 0.7; }

.header-inner > .btn-pill { flex-shrink: 0; font-size: 0.72rem; }

.nav-contact-mobile { display: none; }
.mobile-signo, .mobile-social { display: none; }
.mobile-nav-links { display: contents; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 101;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  transition: background .3s ease, transform .3s ease, opacity .3s ease;
  transform-origin: center;
}

.site-header.scrolled .nav-toggle span { background: var(--ink); }

.nav-toggle.active span { background: var(--ink); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  height: 100svh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: translate3d(-2%, 0, 0) scale(1.06);
  opacity: 0;
  transition: opacity 2s ease;
  animation: hero-image-pan 7.5s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-slide.active { opacity: 1; }

.hero-slide:nth-child(even) {
  animation-direction: alternate-reverse;
  animation-duration: 8.5s;
}

.hero-slide:nth-child(3n) { animation-duration: 10s; }

@keyframes hero-image-pan {
  from { transform: translate3d(-2%, 0, 0) scale(1.06); }
  to { transform: translate3d(2%, 0, 0) scale(1.06); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.18) 45%, rgba(10,10,10,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  letter-spacing: 0.02em;
  max-width: 15ch;
  margin: 0 auto;
  will-change: transform;
}

.hero-content h1 em { font-family: var(--serif); }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  z-index: 2;
  animation: bob 2.4s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

.hero-arrow {
  top: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  z-index: 3;
}

.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

.hero:hover .hero-arrow { opacity: 1; }

/* ============ About ============ */
.about { padding: clamp(96px, 11vw, 160px) 0; }

.about-inner {
  max-width: none;
  margin: 0 auto;
}

.about-text {
  width: min(84vw, 1240px);
  margin: 0 auto clamp(52px, 7vw, 92px);
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(36px, 8vw, 130px);
  align-items: start;
}

.about-text .eyebrow {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.about-text p {
  margin-top: 0;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--gray-600);
  max-width: 56ch;
}

.about-image {
  position: relative;
  width: min(84vw, 1240px);
  height: clamp(520px, calc(100svh - 120px), 820px);
  margin: 0 auto;
  border-radius: clamp(28px, 3vw, 48px);
  overflow: hidden;
  box-shadow: none;
  transform: translateY(0);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-image:hover,
.about-image.is-center-active {
  transform: translateY(-7px);
  box-shadow: none;
}

.about-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 30% center;
  transform: scale(1.025);
  transform-origin: center;
  opacity: 0;
  transition: opacity 1.8s ease;
  animation: about-image-pan 7s ease-in-out infinite alternate;
  will-change: background-position;
}

.about-slide.active { opacity: 1; }

.about-slide:nth-child(2) { animation-duration: 8s; }
.about-slide:nth-child(3) { animation-duration: 9s; }

@keyframes about-image-pan {
  from { background-position: 30% center; }
  to { background-position: 70% center; }
}

/* ============ Specialties ============ */
.specialties {
  position: relative;
  padding: 90px var(--pad) 40px;
  background: linear-gradient(155deg, #eef1f5 0%, #c7d2dc 40%, #8ea9c7 75%, #4f5f7a 100%);
  color: var(--ink);
  overflow: hidden;
}

.specialties-shader-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.specialties-shader-bg canvas { display: block; width: 100%; height: 100%; }

.specialties > .eyebrow,
.specialties-list {
  position: relative;
  z-index: 1;
}

.specialties > .eyebrow { max-width: var(--container); margin: 0 auto; display: block; color: rgba(0,0,0,0.62); }

.specialties-list {
  max-width: var(--container);
  margin: 20px auto 0;
  list-style: none;
}

.specialties-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0;
  border-top: 1px solid rgba(0,0,0,0.18);
  opacity: 0;
  transform: scale(0.92) translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.specialties-list li:last-child { border-bottom: 1px solid rgba(0,0,0,0.18); }

.specialties-list.in-view li { opacity: 1; transform: scale(1) translateY(0); }
.specialties-list.in-view li:nth-child(1) { transition-delay: 0.05s; }
.specialties-list.in-view li:nth-child(2) { transition-delay: 0.15s; }
.specialties-list.in-view li:nth-child(3) { transition-delay: 0.25s; }
.specialties-list.in-view li:nth-child(4) { transition-delay: 0.35s; }
.specialties-list.in-view li:nth-child(5) { transition-delay: 0.45s; }
.specialties-list.in-view li:nth-child(6) { transition-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  .specialties-list li { opacity: 1; transform: none; transition: none; }
}

.specialties-list h3 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  flex: 0 0 auto;
  color: var(--ink);
  transition: transform 0.3s ease;
}

.specialties-list li:hover h3,
.specialties-list li.is-center-active h3 { transform: translateX(20px); }

.specialties-list p {
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(0,0,0,0.6);
  max-width: 30ch;
  text-align: right;
}

/* ============ Vision ============ */
.vision {
  --vision-x: 50%;
  --vision-y: 50%;
  position: relative;
  min-height: clamp(720px, 100svh, 980px);
  padding: clamp(88px, 10vh, 140px) var(--pad);
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at var(--vision-x) var(--vision-y), rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.08) 24%, transparent 48%),
    linear-gradient(155deg, #138ec8 0%, #27aae1 38%, #65c5ea 68%, #c8edf7 100%);
  color: #fff;
  isolation: isolate;
}

.vision::before,
.vision::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.vision::before {
  width: clamp(380px, 62vw, 960px);
  aspect-ratio: 1;
  left: -18vw;
  top: -35%;
  transform: translate(calc((var(--vision-x) - 50%) * -0.08), calc((var(--vision-y) - 50%) * -0.08));
}

.vision::after {
  width: clamp(240px, 38vw, 620px);
  aspect-ratio: 1;
  right: -12vw;
  bottom: -30%;
  transform: translate(calc((var(--vision-x) - 50%) * 0.1), calc((var(--vision-y) - 50%) * 0.1));
}

.vision-inner {
  width: min(100%, 1280px);
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 800px;
}

.vision .eyebrow {
  color: rgba(255,255,255,0.82);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.vision-quote {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6.8vw, 6.9rem);
  max-width: 12.5ch;
  margin: clamp(42px, 7vh, 80px) auto;
  line-height: 1.02;
  letter-spacing: -0.045em;
  transform-style: preserve-3d;
  will-change: transform;
  opacity: 0;
  transform: translateY(42px) scale(0.96);
  transition: opacity 0.9s ease 0.12s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.vision-quote span,
.vision-quote em { display: block; }

.vision-quote em {
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: inherit;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: #fff;
  text-shadow: 0 20px 55px rgba(10, 89, 129, 0.28);
  transform: none;
  transition: letter-spacing 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.vision:hover .vision-quote em,
.vision.is-center-active .vision-quote em {
  letter-spacing: 0.005em;
  transform: none;
}

.vision-divider {
  width: clamp(54px, 8vw, 120px);
  height: 1px;
  background: rgba(255,255,255,0.6);
}

.vision-footer {
  width: min(100%, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

.vision.in-view .eyebrow,
.vision.in-view .vision-footer {
  opacity: 1;
  transform: translateY(0);
}

.vision.in-view .vision-quote {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stats-band {
  position: relative;
  overflow: hidden;
  padding: clamp(92px, 12vw, 170px) var(--pad);
  background:
    radial-gradient(circle at 88% 12%, rgba(39,170,225,0.18), transparent 28%),
    #111417;
  color: #fff;
  isolation: isolate;
}

.stats-band::before {
  content: '';
  position: absolute;
  width: clamp(260px, 36vw, 620px);
  aspect-ratio: 1;
  right: -15vw;
  bottom: -72%;
  border: 1px solid rgba(39,170,225,0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.stats-shell {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.stats-intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(32px, 8vw, 130px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 86px);
}

.stats-eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.stats-intro h2 {
  max-width: none;
  font-family: var(--serif);
  font-size: clamp(2.65rem, 5.2vw, 5.2rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.stats-intro h2 span {
  display: block;
  white-space: nowrap;
}

.vision-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.stat {
  position: relative;
  min-width: 0;
  min-height: clamp(220px, 24vw, 340px);
  padding: clamp(26px, 3vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.4s ease;
}

.stat + .stat { border-left: 1px solid rgba(255,255,255,0.2); }

.stat::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.vision-stats.is-visible .stat { opacity: 1; transform: translateY(0); }
.vision-stats.is-visible .stat:nth-child(2) { transition-delay: 0.12s; }
.vision-stats.is-visible .stat:nth-child(3) { transition-delay: 0.24s; }

.vision-stats.is-visible .stat:hover,
.vision-stats.is-visible .stat.is-center-active {
  background: rgba(39,170,225,0.08);
  transform: translateY(-7px);
}

.stat:hover::after,
.stat.is-center-active::after { transform: scaleX(1); transform-origin: left; }

.stat-index {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.42);
}

.stat-value {
  display: flex;
  align-items: flex-start;
  gap: 0.08em;
  font-family: var(--serif);
  line-height: 0.78;
  letter-spacing: -0.055em;
}

.stat-prefix {
  padding-top: 0.12em;
  font-size: clamp(2rem, 4vw, 4rem);
  color: var(--blue);
}

.stat strong {
  font-family: var(--serif);
  font-size: clamp(5.2rem, 9.6vw, 10rem);
  font-weight: 400;
  line-height: 0.72;
}

.stat-unit {
  align-self: flex-end;
  padding-bottom: 0.08em;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 3rem);
  font-style: italic;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.76);
}

.stat-label {
  max-width: 18ch;
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}

/* ============ Projects ============ */
.projects {
  position: relative;
  overflow: visible;
  background: #000;
  color: #fff;
}

.projects-header {
  position: relative;
  isolation: isolate;
  min-height: min(82svh, 860px);
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(110px, 15vh, 180px) var(--pad);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(48px, 10vw, 150px);
  align-items: end;
}

.projects-header::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 4%;
  right: clamp(-260px, -12vw, -80px);
  width: clamp(300px, 44vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(39,170,225,0.2);
  filter: blur(clamp(72px, 9vw, 132px));
  pointer-events: none;
}

.projects-header h2 {
  font-family: var(--serif);
  font-size: clamp(4rem, 8.5vw, 8.8rem);
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.projects-header h2 em {
  color: var(--blue);
  font-weight: 400;
}

.projects-header p {
  max-width: 44ch;
  padding-bottom: 0.5em;
  font-size: 0.78rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.58);
}

.projects-grid {
  --stack-base: clamp(48px, 7vh, 68px);
  --stack-step: 30px;
  position: relative;
  isolation: isolate;
}

.projects-grid figure {
  --stack-top: 0px;
  position: -webkit-sticky;
  position: sticky;
  top: var(--stack-top);
  height: calc(100svh - var(--stack-top));
  background: transparent;
}

.projects-grid figure:nth-child(1) { --stack-top: var(--stack-base); z-index: 1; }
.projects-grid figure:nth-child(2) { --stack-top: calc(var(--stack-base) + var(--stack-step)); z-index: 2; }
.projects-grid figure:nth-child(3) { --stack-top: calc(var(--stack-base) + var(--stack-step) + var(--stack-step)); z-index: 3; }
.projects-grid figure:nth-child(4) { --stack-top: calc(var(--stack-base) + var(--stack-step) + var(--stack-step) + var(--stack-step)); z-index: 4; }

.project-stage {
  --project-focus: 0;
  --project-media-y: 0px;
  --project-stack-scale: 1;
  --project-radius: clamp(28px, 3vw, 48px);
  position: relative;
  width: min(84vw, 1240px);
  height: calc(100% - clamp(50px, 8vh, 88px));
  min-height: 0;
  margin: 0 auto;
  overflow: clip;
  border: 1px solid rgba(39,170,225,0.34);
  border-radius: var(--project-radius);
  background: #000;
  isolation: isolate;
  box-shadow:
    0 -26px 76px rgba(0,0,0,0.54),
    0 0 110px rgba(39,170,225,0.08);
  transform: scale(var(--project-stack-scale));
  transform-origin: center top;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.projects-grid figure:not(:first-child) .project-stage {
  box-shadow:
    0 -32px 90px rgba(0,0,0,0.62),
    0 0 110px rgba(39,170,225,0.08);
}

.project-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(7,12,15,0.42) 0%, transparent 34%),
    linear-gradient(0deg, rgba(7,12,15,0.82) 0%, rgba(7,12,15,0.08) 48%, transparent 70%);
}

.project-carousel {
  position: absolute;
  z-index: 0;
  top: -60px;
  left: 0;
  width: 100%;
  height: calc(100% + 120px);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  background: #181c20;
  transform: translate3d(0, var(--project-media-y), 0) scale(1.045);
  filter: saturate(calc(0.72 + var(--project-focus) * 0.32)) brightness(calc(0.72 + var(--project-focus) * 0.18));
  transition: filter 0.55s ease;
  will-change: transform;
  border-radius: 0;
}

.project-carousel:active { cursor: grabbing; }

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-track.dragging { transition: none; }

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 30% center;
  pointer-events: none;
  animation: about-image-pan 7s ease-in-out infinite alternate;
  will-change: background-position;
}

.carousel-slide:nth-child(2n) {
  animation-direction: alternate-reverse;
  animation-duration: 8s;
}

.carousel-slide:nth-child(3n) { animation-duration: 9s; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
  z-index: 4;
}

.project-stage.is-active:hover .carousel-arrow { opacity: 1; }
.carousel-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.carousel-arrow.prev { left: var(--pad); }
.carousel-arrow.next { right: var(--pad); }

.carousel-dots {
  position: absolute;
  z-index: 4;
  right: 50%;
  bottom: clamp(18px, 3.5vh, 34px);
  transform: translateX(50%);
  display: flex;
  flex-direction: row;
  gap: 9px;
}

.carousel-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dots .dot.active { background: #fff; transform: scale(1.3); }

.projects-grid figcaption {
  position: absolute;
  z-index: 3;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(34px, 6vh, 72px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  opacity: calc(0.18 + var(--project-focus) * 0.82);
  transform: translate3d(0, calc((1 - var(--project-focus)) * 46px), 0);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.projects-grid figcaption strong {
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 9.5rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 38px rgba(0,0,0,0.25);
}

.projects-grid figcaption span,
.project-index {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.projects-grid figcaption span {
  flex: 0 0 auto;
  color: rgba(255,255,255,0.7);
  text-align: right;
}

.project-index {
  position: absolute;
  z-index: 3;
  top: clamp(90px, 11vh, 126px);
  right: var(--pad);
  color: rgba(255,255,255,0.72);
  opacity: calc(0.24 + var(--project-focus) * 0.76);
  transition: opacity 0.35s ease;
}

.project-open {
  position: absolute;
  z-index: 5;
  top: clamp(88px, 11vh, 124px);
  left: var(--pad);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 999px;
  background: rgba(8,12,14,0.22);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s ease;
}

.project-open:hover,
.project-open:focus-visible {
  background: #fff;
  color: var(--ink);
  transform: translateY(-2px);
}

/* ============ Contact ============ */
.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 12vw, 180px) var(--pad);
  background: linear-gradient(145deg, #f5f1e9 0%, #edf1f5 58%, #e4edf3 100%);
  isolation: isolate;
}

.contact::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -15vw;
  bottom: -32%;
  width: clamp(320px, 46vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(39,170,225,0.22);
  filter: blur(clamp(82px, 11vw, 150px));
  pointer-events: none;
}

.contact::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -12vw;
  top: -28%;
  width: clamp(260px, 38vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(39,170,225,0.22);
  border-radius: 50%;
  pointer-events: none;
}

.contact-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(54px, 9vw, 140px);
  align-items: start;
}

.contact-eyebrow {
  display: block;
  margin-bottom: clamp(30px, 5vw, 62px);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.contact-text h2 {
  max-width: 8ch;
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 8.5rem);
  font-weight: 400;
  font-style: normal;
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.contact-text h2 em {
  display: block;
  color: var(--blue);
}

.contact-text > p {
  max-width: 38ch;
  margin-top: clamp(28px, 4vw, 52px);
  font-size: 0.8rem;
  line-height: 1.85;
  color: rgba(20,23,26,0.62);
}

.contact-info {
  margin-top: clamp(42px, 6vw, 74px);
  border-bottom: 1px solid rgba(20,23,26,0.18);
}

.contact-info a {
  display: grid;
  grid-template-columns: minmax(64px, 0.34fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgba(20,23,26,0.18);
  font-size: 0.74rem;
  transition: color 0.3s ease, padding 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-info a:hover,
.contact-info a.is-center-active {
  padding-left: 8px;
  padding-right: 8px;
  color: var(--blue-deep);
}

.contact-link-label {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(20,23,26,0.44);
}

.contact-link-value { overflow-wrap: anywhere; }

.contact-link-arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.contact-info a:hover .contact-link-arrow,
.contact-info a.is-center-active .contact-link-arrow { transform: translate(3px, -3px); }

.contact-form {
  padding: clamp(30px, 4.5vw, 64px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: clamp(26px, 3vw, 44px);
  background: rgba(255,255,255,0.58);
  box-shadow: 0 34px 90px rgba(28,60,76,0.13);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.contact-form-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(38px, 5vw, 62px);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(20,23,26,0.48);
}

.contact-form-header span:last-child { color: var(--blue-deep); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 36px); }

.form-field { margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }

.form-field label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(20,23,26,0.5);
}

.form-field input,
.form-field textarea {
  font-family: var(--mono);
  font-size: 0.92rem;
  border: none;
  border-bottom: 1px solid rgba(20,23,26,0.24);
  background: transparent;
  padding: 8px 0 14px;
  color: var(--ink);
  resize: none;
  border-radius: 0;
  transition: border-color 0.25s ease;
}

.form-field textarea { min-height: 112px; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.contact .btn-submit {
  min-width: 210px;
  margin-top: 8px;
  padding: 1.1em 1.5em;
  justify-content: space-between;
  gap: 34px;
  background: var(--ink);
}

.contact .btn-submit:hover { background: var(--blue-deep); }

.form-status { margin-top: 16px; font-size: 0.72rem; color: var(--blue-deep); min-height: 1em; }

/* ============ Footer ============ */
.site-footer {
  overflow: hidden;
  background: #14171a;
  color: #fff;
}

.footer-marquee {
  overflow: hidden;
  padding: clamp(46px, 7vw, 96px) 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.footer-marquee-track {
  display: flex;
  width: max-content;
  animation: footer-marquee 22s linear infinite;
  will-change: transform;
}

.footer-marquee-group {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 68px);
  padding-right: clamp(28px, 4vw, 68px);
  white-space: nowrap;
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(4.2rem, 10.5vw, 10.5rem);
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.footer-marquee-accent {
  color: var(--blue);
  font-style: normal;
}

.footer-marquee-mark {
  font-family: var(--mono);
  font-size: 0.24em;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0;
}

@keyframes footer-marquee {
  to { transform: translateX(-50%); }
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(54px, 7vw, 92px) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(130px, 0.7fr) minmax(140px, 0.7fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: start;
}

.footer-label {
  display: block;
  margin-bottom: 20px;
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.46);
}

.footer-statement p {
  max-width: 18ch;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.footer-nav,
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.75rem;
}

.footer-nav .footer-label,
.footer-social .footer-label { margin-bottom: 8px; }

.footer-nav a,
.footer-social a,
.footer-bottom a {
  position: relative;
  transition: color 0.25s ease;
}

.footer-nav a::after,
.footer-social a::after,
.footer-bottom a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-nav a:hover,
.footer-social a:hover,
.footer-bottom a:hover { color: var(--blue); }

.footer-nav a:hover::after,
.footer-social a:hover::after,
.footer-bottom a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px var(--pad) 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.66rem;
  color: rgba(255,255,255,0.55);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .about-text { grid-template-columns: 1fr; gap: 24px; }
  .about-text p { max-width: none; }

  .specialties-list li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .specialties-list p { text-align: left; max-width: none; }

  .stats-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .projects-header { grid-template-columns: 1fr; gap: 44px; }
  .projects-header p { align-self: start; }

  .contact-inner { grid-template-columns: 1fr; gap: 72px; }
  .contact-text h2 { max-width: 9ch; }

  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-header.menu-open {
    padding: 20px var(--pad);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .site-header.menu-open .logo {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .logo {
    position: relative;
    z-index: 103;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background: #0b1114;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: max(104px, calc(env(safe-area-inset-top) + 84px)) 24px 0;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.72s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.72s;
    font-size: 1rem;
    isolation: isolate;
  }

  .main-nav a,
  .site-header.menu-open .main-nav a { color: #fff; }

  .main-nav.open {
    clip-path: inset(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .nav-toggle {
    display: flex;
    z-index: 104;
    width: 42px;
    height: 42px;
    margin-left: auto;
  }

  .nav-toggle span { height: 1.5px; }
  .site-header.menu-open .nav-toggle span,
  .site-header.menu-open.scrolled .nav-toggle span { background: #fff; }

  .header-inner > .btn-pill { display: none; }
  .nav-contact-mobile { display: block; }

  .mobile-signo {
    display: block;
    width: 78px;
    height: auto;
    margin-bottom: clamp(18px, 3vh, 34px);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s ease 0.18s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.18s;
  }

  .main-nav.open .mobile-signo { opacity: 1; transform: translateY(0); }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    flex: 1;
    width: 100%;
    counter-reset: mobile-nav;
  }

  .mobile-nav-links a {
    counter-increment: mobile-nav;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: clamp(10px, 1.8vh, 17px) 0;
    border-bottom: 1px solid rgba(255,255,255,0.18);
    font-family: var(--serif);
    font-size: clamp(2rem, 10vw, 4.8rem);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.045em;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.42s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
  }

  .mobile-nav-links a::before {
    content: '0' counter(mobile-nav);
    align-self: start;
    padding-top: 0.5em;
    font-family: var(--mono);
    font-size: 0.58rem;
    line-height: 1;
    letter-spacing: 0.12em;
    color: var(--blue);
  }

  .main-nav.open .mobile-nav-links a { opacity: 1; transform: translateY(0); }
  .main-nav.open .mobile-nav-links a:nth-child(1) { transition-delay: 0.16s; }
  .main-nav.open .mobile-nav-links a:nth-child(2) { transition-delay: 0.21s; }
  .main-nav.open .mobile-nav-links a:nth-child(3) { transition-delay: 0.26s; }
  .main-nav.open .mobile-nav-links a:nth-child(4) { transition-delay: 0.31s; }
  .main-nav.open .mobile-nav-links a:nth-child(5) { transition-delay: 0.36s; }

  .mobile-nav-links a:hover,
  .mobile-nav-links a:focus-visible { color: var(--blue); opacity: 1; }

  .mobile-nav-links a:last-child { border-bottom: none; }

  .mobile-social {
    display: flex;
    align-items: center;
    gap: 22px;
    justify-content: flex-end;
    width: calc(100% + 48px);
    margin: 0 -24px;
    padding: 22px 24px max(22px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,0.18);
    background: #0b1114;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s ease 0.4s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
  }

  .main-nav.open .mobile-social { opacity: 1; transform: translateY(0); }

  .mobile-social a { color: #fff; display: flex; }
  .mobile-social svg { width: 22px; height: 22px; }

  .about { padding-top: 86px; padding-bottom: 86px; }
  .about-text { width: calc(100% - 40px); margin-bottom: 48px; }
  .about-image {
    width: calc(100% - 24px);
    height: clamp(420px, calc(100svh - 114px), 720px);
    border-radius: 24px;
  }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .contact { padding-top: 92px; padding-bottom: 92px; }
  .contact-text h2 { font-size: clamp(3.7rem, 17vw, 5.8rem); }
  .contact-form { padding: 30px 20px; border-radius: 24px; }
  .contact-info a { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; }
  .contact .btn-submit { width: 100%; }

  .stats-band { padding-top: 86px; padding-bottom: 86px; }

  .stats-intro h2 {
    max-width: none;
    font-size: clamp(1.85rem, 8.8vw, 3rem);
  }

  .vision-stats { grid-template-columns: 1fr; }

  .stat {
    min-height: 180px;
    padding: 28px 20px;
  }

  .stat + .stat {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  .stat-value { justify-content: flex-start; }

  .stat-label {
    align-self: flex-end;
    max-width: none;
    text-align: right;
  }

  .stat-label span { display: block; }

  .projects-header {
    min-height: 72svh;
    padding-top: 110px;
    padding-bottom: 86px;
  }

  .projects-header h2 {
    font-size: clamp(3.8rem, 18vw, 7rem);
    line-height: 0.82;
    white-space: normal;
  }

  .projects-header h2 br { display: block; }

  .projects-grid {
    --stack-base: 62px;
    --stack-step: 14px;
  }

  .projects-grid figure { height: calc(100svh - var(--stack-top)); }
  .projects-grid figure:nth-child(1) { --stack-top: var(--stack-base); }
  .projects-grid figure:nth-child(2) { --stack-top: calc(var(--stack-base) + var(--stack-step)); }
  .projects-grid figure:nth-child(3) { --stack-top: calc(var(--stack-base) + var(--stack-step) + var(--stack-step)); }
  .projects-grid figure:nth-child(4) { --stack-top: calc(var(--stack-base) + var(--stack-step) + var(--stack-step) + var(--stack-step)); }
  .project-stage {
    --project-radius: 24px;
    width: calc(100% - 24px);
    height: calc(100% - 52px);
    min-height: 0;
    border-radius: var(--project-radius);
  }

  .project-carousel {
    top: -42px;
    height: calc(100% + 84px);
    transform: translate3d(0, var(--project-media-y), 0) scale(1.06);
  }

  .carousel-arrow { display: none; }
  .carousel-dots {
    top: 50%;
    right: 20px;
    bottom: auto;
    transform: translateY(-50%);
    flex-direction: column;
  }

  .projects-grid figcaption {
    left: 20px;
    right: 20px;
    bottom: max(34px, env(safe-area-inset-bottom));
    gap: 12px;
  }

  .projects-grid figcaption strong {
    flex: 0 0 auto;
    font-size: clamp(2.65rem, 14vw, 4.6rem);
    line-height: 0.86;
    white-space: nowrap;
  }

  .project-index {
    top: 88px;
    right: 20px;
  }

  .project-open {
    top: 82px;
    left: 20px;
    padding: 9px 13px;
    background: rgba(8,12,14,0.36);
    backdrop-filter: none;
  }

  .vision {
    min-height: 82svh;
    padding-top: 84px;
    padding-bottom: 84px;
  }

  .vision-quote {
    font-size: clamp(2.35rem, 12vw, 4.6rem);
    max-width: 10.5ch;
  }

  .footer-marquee-group { font-size: clamp(3.8rem, 19vw, 7rem); }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .footer-statement { grid-column: 1 / -1; }
  .footer-statement p { max-width: 14ch; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.9rem; }
  .contact { padding-left: 20px; padding-right: 20px; }

  .footer-inner { gap: 44px 28px; }
  .footer-bottom { align-items: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav,
  .mobile-signo,
  .mobile-nav-links a,
  .mobile-social { transition: none; }

  .vision-stats .stat,
  .vision-stats.is-visible .stat,
  .vision-stats.is-visible .stat:hover,
  .vision-stats.is-visible .stat.is-center-active {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .about-image,
  .about-image:hover,
  .about-image.is-center-active { transform: none; transition: none; }

  .hero-slide {
    animation: none;
    transform: scale(1.02);
    will-change: auto;
  }

  .about-slide {
    animation: none;
    background-position: center;
    will-change: auto;
  }

  .carousel-slide {
    animation: none;
    background-position: center;
    will-change: auto;
  }

  .vision .eyebrow,
  .vision-quote,
  .vision-footer {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .vision-quote em,
  .vision:hover .vision-quote em,
  .vision.is-center-active .vision-quote em { transform: none; transition: none; }
  .footer-marquee-track { animation: none; }

  .projects-grid figure {
    --stack-top: 0px;
    height: 100svh;
  }
  .project-stage { transform: none; transition: none; }
  .project-carousel { transform: none; transition: none; }
  .projects-grid figcaption { opacity: 1; transform: none; transition: none; }
}
