:root {
  --paper: #0a0a0a;
  --paper-2: #141414;
  --ink: #f4f0ea;
  --muted: #9a948a;
  --rule: #2a2a2a;
  --max: 1180px;
  --wide: 1440px;
  --serif: "Fraunces Display", "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", sans-serif;
  --serif-features: "liga" 1, "clig" 1, "dlig" 1, "calt" 1, "swsh" 1, "cswh" 1, "ss01" 1;
  --serif-vars: "SOFT" 50, "WONK" 1, "opsz" 144;
  --lights: 0;
}

@font-face {
  font-family: "Libre Franklin";
  src: url("fonts/LibreFranklin-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces Display";
  src: url("fonts/Fraunces-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces Display";
  src: url("fonts/Fraunces-Italic-Variable.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.is-day {
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

h1,
h2,
.values h3,
.footer-line,
.architect-logo,
.work-story-title,
.services-nav button {
  font-optical-sizing: none;
  font-kerning: normal;
  font-synthesis: none;
  letter-spacing: normal;
  font-variant-ligatures: common-ligatures discretionary-ligatures contextual;
  font-variant-alternates: stylistic(1);
  font-feature-settings: var(--serif-features);
  font-variation-settings: var(--serif-vars);
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 350;
  line-height: 1.15;
}

address {
  font-style: normal;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  z-index: 20;
}

.skip:focus {
  top: 1rem;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.loader img {
  width: min(220px, 56vw);
  height: auto;
  animation: loader-in 0.7s ease both;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes loader-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.15rem 1.25rem 0.95rem;
  background: color-mix(in srgb, #0a0a0a 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f4f0ea;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: #000;
}

.wordmark {
  display: block;
  line-height: 0;
  transition: opacity 0.35s ease;
}

.wordmark img {
  height: 36.13px;
  width: auto;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  position: relative;
  color: #ebe3d6;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2em;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.nav-toggle {
  display: none;
}

.hero {
  height: 180vh;
  margin-top: -5.7rem;
}

.hero-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

.hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  background: #000;
}

.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.hero-layer.is-night {
  opacity: var(--lights);
}

.hero-copy {
  position: absolute;
  left: 50%;
  top: 38%;
  z-index: 1;
  width: min(72rem, calc(100% - 2rem));
  transform: translate(-50%, -42%);
  text-align: center;
}

.eyebrow,
.kicker {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 auto 0.85rem;
  font-size: clamp(1.55rem, 4.4vw, 2.85rem);
  max-width: none;
  white-space: normal;
}

.lede {
  margin: 0 auto;
  max-width: none;
  color: #f0d6a8;
  font-size: clamp(0.7rem, 1.4vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.75;
  text-transform: uppercase;
}

.lede-sub {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.16em;
}

.hero-cta {
  display: inline-block;
  margin-top: 1.45rem;
  padding: 0.72rem 1.35rem;
  border: 1px solid #f0d6a8;
  background: #f0d6a8;
  color: #1a1814;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero-cta:hover {
  background: transparent;
  color: #f0d6a8;
  text-decoration: none;
}

.site-header.is-footer {
  background: transparent;
  border-bottom-color: transparent;
}

.site-header.is-footer .wordmark {
  opacity: 0;
  pointer-events: none;
}

.daylight {
  --paper: #f6f1e8;
  --paper-2: #ebe4d6;
  --ink: #1a1814;
  --muted: #5f5a52;
  --rule: #d8d0c2;
  background: var(--paper);
  color: var(--ink);
}

.work,
.values,
.contact {
  width: min(var(--max), calc(100% - 3rem));
  margin-left: auto;
  margin-right: auto;
}

.services {
  height: 320vh;
}

.services-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: min(var(--wide), calc(100% - 3rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 7.25rem 0 1.4rem;
}

.services-core,
.services-core-inner {
  display: flex;
  flex-direction: column;
  flex: none;
  min-height: 0;
}

.services-progress {
  flex: none;
  width: 100%;
  height: 3px;
  margin-top: 0.9rem;
  background: var(--rule);
  pointer-events: none;
}

.services-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #b0a799;
  transform: scaleX(var(--service-progress, 0));
  transform-origin: left center;
}

.services-main {
  flex: none;
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
  column-gap: 3.5rem;
  align-items: start;
  align-content: start;
  min-height: 0;
}

.services-col {
  display: grid;
  align-content: start;
  gap: 1.5rem;
}

.services-nav ol {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.services-nav button {
  appearance: none;
  display: flex;
  align-items: baseline;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #b0a899;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  font-weight: 350;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.service-num {
  display: inline-flex;
  align-items: center;
  flex: none;
  width: 1.45rem;
  height: 1ex;
  margin-right: 0.65rem;
}

.service-num span {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #b0a799;
}

.services-nav button:hover,
.services-nav button[aria-current="true"] {
  color: var(--ink);
}

.amp {
  font-style: normal;
  font-feature-settings: "ss01" 0, "liga" 0;
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 144;
}

.services-copy {
  display: grid;
}

.services-copy p {
  grid-area: 1 / 1;
  margin: 0;
  max-width: 30ch;
  color: var(--ink);
  opacity: 0;
}

.services-copy p.is-front {
  opacity: 1;
}

.services-stage {
  min-height: 0;
  overflow: hidden;
}

.services-track {
  display: flex;
  width: 100%;
  transform: translateX(calc(var(--slide, 0) * -100%));
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-photo {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
}

.service-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 46vh;
  object-fit: cover;
}

.architects {
  flex: none;
  width: 100%;
  margin-top: 1.75rem;
  padding-bottom: 0.35rem;
  scroll-margin-top: 7.25rem;
}

.architects h2 {
  margin: 0 0 1.15rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-variant-alternates: normal;
  font-synthesis: weight;
}

.architect-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem 1.4rem;
  align-items: stretch;
}

.architect-logo {
  display: grid;
  place-items: center;
  min-height: 6.3rem;
  padding: 0.2rem 0.4rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 350;
  text-align: center;
  line-height: 1.25;
}

.architect-logo.is-placeholder {
  color: #b0a899;
}

a.architect-logo {
  text-decoration: none;
}

a.architect-logo img {
  width: auto;
  max-width: 100%;
  max-height: 6.12rem;
  object-fit: contain;
}

a.architect-logo:hover,
a.architect-logo:focus-visible {
  opacity: 0.7;
}

.services-skip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: 0.28rem;
  margin-top: auto;
  padding-top: 1.1rem;
  color: #8a8173;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.services-skip:hover {
  color: var(--ink);
}

.services-skip svg {
  display: block;
}

.work h2,
.contact h2 {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.work {
  padding: 5rem 0 6rem;
  width: min(var(--wide), calc(100% - 3rem));
  margin-left: auto;
  margin-right: auto;
  scroll-margin-top: 6.2rem;
}

.work-head {
  width: min(var(--max), 100%);
  margin: 0 auto 2.4rem;
}

.work-head p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.work-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 3;
  column-gap: 1.1rem;
}

.work-grid > li {
  display: inline-block;
  width: 100%;
  margin: 0 0 1.1rem;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

@supports (grid-template-rows: masonry) {
  .work-grid {
    display: grid;
    column-count: unset;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: masonry;
    gap: 1.1rem;
  }

  .work-grid > li {
    display: block;
    margin: 0;
  }
}

.work-item {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 0.5px solid #272625;
  background: #e8dcc8;
  isolation: isolate;
  cursor: zoom-in;
  text-align: left;
  color: inherit;
  font: inherit;
  overflow: hidden;
}

.work-item img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.08) brightness(1.06);
  transition: filter 0.45s ease;
}

.work-item:hover img,
.work-item:focus-visible img {
  mix-blend-mode: normal;
  filter: none;
}

.work-item-story {
  background: #272625;
}

.work-item:hover.work-item-story img,
.work-item:focus-visible.work-item-story img {
  mix-blend-mode: normal;
  filter: grayscale(1) contrast(1.12) brightness(0.95);
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 1.15rem 0.8rem;
  background: #272625;
  color: #f6f1e8;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.work-title,
.work-place {
  min-width: 0;
}

.work-title {
  line-height: 1.3;
}

.work-place {
  color: #b8b2a8;
}

a.work-item {
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

.work-item-story img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: normal;
}

.work-story-shade {
  position: absolute;
  inset: 0;
  background: #272625;
  mix-blend-mode: multiply;
  opacity: 0.72;
  pointer-events: none;
}

.work-story {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.65rem;
  min-height: 22rem;
  padding: 1.5rem 1.2rem 1.6rem;
  color: #f6f1e8;
  background: linear-gradient(180deg, rgb(39 38 37 / 0.2) 22%, rgb(39 38 37 / 0.78) 100%);
}

.work-story-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b8b2a8;
}

.work-story-title {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
  font-weight: 350;
  line-height: 1.15;
}

.work-story-lede {
  max-width: 24ch;
  color: #b8b2a8;
  font-size: 0.9rem;
  line-height: 1.45;
}

.work-story-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.work-story-ext {
  width: 0.85rem;
  height: 0.85rem;
  flex: none;
}

.work-item-story:hover .work-story-cta,
.work-item-story:focus-visible .work-story-cta {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.values {
  padding: 4.5rem 0 5.5rem;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 6.2rem;
  text-align: center;
}

.values-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem 2.2rem;
}

.value-icon {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 0.35rem;
  object-fit: contain;
}

.value-icon.is-flipped {
  transform: scaleX(-1);
}

.values h3 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 350;
  line-height: 1.15;
}

.values p {
  margin: 0 auto;
  max-width: 32ch;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f6f1e8;
  color: #f4f0ea;
  text-align: center;
  padding: 6.4rem 1.5rem 2.4rem;
}

.footer-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  isolation: isolate;
  background: #0a0a0a;
  clip-path: circle(0 at 50% 46%);
}

.footer-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 42%;
  filter: grayscale(0.55) contrast(1.12) brightness(0.55);
}

.footer-fill {
  position: absolute;
  inset: 0;
  background: #141210;
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.site-footer.is-in .footer-scene {
  animation: footer-fill 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes footer-fill {
  from {
    clip-path: circle(0 at 50% 46%);
  }
  to {
    clip-path: circle(160% at 50% 46%);
  }
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  display: grid;
  justify-items: start;
  text-align: left;
}

.footer-mark {
  display: block;
  width: min(48vw, 420px);
  margin: 0 0 1.15rem;
  transform: scale(0.78);
  opacity: 0;
  text-decoration: none;
}

.footer-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-mark:hover img,
.footer-mark:focus-visible img {
  opacity: 0.72;
}

.footer-copy {
  width: 100%;
  display: grid;
  gap: 2rem;
  opacity: 0;
  transform: translateY(14px);
}

.footer-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem 3.5rem;
  align-items: start;
}

.site-footer.is-in .footer-mark {
  animation: footer-mark 1.2s 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-footer.is-in .footer-copy {
  animation: footer-copy 0.9s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes footer-mark {
  from {
    opacity: 0;
    transform: scale(0.78);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes footer-copy {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.footer-line {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 350;
}

.footer-lead {
  margin: 0.45rem 0 0;
  font-size: 1.0625rem;
  color: #c9c3b8;
}

.footer-lead a,
.footer-grid a {
  text-decoration: none;
}

.footer-lead a:hover,
.footer-grid a:hover:not(.footer-ig) {
  text-decoration: underline;
}

.footer-form-col {
  display: grid;
  gap: 1.85rem;
  align-content: start;
}

.footer-reviews {
  pointer-events: none;
}

.footer-reviews-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9c3b8;
}

.footer-reviews-stars {
  display: flex;
  gap: 0.2rem;
  margin: 0 0 0.75rem;
  color: #f0d6a8;
}

.footer-reviews-stars svg {
  display: block;
}

.footer-reviews-track {
  display: grid;
  min-height: 7.5rem;
}

.footer-reviews-track blockquote {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.footer-reviews-track blockquote.is-front {
  opacity: 1;
}

.footer-reviews-track p {
  margin: 0 0 0.7rem;
  color: #f4f0ea;
  font-size: 0.98rem;
  line-height: 1.5;
}

.footer-reviews-track cite {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a857c;
}

.footer-form {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 0.85rem;
  text-align: left;
  color-scheme: dark;
}

.footer-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.footer-form label {
  display: grid;
  gap: 0.35rem;
}

.footer-form span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9c3b8;
}

.footer-form em {
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #8a857c;
}

.footer-form input,
.footer-form textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid #5c574e;
  background: rgb(0 0 0 / 0.38);
  color: #fff;
  caret-color: #f0d6a8;
  font: inherit;
  font-size: 1rem;
  border-radius: 0;
}

.footer-form input:focus,
.footer-form textarea:focus {
  outline: 1px solid #f4f0ea;
  border-color: #f4f0ea;
  background: rgb(0 0 0 / 0.5);
}

.footer-form input:-webkit-autofill,
.footer-form textarea:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  caret-color: #f0d6a8;
  box-shadow: 0 0 0 1000px rgb(12 10 8 / 0.92) inset;
  transition: background-color 99999s ease-out 0s;
}

.footer-form textarea {
  resize: vertical;
  min-height: 7rem;
}

.footer-submit {
  justify-self: start;
  margin-top: 0.2rem;
  padding: 0.72rem 1.35rem;
  border: 1px solid #f4f0ea;
  background: #f4f0ea;
  color: #1a1814;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.footer-submit:hover {
  background: transparent;
  color: #f4f0ea;
}

.footer-form-thanks {
  margin: 0;
  max-width: 28rem;
  color: #f4f0ea;
  font-size: 1.05rem;
  line-height: 1.55;
}

.footer-form[hidden],
.footer-form-thanks[hidden] {
  display: none;
}

.footer-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem 0.5rem 0.65rem;
  background: #fff;
  color: #0a0a0a;
  text-decoration: none;
}

.footer-ig:hover,
.footer-ig:focus-visible {
  text-decoration: none;
  background: #f4f0ea;
}

.footer-ig svg {
  display: block;
  flex: none;
  color: inherit;
}

.footer-grid {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0 0;
  color: #c9c3b8;
}

.footer-meta {
  display: grid;
  gap: 0.25rem;
  color: #8a857c;
  font-size: 0.78rem;
}

.footer-meta p,
.footer-grid p {
  margin: 0;
}

.to-top {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #8a857c;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
}

.site-footer.is-in .to-top {
  opacity: 1;
  transition: opacity 0.6s 0.75s ease, color 0.2s ease;
}

.to-top:hover {
  color: #f4f0ea;
}

.to-top svg {
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgb(0 0 0 / 0.94);
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
  max-width: min(1100px, 100%);
}

.lightbox img {
  max-height: 78vh;
  width: auto;
  margin: 0 auto;
}

.lightbox figcaption {
  margin-top: 0;
  padding: 0.85rem 1.15rem;
  background: #272625;
  color: #f6f1e8;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.lightbox-close {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 860px) {
  .site-header {
    padding-left: max(1.1rem, env(safe-area-inset-left));
    padding-right: max(1.1rem, env(safe-area-inset-right));
  }

  .nav a {
    font-size: 0.8rem;
    padding: 0.35rem 0;
  }

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

  .work-grid {
    column-count: 2;
  }

  @supports (grid-template-rows: masonry) {
    .work-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .work,
  .values {
    width: calc(100% - 2.2rem);
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services {
    height: auto;
  }

  .services-pin {
    position: static;
    height: auto;
    width: 100%;
    padding: 0;
    overflow: visible;
  }

  .services-core {
    display: block;
    height: 320vh;
  }

  .services-core-inner {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    width: calc(100% - 2.2rem);
    margin: 0 auto;
    padding: 5.2rem 0 1rem;
    overflow: hidden;
  }

  .services-main {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 0.75rem;
    flex: none;
    min-height: 0;
  }

  .services-stage {
    overflow: hidden;
    isolation: isolate;
  }

  .services-track {
    display: grid;
    width: 100%;
    transform: none;
  }

  .service-photo {
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
  }

  .service-photo.is-front {
    opacity: 1;
    pointer-events: auto;
  }

  .services-progress {
    display: block;
    margin-top: 0.65rem;
  }

  .architects {
    --logo-gap: 0.7rem;
    width: calc(100% - 2.2rem);
    margin: 2rem auto 0;
    padding-bottom: 0.2rem;
  }

  .work {
    padding-top: 3.2rem;
  }

  .work-head {
    margin-bottom: 0.7rem;
  }

  .work-head h2 {
    margin-bottom: 0.45rem;
  }

  .architect-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    gap: var(--logo-gap);
  }

  .architect-logos li {
    display: grid;
  }

  .architect-logos li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - var(--logo-gap)) / 2);
    justify-self: center;
  }

  .architect-logo {
    min-height: 0;
    padding: 0;
    width: 100%;
  }

  a.architect-logo img {
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: auto;
  }

  .services-skip {
    display: none;
  }

  .services-col {
    gap: 0.65rem;
  }

  .services-copy p {
    max-width: none;
    font-size: 0.95rem;
  }

  .services-nav ol {
    display: grid;
    gap: 0.18rem;
  }

  .services-nav button {
    width: 100%;
    font-size: clamp(1.7rem, 7.4vw, 2.2rem);
    padding: 0;
    line-height: 1.12;
  }

  .service-num {
    width: 1.75rem;
    margin-right: 0.75rem;
  }

  .service-num span {
    font-size: 0.72rem;
  }

  .service-photo img {
    aspect-ratio: 16 / 10;
    max-height: 34vh;
  }

  .hero {
    height: 145vh;
    margin-top: -5.6rem;
  }

  .hero-copy {
    top: 40%;
    width: min(22rem, calc(100% - 1.8rem));
    padding-inline: 0.15rem;
  }

  h1 {
    font-size: clamp(1.45rem, 6.8vw, 2rem);
  }

  .lede {
    font-size: clamp(0.68rem, 3.15vw, 0.82rem);
    letter-spacing: 0.055em;
  }

  .site-footer {
    padding: 5.4rem max(1.25rem, env(safe-area-inset-right)) max(2.2rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  }

  .to-top {
    right: max(1.15rem, env(safe-area-inset-right));
    bottom: max(1.15rem, env(safe-area-inset-bottom));
  }

  .footer-mark {
    width: min(72vw, 320px);
    margin-bottom: 0.4rem;
  }

  .footer-split,
  .footer-form-row {
    grid-template-columns: 1fr;
  }

  .footer-split {
    gap: 2rem;
  }

  .footer-mark,
  .footer-copy,
  .to-top {
    opacity: 1;
    transform: none;
  }

  .site-footer.is-in .footer-mark,
  .site-footer.is-in .footer-copy,
  .site-footer.is-in .footer-scene {
    animation: none;
  }

  .footer-scene,
  .footer-fill {
    clip-path: none;
  }

  .lightbox {
    padding: 4.2rem 1rem max(1.4rem, env(safe-area-inset-bottom));
  }

  .lightbox img {
    max-height: 68dvh;
  }

  .work-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
    padding: 0.65rem 0.7rem 0.6rem;
    font-size: 0.72rem;
  }

  .lightbox figcaption {
    overflow-wrap: anywhere;
    padding-inline: 0.85rem;
  }

  .work-story {
    min-height: 16rem;
    padding: 1.15rem 0.95rem 1.2rem;
  }
}

@media (max-width: 560px) {
  .nav ul {
    gap: 0.2rem 0.95rem;
  }

  .work-head h2 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .footer-ig {
    max-width: 100%;
  }

  .footer-form input,
  .footer-form textarea {
    font-size: 16px;
  }
}

@media (min-width: 861px) {
  .services {
    height: 320vh;
  }

  .services-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .architects {
    flex: none;
    width: 100%;
    margin-top: 1.75rem;
    padding-bottom: 0.35rem;
  }

  .architect-logos {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem 1.4rem;
  }

  .architect-logos li:last-child:nth-child(odd) {
    grid-column: auto;
    width: auto;
    justify-self: auto;
  }

  .architect-logo {
    min-height: 7.25rem;
    padding: 0.2rem 0.4rem;
    width: auto;
  }

  a.architect-logo img {
    width: auto;
    max-width: 100%;
    max-height: 7.04rem;
    height: auto;
  }

  .services-skip {
    display: inline-flex;
    margin-top: auto;
  }
}

@media (scripting: none) {
  .services {
    height: auto;
  }

  .services-pin {
    position: relative;
    height: auto;
  }

  .services-progress {
    display: none;
  }

  .service-photo,
  .services-copy p {
    opacity: 1;
    transform: none;
    position: static;
    grid-area: auto;
    will-change: auto;
  }

  .site-footer,
  .footer-scene,
  .footer-fill {
    background: #0a0a0a;
    clip-path: none;
  }

  .footer-mark,
  .footer-copy {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services {
    height: auto;
  }

  .services-pin {
    position: relative;
    height: auto;
  }

  .services-progress {
    display: none;
  }

  .services-track,
  .footer-reviews-track blockquote {
    transition: none;
  }

  .service-photo {
    will-change: auto;
  }

  html {
    scroll-behavior: auto;
  }

  :root {
    --lights: 1;
  }

  .nav a::after {
    transition: none;
  }

  .loader img,
  .work-item img,
  .loader,
  .footer-scene,
  .footer-fill,
  .footer-mark {
    animation: none;
    transition: none;
  }

  .site-footer,
  .site-footer.is-in .footer-scene,
  .footer-scene,
  .footer-fill {
    background: #0a0a0a;
    clip-path: none;
  }

  .site-footer.is-in .footer-mark,
  .site-footer.is-in .footer-copy,
  .site-footer.is-in .to-top,
  .footer-mark,
  .footer-copy,
  .to-top {
    opacity: 1;
    transform: none;
  }
}

.missing {
  min-height: calc(100dvh - 8rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.25rem 4rem;
}

.missing-inner {
  width: min(36rem, 100%);
}

.missing h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 6vw, 3.4rem);
  white-space: normal;
}

.missing p {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--muted);
}
