:root {
  color-scheme: light;
  --paper: #f1eee8;
  --ink: #171715;
  --muted: #706b64;
  --coral: #c76f5c;
  --line: rgba(23, 23, 21, 0.22);
  --serif: "Bodoni 72", Didot, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4.2vw, 4.75rem);
  --section-space: clamp(5rem, 8vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  translate: 0 -200%;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  transition: translate 180ms ease;
}

.skip-link:focus {
  translate: 0;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  background: rgba(241, 238, 232, 0);
  transition: min-height 240ms ease, background-color 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  min-height: 4.5rem;
  border-bottom-color: var(--line);
  background: rgba(241, 238, 232, 0.94);
}

.site-header.is-scrolled:not(.is-open) {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.wordmark,
.footer-wordmark {
  display: block;
  width: max-content;
}

.wordmark img,
.footer-wordmark img {
  width: auto;
  object-fit: contain;
}

.wordmark img {
  height: 2.1rem;
}

.footer-wordmark img {
  height: 3.1rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.75rem, 4.2vw, 4.75rem);
  font-size: 0.96rem;
}

.primary-nav a,
.footer-links a,
.back-to-top {
  position: relative;
}

.primary-nav a::after,
.footer-links a::after,
.back-to-top::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  background: var(--coral);
  content: "";
  scale: 0 1;
  transform-origin: right;
  transition: scale 180ms ease;
}

.primary-nav a:hover::after,
.footer-links a:hover::after,
.back-to-top:hover::after {
  scale: 1 1;
  transform-origin: left;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
}

.hero {
  display: grid;
  min-height: calc(100svh - 18rem);
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(199, 111, 92, 0.45);
}

.hero__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 4vw, 5rem) clamp(2.5rem, 4vw, 4rem) 0;
}

.hero h1,
.section-heading h2,
.services h2,
.about h2,
.closing h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
}

.hero h1 {
  max-width: none;
  font-size: clamp(3.5rem, 5vw, 5.7rem);
  line-height: 0.9;
  white-space: nowrap;
}

.hero__copy > p {
  max-width: 30rem;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.7;
}

.scroll-cue {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: clamp(2rem, 3vw, 3.5rem);
  font-size: 0.9rem;
}

.scroll-cue span {
  width: 1px;
  height: 3.8rem;
  background: var(--coral);
}

.hero__visual {
  height: min(70svh, 50rem);
  min-height: 0;
  align-self: center;
  margin: 0;
  overflow: hidden;
  background: #aaa39b;
}

.hero__visual img {
  object-position: 50% 20%;
}

.section {
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.work {
  overflow: hidden;
  padding-top: 1.5rem;
  padding-bottom: var(--section-space);
}

.section-heading {
  margin: 0;
}

.section-heading h2,
.services h2,
.about h2 {
  font-size: clamp(3.75rem, 6vw, 7rem);
  line-height: 0.94;
}

.accent-rule {
  display: block;
  width: 2.2rem;
  height: 1px;
  margin: clamp(1.5rem, 2vw, 2.2rem) 0;
  background: var(--coral);
}

.section-heading p {
  max-width: 40rem;
  margin: 0;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
}

.work__heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 4vw, 4.5rem);
}

.carousel-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 0.65rem;
  padding-bottom: 0.15rem;
}

.carousel-controls button {
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  place-items: center;
  transition: border-color 180ms ease, opacity 180ms ease;
}

.carousel-controls button:hover:not(:disabled) {
  border-bottom-color: var(--coral);
}

.carousel-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.28;
}

.carousel-controls svg {
  width: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.portfolio {
  display: flex;
  gap: clamp(1rem, 1.8vw, 2rem);
  overflow-x: auto;
  padding-bottom: 1.25rem;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--coral) transparent;
  scrollbar-width: thin;
}

.project {
  flex: 0 0 min(62vw, 64rem);
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.project--portrait-left,
.project--portrait-right {
  flex-basis: min(35vw, 34rem);
}

.project--knit {
  flex-basis: min(58vw, 58rem);
}

.project--structured {
  flex-basis: min(50vw, 50rem);
}

.project--material {
  flex-basis: min(34vw, 32rem);
}

.project__media {
  overflow: hidden;
  background: #a8a19a;
}

.project__media--landscape {
  aspect-ratio: 16 / 8.1;
}

.project__media--portrait {
  aspect-ratio: 4 / 5;
}

.project__media--detail {
  aspect-ratio: 16 / 5.2;
}

.project__media--square {
  aspect-ratio: 1 / 1;
}

.project--structured .project__media {
  aspect-ratio: 4 / 3;
}

.project__media img {
  transition: scale 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project:hover .project__media img {
  scale: 1.015;
}

.project--structured img {
  object-fit: cover;
  object-position: center;
}

.project figcaption {
  margin-top: 0.85rem;
  font-size: 0.85rem;
}

.services {
  display: grid;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.services__intro {
  padding-right: clamp(2rem, 7vw, 8rem);
}

.services__intro p {
  max-width: 32rem;
  margin: clamp(1.5rem, 3vw, 3rem) 0 0;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  line-height: 1.6;
}

.service-index {
  margin: 0;
  padding: 1rem 0 0 clamp(2rem, 6vw, 7rem);
  border-left: 1px solid var(--coral);
  list-style: none;
}

.service-index li {
  padding: clamp(0.85rem, 1.2vw, 1.25rem) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.008em;
}

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

.about {
  display: grid;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(3rem, 8vw, 9rem);
}

.about__visual {
  min-height: 43rem;
  margin: 0;
  overflow: hidden;
  background: #bcb3a7;
}

.about__copy {
  align-self: center;
}

.about__copy > p:not(.about__note) {
  max-width: 42rem;
  margin: clamp(2rem, 3vw, 3rem) 0 0;
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.7;
}

.about__note {
  margin: clamp(2rem, 3vw, 3.5rem) 0 0;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

.closing {
  display: flex;
  min-height: 58svh;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--line);
}

.closing h2 {
  max-width: 12ch;
  font-size: clamp(3.75rem, 7vw, 8rem);
  line-height: 0.9;
}

.closing__rule {
  width: clamp(9rem, 24vw, 25rem);
  height: 1px;
  margin-top: clamp(2.5rem, 4vw, 4rem);
  background: var(--coral);
}

.site-footer {
  display: grid;
  min-height: 10rem;
  align-items: center;
  padding: 2.5rem var(--gutter);
  border-top: 1px solid var(--line);
  grid-template-columns: 1.2fr 1fr auto auto;
  gap: clamp(1.5rem, 4vw, 5rem);
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links > span {
  width: 1px;
  height: 1.1rem;
  background: var(--coral);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.back-to-top svg {
  width: 1.2rem;
  fill: none;
  stroke: var(--coral);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.site-footer p {
  margin: 0;
  white-space: nowrap;
}

.has-js [data-reveal] {
  opacity: 0;
  translate: 0 2rem;
  transition: opacity 700ms ease, translate 850ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  translate: 0;
}

@media (max-width: 1000px) {
  .hero h1 {
    font-size: clamp(3.4rem, 5vw, 4.8rem);
  }

  .about__visual {
    min-height: 36rem;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .back-to-top,
  .site-footer p {
    justify-self: end;
  }
}

@media (max-width: 760px) {
  :root {
    --section-space: 5rem;
  }

  html {
    scroll-padding-top: 4.75rem;
  }

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

  .wordmark {
    position: relative;
    z-index: 2;
  }

  .wordmark img {
    height: 1.65rem;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0;
    cursor: pointer;
    font-size: 0.8rem;
  }

  .menu-toggle svg {
    width: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.5;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.7rem;
    padding: 6rem var(--gutter) 3rem;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .primary-nav a {
    font-family: var(--serif);
    font-size: clamp(2.7rem, 13vw, 4.25rem);
    line-height: 1;
    letter-spacing: -0.01em;
  }

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

  .hero__copy {
    min-height: calc(74svh - 4.5rem);
    padding: 3.75rem 0 1.5rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(3.1rem, 14vw, 4.6rem);
    line-height: 0.92;
    white-space: normal;
  }

  .hero__copy > p {
    max-width: 26rem;
    margin-top: 2rem;
    font-size: 1rem;
  }

  .scroll-cue {
    padding-top: 2rem;
  }

  .scroll-cue span {
    height: 3.5rem;
  }

  .hero__visual {
    height: auto;
    min-height: auto;
    aspect-ratio: 4 / 5;
  }

  .section-heading h2,
  .services h2,
  .about h2 {
    font-size: clamp(3.2rem, 14vw, 4.6rem);
  }

  .work {
    padding-top: 1rem;
  }

  .work__heading-row {
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }

  .section-heading p {
    max-width: 17rem;
  }

  .carousel-controls {
    gap: 0.35rem;
  }

  .carousel-controls button {
    width: 2.5rem;
    height: 2.5rem;
  }

  .portfolio {
    gap: 1rem;
    padding-bottom: 0;
    scrollbar-width: none;
  }

  .portfolio::-webkit-scrollbar {
    display: none;
  }

  .project,
  .project--wide,
  .project--portrait-left,
  .project--portrait-right,
  .project--knit,
  .project--structured,
  .project--material {
    flex-basis: 82vw;
  }

  .project__media--landscape,
  .project__media--detail {
    aspect-ratio: 4 / 3;
  }

  .project--knit img {
    object-position: 72% center;
  }

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

  .services__intro {
    padding-right: 0;
  }

  .services__intro p {
    font-size: 1.1rem;
  }

  .service-index {
    margin-top: 3rem;
    padding: 0;
    border-top: 1px solid var(--coral);
    border-left: 0;
  }

  .service-index li {
    padding: 1rem 0;
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .about {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__visual {
    min-height: auto;
    aspect-ratio: 4 / 5;
  }

  .about__copy > p:not(.about__note) {
    font-size: 1.1rem;
  }

  .closing {
    min-height: 52svh;
  }

  .closing h2 {
    font-size: clamp(3.25rem, 13.5vw, 4.5rem);
    line-height: 0.92;
  }

  .site-footer {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .footer-wordmark {
    width: 100%;
  }

  .footer-wordmark img {
    height: 2.5rem;
  }

  .back-to-top,
  .site-footer p {
    justify-self: start;
  }
}

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

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

  .has-js [data-reveal] {
    opacity: 1;
    translate: 0;
  }
}
