/* Palette, typography, and shared layout */
:root {
  --bone: #F4EFE7;
  --bone2: #EAE2D3;
  --ink: #1D1A16;
  --ink2: #55504A;
  --bronze: #A9713F;
  --line: rgba(29, 26, 22, .16);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Manrope', Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --gap: clamp(16px, 2.3vw, 34px);
  --section-space: clamp(90px, 12vw, 170px);
  --header-height: 76px;
  --heading-size: clamp(3rem, 6vw, 5.5rem);
}

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

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 1rem/1.72 var(--body);
  -webkit-font-smoothing: antialiased;
}

main, section[id], footer[id] { scroll-margin-top: 16px; }
#top { scroll-margin-top: 0; }

h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.045em;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

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

figcaption {
  margin-top: 14px;
  color: var(--ink2);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .025em;
}

.shell {
  width: min(1360px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
}

.section-heading { margin-bottom: clamp(38px, 5.5vw, 76px); }
.section-heading h2 { font-size: var(--heading-size); }

.eyebrow {
  color: var(--bronze);
  color: color-mix(in srgb, var(--bronze) 73%, var(--ink));
  font: 700 .6875rem/1.55 var(--body);
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eyebrow + h2 { margin-top: 23px; }

.media {
  position: relative;
  overflow: hidden;
  background: var(--bone2);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-motion { position: absolute; inset: 0; }

.rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line);
  transform-origin: left center;
}

.text-link {
  position: relative;
  display: inline-block;
  padding-block: 1px 7px;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.text-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--bronze);
  content: '';
  transform: scaleX(.46);
  transform-origin: left center;
  transition: transform .26s ease;
}

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

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 3;
  top: 12px;
  left: var(--gutter);
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bone);
  outline-color: var(--bronze);
}

/* Fixed navigation */
.site-header {
  position: fixed;
  z-index: 2;
  inset: 0 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 231, .94);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--gap);
  align-items: center;
  min-height: calc(var(--header-height) - 1px);
}

.wordmark {
  display: grid;
  justify-self: start;
  gap: 4px;
  line-height: 1;
  text-decoration: none;
}

.wordmark-name {
  font: 500 1.6rem/.96 var(--display);
  letter-spacing: .115em;
}

.wordmark-detail {
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.7vw, 42px);
}

.site-nav a {
  padding-block: 9px;
  font-size: .8125rem;
  font-weight: 700;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.site-nav a:hover, .site-nav a:focus-visible { text-decoration-color: var(--bronze); }

.header-cta {
  justify-self: end;
  display: inline-block;
  padding: 11px 19px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  font-size: .75rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color .24s ease, color .24s ease;
}

.header-cta:hover, .header-cta:focus-visible {
  background: var(--bone);
  color: var(--ink);
}

/* Opening image and studio statement */
.hero {
  padding-top: calc(var(--header-height) + clamp(44px, 5.2vw, 84px));
  padding-bottom: clamp(34px, 5vw, 70px);
}

.hero-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(30px, 4vw, 58px);
}

.hero-heading { grid-column: 1 / 9; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(16px, 2vw, 28px);
}

.hero-eyebrow::before {
  flex: 0 0 clamp(18px, 3vw, 42px);
  height: 1px;
  background: var(--bronze);
  content: '';
}

.hero h1 {
  font-size: clamp(3.6rem, 7.05vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -.058em;
}

.hero-line { display: block; }

.hero-aside {
  grid-column: 9 / -1;
  max-width: 34ch;
  padding-bottom: 5px;
  color: var(--ink2);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(18px, 2.3vw, 34px);
  margin-top: 24px;
  color: var(--ink);
}

.hero-media { height: clamp(340px, 45vw, 650px); }

.hero-media img {
  object-position: center 54%;
  filter: sepia(.12) saturate(.83);
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 22px;
  margin-top: 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-hint::before {
  width: 16px;
  height: 1px;
  background: var(--bronze);
  content: '';
}

.scroll-hint:hover { text-decoration: underline; text-underline-offset: 4px; }

.manifesto { background: var(--bone2); }

.manifesto-layout, .services-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6.2vw, 100px);
  align-items: center;
}

.statement {
  max-width: 18ch;
  font-size: clamp(2.5rem, 4.4vw, 4.4rem);
  line-height: 1.08;
}

.manifesto-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.1vw, 30px);
  margin-top: clamp(30px, 4vw, 58px);
  color: var(--ink2);
}

.manifesto-body .rule { grid-column: 1 / -1; }

.manifesto-figure { margin-top: clamp(22px, 7vw, 105px); }
.manifesto-figure .media { aspect-ratio: 4 / 4.8; }
.manifesto-figure img { object-position: 57% center; }

/* Project portfolio and statistics */
.projects {
  display: grid;
  row-gap: clamp(60px, 8vw, 124px);
}

.project {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: center;
}

.project-media { grid-column: 1 / 8; aspect-ratio: 1.43; }
.project-copy { grid-column: 9 / -1; }
.project-wide .project-media { grid-column: 1 / 9; aspect-ratio: 1.64; }
.project-wide .project-copy { grid-column: 10 / -1; }
.project-inset .project-media { grid-column: 2 / 9; }
.project-inset .project-copy { grid-column: 10 / -1; }
.project-reverse .project-media { grid-column: 5 / -1; grid-row: 1; }
.project-reverse .project-copy { grid-column: 1 / 4; grid-row: 1; }
.project-reverse.project-inset .project-media { grid-column: 6 / -1; }
.project-reverse.project-inset .project-copy { grid-column: 2 / 5; }

.project-media img { filter: sepia(.08) saturate(.89); }
.project:first-child img { object-position: 49% 56%; }
.project:last-child img { object-position: 48% 56%; }

.project-copy { display: grid; justify-items: start; }

.project-copy .rule {
  width: 38px;
  margin-bottom: 22px;
  background: var(--bronze);
}

.project-copy h3 { font-size: clamp(2rem, 3.4vw, 3.6rem); }
.project-copy p { max-width: 34ch; color: var(--ink2); }

.project-copy .project-meta {
  margin-block: 13px 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.portfolio-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(46px, 7vw, 100px);
}

.portfolio-link .rule { flex: 1; }

.dark {
  --line: rgba(244, 239, 231, .2);
  background: var(--ink);
  color: var(--bone);
}

.dark .eyebrow { color: #CF9E70; }

.numbers { padding-block: clamp(48px, 6.5vw, 94px); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-right: clamp(12px, 2vw, 28px);
}

.stat + .stat {
  border-left: 1px solid var(--line);
  padding-left: clamp(16px, 3.4vw, 56px);
}

.stat dd {
  order: -1;
  font: 400 clamp(3rem, 5.8vw, 5.3rem)/1 var(--display);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.055em;
}

.stat dt {
  color: rgba(244, 239, 231, .77);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .025em;
}

/* Process and services */
.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: clamp(35px, 9vw, 145px);
}

.process-layout .section-heading { margin-bottom: 0; }
.process-layout h2 { max-width: 11ch; }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: clamp(12px, 2vw, 30px);
  row-gap: 22px;
  padding-bottom: 25px;
}

.steps .rule { grid-column: 1 / -1; }

.step-number {
  margin-top: 5px;
  color: var(--bronze);
  color: color-mix(in srgb, var(--bronze) 73%, var(--ink));
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.steps h3, .service h3 { font-size: clamp(1.65rem, 2.55vw, 2.6rem); }
.steps p, .service p { max-width: 48ch; margin-top: 9px; color: var(--ink2); }

.process-figure { margin-top: clamp(34px, 5.5vw, 80px); }
.process-figure .media { aspect-ratio: 2.5; background: var(--ink); }
.process-figure img { object-position: center 59%; }

.services { background: var(--bone2); }
.services-layout { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.services-heading { margin-bottom: clamp(30px, 4vw, 58px); }
.service > div { padding-block: clamp(19px, 2.2vw, 33px); }
.service:last-child > div { padding-bottom: 0; }
.services-figure { align-self: end; }
.services-figure .media { aspect-ratio: 1.1; }
.services-figure img { object-position: 46% center; }

/* Client quotes and contact */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 8vw, 118px);
  margin-top: clamp(30px, 4.8vw, 72px);
}

.quote:nth-child(2) { margin-top: clamp(0px, 6.5vw, 100px); }

.quote .rule {
  width: 42px;
  margin-bottom: 24px;
  background: var(--bronze);
}

.quote blockquote {
  font: 400 clamp(1.95rem, 3.4vw, 3.55rem)/1.12 var(--display);
  letter-spacing: -.038em;
}

.quote figcaption { margin-top: 24px; }

.site-footer { padding-top: clamp(78px, 11vw, 154px); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: end;
  gap: clamp(32px, 7vw, 110px);
  padding-bottom: clamp(62px, 8vw, 112px);
}

.contact-heading h2 {
  max-width: 12ch;
  font-size: clamp(3.55rem, 7.4vw, 6rem);
  line-height: 1.02;
}

.contact-copy { max-width: 40ch; }
.contact-copy > p { color: rgba(244, 239, 231, .8); }
.contact-copy address { margin-top: 22px; font-style: normal; }

.contact-copy .text-link {
  font-size: clamp(.875rem, 1.55vw, 1.12rem);
  overflow-wrap: anywhere;
}

.contact-copy address p {
  margin-top: 20px;
  color: rgba(244, 239, 231, .73);
  font-size: .75rem;
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 20px 38px;
  padding-bottom: 24px;
  color: rgba(244, 239, 231, .7);
  font-size: .75rem;
}

.footer-bottom .rule { grid-column: 1 / -1; }
.footer-bottom p:last-child { text-align: right; }

/* Tablet and compact navigation */
@media (max-width: 960px) {
  :root { --header-height: 104px; }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 63px 40px;
    gap: 0 12px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 6px;
    align-self: stretch;
    border-top: 1px solid var(--line);
  }

  .header-cta { grid-column: 2; grid-row: 1; }
  .hero-heading { grid-column: 1 / 8; }
  .hero-aside { grid-column: 8 / -1; }
  .hero h1 { font-size: clamp(2.5rem, 6.1vw, 4.5rem); }
  .hero-links { margin-top: 16px; }
  .manifesto-layout { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
  .manifesto-body { grid-template-columns: minmax(0, 1fr); }

  .project .project-media { grid-column: 1 / 8; }
  .project .project-copy { grid-column: 8 / -1; }
  .project.project-reverse .project-media { grid-column: 6 / -1; }
  .project.project-reverse .project-copy { grid-column: 1 / 6; }
}

/* Mobile composition */
@media (max-width: 700px) {
  .hero-layout, .manifesto-layout, .process-layout, .services-layout, .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-layout { gap: 22px; }
  .hero-heading, .hero-aside { grid-column: 1; }
  .hero h1 { font-size: clamp(1.85rem, 10.4vw, 3.5rem); }
  .hero-aside { max-width: 45ch; padding-bottom: 0; }
  .hero-media { height: auto; aspect-ratio: 1.08; }
  .hero-media img { object-position: 53% center; }
  .hero-caption { flex-wrap: wrap; }
  .manifesto-figure { margin-top: 3px; }
  .manifesto-figure .media { aspect-ratio: 1.22; }

  .project {
    grid-template-columns: minmax(0, 1fr);
    gap: 19px;
  }

  .projects .project .project-media, .projects .project .project-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .project .project-media { aspect-ratio: 1.32; }
  .project-inset { width: 93%; }
  .project-reverse.project-inset { margin-left: auto; }
  .project-copy .rule { margin-bottom: 13px; }
  .project-copy .project-meta { margin-block: 9px 8px; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding-bottom: 22px; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 0; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }

  .process-figure .media { aspect-ratio: 1.62; }
  .services-figure .media { aspect-ratio: 1.32; }
  .quotes { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .quote:nth-child(2) { margin-top: 0; }
  .contact-heading h2 { font-size: clamp(2.85rem, 10.5vw, 4.8rem); }
  .footer-bottom { grid-template-columns: minmax(0, 1fr); row-gap: 11px; }
  .footer-bottom p:last-child { text-align: left; }
}

@media (max-width: 380px) {
  .wordmark-name { font-size: 1.4rem; }
  .wordmark-detail { letter-spacing: .09em; }
  .header-cta { padding-inline: 12px; }
  .site-nav a { font-size: .75rem; overflow-wrap: anywhere; }
  .hero-eyebrow { letter-spacing: .16em; }
}

/* Motion is opt-in through JavaScript */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .text-link::after, .header-cta { transition: none; }
}
