@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:opsz,wght@12..72,400;12..72,500;12..72,600;12..72,700;12..72,800&family=JetBrains+Mono:wght@400;500;600;700&display=swap");

:root {
  --background: #fbfaf7;
  --foreground: #050505;
  --muted: #655f58;
  --muted-soft: rgba(5, 5, 5, 0.46);
  --border: rgba(5, 5, 5, 0.1);
  --border-strong: rgba(5, 5, 5, 0.18);
  --surface: rgba(251, 250, 247, 0.82);
  --white: #ffffff;
  --grid-max: 1400px;
  --gutter: clamp(24px, 6vw, 116px);
  --section-space: clamp(88px, 12vw, 150px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--foreground);
  background:
    linear-gradient(rgba(5, 5, 5, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 5, 5, 0.055) 1px, transparent 1px),
    var(--background);
  background-size: 160px 130px, 160px 130px, auto;
  font-family: "Instrument Sans", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: calc(100% - var(--gutter) - var(--gutter));
  max-width: var(--grid-max);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  min-height: 96px;
  padding-inline: var(--gutter);
  color: var(--foreground);
  background-color: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(1px, 0.45vw, 2px);
  width: max-content;
  line-height: 1;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: clamp(78px, 4.2vw, 116px);
  height: auto;
  transition: width 0.68s var(--ease), opacity 0.3s var(--ease);
}

.brand .brand-wordmark {
  order: 2;
  display: grid;
  gap: 0px;
  margin-left: clamp(8px, 0.8vw, 14px);
  margin-bottom: 0;
  color: var(--foreground);
  font-family: "Instrument Sans", Inter, Roboto, Arial, sans-serif;
  font-size: initial;
  font-weight: initial;
  letter-spacing: 0;
  text-transform: none;
  transform: translateY(4px);
}

.brand span {
  order: 2;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand strong {
  order: 1;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 500;
  letter-spacing: 0;
}

.brand .brand-wordmark strong {
  order: initial;
  display: block;
  font-size: clamp(1.05rem, 1.45vw, 1.42rem);
  line-height: 0.92;
}

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(30px, 4vw, 64px);
  width: 100%;
  padding-left: clamp(70px, 10vw, 180px);
  font-size: 1rem;
  font-weight: 500;
}

.nav-link {
  position: relative;
  padding-block: 10px;
  color: rgba(5, 5, 5, 0.68);
  transition: color 0.25s var(--ease);
}

.nav-link::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--foreground);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link--cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  padding: 12px 26px;
  color: var(--background);
  background: var(--foreground);
  border: 1px solid var(--foreground);
  border-radius: 999px;
}

.nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover,
.nav-link--cta:focus-visible {
  color: var(--background);
  background: rgba(5, 5, 5, 0.86);
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  color: currentColor;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100vh - 96px);
  min-height: calc(100svh - 96px);
  overflow: hidden;
  color: var(--foreground);
  background:
    linear-gradient(rgba(5, 5, 5, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 5, 5, 0.055) 1px, transparent 1px),
    var(--background);
  background-size: 160px 130px, 160px 130px, auto;
}

.hero-sphere {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: clamp(-190px, -7vw, -80px);
  width: clamp(620px, 54vw, 980px);
  height: clamp(620px, 54vw, 980px);
  opacity: 0.5;
  pointer-events: none;
  transform: translateY(-50%);
}

.hero-media {
  display: none;
}

.hero-overlay {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.83) 46%, rgba(251, 250, 247, 0.45) 100%),
    radial-gradient(circle at 72% 55%, transparent 0 28%, rgba(251, 250, 247, 0.62) 53%, rgba(251, 250, 247, 0.9) 76%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: block;
  min-height: calc(100vh - 96px);
  min-height: calc(100svh - 96px);
  padding-top: clamp(70px, 12vh, 130px);
  padding-bottom: 150px;
}

.hero-copy {
  position: static;
  max-width: 1300px;
}

.eyebrow,
.section-kicker,
.project-meta span,
.footer span {
  margin: 0;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.eyebrow::before,
.section-kicker::before {
  width: 40px;
  height: 1px;
  background: rgba(5, 5, 5, 0.28);
  content: "";
}

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

h1,
h2,
h3 {
  font-family: "Instrument Sans", Inter, Roboto, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 1200px;
  margin: 46px 0 0;
  font-size: clamp(5.5rem, 10.1vw, 12.2rem);
  line-height: 0.9;
}

h1 > span {
  display: block;
}

.hero-word {
  position: relative;
  display: inline-block;
  min-width: 4.55ch;
  white-space: nowrap;
}

.hero-word::after {
  position: absolute;
  z-index: -1;
  left: 0.04em;
  right: 0;
  bottom: 0.05em;
  height: 0.08em;
  background: rgba(5, 5, 5, 0.12);
  content: "";
}

.hero-word span {
  display: inline-block;
  animation: char-in 0.42s var(--ease) both;
}

@keyframes char-in {
  from {
    transform: translateY(42%);
  }
  to {
    transform: translateY(0);
  }
}

h2 {
  max-width: 14ch;
  margin-bottom: 30px;
  color: var(--foreground);
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.94;
}

h3 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 2.7vw, 2.6rem);
  line-height: 1.02;
}

.hero-lead {
  max-width: 650px;
  margin: clamp(54px, 7vh, 76px) 0 0;
  color: var(--muted);
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  line-height: 1.65;
}

.hero-actions {
  position: absolute;
  left: min(58vw, 820px);
  bottom: 112px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  padding: 18px 30px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

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

.button--light {
  color: var(--background);
  background: var(--foreground);
  border-color: var(--foreground);
}

.button--light::after {
  margin-left: 18px;
  content: "→";
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.button--light:hover::after,
.button--light:focus-visible::after {
  transform: translateX(5px);
}

.button--ghost {
  color: var(--foreground);
  background: rgba(251, 250, 247, 0.54);
  border-color: var(--border-strong);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: rgba(5, 5, 5, 0.055);
}

.hero-panel {
  position: absolute;
  left: calc(var(--gutter) * -1);
  right: calc(var(--gutter) * -1);
  bottom: 10px;
  display: flex;
  gap: clamp(72px, 12vw, 180px);
  width: max-content;
  color: var(--foreground);
  animation: marquee 26s linear infinite;
}

.hero-panel div {
  display: flex;
  align-items: baseline;
  gap: 22px;
  white-space: nowrap;
}

.hero-panel span {
  font-size: clamp(4.8rem, 7vw, 7.8rem);
  font-weight: 500;
  line-height: 0.8;
}

.hero-panel p {
  max-width: 180px;
  margin: 0;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.2;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33%);
  }
}

.section {
  position: relative;
  padding-block: var(--section-space);
  border-top: 1px solid var(--border);
}

.section--intro,
.section--works {
  background: rgba(251, 250, 247, 0.82);
}

.section--technical {
  background: rgba(245, 243, 238, 0.62);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(130px, 0.22fr) minmax(0, 1fr);
  gap: clamp(36px, 9vw, 140px);
}

.intro-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.62fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.intro-content h2 {
  margin-bottom: 0;
}

.intro-content p {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  line-height: 1.75;
}

.intro-content p + p {
  border-top: 1px solid var(--border);
  padding-top: 26px;
}

.studio-image {
  margin-top: clamp(54px, 8vw, 104px);
  margin-bottom: 0;
  aspect-ratio: 1238 / 461;
  overflow: hidden;
  background: #d8d6d0;
  border: 1px solid var(--border);
}

.studio-image.reveal {
  transform: none;
  clip-path: inset(0);
}

.studio-image img {
  filter: grayscale(1);
  transform: scale(1.08);
  transition:
    filter 1.05s var(--ease),
    transform 1.25s var(--ease);
  will-change: transform;
}

.studio-image.reveal.is-visible img,
.studio-image:not(.reveal) img {
  transform: scale(1);
}

.architect-cv {
  margin-top: clamp(42px, 6vw, 76px);
  padding-top: clamp(38px, 6vw, 72px);
  border-top: 1px solid var(--border);
}

.cv-intro {
  display: grid;
  align-content: start;
  gap: 18px;
  margin-top: clamp(36px, 6vw, 76px);
}

.cv-label {
  margin: 0;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cv-intro h3,
.architect-cv h4 {
  margin: 0;
  font-family: "Instrument Sans", Inter, Roboto, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

.cv-intro h3 {
  max-width: 8ch;
  font-size: clamp(2.65rem, 5.5vw, 5.9rem);
  line-height: 0.92;
}

.cv-intro p:not(.cv-label),
.cv-item p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.72;
}

.cv-intro p:not(.cv-label) {
  max-width: 680px;
}

.cv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
}

.cv-item {
  display: grid;
  min-height: 250px;
  align-content: space-between;
  gap: 30px;
  padding: clamp(24px, 3.4vw, 42px);
  background: rgba(251, 250, 247, 0.92);
}

.cv-item--wide {
  grid-column: 1 / -1;
  min-height: 220px;
}

.cv-item span {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
}

.cv-item h4 {
  max-width: 12ch;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.section-heading {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(42px, 8vw, 96px);
}

.section-heading--row {
  grid-template-columns: minmax(0, 1fr) minmax(270px, 470px);
  align-items: end;
}

.section-heading--row p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  display: grid;
  min-height: 390px;
  align-content: space-between;
  gap: 38px;
  padding: clamp(28px, 4vw, 50px);
  background: var(--background);
  transition:
    background-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.service-card:hover {
  z-index: 1;
  background: var(--white);
  box-shadow: 0 26px 70px rgba(5, 5, 5, 0.08);
  transform: translateY(-4px);
}

.service-card span {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  font-weight: 600;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.services-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(250px, 0.72fr) auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(28px, 5vw, 58px);
  padding: clamp(28px, 4.8vw, 54px);
  color: var(--background);
  background: var(--foreground);
  border: 1px solid var(--foreground);
}

.services-cta span {
  display: block;
  margin-bottom: 16px;
  color: rgba(251, 250, 247, 0.68);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.25;
}

.services-cta h3 {
  max-width: 13ch;
  color: var(--background);
}

.services-cta p {
  margin: 0;
  color: rgba(251, 250, 247, 0.72);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.7;
}

.services-cta .button {
  justify-self: end;
  white-space: nowrap;
}

.services-cta .button--light {
  color: var(--foreground);
  background: var(--background);
  border-color: var(--background);
}

.portfolio-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
}

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

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--foreground);
}

.project-card {
  min-height: 430px;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  border: 0;
  cursor: pointer;
}

.project-card--large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 780px;
}

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

.project-card:focus-visible {
  z-index: 2;
  outline: 3px solid rgba(251, 250, 247, 0.95);
  outline-offset: -10px;
}

.project-card img {
  opacity: 0.88;
  filter: saturate(0.25) contrast(1.04);
  transition:
    filter 0.45s var(--ease),
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}

.project-card:hover img {
  opacity: 0.98;
  filter: saturate(0.9) contrast(1);
  transform: scale(1.035);
}

.project-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 11px;
  padding: clamp(24px, 3vw, 34px);
  color: var(--background);
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.3), transparent);
}

.project-meta span,
.project-meta p {
  color: rgba(251, 250, 247, 0.74);
}

.project-meta strong {
  max-width: 16ch;
  font-family: "Instrument Sans", Inter, Roboto, Arial, sans-serif;
  font-size: clamp(1.55rem, 2.3vw, 2.65rem);
  font-weight: 500;
  line-height: 1;
}

.project-meta p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

.project-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.32s var(--ease),
    visibility 0s linear 0.32s;
}

.project-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.project-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
  width: min(1480px, 100%);
  max-height: calc(100vh - clamp(36px, 8vw, 96px));
  overflow: hidden;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid rgba(251, 250, 247, 0.18);
  box-shadow: 0 30px 90px rgba(5, 5, 5, 0.36);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.34s var(--ease);
}

.project-modal.is-open .project-modal__panel {
  transform: translateY(0) scale(1);
}

.project-modal__close,
.project-modal__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font: inherit;
  background: rgba(251, 250, 247, 0.9);
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    background-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.project-modal__close:hover,
.project-modal__close:focus-visible,
.project-modal__nav:hover,
.project-modal__nav:focus-visible {
  background: var(--white);
  transform: translateY(-1px);
}

.project-modal__close {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  font-size: 1.7rem;
  line-height: 1;
}

.project-modal__media {
  position: relative;
  min-height: min(74vh, 820px);
  background: var(--foreground);
}

.project-modal__media img {
  opacity: 0.95;
  filter: saturate(0.45) contrast(1.02);
}

.project-modal__controls {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.project-modal__nav {
  width: 52px;
  height: 52px;
  font-size: 2rem;
  pointer-events: auto;
}

.project-modal__content {
  display: grid;
  align-content: start;
  gap: clamp(18px, 3vw, 28px);
  overflow-y: auto;
  padding: clamp(30px, 4.6vw, 58px);
}

.project-modal__eyebrow {
  margin: 0;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
}

.project-modal__content h3 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  line-height: 0.92;
}

.project-modal__content p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.75;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
}

.project-facts div {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 18px;
  background: rgba(251, 250, 247, 0.92);
}

.project-facts dt {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

.project-facts dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

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

.project-thumbs button {
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  background: var(--foreground);
  border: 1px solid var(--border);
  cursor: pointer;
}

.project-thumbs button.is-active {
  outline: 3px solid var(--foreground);
  outline-offset: -3px;
}

.project-thumbs img {
  opacity: 0.72;
  filter: saturate(0.35);
  transition:
    opacity 0.22s var(--ease),
    filter 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.project-thumbs button:hover img,
.project-thumbs button:focus-visible img,
.project-thumbs button.is-active img {
  opacity: 1;
  filter: saturate(0.9);
  transform: scale(1.04);
}

.section--cta {
  overflow: hidden;
  color: var(--background);
  background: var(--foreground);
}

.section--cta::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(251, 250, 247, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 250, 247, 0.055) 1px, transparent 1px);
  background-size: 160px 130px;
}

.cta-panel {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 1180px;
  gap: 28px;
  padding: clamp(34px, 6vw, 76px);
  border: 1px solid rgba(251, 250, 247, 0.2);
}

.cta-panel .section-kicker,
.cta-panel p {
  color: rgba(251, 250, 247, 0.72);
}

.cta-panel .section-kicker::before {
  background: rgba(251, 250, 247, 0.3);
}

.cta-panel h2 {
  max-width: 11ch;
  margin-bottom: 0;
  color: var(--background);
}

.cta-panel p {
  max-width: 690px;
  margin-bottom: 8px;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.65;
}

.cta-panel .button--light {
  justify-self: start;
  color: var(--foreground);
  background: var(--background);
  border-color: var(--background);
}

.footer {
  padding-block: clamp(56px, 8vw, 92px) 28px;
  color: var(--foreground);
  background: var(--background);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.65fr) minmax(220px, 0.65fr);
  gap: clamp(32px, 8vw, 104px);
  padding-bottom: 58px;
  border-bottom: 1px solid var(--border);
}

.brand--footer {
  width: max-content;
  margin-bottom: 20px;
}

.footer p,
.footer address,
.footer-contact {
  margin: 0;
  color: var(--muted);
  font-style: normal;
  line-height: 1.65;
}

.footer span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
}

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

.footer-contact a {
  width: max-content;
  transition: color 0.25s var(--ease);
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--foreground);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
}

.reveal.is-visible,
.hero .reveal {
  opacity: 1;
  transform: translateY(0);
}

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

  .site-nav {
    grid-column: 2 / 4;
    gap: 24px;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(5rem, 13vw, 9rem);
  }

  .hero-actions {
    position: static;
    margin-top: 34px;
  }

  .hero-panel {
    bottom: 22px;
  }

  .split-layout,
  .intro-content,
  .section-heading--row,
  .architect-cv {
    grid-template-columns: 1fr;
  }

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

  .services-cta {
    grid-template-columns: 1fr;
  }

  .services-cta h3 {
    max-width: 16ch;
  }

  .services-cta .button {
    justify-self: start;
  }

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

  .project-card--large {
    min-height: 650px;
  }

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

  .project-modal__media {
    min-height: 48vh;
  }

  .project-modal__content h3 {
    max-width: 14ch;
  }

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

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
    --section-space: clamp(72px, 18vw, 112px);
  }

  html {
    scroll-padding-top: 74px;
  }

  body,
  .hero {
    background-size: 96px 96px;
  }

  .hero {
    min-height: auto;
  }

  .site-header {
    min-height: 74px;
  }

  .brand-logo {
    width: 64px;
  }

  .brand strong {
    font-size: 1.45rem;
  }

  .brand span {
    font-size: 0.58rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: calc(100% + 8px) 12px auto 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 14px 18px 20px;
    color: var(--foreground);
    background: rgba(251, 250, 247, 0.96);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(5, 5, 5, 0.1);
    backdrop-filter: blur(18px);
    transform: translateY(-140%);
    transition: transform 0.3s var(--ease);
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav .nav-link:nth-child(-n + 3),
  .site-nav .nav-link:nth-child(1),
  .nav-link--cta {
    justify-self: stretch;
    margin-left: 0;
  }

  .nav-link {
    padding-block: 17px;
    border-bottom: 1px solid var(--border);
  }

  .nav-link--cta {
    margin-top: 14px;
    border-bottom: 1px solid var(--foreground);
  }

  .hero-sphere {
    top: 42%;
    right: -330px;
    width: 720px;
    height: 720px;
    opacity: 0.18;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(251, 250, 247, 0.96), rgba(251, 250, 247, 0.82));
  }

  .hero-grid {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 54px;
  }

  .eyebrow,
  .section-kicker {
    font-size: 0.76rem;
  }

  h1 {
    max-width: 100%;
    margin-top: 34px;
    font-size: clamp(4.2rem, 18vw, 6rem);
    line-height: 0.9;
  }

  .hero-word {
    min-width: 0;
  }

  .studio-image {
    aspect-ratio: 4 / 3;
  }

  .studio-image img {
    object-position: 36% center;
  }

  .cv-grid {
    grid-template-columns: 1fr;
  }

  .cv-item,
  .cv-item--wide {
    min-height: 230px;
  }

  h2 {
    max-width: 11ch;
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  h3 {
    font-size: clamp(1.6rem, 8vw, 2.35rem);
  }

  .hero-lead {
    margin-top: 38px;
    font-size: 1.12rem;
    line-height: 1.62;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 58px;
    font-size: 0.95rem;
  }

  .hero-panel {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: max-content;
    margin-top: 46px;
    gap: 56px;
  }

  .hero-panel span {
    font-size: 4.2rem;
  }

  .hero-panel p {
    max-width: 132px;
    font-size: 0.72rem;
  }

  .project-card,
  .project-card--large,
  .project-card--wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 420px;
  }

  .services-cta {
    padding: 28px 22px;
  }

  .services-cta h3 {
    max-width: 11ch;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .project-modal {
    align-items: stretch;
    padding: 0;
  }

  .project-modal__panel {
    width: 100%;
    max-height: none;
    min-height: 100vh;
    min-height: 100svh;
  }

  .project-modal__media {
    min-height: 42vh;
  }

  .project-modal__content {
    padding: 28px 20px 36px;
  }

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

  .cta-panel {
    padding: 30px 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding-bottom: 38px;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .studio-image.reveal {
    clip-path: inset(0);
  }

  .studio-image img {
    transform: none;
  }
}
