@font-face {
  font-family: Cormorant;
  src: url(display.woff2) format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: Cormorant;
  src: url(display-italic.woff2) format("woff2");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url(body.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf6ec;
  --paper-deep: #eae5d7;
  --ink: #20201f;
  --ink-soft: #51514a;
  --olive: #435044;
  --forest: #263229;
  --line: #c8c4b7;
  --white: #fffaf0;
  --display: Cormorant, Georgia, serif;
  --sans: Manrope, system-ui, sans-serif;
  --gutter: clamp(18px, 3vw, 48px);
  --section: clamp(72px, 9vw, 142px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 500 1rem/1.7 var(--sans);
}
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3 { margin: 0; }
a { color: inherit; }
button { color: inherit; font: inherit; }
[hidden] { display: none !important; }
::selection { background: #d7ddc9; color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
section[id] { scroll-margin-top: 1.5rem; }

.frame {
  width: min(calc(100% - var(--gutter) * 2), 1420px);
  margin-inline: auto;
}
.content-frame {
  width: min(calc(100% - var(--gutter) * 2), 1160px);
  margin-inline: auto;
}
.section-space { padding-block: var(--section); }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: fixed;
  z-index: 5;
  inset: 1rem auto auto 1rem;
  padding: 0.65rem 1rem;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--white);
}
.skip:focus { transform: none; }

.header-inner {
  position: relative;
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.6rem;
}
.brand { justify-self: start; }
.brand img { width: clamp(142px, 14vw, 178px); height: auto; }
.site-nav, .languages, .header-controls { display: flex; align-items: center; }
.site-nav { gap: clamp(1rem, 3vw, 3rem); }
.site-nav a, .languages a {
  color: var(--ink-soft);
  font-size: .81rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a { padding-block: 12px; }
.site-nav a:hover, .languages a:hover, .languages a[aria-current] { color: var(--ink); }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.header-controls { justify-self: end; gap: 14px; }
.languages { gap: 2px; }
.languages a {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  font-size: .69rem;
  letter-spacing: .045em;
}
.languages a[aria-current] {
  text-decoration: underline;
  text-decoration-color: #68765e;
  text-underline-offset: 6px;
}
.menu-toggle {
  display: none;
  place-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}
.menu-toggle span { width: 16px; height: 1px; background: currentColor; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(540px, 48vw, 700px);
  color: var(--white);
  background: #292d23;
}
.hero-media, .hero-media img, .hero-media::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media { z-index: -1; }
.hero-media img { object-fit: cover; object-position: 55% 51%; }
.hero-media::after {
  content: "";
  background:
    linear-gradient(90deg, rgb(18 22 17 / .82) 0%, rgb(18 22 17 / .59) 42%, rgb(18 22 17 / .06) 83%),
    linear-gradient(0deg, rgb(18 22 17 / .49), transparent 44%);
}
.hero-media figcaption {
  position: absolute;
  right: clamp(16px, 2vw, 32px);
  bottom: clamp(13px, 2vw, 24px);
  z-index: 1;
  padding: .23rem .55rem;
  color: var(--white);
  background: rgb(24 29 21 / .79);
  font-size: .68rem;
  letter-spacing: .04em;
}
.hero-copy { padding: clamp(36px, 6vw, 96px) clamp(24px, 6vw, 96px); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--olive);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--white); }
.hero .eyebrow::before {
  content: "";
  width: 25px;
  height: 1px;
  background: #cbd3bc;
  transform: rotate(-25deg);
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; }
h1 {
  max-width: 9ch;
  margin-top: .7rem;
  font-size: clamp(4.4rem, 8vw, 8.4rem);
  line-height: .85;
  letter-spacing: -.048em;
}
h1 em {
  display: block;
  color: #f0ebd9;
  font-weight: 500;
  white-space: nowrap;
}
.hero-intro {
  max-width: 37ch;
  margin-top: clamp(20px, 3vw, 32px);
  color: #fffaf0;
  font-size: clamp(.89rem, 1.2vw, 1.04rem);
  line-height: 1.65;
}
.button, .text-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 800;
}
.button svg, .text-link svg { width: 22px; height: 22px; flex: none; transition: transform .18s ease; }
.button:hover svg, .text-link:hover svg { transform: translateX(3px); }
.button { min-height: 50px; padding: .7rem 1.25rem; }
.button-light {
  margin-top: 1.55rem;
  background: var(--paper);
  color: var(--ink);
  transition: background-color .18s ease;
}
.button-light:hover { background: #e3e8d6; }
.button-light:focus-visible { outline-color: var(--white); }

h2 {
  margin-top: .65rem;
  font-size: clamp(3.1rem, 5.6vw, 6.2rem);
  line-height: .91;
  letter-spacing: -.042em;
  text-wrap: balance;
}
.folio {
  padding-right: .8rem;
  border-right: 1px solid currentColor;
  font-variant-numeric: tabular-nums;
  letter-spacing: .045em;
}
.about {
  display: grid;
  grid-template-columns: 1.24fr 1fr;
  align-items: end;
  gap: clamp(28px, 8vw, 126px);
}
.about h2 { max-width: 10ch; text-wrap: initial; }
.about-copy { max-width: 48ch; color: var(--ink-soft); }
.about-copy p + p { margin-top: .8rem; }
.text-link {
  min-height: 40px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.about .text-link { margin-top: .8rem; color: var(--ink); }

.projects {
  display: grid;
  grid-template-columns: 1.34fr 1fr;
  background: var(--paper-deep);
}
.projects-media { position: relative; min-height: clamp(340px, 39vw, 600px); }
.projects-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% 52%;
}
.projects-media figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: .42rem .85rem;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: .68rem;
  letter-spacing: .035em;
}
.projects-media figcaption span { padding-inline: .2rem; }
.projects-copy {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(34px, 5.5vw, 82px);
}
.projects-copy h2 { max-width: 12ch; font-size: clamp(3rem, 5vw, 5.8rem); text-wrap: initial; }
.projects-copy > p:last-of-type { max-width: 40ch; margin-top: 1.25rem; color: var(--ink-soft); }
.projects-mark {
  position: absolute;
  z-index: -1;
  inset: auto -8% -19% auto;
  width: min(78%, 360px);
  height: auto;
  opacity: .045;
  pointer-events: none;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 60px);
  margin: clamp(28px, 5vw, 54px) 0 0;
  padding: 0;
  list-style: none;
}
.principles li { padding-top: 1.3rem; border-top: 1px solid var(--line); }
.principle-number {
  display: block;
  color: var(--olive);
  font-size: .72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.principles h3 { margin-top: .7rem; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1; }
.principles p { margin-top: .6rem; color: var(--ink-soft); font-size: .95rem; }

.contact, .site-footer { background: var(--forest); color: var(--white); }
.contact-inner {
  display: grid;
  grid-template-columns: 1.24fr 1fr;
  align-items: end;
  gap: clamp(25px, 8vw, 126px);
  padding-block: clamp(58px, 8vw, 105px);
}
.contact .eyebrow { color: #d1d9c8; }
.contact h2 { font-size: clamp(3.8rem, 7.7vw, 7.8rem); text-wrap: initial; }
.contact-copy { color: #f4f3e7; }
.contact-pending { margin-top: .7rem; color: #d1d9c8; font-size: .88rem; }
.contact-address { margin-top: .55rem; overflow-wrap: anywhere; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 100px;
  padding-block: 1rem;
  border-top: 1px solid #7f897e;
}
.footer-brand img { width: 145px; height: auto; filter: brightness(0) invert(1); }
.footer-inner p { color: #d1d9c8; font-size: .76rem; }
.back-top svg { width: 18px; height: 18px; transform: rotate(-90deg); }
.back-top:hover svg { transform: translateY(-3px) rotate(-90deg); }

@media (max-width: 860px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 0 .5rem; min-height: 72px; }
  .header-controls { grid-area: 1 / 2; min-height: 72px; }
  .site-nav { grid-column: 1 / -1; flex-wrap: wrap; gap: 0 1.5rem; padding-block: .4rem .8rem; border-top: 1px solid var(--line); }
  .site-header[data-enhanced] .menu-toggle { display: grid; }
  .site-header[data-enhanced] .site-nav:not(.is-open) { display: none; }
  .hero { min-height: 550px; }
  .hero-media::after { background: linear-gradient(20deg, rgb(18 22 17 / .89) 0%, rgb(18 22 17 / .62) 44%, rgb(18 22 17 / .10) 82%); }
  .hero-copy { padding-bottom: 63px; }
  h1 { font-size: clamp(4.2rem, 11vw, 7rem); }
  .projects-copy { padding-inline: 2rem; }
}

@media (max-width: 620px) {
  .brand img { width: 135px; }
  .header-controls { gap: 6px; }
  .languages a { min-width: 35px; }
  .hero { min-height: clamp(470px, 133vw, 620px); }
  .hero-media img { object-position: 56% center; }
  .hero-copy { padding-inline: clamp(15px, 5vw, 30px); }
  h1 { font-size: clamp(3.35rem, 12.5vw, 4.9rem); }
  .hero-intro { max-width: 31ch; }
  .about, .contact-inner, .projects, .principles { grid-template-columns: 1fr; }
  .about h2, .projects-copy h2 { max-width: 15ch; }
  .projects-media { min-height: auto; aspect-ratio: 4 / 3; }
  .projects-copy { min-height: 300px; padding: 2rem 1.3rem 2.55rem; }
  .principles { gap: 1.55rem; }
  .principles li { padding-top: .9rem; }
  .principles h3 { margin-top: .4rem; }
  .principles p { margin-top: .35rem; }
  .footer-inner p { display: none; }
  .footer-brand img { width: 125px; }
}

@media (max-width: 345px) {
  .brand img { width: 113px; }
  .hero-copy { padding-inline: 13px; }
  h1 { font-size: 3.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
