:root {
  --bg: #F2EDE4;
  --ink: #0A0A0A;
  --white: #FFFFFF;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "Satoshi", "Space Grotesk", Arial, sans-serif;
  --font-logo: "Space Grotesk", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page-pad: clamp(1.25rem, 3.6vw, 3.5rem);
  --section-space: clamp(4.25rem, 8vw, 7.5rem);
  --header-height: 4.5rem;
  --arch-image: url("/assets/img/architecture-1.png");
  --arch-size: min(118vw, 92rem);
  --arch-pos: 102% 56%;
  --arch-opacity: 0.08;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  font-feature-settings: "ss01" 1, "ss02" 1, "ss03" 1;
  animation: page-in 200ms ease both;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image: var(--arch-image);
  background-repeat: no-repeat;
  background-position: var(--arch-pos);
  background-size: var(--arch-size);
  content: "";
  filter: grayscale(1);
  mix-blend-mode: multiply;
  opacity: var(--arch-opacity);
}

body[data-page="home"] {
  --arch-image: url("/assets/img/architecture-1.png");
  --arch-size: min(128vw, 98rem);
  --arch-pos: 108% 76%;
  --arch-opacity: 0.065;
}

body[data-page="work"] {
  --arch-image: url("/assets/img/architecture-2.png");
  --arch-size: min(112vw, 84rem);
  --arch-pos: 110% 42%;
  --arch-opacity: 0.075;
}

body[data-page="services"] {
  --arch-image: url("/assets/img/architecture-3.png");
  --arch-size: min(118vw, 88rem);
  --arch-pos: 104% 45%;
  --arch-opacity: 0.075;
}

body[data-page="about"] {
  --arch-image: url("/assets/img/architecture-1.png");
  --arch-size: min(108vw, 82rem);
  --arch-pos: -18rem 56%;
  --arch-opacity: 0.065;
}

body[data-page="contact"] {
  --arch-image: url("/assets/img/architecture-2.png");
  --arch-size: min(116vw, 86rem);
  --arch-pos: 112% 50%;
  --arch-opacity: 0.07;
}

body.is-leaving {
  animation: page-out 200ms ease both;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
  font-feature-settings: inherit;
}

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

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

p {
  max-width: 42rem;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

.link-underline {
  position: relative;
  display: inline-block;
  width: fit-content;
  line-height: 1.2;
}

.link-underline::after {
  position: absolute;
  right: 0;
  bottom: -0.18em;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

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

.inverse {
  color: var(--white);
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--page-pad);
  background: transparent;
  color: var(--ink);
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}

body[data-page="home"] .site-header:not(.scrolled) {
  color: var(--white);
}

body[data-page="home"] .site-header:not(.scrolled) .desktop-nav {
  color: var(--ink);
}

.site-header.scrolled,
.site-header.menu-active {
  border-bottom: 1px solid rgba(10, 10, 10, 0.14);
  background: rgba(242, 237, 228, 0.94);
  color: var(--ink);
}

.wordmark {
  z-index: 32;
  font-family: var(--font-logo);
  font-size: clamp(1.25rem, 1.65vw, 1.55rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.wordmark span,
.footer-wordmark span {
  font-weight: 700;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: clamp(1.35rem, 3vw, 2.5rem);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0;
}

.nav-toggle {
  position: relative;
  z-index: 32;
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  width: 1.7rem;
  height: 1px;
  background: currentColor;
  transition: transform 220ms var(--ease), top 220ms var(--ease);
}

.nav-toggle span:first-child {
  top: 1.15rem;
}

.nav-toggle span:last-child {
  top: 1.58rem;
}

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

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

.mobile-menu {
  position: fixed;
  z-index: 25;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: var(--page-pad);
  background: var(--bg);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1rem);
  transition: opacity 200ms ease, transform 200ms var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu nav {
  display: grid;
  gap: 1.25rem;
  width: 100%;
}

.mobile-link {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 18vw, 8rem);
  line-height: 0.92;
}

.hero {
  display: grid;
  min-height: 100svh;
  background: var(--bg);
}

.hero-copy,
.hero-wall {
  min-height: 50svh;
}

.hero-copy {
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-height) + 2.25rem) var(--page-pad) clamp(2.75rem, 7vw, 4.75rem);
  background: var(--ink);
  color: var(--white);
}

.hero-copy-inner {
  max-width: 42rem;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 11vw, 6.2rem);
  line-height: 0.94;
}

.hero p {
  max-width: 35rem;
  margin-top: clamp(1.1rem, 3vw, 1.7rem);
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.98rem, 1.45vw, 1.08rem);
  line-height: 1.6;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2rem;
  margin-top: clamp(1.35rem, 3vw, 2.2rem);
  font-size: 0.98rem;
  font-weight: 500;
}

.hero-wall {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-laptop-showcase {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: calc(var(--header-height) + 2rem) var(--page-pad) clamp(3rem, 7vw, 5rem);
}

.laptop-stage {
  position: relative;
  width: min(118%, 58rem);
  aspect-ratio: 16 / 9;
}

.laptop-frame {
  position: relative;
  z-index: 3;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.laptop-screen {
  position: absolute;
  z-index: 1;
  top: 19.17%;
  left: 23.44%;
  width: 53.44%;
  height: 62.96%;
  overflow: hidden;
  background: var(--white);
}

.laptop-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  opacity: 0;
  transition: opacity 220ms ease;
}

.laptop-screen img.is-active {
  opacity: 1;
}

.laptop-notch {
  position: absolute;
  z-index: 4;
  top: 18.8%;
  left: 50%;
  width: 6.2%;
  height: 2.3%;
  border-radius: 0 0 0.42rem 0.42rem;
  background: var(--ink);
  transform: translateX(-50%);
  pointer-events: none;
}

.laptop-next {
  position: absolute;
  z-index: 5;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(2rem, 6vw, 5rem);
  display: grid;
  width: clamp(3rem, 5vw, 4rem);
  height: clamp(3rem, 5vw, 4rem);
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1;
  transition: transform 180ms var(--ease), background 180ms ease, color 180ms ease;
}

.laptop-next:hover,
.laptop-next:focus-visible {
  background: var(--ink);
  color: var(--bg);
  transform: translateX(0.2rem);
}

/* Browser-card carousel */
.hero-stack-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 2rem) var(--page-pad) clamp(2rem, 5vw, 3.5rem);
}

.mockup-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 7 / 5;
  overflow: hidden;
  border-radius: 0.72rem;
  box-shadow: 0 1rem 3.5rem rgba(10, 10, 10, 0.2), 0 0.3rem 0.8rem rgba(10, 10, 10, 0.1);
}

.browser-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  overflow: hidden;
  border: 1px solid rgba(10, 10, 10, 0.1);
  transform: translateX(100%);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.browser-card.is-active {
  transform: translateX(0);
}

.browser-card.is-leaving {
  transform: translateX(-100%);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.88rem;
  background: rgba(10, 10, 10, 0.04);
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  flex-shrink: 0;
}

.browser-dots {
  display: flex;
  gap: 0.38rem;
  flex-shrink: 0;
}

.browser-dot {
  display: block;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.2);
}

.browser-tab {
  background: var(--white);
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 0.3rem;
  padding: 0.22rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}

.browser-card img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.frost-edge {
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 0;
  width: min(34vw, 8rem);
  pointer-events: none;
  background: linear-gradient(90deg, rgba(242, 237, 228, 0) 0%, rgba(242, 237, 228, 0.94) 100%);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  mask-image: linear-gradient(90deg, transparent 0%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 100%);
}

.tile-field {
  position: absolute;
  inset: -11rem -8rem -12rem -5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(9rem, 1fr));
  gap: clamp(1.1rem, 2vw, 1.6rem);
  transform: rotate(15deg);
}

.tile-column {
  display: grid;
  gap: clamp(1.1rem, 2vw, 1.6rem);
  animation: tile-rise 28s linear infinite;
}

.column-two {
  transform: translateY(-7rem);
  animation-duration: 34s;
}

.column-three {
  transform: translateY(-3rem);
  animation-duration: 31s;
}

.mock-tile,
.project-mockup {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 1.1rem 2.6rem rgba(10, 10, 10, 0.18);
  isolation: isolate;
}

.mock-tile {
  min-height: 11rem;
  border: 1px solid rgba(10, 10, 10, 0.22);
}

.mock-tile::before,
.project-mockup::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 18%;
  border-bottom: 1px solid rgba(10, 10, 10, 0.16);
  background: rgba(10, 10, 10, 0.045);
  content: "";
}

.mock-tile::after,
.project-mockup::after {
  position: absolute;
  top: 8%;
  left: 8%;
  width: 32%;
  height: 1px;
  background: rgba(10, 10, 10, 0.4);
  content: "";
}

.mock-tile span,
.project-mockup span {
  position: absolute;
  display: block;
  background: rgba(10, 10, 10, 0.1);
}

.mock-tile span:nth-child(1),
.project-mockup span:nth-child(1) {
  top: 28%;
  left: 8%;
  width: 60%;
  height: 8%;
}

.mock-tile span:nth-child(2),
.project-mockup span:nth-child(2) {
  top: 43%;
  left: 8%;
  width: 78%;
  height: 3%;
}

.mock-tile span:nth-child(3),
.project-mockup span:nth-child(3) {
  top: 52%;
  left: 8%;
  width: 46%;
  height: 3%;
}

.mock-tile span:nth-child(4),
.project-mockup span:nth-child(4) {
  right: 8%;
  bottom: 10%;
  left: 8%;
  height: 24%;
}

.tile-a,
.tile-e,
.tile-i {
  min-height: 13rem;
}

.tile-b,
.tile-g,
.tile-k {
  min-height: 9.75rem;
}

.section-pad {
  padding: var(--section-space) var(--page-pad);
}

.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee span {
  display: block;
  padding: 0.95rem 1.2rem;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: clamp(1.95rem, 4.5vw, 4.2rem);
  font-style: italic;
  line-height: 1;
}

.services-strip {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--ink);
}

.services-strip article {
  padding: clamp(1.8rem, 4vw, 3.2rem) 0;
  border-top: 1px solid var(--ink);
}

.services-strip h2 {
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  line-height: 0.95;
}

.services-strip p {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
}

.section-heading {
  margin-bottom: clamp(2.2rem, 6vw, 4.5rem);
}

.section-heading h2 {
  font-size: clamp(2.8rem, 6.8vw, 5.9rem);
  line-height: 0.92;
}

.selected-grid,
.work-grid {
  display: grid;
  gap: clamp(2.2rem, 5vw, 4rem);
}

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

.project-mockup {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--ink);
  box-shadow: none;
  transition: transform 260ms var(--ease);
}

.project-mockup.is-shot {
  aspect-ratio: auto;
  background: var(--white);
}

.project-mockup.is-shot::before,
.project-mockup.is-shot::after,
.project-mockup.is-shot span {
  display: none;
}

.project-mockup img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}

.project-card:hover .project-mockup,
.work-card:hover .project-mockup {
  transform: scale(1.02);
}

.project-card-tall .project-mockup {
  aspect-ratio: 5 / 6;
}

.project-card-wide .project-mockup,
.work-wide .project-mockup {
  aspect-ratio: 16 / 8;
}

.project-card-tall .project-mockup.is-shot,
.project-card-wide .project-mockup.is-shot,
.work-wide .project-mockup.is-shot {
  aspect-ratio: auto;
}

.project-meta {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.05rem;
}

.project-meta h3,
.project-meta h2 {
  font-size: clamp(1.6rem, 2.45vw, 2.35rem);
  line-height: 1.02;
}

.project-meta p {
  font-size: 0.92rem;
  font-weight: 500;
}

.project-meta a {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.stats {
  display: grid;
  gap: 0;
  padding-top: 0;
}

.stats article {
  display: grid;
  gap: 1.25rem;
  padding: clamp(2rem, 5vw, 3.2rem) 0;
  border-top: 1px solid var(--ink);
}

.stats article:last-child {
  border-bottom: 1px solid var(--ink);
}

.stats span {
  font-size: 0.96rem;
  font-weight: 500;
}

.stats strong {
  font-family: var(--font-serif);
  font-size: clamp(2.7rem, 5.7vw, 4.8rem);
  font-weight: 400;
  line-height: 0.94;
}

.cta-section {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  padding: clamp(4rem, 9vw, 7rem) var(--page-pad);
  background: var(--ink);
  color: var(--white);
}

.cta-section h2 {
  max-width: 11ch;
  font-size: clamp(3rem, 7.2vw, 6.4rem);
  line-height: 0.92;
}

.cta-section a {
  font-weight: 500;
}

.page-main {
  padding: calc(var(--header-height) + clamp(2.75rem, 6vw, 5.25rem)) var(--page-pad) var(--section-space);
}

.page-intro {
  max-width: 79rem;
  margin: 0 auto clamp(3rem, 6vw, 5.5rem);
}

.page-intro h1,
.contact-intro h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7.3vw, 6.2rem);
  line-height: 0.92;
}

.page-intro p {
  margin-top: clamp(1.1rem, 2.5vw, 1.75rem);
  font-size: clamp(1rem, 1.65vw, 1.2rem);
}

.work-grid-section {
  max-width: 94rem;
  margin: 0 auto;
}

body[data-page="work"] .page-intro {
  margin-bottom: clamp(2.25rem, 4.5vw, 4rem);
}

body[data-page="work"] .work-card .project-mockup {
  aspect-ratio: 16 / 9;
}

body[data-page="work"] .work-wide .project-mockup {
  aspect-ratio: 16 / 7.5;
}

body[data-page="work"] .work-card .project-mockup.is-shot,
body[data-page="work"] .work-wide .project-mockup.is-shot {
  aspect-ratio: auto;
}

.project-detail {
  max-width: 96rem;
  margin: 0 auto;
}

.project-back {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  font-size: 0.95rem;
  font-weight: 500;
}

.project-hero {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.project-kicker {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.project-hero h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 7.3vw, 6.2rem);
  line-height: 0.92;
}

.project-hero p {
  margin-top: clamp(1.1rem, 2.5vw, 1.75rem);
  font-size: clamp(1rem, 1.65vw, 1.2rem);
}

.project-facts {
  display: grid;
  align-self: start;
  border-top: 1px solid var(--ink);
}

.project-facts div {
  display: grid;
  gap: 0.35rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--ink);
}

.project-facts dt {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.project-preview-stack {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.preview-frame {
  margin: 0;
}

.preview-frame img {
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--white);
}

.preview-frame figcaption {
  max-width: 54rem;
  margin-top: 1rem;
  font-size: 0.98rem;
}

.project-info {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(3.5rem, 8vw, 7rem);
  padding-top: clamp(2.5rem, 6vw, 5rem);
  border-top: 1px solid var(--ink);
}

.project-info h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.project-info-list {
  display: grid;
  gap: 1.5rem;
}

.project-info-list article {
  display: grid;
  gap: 0.4rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ink);
}

.project-info-list h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-info-list p {
  font-size: clamp(1rem, 1.55vw, 1.18rem);
}

.reveal-mockup em {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  padding: 1.1rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.35;
  transform: translateY(100%);
  transition: transform 260ms var(--ease);
}

.work-card:hover .reveal-mockup em,
.work-card:focus-within .reveal-mockup em {
  transform: translateY(0);
}

.editorial-list {
  max-width: 88rem;
  margin: 0 auto;
  border-bottom: 1px solid var(--ink);
}

.service-row {
  display: grid;
  gap: clamp(1.8rem, 4vw, 4rem);
  padding: clamp(2.25rem, 5.5vw, 4.5rem) 0;
  border-top: 1px solid var(--ink);
}

.service-row h2 {
  font-size: clamp(2.35rem, 5.2vw, 4.8rem);
  line-height: 0.92;
}

.service-row div p {
  margin-top: 0.8rem;
  font-size: 0.98rem;
  font-weight: 500;
}

.service-row > p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.48;
}

.about-intro {
  display: grid;
  gap: clamp(2.25rem, 6vw, 5rem);
}

.founder-section {
  border-top: 1px solid var(--ink);
}

.founder-inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 84rem;
  margin: 0 auto;
}

.founder-inner h2 {
  font-size: clamp(2.8rem, 6.8vw, 5.9rem);
  line-height: 0.92;
}

.founder-copy {
  display: grid;
  gap: 1.5rem;
  max-width: 48rem;
}

.founder-copy p {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.58;
}

.founder-linkedin {
  margin-top: 0.5rem;
  font-size: 0.98rem;
  font-weight: 500;
}

.about-copy {
  display: grid;
  gap: 1.6rem;
  max-width: 48rem;
}

.about-copy p {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.58;
}

.contact-main {
  min-height: calc(100svh - 20rem);
}

.contact-intro {
  display: grid;
  gap: clamp(1.7rem, 4vw, 2.6rem);
  max-width: 84rem;
  margin: 0 auto;
}

.contact-intro p {
  font-size: clamp(1rem, 1.65vw, 1.22rem);
}

.contact-email {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 4.2vw, 3.8rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 1.2rem;
  width: min(100%, 44rem);
  margin-top: clamp(0.5rem, 2vw, 1.5rem);
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-feature-settings: inherit;
  padding: 0.75rem 0;
  outline: 0;
}

.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 0.8rem) 1.35rem, calc(100% - 0.45rem) 1.35rem;
  background-repeat: no-repeat;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-bottom-width: 2px;
}

.contact-form button {
  justify-self: start;
  width: fit-content;
  margin-top: 0.35rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 500;
  padding: 0 0 0.18rem;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.form-status {
  min-height: 1.4em;
  font-size: 0.95rem;
}

.form-trap {
  position: absolute;
  left: -9999px;
}

.site-footer {
  padding: 0 var(--page-pad) clamp(1.2rem, 3vw, 2rem);
  border-top: 1px solid rgba(242, 237, 228, 0.65);
  background: var(--ink);
  color: var(--bg);
}

.footer-main {
  display: grid;
  gap: 2rem;
  padding: clamp(2.4rem, 6vw, 5rem) 0;
}

.footer-wordmark {
  font-family: var(--font-logo);
  font-size: clamp(2.2rem, 5.3vw, 4.8rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.94;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.8rem;
  align-self: start;
  font-weight: 500;
}

.site-footer p {
  font-size: 0.95rem;
}

.copyright {
  padding-top: 1rem;
  border-top: 1px solid rgba(242, 237, 228, 0.65);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 400ms ease, transform 400ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes page-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes tile-rise {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -50%;
  }
}

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

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

@media (min-width: 740px) {
  .desktop-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

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

  .hero-copy,
  .hero-wall {
    min-height: 100svh;
  }

  .hero-copy {
    align-items: center;
    padding-top: var(--header-height);
  }

  .tile-field {
    inset: -14rem -9rem -15rem -6rem;
    grid-template-columns: repeat(3, minmax(10.5rem, 1fr));
  }

  .services-strip {
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--ink);
  }

  .services-strip article {
    min-height: clamp(18rem, 28vw, 25rem);
    padding: clamp(1.7rem, 3.2vw, 3rem);
    border-top: 0;
  }

  .services-strip article + article {
    border-left: 1px solid var(--ink);
  }

  .selected-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .project-card-wide {
    grid-column: 1 / -1;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
  }

  .stats article,
  .stats article:last-child {
    border: 0;
  }

  .stats article + article {
    border-left: 1px solid var(--ink);
    padding-left: clamp(2rem, 4vw, 4rem);
  }

  .work-grid {
    grid-template-columns: repeat(6, 1fr);
    align-items: start;
  }

  .work-card {
    grid-column: span 3;
  }

  .work-large {
    grid-column: span 4;
  }

  .work-card:nth-child(2),
  .work-card:nth-child(5) {
    grid-column: span 2;
  }

  .work-wide {
    grid-column: span 6;
  }

  .service-row {
    grid-template-columns: minmax(18rem, 0.92fr) minmax(22rem, 1fr);
  }

  .about-intro {
    grid-template-columns: minmax(20rem, 0.95fr) minmax(25rem, 1fr);
  }

  .project-hero,
  .project-info {
    grid-template-columns: minmax(22rem, 0.95fr) minmax(24rem, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
  }

  .footer-main p {
    justify-self: end;
    text-align: right;
  }
}

@media (min-width: 1100px) {
  .hero-copy {
    padding-right: clamp(2.5rem, 5.5vw, 5.5rem);
  }

  .hero h1 {
    font-size: clamp(4.75rem, 5.25vw, 6.1rem);
  }

  .selected-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .project-card-tall {
    padding-top: 5rem;
  }

  .project-card-wide {
    width: 76%;
    margin-left: auto;
  }

  .work-card:nth-child(2) {
    padding-top: 3rem;
  }

  .work-card:nth-child(3) {
    padding-top: 2rem;
  }

  .work-card:nth-child(5) {
    padding-top: 6rem;
  }
}
