:root {
  --ink: #2e2620;
  --charcoal: #3e362e;
  --ivory: #f7f0e5;
  --brass: #c08a45;
  --brass-light: #d9ae72;
  --muted: #7c7164;
  --rule: #d9d3c7;
  --text-subtle: #665d53;
  --accent-text: #704817;
  --focus: #916e3e;
  --content: 77.5rem;
  --page-gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-space: clamp(5rem, 10vw, 9rem);
  --serif: "Lora", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Poppins", Inter, "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html {
  background: var(--ivory);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(62, 54, 46, 0.035) 1px) 0 0 / min(8.333vw, 8rem) 100%,
    var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

figure,
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin-top: 0;
}

ul,
ol {
  padding: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 0.08em;
}

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

button {
  font: inherit;
}

[hidden] {
  display: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--ivory);
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
.section,
.project-detail {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 6rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.desktop-navigation {
  justify-self: end;
}

.desktop-navigation ul,
#mobile-navigation ul {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  margin: 0;
  list-style: none;
}

.desktop-navigation a,
#mobile-navigation a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-navigation a::after,
#mobile-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 0.45rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--brass);
  content: "";
  transition: transform 180ms ease;
}

.desktop-navigation a:hover::after,
.desktop-navigation a:focus-visible::after,
#mobile-navigation a:hover::after,
#mobile-navigation a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.desktop-navigation .navigation-email,
#mobile-navigation .navigation-email {
  color: var(--accent-text);
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  text-transform: none;
}

[data-menu-button] {
  display: none;
  min-width: 4rem;
  min-height: 2.75rem;
  border: 1px solid var(--charcoal);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#mobile-navigation {
  display: none;
}

main {
  counter-reset: section;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 6.6rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -0.015em;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--text-subtle);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1.45;
  text-transform: uppercase;
}

.button,
.project-enquiry a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button--primary,
.project-enquiry a {
  background: var(--ink);
  color: var(--ivory);
}

.button--primary:hover,
.button--primary:focus-visible,
.project-enquiry a:hover,
.project-enquiry a:focus-visible {
  border-color: var(--brass);
  background: var(--brass);
  color: var(--ink);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content));
  margin-inline: auto;
  padding-block: clamp(6rem, 14vw, 11.5rem) clamp(5rem, 10vw, 8rem);
  border-bottom: 1px solid var(--rule);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.hero::before {
  top: clamp(2.5rem, 7vw, 5.5rem);
  right: clamp(0rem, 7vw, 6rem);
  width: clamp(7rem, 17vw, 13rem);
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: linear-gradient(90deg, transparent calc(50% - 0.5px), var(--rule) 50%, transparent calc(50% + 0.5px));
  opacity: 0.75;
}

.hero::after {
  top: calc(clamp(2.5rem, 7vw, 5.5rem) + clamp(3.5rem, 8.5vw, 6.5rem));
  right: calc(clamp(0rem, 7vw, 6rem) - 1.5rem);
  width: calc(clamp(7rem, 17vw, 13rem) + 3rem);
  border-top: 1px solid var(--rule);
  transform: rotate(-32deg);
}

.hero__content {
  max-width: 62rem;
}

.hero h1 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
}

.hero__content > p:not(.eyebrow) {
  max-width: 43rem;
  margin-bottom: 2.25rem;
  color: var(--charcoal);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.section {
  position: relative;
  padding-block: var(--section-space);
  border-bottom: 1px solid var(--rule);
  counter-increment: section;
}

.section::before {
  position: absolute;
  top: calc(var(--section-space) + 0.25rem);
  right: 0;
  color: var(--text-subtle);
  content: "0" counter(section);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.section-heading {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.section-heading .eyebrow {
  grid-column: 1 / span 3;
}

.section-heading h1,
.section-heading h2 {
  grid-column: 4 / span 8;
  margin-bottom: 0;
}

.section-heading > p:not(.eyebrow) {
  grid-column: 4 / span 7;
  margin: 1.5rem 0 0;
  color: var(--charcoal);
  font-size: 1.08rem;
}

.pathways__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.pathway {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 2rem clamp(1rem, 2.5vw, 2.25rem) 1.25rem 0;
  border-right: 1px solid var(--rule);
}

.pathway + .pathway {
  padding-left: clamp(1rem, 2.5vw, 2.25rem);
}

.pathway:last-child {
  border-right: 0;
}

.pathway h3 {
  min-height: 2.2em;
  margin-bottom: 1.25rem;
}

.pathway p {
  max-width: 27rem;
  margin-bottom: 1.5rem;
  color: var(--text-subtle);
}

.pathway__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: auto;
}

.pathway__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--charcoal);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem) clamp(1rem, 2.2vw, 2rem);
}

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

.project-card a {
  display: block;
  text-decoration: none;
}

.project-card img {
  width: 100%;
  margin-bottom: 1.35rem;
  aspect-ratio: 4 / 5;
  background: var(--rule);
  object-fit: cover;
  filter: saturate(0.86) contrast(0.98);
  transition: filter 250ms ease, transform 250ms ease;
}

.project-card a:hover img,
.project-card a:focus-visible img {
  transform: translateY(-0.3rem);
  filter: saturate(1) contrast(1);
}

.project-card h2,
.project-card h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.project-card p:not(.eyebrow) {
  margin-bottom: 0.2rem;
  color: var(--text-subtle);
  font-size: 0.85rem;
}

.featured-work .project-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}

.featured-work .project-card:nth-child(1) {
  grid-column: 1 / span 5;
}

.featured-work .project-card:nth-child(2) {
  grid-column: 7 / span 4;
  margin-top: 7rem;
}

.featured-work .project-card:nth-child(3) {
  grid-column: 3 / span 7;
  margin-top: 2rem;
}

.featured-work .project-card:nth-child(3) img {
  aspect-ratio: 16 / 9;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 3rem;
  color: var(--charcoal);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-text);
}

.services__list,
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.services__list li,
.process__steps li {
  min-width: 0;
  min-height: 11rem;
  padding: 1.25rem clamp(1rem, 2vw, 1.75rem) 1.75rem;
  border-right: 1px solid var(--rule);
}

.services__list li:first-child,
.process__steps li:first-child {
  padding-left: 0;
}

.services__list li:last-child,
.process__steps li:last-child {
  border-right: 0;
}

.services__list span,
.process__steps span {
  display: block;
  margin-bottom: 3rem;
  color: var(--accent-text);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.services__list h3,
.process__steps h3 {
  margin-bottom: 1rem;
}

.services__list p,
.process__steps p {
  margin-bottom: 0;
  color: var(--text-subtle);
  font-size: 0.88rem;
  line-height: 1.6;
}

.studio__profile {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem;
}

.studio__profile p {
  grid-column: span 4;
  margin-bottom: 0;
  color: var(--charcoal);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.studio__profile p:first-child {
  grid-column-start: 4;
}

.contact-cta {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
}

.contact-cta .eyebrow {
  grid-column: 1 / span 3;
}

.contact-cta h2 {
  grid-column: 4 / span 7;
  margin-bottom: 0;
}

.contact-cta .button {
  grid-column: 10 / span 3;
}

.site-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 1rem;
  padding-block: 2.5rem;
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  text-align: right;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-text);
}

.work-introduction .section-heading {
  padding-top: clamp(1.5rem, 5vw, 4rem);
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-block: 1rem;
  border-block: 1px solid var(--rule);
}

.project-filters button {
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-subtle);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.project-filters button:hover,
.project-filters button:focus-visible,
.project-filters button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ivory);
}

.work-introduction .project-grid {
  row-gap: clamp(3.5rem, 7vw, 6rem);
}

.work-introduction .project-card:nth-child(3n + 2) {
  margin-top: 3.5rem;
}

.project-detail {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  color: var(--text-subtle);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent-text);
}

.project-header {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding-block: clamp(4rem, 9vw, 8rem);
}

.project-header .eyebrow {
  grid-column: 1 / span 3;
}

.project-header h1 {
  grid-column: 4 / -1;
  max-width: 12ch;
  margin-bottom: 2rem;
}

.project-header > p:not(.eyebrow) {
  grid-column: 7 / span 5;
  margin-bottom: 0;
  color: var(--charcoal);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.project-hero {
  margin: 0 calc(50% - 50vw);
  background: var(--rule);
}

.project-hero img {
  width: 100%;
  max-height: 52rem;
  object-fit: cover;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  padding-block: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--rule);
}

.project-facts > h2 {
  grid-column: 1 / span 3;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project-facts dl {
  grid-column: 4 / span 5;
  margin-bottom: 0;
  border-top: 1px solid var(--ink);
}

.project-facts dl > div {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}

.project-facts dt {
  color: var(--text-subtle);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-facts dd {
  margin-bottom: 0;
  color: var(--charcoal);
}

.project-facts > h3 {
  grid-column: 9 / -1;
  margin-bottom: 0.75rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-facts ul {
  grid-column: 9 / -1;
  margin: 2rem 0 0;
  list-style: none;
}

.project-facts li {
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--rule);
  color: var(--charcoal);
}

.project-story {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.project-story-block {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--rule);
}

.project-story-block:last-child {
  border-bottom: 1px solid var(--rule);
}

.project-story-block h2 {
  grid-column: 1 / span 4;
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
}

.project-story-block p {
  grid-column: 6 / span 6;
  margin-bottom: 0;
  color: var(--charcoal);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.75rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.project-gallery > h2 {
  grid-column: 1 / -1;
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project-gallery figure {
  grid-column: span 6;
  margin: 0;
  background: var(--rule);
}

.project-gallery figure:nth-of-type(3n) {
  grid-column: 3 / span 8;
}

.project-gallery img {
  width: 100%;
}

.project-image-link {
  display: block;
}

.project-image-link img {
  transition: opacity 180ms ease;
}

.project-image-link:hover img,
.project-image-link:focus-visible img {
  opacity: 0.84;
}

html.lightbox-open {
  overflow: hidden;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ivory);
  overflow: visible;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgb(21 18 15 / 0.86);
}

.lightbox__surface {
  display: contents;
}

.lightbox figure {
  margin: 0;
}

.lightbox [data-lightbox-image] {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - clamp(8rem, 14vw, 11rem));
  object-fit: contain;
}

.lightbox button {
  position: fixed;
  z-index: 1;
  display: grid;
  min-width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  border: 1px solid currentColor;
  background: rgb(21 18 15 / 0.8);
  color: var(--ivory);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  background: var(--ivory);
  color: var(--ink);
}

.lightbox button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.lightbox [data-lightbox-close] {
  top: 1.25rem;
  right: 1.25rem;
}

.lightbox [data-lightbox-previous] {
  top: 50%;
  left: 1.25rem;
  transform: translateY(-50%);
}

.lightbox [data-lightbox-next] {
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
}

.lightbox [data-lightbox-status] {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  margin: 0;
  padding: 0.4rem 0.7rem;
  transform: translateX(-50%);
  background: rgb(21 18 15 / 0.8);
  color: var(--ivory);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.project-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--ink);
}

.project-pagination a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 10rem;
  padding: 2rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.project-pagination a + a {
  border-left: 1px solid var(--rule);
  text-align: right;
}

.project-pagination a:hover,
.project-pagination a:focus-visible {
  background: var(--ink);
  color: var(--ivory);
}

.project-pagination span {
  margin-bottom: 0.85rem;
  color: var(--text-subtle);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-pagination a:hover span,
.project-pagination a:focus-visible span {
  color: var(--brass-light);
}

.project-enquiry {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  padding-block: clamp(5rem, 10vw, 9rem);
}

.project-enquiry h2 {
  grid-column: 1 / span 7;
  margin-bottom: 1rem;
}

.project-enquiry p {
  grid-column: 1 / span 6;
  margin-bottom: 0;
  color: var(--text-subtle);
}

.project-enquiry a {
  grid-column: 9 / -1;
  grid-row: 1 / span 2;
}

.not-found {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content));
  min-height: calc(100vh - 12rem);
  margin-inline: auto;
  padding-block: clamp(5rem, 12vw, 10rem);
  border-bottom: 1px solid var(--rule);
}

.not-found::before {
  position: absolute;
  top: clamp(2rem, 6vw, 5rem);
  right: 0;
  width: clamp(8rem, 20vw, 15rem);
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), var(--rule) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(transparent calc(50% - 0.5px), var(--rule) 50%, transparent calc(50% + 0.5px));
  content: "";
  pointer-events: none;
}

.not-found__marker {
  grid-column: 1 / span 3;
  align-self: start;
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.85;
}

.not-found__content {
  grid-column: 4 / span 7;
  position: relative;
  z-index: 1;
}

.not-found h1 {
  max-width: 10ch;
  margin-bottom: 1.5rem;
}

.not-found__content > p:not(.eyebrow) {
  max-width: 38rem;
  margin-bottom: 2rem;
  color: var(--charcoal);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button--secondary {
  background: transparent;
  color: var(--ink);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: var(--ink);
  color: var(--ivory);
}

@media (max-width: 56.25rem) {
  :root {
    --section-space: clamp(4rem, 9vw, 6rem);
  }

  .site-header {
    min-height: 5rem;
  }

  .desktop-navigation {
    display: none;
  }

  [data-menu-button] {
    display: inline-flex;
    grid-column: 3;
    align-items: center;
    justify-content: center;
  }

  #mobile-navigation:not([hidden]) {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: block;
    padding: 1rem var(--page-gutter) 1.5rem;
    border-bottom: 1px solid var(--ink);
    background: var(--ivory);
    box-shadow: 0 1rem 2rem rgba(46, 38, 32, 0.1);
  }

  #mobile-navigation ul {
    display: grid;
    gap: 0;
  }

  #mobile-navigation a {
    width: 100%;
    min-height: 3rem;
    border-bottom: 1px solid var(--rule);
  }

  .section-heading .eyebrow,
  .section-heading h1,
  .section-heading h2,
  .section-heading > p:not(.eyebrow) {
    grid-column: 1 / span 10;
  }

  .section-heading .eyebrow {
    margin-bottom: 1.25rem;
  }

  .section-heading h1,
  .section-heading h2 {
    grid-row: 2;
  }

  .section-heading > p:not(.eyebrow) {
    grid-row: 3;
  }

  .project-grid,
  .featured-work .project-grid,
  .services__list,
  .process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-work .project-card:nth-child(n) {
    grid-column: auto;
    margin-top: 0;
  }

  .featured-work .project-card:nth-child(3) {
    grid-column: 1 / -1;
    width: 72%;
    margin-inline: auto;
  }

  .services__list li,
  .process__steps li {
    min-height: 9rem;
    border-bottom: 1px solid var(--rule);
  }

  .services__list li:nth-child(2n),
  .process__steps li:nth-child(2n) {
    border-right: 0;
  }

  .services__list li:nth-last-child(-n + 2),
  .process__steps li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .services__list li:nth-child(3),
  .process__steps li:nth-child(3) {
    padding-left: 0;
  }

  .services__list span,
  .process__steps span {
    margin-bottom: 2rem;
  }

  .studio__profile p,
  .studio__profile p:first-child {
    grid-column: span 6;
  }

  .contact-cta .eyebrow,
  .contact-cta h2 {
    grid-column: 1 / span 8;
  }

  .contact-cta h2 {
    grid-row: 2;
  }

  .contact-cta .button {
    grid-column: 9 / -1;
    grid-row: 2;
  }

  .work-introduction .project-card:nth-child(3n + 2) {
    margin-top: 0;
  }

  .work-introduction .project-card:nth-child(even) {
    margin-top: 3rem;
  }

  .project-header .eyebrow {
    grid-column: 1 / -1;
  }

  .project-header h1 {
    grid-column: 1 / span 10;
    grid-row: 2;
  }

  .project-header > p:not(.eyebrow) {
    grid-column: 4 / span 8;
  }

  .project-facts > h2 {
    grid-column: 1 / span 3;
  }

  .project-facts dl {
    grid-column: 4 / -1;
  }

  .project-facts > h3,
  .project-facts ul {
    grid-column: 4 / -1;
  }

  .project-facts > h3 {
    margin-top: 2.5rem;
  }

  .project-facts ul {
    margin-top: 0;
  }

  .project-story-block h2 {
    grid-column: 1 / span 4;
  }

  .project-story-block p {
    grid-column: 5 / -1;
  }

  .not-found__marker {
    grid-column: 1 / span 4;
  }

  .not-found__content {
    grid-column: 5 / -1;
  }
}

@media (max-width: 35rem) {
  :root {
    --page-gutter: 1.25rem;
    --section-space: 4rem;
  }

  body {
    font-size: 0.95rem;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .site-header {
    min-height: 4.75rem;
  }

  .hero {
    padding-block: 5rem 4rem;
  }

  .hero::before {
    width: 6rem;
    opacity: 0.5;
  }

  .hero::after {
    display: none;
  }

  .button,
  .project-enquiry a {
    width: 100%;
    min-height: 3.25rem;
  }

  .section::before {
    top: var(--section-space);
  }

  .section-heading {
    display: block;
    margin-bottom: 2.75rem;
    padding-right: 2rem;
  }

  .pathways__grid,
  .project-grid,
  .featured-work .project-grid,
  .services__list,
  .process__steps,
  .studio__profile,
  .contact-cta,
  .site-footer,
  .project-header,
  .project-facts,
  .project-story-block,
  .project-gallery,
  .project-pagination,
  .project-enquiry {
    grid-template-columns: minmax(0, 1fr);
  }

  .pathway,
  .pathway + .pathway {
    min-height: 0;
    padding: 1.75rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .pathway:last-child {
    border-bottom: 0;
  }

  .pathway h3 {
    min-height: 0;
  }

  .featured-work .project-card:nth-child(3) {
    width: 100%;
  }

  .featured-work .project-card:nth-child(3) img {
    aspect-ratio: 4 / 5;
  }

  .services__list li,
  .services__list li:first-child,
  .services__list li:nth-child(3),
  .process__steps li,
  .process__steps li:first-child,
  .process__steps li:nth-child(3) {
    min-height: 0;
    padding: 1.5rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .services__list li:last-child,
  .process__steps li:last-child {
    border-bottom: 0;
  }

  .services__list span,
  .process__steps span {
    margin-bottom: 1.25rem;
  }

  .studio__profile {
    gap: 1.5rem;
  }

  .studio__profile p,
  .studio__profile p:first-child,
  .contact-cta .eyebrow,
  .contact-cta h2,
  .contact-cta .button {
    grid-column: auto;
    grid-row: auto;
  }

  .contact-cta h2 {
    margin-bottom: 2rem;
  }

  .site-footer {
    gap: 0.5rem;
  }

  .site-footer p:last-child {
    overflow-wrap: anywhere;
    text-align: left;
  }

  .site-footer a,
  .breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

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

  .project-filters button {
    min-height: 2.75rem;
    padding-inline: 0.5rem;
  }

  .work-introduction .project-card:nth-child(even) {
    margin-top: 0;
  }

  .project-detail {
    padding-top: 1.5rem;
  }

  .project-header {
    padding-block: 4rem;
  }

  .project-header .eyebrow,
  .project-header h1,
  .project-header > p:not(.eyebrow),
  .project-facts > h2,
  .project-facts dl,
  .project-facts > h3,
  .project-facts ul,
  .project-story-block h2,
  .project-story-block p,
  .project-gallery > h2,
  .project-gallery figure,
  .project-gallery figure:nth-of-type(3n),
  .project-enquiry h2,
  .project-enquiry p,
  .project-enquiry a {
    grid-column: auto;
    grid-row: auto;
  }

  .project-header h1 {
    margin-bottom: 1.5rem;
  }

  .project-facts {
    gap: 0;
  }

  .project-facts > h2 {
    margin-bottom: 1.25rem;
  }

  .project-facts dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .project-facts > h3 {
    margin-top: 2.5rem;
  }

  .project-story-block {
    gap: 1.25rem;
  }

  .project-gallery figure {
    width: 100%;
  }

  .project-pagination a {
    min-height: 8rem;
    padding: 1.5rem 0;
  }

  .project-pagination a + a {
    border-top: 1px solid var(--rule);
    border-left: 0;
    text-align: left;
  }

  .project-enquiry {
    gap: 1rem;
  }

  .project-enquiry p {
    margin-bottom: 1rem;
  }

  .not-found {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    min-height: 0;
  }

  .not-found::before {
    width: 7rem;
    opacity: 0.55;
  }

  .not-found__marker,
  .not-found__content {
    grid-column: auto;
  }

  .not-found__marker {
    margin-bottom: 3rem;
    font-size: 4.5rem;
  }

  .not-found__actions {
    display: grid;
  }
}

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

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