:root {
  --paper: #f2f0ea;
  --paper-light: #faf9f5;
  --navy: #172133;
  --ink: var(--navy);
  --ink-soft: #4d5561;
  --line: rgba(23, 33, 51, 0.18);
  --teal: #397671;
  --white: #fff;
  --max-width: 1600px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-space: clamp(88px, 11vw, 176px);
  --heading-gap: clamp(28px, 2.4vw, 46px);
  --header-height: 80px;
  --display: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  --body: Inter, "SF Pro Text", "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
a,
button {
  -webkit-tap-highlight-color: transparent;
}

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

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

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

p + p {
  margin-top: 1em;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  width: 100%;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(242, 240, 234, 0.98);
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(242, 240, 234, 0.985);
  box-shadow: 0 8px 24px rgba(23, 33, 51, 0.06);
}

.wordmark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  transition: border-color 180ms ease, color 180ms ease;
}

.wordmark:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 42px);
  font-size: 14px;
  font-weight: 620;
}

.site-nav a {
  position: relative;
  transition: opacity 160ms ease;
}

.site-nav a::after {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--teal);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .nav-contact {
  padding: 10px 16px;
  border: 1px solid var(--ink);
  transition: border-color 180ms ease, color 180ms ease, opacity 160ms ease;
}

.site-nav .nav-contact::after {
  display: none;
}

.site-nav .nav-contact:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.site-nav a:active {
  opacity: 0.62;
}

.hero {
  position: relative;
  display: grid;
  height: clamp(700px, calc(100svh - var(--header-height)), 920px);
  grid-template-columns: minmax(0, 47%) minmax(0, 53%);
  overflow: hidden;
  background: var(--paper-light);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 0;
  max-width: 760px;
  flex-direction: column;
  justify-content: center;
  padding: 110px var(--gutter) 64px;
}

.eyebrow {
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero h1 {
  margin: clamp(20px, 3.5vh, 42px) 0 clamp(24px, 3.5vh, 40px);
  font-family: var(--display);
  font-size: clamp(74px, 8.6vw, 148px);
  font-weight: 720;
  letter-spacing: -0.075em;
  line-height: 0.79;
}

.hero__lead,
.hero__details {
  max-width: 600px;
}

.hero__details {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.05vw, 17px);
  margin-top: 1em;
}

.hero__lead {
  color: var(--ink);
  font-size: clamp(20px, 1.75vw, 27px);
  font-weight: 560;
  line-height: 1.35;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: clamp(26px, 4vh, 44px);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 680;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.button--primary {
  background: var(--ink);
  color: var(--white);
}

.button--primary:hover {
  box-shadow: inset 0 0 0 2px var(--teal);
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid currentColor;
  font-size: 15px;
  font-weight: 680;
}

.text-link span {
  transition: color 180ms ease, transform 180ms ease;
}

.text-link:hover span {
  color: var(--teal);
  transform: translate(3px, 3px);
}

.hero__portrait {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #e6e3dd;
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.hero__caption {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: 28px;
  color: rgba(23, 33, 51, 0.66);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.section,
.numbers {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-space) var(--gutter);
}

.work {
  padding-top: clamp(88px, 8vw, 128px);
  padding-bottom: clamp(88px, 8vw, 128px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(400px, 0.85fr) minmax(360px, 1.15fr);
  column-gap: var(--heading-gap);
  align-items: end;
  margin-bottom: clamp(56px, 3.75vw, 72px);
}

.section-heading h2,
.numbers h2,
.about h2,
.contact h2 {
  font-family: var(--display);
  font-size: clamp(44px, 5.6vw, 82px);
  font-weight: 680;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.section-intro {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.48;
}

.section-intro p:first-child {
  color: var(--ink);
}

.expertise-list {
  border-top: 1px solid var(--line);
}

.expertise {
  display: grid;
  grid-template-columns: minmax(400px, 0.85fr) minmax(360px, 1.15fr);
  column-gap: var(--heading-gap);
  padding: clamp(28px, 3vw, 42px) 0;
  border-bottom: 1px solid var(--line);
}

.expertise h3 {
  max-width: 360px;
  font-family: var(--display);
  font-size: clamp(27px, 2.5vw, 38px);
  font-weight: 630;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.expertise > div {
  max-width: 620px;
  color: var(--ink-soft);
}

.numbers {
  max-width: none;
  padding-top: clamp(92px, 8vw, 128px);
  padding-bottom: clamp(92px, 8vw, 128px);
  background: var(--ink);
  color: var(--white);
}

.numbers__head,
.metrics {
  width: min(100%, calc(var(--max-width) - (var(--gutter) * 2)));
  margin-right: auto;
  margin-left: auto;
}

.numbers__head {
  margin-bottom: clamp(48px, 5vw, 68px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.23);
  border-left: 1px solid rgba(255, 255, 255, 0.23);
}

.metric {
  min-height: 190px;
  padding: clamp(26px, 2.7vw, 40px);
  border-right: 1px solid rgba(255, 255, 255, 0.23);
  border-bottom: 1px solid rgba(255, 255, 255, 0.23);
}

.metric dt {
  font-family: var(--display);
  font-size: clamp(44px, 4.8vw, 70px);
  font-weight: 620;
  letter-spacing: -0.065em;
  line-height: 0.95;
  white-space: nowrap;
}

.metric dd {
  max-width: 270px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.45;
}

.section-note {
  max-width: 500px;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.45vw, 22px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project-card {
  min-height: 400px;
  padding: clamp(30px, 3.5vw, 48px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 220ms ease, transform 220ms ease;
}

.project-card:hover {
  background: var(--paper-light);
}

.project-card h3 {
  font-family: var(--display);
  font-size: clamp(28px, 3.1vw, 46px);
  font-weight: 640;
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.project-card__result {
  margin: clamp(30px, 3vw, 44px) 0 24px;
  color: var(--ink);
  font-size: clamp(19px, 1.55vw, 24px);
  font-weight: 680;
  line-height: 1.25;
}

.project-card__copy {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 16px;
}

.about {
  display: grid;
  max-width: var(--max-width);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section-space);
}

.about__image {
  min-height: 760px;
  overflow: hidden;
  background: #e4e1dc;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 45%;
}

.about__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 8vw, 120px);
  background: var(--paper-light);
}

.about h2 {
  margin: 0 0 clamp(42px, 5vw, 68px);
}

.about__copy {
  max-width: 630px;
  color: var(--ink-soft);
}

.about__copy p:first-child {
  color: var(--ink);
  font-size: clamp(20px, 1.55vw, 24px);
  line-height: 1.45;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(54px, 8vw, 130px);
  padding: var(--section-space) max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter)));
  background: var(--navy);
  color: var(--white);
}

.contact h2 {
  margin: 0 0 46px;
  font-size: clamp(58px, 7vw, 112px);
}

.contact__intro > p:last-child {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(18px, 1.5vw, 23px);
}

.contact-list {
  align-self: end;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-style: normal;
}

.contact-list a {
  display: grid;
  grid-template-columns: minmax(110px, 0.65fr) minmax(210px, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: 0 -14px;
  padding: 28px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color 180ms ease;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.contact-list a:active {
  background: rgba(255, 255, 255, 0.13);
}

.contact-list a:focus-visible {
  outline-color: var(--teal);
  outline-offset: -3px;
}

.contact-list a > span:first-child {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-list strong {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 560;
  letter-spacing: -0.025em;
}

.contact-list a > span:last-child {
  font-size: 22px;
  transition: color 180ms ease, transform 180ms ease;
}

.contact-list a:hover > span:last-child {
  color: var(--teal);
  transform: translate(4px, -4px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px var(--gutter);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.site-footer a {
  color: var(--white);
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 901px) and (max-height: 760px) {
  .hero {
    height: calc(100svh - var(--header-height));
  }

  .hero__content {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .hero h1 {
    margin: 18px 0 24px;
    font-size: clamp(72px, 7.4vw, 112px);
  }

  .hero__details {
    display: none;
  }

  .hero__actions {
    margin-top: 28px;
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 52%) minmax(0, 48%);
  }

  .hero h1 {
    font-size: clamp(72px, 10vw, 108px);
  }

  .hero__content {
    padding-right: clamp(28px, 4vw, 58px);
  }

  .section-heading {
    grid-template-columns: minmax(250px, 0.9fr) minmax(290px, 1.1fr);
    gap: 28px;
  }

  .expertise {
    grid-template-columns: minmax(250px, 0.9fr) minmax(290px, 1.1fr);
    column-gap: 28px;
  }

  .project-card {
    min-height: 0;
  }

  .about__content {
    padding: clamp(48px, 6vw, 78px);
  }
}

@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero__content {
    max-width: none;
    min-height: 620px;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .hero h1 {
    font-size: clamp(86px, 17vw, 132px);
  }

  .hero__lead,
  .hero__details {
    max-width: 680px;
  }

  .hero__portrait {
    height: min(760px, 85vw);
  }

  .hero__portrait img {
    object-position: 50% 42%;
  }

  .hero__caption {
    bottom: 24px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    row-gap: 30px;
    align-items: start;
  }

  .expertise {
    grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .about__image {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .about__content {
    padding: clamp(54px, 10vw, 90px) var(--gutter);
  }

  .contact-list {
    margin-top: 20px;
  }
}

@media (max-width: 620px) {
  :root {
    --section-space: 88px;
    --header-height: 72px;
  }

  .site-header {
    padding: 14px var(--gutter);
  }

  .site-nav > a:not(.nav-contact) {
    display: none;
  }

  .site-nav .nav-contact {
    padding: 8px 13px;
  }

  .hero__content {
    display: contents;
  }

  .eyebrow {
    order: 2;
    max-width: 280px;
    margin: 0;
    padding-right: var(--gutter);
    padding-left: var(--gutter);
    font-size: 10px;
  }

  .hero h1 {
    order: 1;
    margin: 52px 0 22px;
    padding-right: var(--gutter);
    padding-left: var(--gutter);
    font-size: clamp(66px, 23vw, 94px);
    line-height: 0.84;
  }

  .hero__lead {
    order: 3;
    margin-top: 26px;
    padding-right: var(--gutter);
    padding-left: var(--gutter);
    font-size: 19px;
  }

  .hero__details {
    display: none;
  }

  .hero__actions {
    order: 5;
    gap: 22px;
    margin: 0;
    padding: 24px var(--gutter) 48px;
    background: var(--paper-light);
  }

  .button {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 14px;
  }

  .text-link {
    font-size: 14px;
  }

  .hero__portrait {
    order: 4;
    height: 88vw;
    max-height: 420px;
    margin-top: 26px;
  }

  .hero__caption {
    display: none;
  }

  .section-heading,
  .numbers__head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-heading {
    margin-bottom: 60px;
  }

  .section-heading h2,
  .numbers h2,
  .about h2 {
    font-size: 48px;
  }

  .section-intro,
  .section-note {
    font-size: 18px;
  }

  .expertise {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 0;
  }

  .expertise h3 {
    font-size: 28px;
  }

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

  .metric {
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-template-columns: minmax(126px, 0.9fr) minmax(0, 1fr);
    gap: 18px;
    align-items: end;
    padding: 28px 22px;
  }

  .metric dt {
    font-size: clamp(36px, 10vw, 43px);
  }

  .metric dd {
    margin-top: 0;
  }

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

  .project-card {
    padding: 34px 24px 42px;
  }

  .project-card h3 {
    font-size: 31px;
  }

  .project-card__result,
  .project-card__copy {
    margin-left: 0;
  }

  .project-card__result {
    margin-top: 28px;
    font-size: 20px;
  }

  .project-card__copy {
    font-size: 15px;
  }

  .about {
    padding-right: 0;
    padding-left: 0;
  }

  .about__image {
    aspect-ratio: 3 / 4;
  }

  .about__content {
    padding: 70px var(--gutter);
  }

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

  .contact h2 {
    font-size: 60px;
  }

  .contact-list a {
    grid-template-columns: 1fr auto;
    gap: 7px 18px;
    padding: 22px 14px;
  }

  .contact-list a > span:first-child {
    grid-column: 1;
  }

  .contact-list strong {
    grid-column: 1;
    font-size: 22px;
  }

  .contact-list a > span:last-child {
    grid-row: 1 / 3;
    grid-column: 2;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
