@font-face {
  font-family: 'Hanken Grotesk';
  src: url('assets/fonts/hanken-grotesk.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf8f2;
  --stone: #eeeadf;
  --ink: #252923;
  --muted: #565b50;
  --pine: #2e3b2e;
  --pine-dark: #222d23;
  --line: #c9c5b7;
  --light-line: #687469;
  --light-text: #e6e1d3;
  --focus: #8a572f;
  --sans: 'Hanken Grotesk', 'Segoe UI', sans-serif;
  --gutter: clamp(22px, 6vw, 96px);
  --section-space: clamp(65px, 8vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem / 1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, dl, dd, blockquote { margin: 0; }
a { color: inherit; }
button { color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
p { text-wrap: pretty; }
section[id], #main { scroll-margin-top: 98px; }
::selection { background: var(--pine); color: var(--paper); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 5;
  background: var(--paper);
  padding: 10px 14px;
}

.shell { width: min(100% - 2 * var(--gutter), 1376px); margin-inline: auto; }
.section { padding-block: var(--section-space); }
h1, h2, h3 { font-weight: 500; }
h2 { font-size: clamp(2.65rem, 4.9vw, 4.85rem); line-height: 1.01; letter-spacing: -.055em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--paper);
  border-bottom: 1px solid rgb(91 87 73 / .18);
}
@supports (backdrop-filter: blur(18px)) {
  .site-header {
    background: rgb(250 248 242 / .91);
    backdrop-filter: blur(18px) saturate(115%);
  }
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 71px;
  padding-block: 8px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; background: var(--pine); border-radius: 2px; color: var(--paper); }
.brand-mark::after { content: ''; width: 23px; height: 18px; background: currentColor; clip-path: polygon(0 0, 19% 0, 49% 74%, 80% 0, 100% 0, 59% 100%, 40% 100%); }
.brand-text { display: grid; gap: 2px; font-size: 1.76rem; font-weight: 650; line-height: .94; letter-spacing: -.058em; }
.brand-text span { font: 700 .53rem / 1.4 var(--sans); letter-spacing: .13em; }
.site-nav { display: grid; grid-template-columns: auto auto auto auto 1fr; align-items: center; gap: clamp(14px, 2.5vw, 36px); width: min(72%, 850px); }
.site-nav > a:not(.button) { font-size: .93rem; font-weight: 650; text-decoration: none; padding-block: 10px; }
.site-nav > a:not(.button):hover, .site-nav a[aria-current='page'] { text-decoration: underline; text-underline-offset: 5px; }
.site-nav .header-cta { justify-self: end; min-height: 44px; padding-block: 9px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: fit-content;
  min-height: 49px;
  padding: 12px 17px 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms, color 180ms, transform 170ms ease-out;
}
.button .arrow { font-size: 1.16rem; font-weight: 500; transition: transform 180ms; }
.button:hover .arrow { transform: translateX(3px); }
.button:active .arrow { transform: translateX(1px); }
.button-primary { background: var(--pine); color: var(--paper); }
.button-primary:hover { background: var(--pine-dark); }
.button-light { background: var(--paper); color: var(--pine-dark); }
.button-light:hover { background: var(--light-text); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font-size: .94rem; font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-thickness: 2px; }

.menu-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 13px; background: transparent; border: 1px solid var(--line); border-radius: 999px; font-weight: 650; }
.menu-icon { display: block; width: 14px; height: 8px; border-block: 1px solid currentColor; }
.menu-toggle[aria-expanded='true'] .menu-icon { height: 1px; border-bottom: 0; }

.home-page .site-header {
  position: absolute;
  inset: clamp(12px, 1.8vw, 25px) 0 auto;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.home-page .header-inner {
  min-height: 65px;
  padding: 8px 9px 8px clamp(12px, 1.6vw, 22px);
  border-radius: 9px;
  background: var(--paper);
}
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(690px, 93svh, 875px);
  padding-block: 150px clamp(55px, 7.5vh, 96px);
  overflow: hidden;
  color: var(--paper);
  background: var(--pine-dark);
}
.hero-media, .hero::after { position: absolute; inset: 0; }
.hero-media { z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 56%; filter: brightness(1.1) saturate(.93); }
.hero::after {
  z-index: -1;
  content: '';
  background:
    linear-gradient(90deg, rgb(17 24 19 / .51), rgb(17 24 19 / .21) 52%, transparent 87%),
    linear-gradient(0deg, rgb(17 24 19 / .8), rgb(17 24 19 / .16) 62%, transparent 88%);
}
.hero-inner { width: min(100% - 2 * clamp(23px, 8vw, 136px), 1338px); }
.hero h1 {
  font: 400 clamp(4rem, 7.6vw, 7.65rem) / .91 var(--sans);
  letter-spacing: -.062em;
}
.hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-block-start: clamp(30px, 5.1vw, 78px);
}
.hero-bottom p { max-width: 34ch; font-size: clamp(1.04rem, 1.55vw, 1.28rem); line-height: 1.42; }
.hero-bottom .button { flex-shrink: 0; }
.hero :focus-visible { outline-color: var(--paper); }

.intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; gap: 28px clamp(35px, 8vw, 126px); }
.intro h2 { max-width: 14ch; font-size: clamp(3rem, 5.6vw, 5.55rem); text-wrap: balance; }
.intro-body > p { max-width: 40ch; color: var(--muted); font-size: clamp(1.06rem, 1.55vw, 1.3rem); }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 25px; border-top: 1px solid var(--line); }
.facts-grid > div { display: flex; flex-direction: column-reverse; gap: 3px; padding: 17px 10px 0 0; }
.facts-grid > div + div { border-left: 1px solid var(--line); padding-left: clamp(14px, 3vw, 33px); }
.facts-grid dd { color: var(--pine); font: 450 clamp(2.15rem, 4vw, 3.55rem) / 1 var(--sans); letter-spacing: -.05em; }
.facts-grid dt { color: var(--muted); font-size: .82rem; font-weight: 650; line-height: 1.35; }

.work { border-block-start: 1px solid var(--line); padding-block-start: clamp(46px, 5.8vw, 83px); }
.work > h2 { margin-block-end: clamp(24px, 3.2vw, 42px); }
.work-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.work-layout:has(.project-stage:not([hidden])) { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: clamp(22px, 3.5vw, 52px); align-items: start; }
.project-stage, .work-browse { min-width: 0; }
.stage-photo { aspect-ratio: 1.53; overflow: hidden; border-radius: 9px; background: var(--stone); }
.stage-photo img { width: 100%; height: 100%; object-fit: cover; }
.stage-caption { margin-block-start: 10px; padding-block-end: 11px; border-block-end: 1px solid var(--line); }
.stage-caption h3 { font-size: clamp(1.9rem, 3vw, 3.1rem); line-height: 1.06; letter-spacing: -.035em; }
.stage-caption p { color: var(--muted); font-size: .9rem; }
.work-filters { display: grid; grid-template-columns: .7fr 1fr 1.25fr 1.25fr; gap: 2px; padding: 3px; margin-block-end: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--stone); }
.work-filters button { min-height: 44px; padding: 6px 4px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-size: .82rem; font-weight: 650; }
.work-filters button:hover, .work-filters button[aria-pressed='true'] { color: var(--ink); }
.work-filters button[aria-pressed='true'] { border-color: rgb(91 87 73 / .21); background: var(--paper); box-shadow: 0 1px 3px rgb(46 59 46 / .08); }
.project-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.work-layout:has(.project-stage:not([hidden])) .project-index { grid-template-columns: minmax(0, 1fr); gap: 0; }
.project-control {
  display: grid;
  grid-template-columns: 57px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  width: 100%;
  min-height: 62px;
  gap: 0 11px;
  padding: 5px 9px 5px 2px;
  border: 0;
  border-block-end: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: start;
  transition: background-color 150ms, color 150ms;
}
.project-control img { grid-row: 1 / 3; width: 57px; height: 41px; object-fit: cover; border-radius: 3px; }
.project-name { font-weight: 700; font-size: .97rem; line-height: 1.22; }
.project-type { grid-column: 2; color: var(--muted); font-size: .77rem; line-height: 1.32; }
.project-indicator { grid-column: 3; grid-row: 1 / 3; font-size: 1rem; opacity: 0; }
.project-control:hover { background: var(--stone); }
.project-control:hover .project-indicator, .project-control:focus-visible .project-indicator { opacity: .75; }
.project-control[aria-pressed='true'] { padding-inline-start: 7px; border-color: transparent; border-radius: 5px; background: var(--pine); color: var(--paper); }
.project-control[aria-pressed='true'] .project-type { color: var(--light-text); }
.project-control[aria-pressed='true'] .project-indicator { opacity: 1; }

.services { background: var(--stone); }
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: 25px clamp(28px, 7vw, 108px);
}
.services-intro h2 { font-size: clamp(2.75rem, 4.55vw, 4.5rem); }
.services-intro p { max-width: 34ch; margin-block-start: 16px; color: var(--muted); font-size: clamp(1.04rem, 1.45vw, 1.2rem); }
.services-list details { border-block-start: 1px solid var(--line); }
.services-list details:last-child { border-block-end: 1px solid var(--line); }
.services-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 69px;
  padding-block: 13px 10px;
  color: var(--pine-dark);
  font: 500 clamp(1.42rem, 2.75vw, 2.6rem) / 1.1 var(--sans);
  letter-spacing: -.04em;
  cursor: pointer;
  list-style: none;
}
.services-list summary::-webkit-details-marker { display: none; }
.service-toggle {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color 170ms, color 170ms;
}
.service-toggle::before, .service-toggle::after { content: ''; grid-area: 1 / 1; width: 12px; height: 1px; background: currentColor; }
.service-toggle::after { transform: rotate(90deg); }
details[open] .service-toggle::after { transform: rotate(0); }
.services-list summary:hover .service-toggle { background: var(--pine); color: var(--paper); }
.service-content { max-width: min(100%, 59ch); padding: 0 42px 14px 0; color: var(--muted); }
.service-content a { margin-block-start: 4px; color: var(--pine-dark); }

.about { display: grid; grid-template-columns: minmax(0, 1.09fr) minmax(0, .91fr); align-items: center; gap: 29px clamp(35px, 6.4vw, 95px); }
.about-image { overflow: hidden; border-radius: clamp(8px, 1vw, 15px); background: var(--stone); }
.about-image img { width: 100%; height: auto; aspect-ratio: 1.34; object-fit: cover; object-position: center 56%; }
.about h2 { font-size: clamp(2.65rem, 4.65vw, 4.75rem); text-wrap: balance; }
.about-copy > p { max-width: 44ch; margin-top: 17px; color: var(--muted); font-size: clamp(1rem, 1.36vw, 1.18rem); }
.quote { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote blockquote { font: 400 clamp(1.2rem, 1.83vw, 1.8rem) / 1.38 var(--sans); letter-spacing: -.018em; }
.quote figcaption { margin-top: 10px; color: var(--muted); font-size: .85rem; font-weight: 650; }
.quote figcaption span { margin-inline: .2em; }

.team-main { padding-block: clamp(54px, 7.3vw, 104px) var(--section-space); }
.team-intro { display: grid; grid-template-columns: minmax(0, 1.36fr) minmax(0, .64fr); align-items: end; gap: 14px clamp(25px, 7vw, 102px); margin-block-end: clamp(32px, 5.3vw, 75px); }
.team-intro h1 { max-width: 14ch; color: var(--pine-dark); font-size: clamp(3.5rem, 6.65vw, 6.8rem); line-height: .96; letter-spacing: -.055em; text-wrap: balance; }
.team-intro p { max-width: 32ch; color: var(--muted); font-size: clamp(1.04rem, 1.55vw, 1.25rem); }
.team-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px clamp(24px, 5vw, 74px); }
.team-profile { display: grid; grid-template-columns: minmax(0, .69fr) minmax(0, 1.31fr); gap: 15px clamp(15px, 2.4vw, 34px); border-block-start: 1px solid var(--line); padding-block: 21px 10px; }
.team-profile img { align-self: start; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 7px; background: var(--stone); object-fit: cover; object-position: center 31%; }
.profile-copy { align-self: start; padding-block-start: 8px; }
.profile-copy h2 { color: var(--pine-dark); font-size: clamp(1.74rem, 3.15vw, 3.13rem); line-height: 1.04; letter-spacing: -.045em; }
.profile-role { margin-block: 4px 9px; color: var(--ink); font-size: .88rem; font-weight: 700; }
.profile-copy > p:last-child { max-width: 42ch; color: var(--muted); font-size: .98rem; }
.about-team { margin-block-start: 9px; }

.contact, .site-footer { color: var(--paper); background: var(--pine); }
.contact :focus-visible, .site-footer :focus-visible { outline-color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.23fr) minmax(0, .77fr); gap: 28px clamp(30px, 7vw, 104px); padding-block: clamp(57px, 7.7vw, 113px); }
.contact h2 { font-size: clamp(3.65rem, 6.75vw, 6.9rem); line-height: .87; }
.contact-grid > div > p { max-width: 33ch; margin-block: 18px 23px; color: var(--light-text); font-size: 1.07rem; }
.contact-details { display: grid; align-content: center; font-style: normal; }
.contact-details > div { display: grid; grid-template-columns: minmax(91px, .75fr) minmax(0, 1.25fr); gap: 7px 14px; padding: 14px 0; border-top: 1px solid var(--light-line); }
.contact-details > div:last-child { border-bottom: 1px solid var(--light-line); }
.contact-details > div > span { padding-top: 2px; color: var(--light-text); font-size: .81rem; font-weight: 650; }
.contact-details a { text-underline-offset: 4px; text-decoration-color: var(--light-line); }
.contact-details a:hover { text-decoration-color: currentColor; }
.contact-details a span { margin-left: 3px; }
.site-footer { border-top: 1px solid var(--light-line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px 20px; padding-block: 22px; }
.site-footer .brand-mark { color: var(--pine); background: var(--paper); }
.site-footer small { color: var(--light-text); font-size: .8rem; }
.footer-social { justify-self: end; font-size: .9rem; text-underline-offset: 4px; }

@media (max-width: 820px) {
  .site-nav { width: min(75%, 600px); gap: 13px; }
  .site-nav .button { gap: 12px; }
  .about { gap: 24px; }
  .team-directory { grid-template-columns: minmax(0, 1fr); }
  .team-profile { grid-template-columns: minmax(0, .64fr) minmax(0, 1.36fr); }
  .team-profile img { max-width: 218px; }
  .contact-details > div { grid-template-columns: 1fr; }
}

@media (max-width: 790px) {
  .work-layout:has(.project-stage:not([hidden])) { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .work-layout:has(.project-stage:not([hidden])) .project-index {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(77%, 220px);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    gap: 8px;
    padding: 4px 5px 9px;
    scrollbar-width: thin;
  }
  .project-index .project { scroll-snap-align: start; }
  .work-filters { max-width: 460px; margin-block-end: 7px; }
}

@media (max-width: 740px) {
  .hero h1 { font-size: clamp(2.68rem, 10.95vw, 5.15rem); }
  .team-intro { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  section[id], #main { scroll-margin-top: 80px; }
  .header-inner { min-height: 63px; flex-wrap: wrap; gap: 0 10px; padding-block: 7px; }
  .site-nav { width: 100%; grid-template-columns: 1fr; gap: 0; padding: 3px 5px 10px; }
  .site-nav a:not(.button) { border-bottom: 1px solid var(--line); }
  .site-nav .header-cta { justify-self: start; margin-top: 12px; }
  .menu-ready .site-nav { position: absolute; inset: calc(100% + 5px) 0 auto; padding: 4px 12px 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
  .menu-ready .menu-toggle[aria-expanded='false'] + .site-nav { display: none; }
  .home-page .header-inner { min-height: 62px; padding-block: 7px; }
  .hero { min-height: clamp(595px, 88svh, 750px); padding-block: 121px 39px; }
  .hero-media img { object-position: center; }
  .hero::after { background: linear-gradient(0deg, rgb(17 24 19 / .86), rgb(17 24 19 / .58) 43%, rgb(17 24 19 / .09) 82%); }
  .hero-bottom { display: grid; justify-items: start; gap: 16px; margin-block-start: 21px; }
  .intro, .about, .contact-grid, .services-grid { grid-template-columns: minmax(0, 1fr); }
  .intro { gap: 17px; }
  .intro h2 { max-width: 14ch; text-wrap: unset; }
  .facts-grid { margin-top: 21px; }
  .project-index { grid-template-columns: 1fr; }
  .services-list summary { min-height: 60px; }
  .team-intro h1 { max-width: none; font-size: clamp(2.9rem, 11.3vw, 4.15rem); }
  .team-profile { grid-template-columns: minmax(85px, .54fr) minmax(0, 1.46fr); }
  .profile-copy { padding-block-start: 0; }
  .about h2 { text-wrap: unset; }
  .contact h2 { font-size: clamp(3rem, 12.5vw, 3.65rem); }
  .contact-details > div { grid-template-columns: minmax(96px, .75fr) minmax(0, 1.25fr); }
  .footer-inner { grid-template-columns: 1fr auto; }
  .site-footer small { grid-column: 1; grid-row: 2; }
  .footer-social { grid-column: 2; grid-row: 1; }
}

@media (max-width: 365px) {
  .hero h1 { font-size: 2.43rem; }
  .work-filters button { font-size: .77rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .button:active { transform: scale(.97); transition-duration: 90ms; }
}

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

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .site-header { background: var(--paper); backdrop-filter: none; }
}
