:root {
  --page: #FBFBF9;
  --ink: #101010;
  --accent: #9A3412;
  --side: clamp(1.25rem, 7vw, 8rem);
  --measure: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body,
a,
button {
  font-weight: 300;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(0.92);
}

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

a:hover {
  text-decoration-style: dotted;
}

a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 0.35rem;
}

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

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--page);
  border: 1px solid var(--ink);
  transform: translateY(-150%);
}

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

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.25rem;
  padding: 0.65rem var(--side);
  background: var(--page);
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-decoration: none;
  white-space: nowrap;
}

.topbar nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.topbar nav a,
.back-link {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.home-main {
  padding-top: 3.25rem;
}

.section-shell {
  width: min(100%, calc(var(--measure) + (var(--side) * 2)));
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--side);
}

.section-label {
  margin-bottom: clamp(2.5rem, 6vw, 5.5rem);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero {
  min-height: calc(100vh - 3.25rem);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(15rem, 0.75fr);
  gap: clamp(3rem, 10vw, 9rem);
  align-items: end;
}

.hero-copy {
  padding-bottom: clamp(1rem, 6vw, 5rem);
}

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

h1,
h2,
h3 {
  font-weight: 300;
  line-height: 1.12;
}

h1 {
  max-width: 18ch;
  margin-bottom: 1.6rem;
  font-size: clamp(2.7rem, 7vw, 6.8rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 3.25rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1rem;
}

.hero-copy p,
.service-heading p {
  max-width: 38rem;
  margin-bottom: 2.25rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.text-cta {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
}

.work-figure {
  width: 100%;
  height: clamp(18rem, 40vw, 34rem);
  margin: 0;
  overflow: hidden;
}

.steps,
.principles,
.contact {
  border-top: 1px solid var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(9rem, 0.4fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 8vw, 8rem);
  align-items: start;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.section-heading .section-label {
  margin: 0;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
}

.indexed-list {
  border-top: 1px solid var(--ink);
}

.indexed-row {
  display: grid;
  grid-template-columns: 4rem minmax(12rem, 0.7fr) minmax(16rem, 1.3fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: baseline;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--ink);
}

.row-index {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.indexed-row h2,
.indexed-row h3,
.indexed-row p {
  margin: 0;
}

.indexed-row h2,
.indexed-row h3 {
  font-size: clamp(1rem, 1.7vw, 1.3rem);
}

.indexed-row p {
  max-width: 42rem;
  font-size: 0.88rem;
}

.secondary-main {
  min-height: 100vh;
}

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

.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: clamp(5rem, 12vw, 10rem);
}

.service-heading {
  grid-template-columns: minmax(9rem, 0.4fr) minmax(0, 1fr);
}

.service-heading h1 {
  grid-column: 2;
  font-size: clamp(2.5rem, 6vw, 6rem);
}

.service-heading p {
  grid-column: 2;
  margin-top: 1.75rem;
  margin-bottom: 0;
}

.accent-rule {
  width: 100%;
  height: 0.28rem;
  margin-top: clamp(5rem, 9vw, 8rem);
  background: var(--accent);
}

.detail-figure {
  width: min(42rem, 72%);
  height: clamp(15rem, 34vw, 28rem);
  margin: clamp(4rem, 9vw, 8rem) 0 0 auto;
  overflow: hidden;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 10vw, 10rem);
  margin-bottom: clamp(5rem, 10vw, 9rem);
}

.contact-layout h2 {
  margin-bottom: 1.5rem;
}

.contact-layout p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

address {
  align-self: end;
  font-style: normal;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.privacy {
  max-width: 45rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink);
}

.privacy h3 {
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.privacy p {
  margin-bottom: 0;
  font-size: 0.78rem;
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: space-between;
  margin-top: clamp(4rem, 9vw, 8rem);
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar nav {
    gap: 0.9rem;
  }

  .topbar nav a:nth-child(2) {
    display: none;
  }

  .hero-layout,
  .section-heading,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    align-items: start;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .work-figure {
    width: 72%;
    margin-left: auto;
  }

  .section-heading {
    row-gap: 1.5rem;
  }

  .service-heading h1,
  .service-heading p {
    grid-column: 1;
  }

  .indexed-row {
    grid-template-columns: 2.5rem 1fr;
    gap: 0.65rem 1rem;
  }

  .indexed-row p {
    grid-column: 2;
  }

  .detail-figure {
    width: 86%;
  }

  address {
    align-self: start;
  }
}

@media (max-width: 440px) {
  .topbar nav a:first-child {
    display: none;
  }

  .page-intro {
    align-items: flex-start;
    gap: 1.5rem;
  }

  .back-link {
    text-align: right;
  }

  .section-shell {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .hero {
    min-height: auto;
  }

  .work-figure {
    width: 100%;
    height: 18rem;
  }

  .detail-figure {
    width: 100%;
  }
}

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