:root {
  --paper: #f4f1eb;
  --ink: #161513;
  --muted: #5e574f;
  --line: rgba(22, 21, 19, 0.16);
  --dark: #121110;
  --cream: #f4f1eb;
  --pad: clamp(20px, 3.4vw, 56px);
  --max: 1640px;
  --header: 76px;
  --serif: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 80;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 var(--pad);
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header.on-dark {
  background: var(--dark);
  color: var(--cream);
  border-bottom-color: rgba(244, 241, 235, 0.16);
}

.logo .for-dark {
  display: none;
}

.site-header.on-dark .logo .for-paper {
  display: none;
}

.site-header.on-dark .logo .for-dark,
.site-header.on-hero .logo .for-dark {
  display: block;
}

.site-header.on-hero .logo .for-paper,
.site-header.on-dark .logo .for-paper {
  display: none;
}

.site-header.on-hero {
  background: linear-gradient(to bottom, rgba(18, 17, 16, 0.62), rgba(18, 17, 16, 0));
  color: var(--cream);
  border-bottom-color: transparent;
}

.site-header.menu-open {
  background: var(--paper);
  color: var(--ink);
}

.site-header.menu-open .logo .for-paper {
  display: block;
}

.site-header.menu-open .logo .for-dark {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.logo img {
  height: 52px;
  width: auto;
}

.nav {
  display: flex;
  gap: 1.7rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.3s ease;
}

.nav a:hover {
  background-size: 100% 1px;
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero {
  position: relative;
  height: calc(100svh - 52px);
  min-height: 520px;
  margin-top: calc(var(--header) * -1);
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  background: #1a1917;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(12, 11, 10, 0.78) 0%, rgba(12, 11, 10, 0.34) 34%, rgba(12, 11, 10, 0) 62%),
    linear-gradient(to bottom, rgba(12, 11, 10, 0.28), transparent 16%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - var(--pad) * 2));
  margin: 0 0 clamp(22px, 3.5vh, 40px) var(--pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.hero-kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.78);
}

.hero-cap {
  position: absolute;
  z-index: 1;
  right: var(--pad);
  bottom: clamp(22px, 3.5vh, 40px);
  margin: 0;
  max-width: 22ch;
  text-align: right;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: rgba(247, 244, 239, 0.82);
}

.hero-cta {
  color: var(--cream);
  margin-top: 0.2rem;
}

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

h1 {
  font-size: clamp(2.7rem, 4.2vw, 4.35rem);
  line-height: 0.98;
  max-width: 16ch;
  color: inherit;
}

.lede {
  margin: 0;
  max-width: 38ch;
  color: rgba(247, 244, 239, 0.9);
  font-weight: 300;
  font-size: 1.05rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  text-decoration: none;
  border: 0;
  background: none;
  padding: 0 0 0.15rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.98rem;
}

.office-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.office-bar-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 0.65rem 0;
}

.office-bar p {
  margin: 0;
  font-size: 0.95rem;
}

.office-bar a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.05rem;
  white-space: nowrap;
  font-size: 0.95rem;
}

.intro {
  padding: clamp(2rem, 3.6vw, 3.25rem) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem 3rem;
  align-items: start;
}

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

.intro-grid .eyebrow {
  grid-column: 1 / -1;
}

.intro h2 {
  font-size: clamp(1.85rem, 2.6vw, 2.55rem);
  line-height: 1.08;
  max-width: 22ch;
}

.intro p:last-child {
  margin: 0;
  font-weight: 300;
  font-size: 1.05rem;
  max-width: 58ch;
}

.section {
  padding: clamp(2rem, 3.8vw, 3.4rem) 0;
  scroll-margin-top: var(--header);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.sec-label span {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1rem;
  margin-right: 0.55rem;
}

.section-note {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 300;
  text-align: right;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem 0.8rem;
}

.project-grid[hidden],
.house-view[hidden] {
  display: none !important;
}

.house-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.house-bar p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.house-count {
  margin-left: 0.55rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.house-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem 0.7rem;
}

.house-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
  min-width: 0;
}

.house-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e4dfd6;
}

.house-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
  min-width: 0;
}

.project-frame {
  overflow: hidden;
  background: #e4dfd6;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-card:hover img,
.project-card:focus-visible img {
  transform: scale(1.03);
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  align-items: baseline;
}

.num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
}

.name {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.kind {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.desc {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pause {
  margin: 0;
}

.pause img {
  width: 100%;
  height: min(46vh, 520px);
  min-height: 220px;
  object-fit: cover;
  object-position: center;
}

.pause figcaption {
  padding-top: 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.ground {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 0.9rem 0.65rem;
}

.shot {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e4dfd6;
  transition: transform 0.8s ease;
}

.shot:hover img,
.shot:focus-visible img {
  transform: scale(1.025);
}

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

.cap {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
}

.practice {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.practice li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 1.1rem 1.5rem 1.2rem 0;
  border-right: 1px solid var(--line);
}

.practice li:last-child {
  border-right: 0;
  padding-right: 0;
}

.practice h3 {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-style: italic;
}

.practice p {
  margin: 0;
  font-weight: 300;
  color: var(--ink);
}

.team-section {
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}

.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2.5rem;
}

.member {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.9rem;
  align-items: center;
  margin: 0;
  min-width: 0;
}

.member img {
  width: 92px;
  height: 112px;
  object-fit: cover;
  object-position: center 15%;
  background: #e4dfd6;
}

.member figcaption {
  padding-top: 0;
}

.member h3 {
  font-size: 1.35rem;
}

.member p {
  margin: 0.2rem 0 0;
  max-width: 36ch;
  font-size: 0.95rem;
  font-weight: 300;
}

.visit {
  background: var(--dark);
  color: var(--cream);
  padding: clamp(2.5rem, 4.5vw, 3.75rem) 0;
  scroll-margin-top: var(--header);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.sec-label.light {
  color: rgba(244, 241, 235, 0.62);
  margin-bottom: 0.75rem;
}

.visit h2 {
  font-size: clamp(2.1rem, 3.4vw, 3.2rem);
  line-height: 1.02;
  max-width: 14ch;
}

.visit-lead {
  margin: 1.25rem 0 0;
  max-width: 34ch;
  font-weight: 300;
  color: rgba(244, 241, 235, 0.86);
}

address {
  font-style: normal;
  margin-top: 1.35rem;
  line-height: 1.5;
}

.visit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 1.4rem 0 0;
}

.visit-links a {
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 241, 235, 0.45);
  padding-bottom: 0.1rem;
}

.enquiry {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.enquiry label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.enquiry label span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 241, 235, 0.62);
}

.enquiry input,
.enquiry textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(244, 241, 235, 0.28);
  border-radius: 0;
  padding: 0.55rem 0 0.7rem;
  resize: vertical;
}

.enquiry input:focus,
.enquiry textarea:focus {
  outline: none;
  border-bottom-color: var(--cream);
}

.send {
  margin-top: 0.6rem;
  align-self: flex-start;
  background: var(--cream);
  color: var(--dark);
  border: 0;
  padding: 0.9rem 1.3rem;
  letter-spacing: 0.02em;
}

.send:hover {
  background: #fff;
}

.form-note {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(244, 241, 235, 0.75);
}

.footer {
  background: var(--dark);
  color: var(--cream);
  padding: 0 0 2rem;
}

.footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(244, 241, 235, 0.16);
}

.footer-row img {
  height: 54px;
  width: auto;
}

.footer p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(244, 241, 235, 0.78);
}

.legal {
  text-align: right;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #0c0c0b;
  color: var(--cream);
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: auto 1fr auto;
}

.lightbox[hidden] {
  display: none;
}

.lb-bar,
.lb-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.lb-bar p,
.lb-foot p {
  margin: 0;
  font-size: 0.95rem;
}

.lb-close,
.lb-arrow {
  background: none;
  border: 0;
  color: var(--cream);
  padding: 0.4rem;
}

.lb-arrow {
  font-size: 1.5rem;
  padding: 1rem;
}

.lb-figure {
  margin: 0;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0 0.5rem;
}

.lb-figure img {
  max-width: min(88vw, 1280px);
  max-height: calc(100vh - 210px);
  width: auto;
  height: auto;
  object-fit: contain;
}

#lb-cap {
  width: min(640px, 88vw);
  margin: 0;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(247, 244, 239, 0.9);
  overflow-wrap: anywhere;
  max-height: 4.6em;
  overflow: auto;
}

#lb-cap:empty {
  display: none;
}

.lb-foot {
  justify-content: flex-end;
}

#lb-count {
  font-variant-numeric: tabular-nums;
  color: rgba(244, 241, 235, 0.7);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .intro-grid,
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .section-note {
    text-align: left;
  }

  .project-grid,
  .house-grid,
  .team {
    grid-template-columns: 1fr 1fr;
  }

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

  .practice li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
  }

  .practice li:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 800px) {
  :root {
    --header: 68px;
  }

  .logo img {
    height: 46px;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: var(--paper);
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.15rem;
    padding: 1.5rem var(--pad) 2.5rem;
    transform: translateY(-102%);
    transition: transform 0.4s ease;
  }

  .nav.is-open {
    transform: none;
  }

  .nav a {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 12vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    width: fit-content;
  }

  .hero {
    height: 100svh;
    min-height: 100svh;
  }

  .hero-cap {
    display: none;
  }

  .hero-copy {
    margin-bottom: 1.35rem;
  }

  h1 {
    font-size: clamp(2.45rem, 11vw, 3.3rem);
    max-width: 12ch;
  }

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

  .member {
    grid-template-columns: 84px 1fr;
  }

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

  .project-card img {
    aspect-ratio: 3 / 2;
  }

  .ground,
  .span-2 {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .office-bar-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 0;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal {
    text-align: left;
  }

  .lb-arrow {
    padding: 0.25rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
