:root {
  --ink: #091316;
  --ink-soft: #132125;
  --paper: #f1eee6;
  --white: #fffdf8;
  --gold: #e2a83f;
  --gold-pale: #f2d491;
  --line: rgba(9, 19, 22, 0.18);
  --shell: min(1380px, calc(100vw - 64px));
  --display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Helvetica Neue", "Neue Haas Grotesk Text Pro", "Arial Nova", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

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

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

.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding-block: clamp(96px, 12vw, 190px);
}

.eyebrow {
  margin: 0;
  color: #6c675e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 253, 248, 0.7);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 94px;
  padding-inline: max(32px, calc((100vw - 1380px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  transition: background 250ms ease, height 250ms ease, color 250ms ease;
}

.site-header.scrolled {
  height: 76px;
  border-color: var(--line);
  background: rgba(241, 238, 230, 0.94);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  font-family: var(--display);
  font-size: 1.04rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand img {
  width: 41px;
  height: 46px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.7vw, 45px);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
}

.site-nav a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  content: "";
  transition: transform 200ms ease;
}

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

.nav-contact {
  padding: 12px 19px;
  border: 1px solid currentColor;
  border-radius: 100px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 1px;
  margin: 7px auto;
  background: currentColor;
  transition: transform 200ms ease;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  align-items: flex-end;
  color: var(--white);
  background: var(--ink);
}

.hero-media,
.hero-shade,
.hero-frame {
  position: absolute;
  inset: 0;
}

.hero-frame {
  opacity: 0;
  background-position: center;
  background-size: cover;
  animation: heroCrossfade 18s infinite;
}

.hero-frame-one {
  background-image: url("/images/projects/headquarters.jpg");
}

.hero-frame-two {
  background-image: url("/images/projects/benson.jpg");
  animation-delay: 6s;
}

.hero-frame-three {
  background-image: url("/images/projects/la-residence.jpg");
  animation-delay: 12s;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 10, 12, 0.77) 0%, rgba(4, 10, 12, 0.18) 68%),
    linear-gradient(0deg, rgba(4, 10, 12, 0.72) 0%, rgba(4, 10, 12, 0.04) 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 180px;
  padding-bottom: clamp(58px, 7vw, 100px);
}

.hero h1 {
  max-width: 1100px;
  margin: clamp(26px, 4vw, 56px) 0 0;
  font-family: var(--display);
  font-size: clamp(4.2rem, 9.7vw, 10rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.78;
}

.hero h1 em {
  color: var(--gold-pale);
  font-weight: 400;
}

.hero-bottom {
  display: flex;
  max-width: 880px;
  margin-top: clamp(46px, 6vw, 88px);
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.hero-bottom > p {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.6;
}

.circle-link {
  display: grid;
  width: 106px;
  height: 106px;
  flex: 0 0 auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  align-content: space-between;
  transition: background 200ms ease, color 200ms ease;
}

.circle-link span:first-child {
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.circle-link span:last-child {
  justify-self: end;
  font-size: 1.25rem;
}

.circle-link:hover,
.circle-link:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.hero-index {
  position: absolute;
  z-index: 2;
  right: max(32px, calc((100vw - 1380px) / 2));
  bottom: 76px;
  display: grid;
  width: 160px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
}

.hero-index i {
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.intro {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
}

.statement {
  max-width: 1040px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.1rem, 6.3vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.intro-copy {
  display: grid;
  max-width: 780px;
  margin-top: clamp(50px, 8vw, 110px);
  margin-left: auto;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
}

.intro-copy p {
  margin: 0;
  color: #4f5555;
  font-size: 1rem;
  line-height: 1.75;
}

.metrics {
  padding-block: 72px;
  background: var(--ink);
  color: var(--white);
}

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

.metric {
  display: flex;
  min-height: 150px;
  padding: 16px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  flex-direction: column;
  justify-content: space-between;
}

.metric:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.metric strong {
  font-family: var(--display);
  font-size: clamp(3rem, 4.5vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.06em;
}

.metric sup {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.3em;
  vertical-align: top;
}

.metric span {
  max-width: 155px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: clamp(60px, 8vw, 110px);
}

.section-heading h2,
.library-heading h2,
.contact h2 {
  max-width: 950px;
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: clamp(3.1rem, 6.4vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.section-heading.split {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  align-items: end;
  gap: 60px;
}

.section-heading.split > p {
  max-width: 440px;
  margin: 0 0 7px;
  color: #5e6363;
  line-height: 1.7;
}

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

.capability {
  position: relative;
  display: grid;
  min-height: 250px;
  padding: 44px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr 3fr;
  gap: 40px;
  transition: padding 250ms ease;
}

.capability-number {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}

.capability h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.capability p {
  max-width: 660px;
  margin: 27px 0 0;
  color: #585e5e;
  line-height: 1.7;
}

.capability-mark {
  position: absolute;
  right: 2vw;
  bottom: -0.35em;
  color: rgba(9, 19, 22, 0.035);
  font-family: var(--display);
  font-size: 17rem;
  line-height: 1;
  pointer-events: none;
}

.capability:hover {
  padding-left: 18px;
}

.featured {
  background: #d9d2c4;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(28px, 4vw, 64px);
}

.project-card-wide {
  grid-row: span 2;
}

.project-image {
  overflow: hidden;
  background: #a6a095;
}

.project-card-wide .project-image {
  aspect-ratio: 0.82;
}

.project-card-tall .project-image,
.project-card:not(.project-card-wide):not(.project-card-tall) .project-image {
  aspect-ratio: 1.45;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-image img {
  transform: scale(1.035);
}

.project-meta {
  padding-top: 20px;
}

.project-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #64615a;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-meta h3 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.project-library {
  background: var(--paper);
}

.library-heading {
  display: grid;
  margin-bottom: 72px;
  grid-template-columns: 1fr 2.2fr 1fr;
  align-items: end;
  gap: 40px;
}

.library-heading > p:last-child {
  margin: 0 0 8px;
  color: #5e6363;
  line-height: 1.6;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px 18px;
}

.project-tile {
  min-width: 0;
}

.project-tile img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  filter: saturate(0.9);
  transition: filter 300ms ease, transform 500ms ease;
}

.project-tile:hover img {
  filter: saturate(1.08);
  transform: translateY(-4px);
}

.project-tile h3 {
  margin: 17px 0 5px;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.project-tile p {
  margin: 0;
  color: #6e716e;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
}

.project-extra {
  display: none;
}

.project-grid.expanded .project-extra {
  display: block;
  animation: reveal 450ms both;
}

.text-button {
  display: flex;
  width: 100%;
  margin-top: 68px;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  background: transparent;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.text-button span:last-child {
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform 250ms ease;
}

.text-button[aria-expanded="true"] span:last-child {
  transform: rotate(45deg);
}

.acquisitions {
  position: relative;
  display: flex;
  min-height: min(820px, 90svh);
  overflow: hidden;
  align-items: center;
  color: var(--white);
}

.acquisitions-image,
.acquisitions-shade {
  position: absolute;
  inset: 0;
}

.acquisitions-image {
  background: url("/images/projects/mclennan.jpg") center / cover;
}

.acquisitions-shade {
  background: linear-gradient(90deg, rgba(4, 11, 13, 0.88) 0%, rgba(4, 11, 13, 0.16) 90%);
}

.acquisitions-content {
  position: relative;
  z-index: 1;
}

.acquisitions h2 {
  max-width: 880px;
  margin: 25px 0 32px;
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 8.5rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.83;
}

.acquisitions-content > p:not(.eyebrow) {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.button {
  display: inline-flex;
  margin-top: 42px;
  padding: 16px 22px;
  border: 1px solid currentColor;
  align-items: center;
  gap: 45px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 200ms ease, color 200ms ease;
}

.light-button:hover,
.light-button:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.leadership {
  background: #d9d2c4;
}

.leader-grid {
  display: grid;
  max-width: 1040px;
  margin-left: auto;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(30px, 7vw, 110px);
}

.leader img {
  width: 100%;
  aspect-ratio: 0.86;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1);
}

.leader-title {
  display: flex;
  margin-top: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(9, 19, 22, 0.23);
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.leader h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 400;
}

.leader-title span {
  color: #64625d;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.leader > p {
  margin: 20px 0 0;
  color: #595e5d;
  line-height: 1.65;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10vw;
}

.contact h2 {
  margin-top: 30px;
  color: var(--gold-pale);
}

.contact-details {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-link,
.contact-address {
  display: grid;
  min-height: 118px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  grid-template-columns: 95px 1fr auto;
  align-items: center;
  gap: 20px;
}

.contact-link > span,
.contact-address > span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-link strong {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.5vw, 2.5rem);
  font-weight: 400;
}

.contact-link i {
  font-style: normal;
  font-size: 1.2rem;
}

.contact-address {
  align-items: start;
}

.contact-address p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.site-footer {
  padding-block: 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.53);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 30px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-grid > p:nth-child(2) {
  text-align: center;
}

.footer-grid > p:last-child {
  text-align: right;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  font-family: var(--display);
  font-size: 1rem;
}

.footer-brand img {
  width: 47px;
  height: 52px;
  object-fit: contain;
}

@keyframes heroCrossfade {
  0% { opacity: 0; transform: scale(1.03); }
  8% { opacity: 1; }
  32% { opacity: 1; }
  42% { opacity: 0; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.1); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 40px, 800px);
  }

  .site-header {
    height: 78px;
    padding-inline: 20px;
  }

  .brand span {
    display: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 3;
    display: block;
  }

  .site-nav {
    position: fixed;
    z-index: 2;
    inset: 0;
    display: flex;
    padding: 120px 28px 42px;
    transform: translateX(100%);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    background: var(--ink);
    color: var(--white);
    font-family: var(--display);
    font-size: clamp(2.4rem, 9vw, 4.5rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    text-transform: none;
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .site-header:has(.site-nav.open) {
    color: var(--white);
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .nav-contact {
    padding: 0;
    border: 0;
  }

  .hero-index {
    display: none;
  }

  .intro-grid,
  .section-heading.split,
  .library-heading,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    gap: 36px;
  }

  .library-heading {
    gap: 20px;
  }

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

  .metric:nth-child(3) {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .metric:last-child {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

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

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 32px);
  }

  .section {
    padding-block: 90px;
  }

  .hero-content {
    padding-top: 130px;
    padding-bottom: 38px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 18vw, 6.3rem);
    line-height: 0.84;
  }

  .hero-bottom {
    display: block;
    margin-top: 38px;
  }

  .circle-link {
    width: 86px;
    height: 86px;
    margin-top: 32px;
    padding: 15px;
  }

  .intro-copy {
    grid-template-columns: 1fr;
    margin-top: 45px;
    gap: 22px;
  }

  .metric {
    min-height: 135px;
    padding: 15px;
  }

  .metric strong {
    font-size: 2.8rem;
  }

  .metric span {
    font-size: 0.58rem;
  }

  .capability {
    min-height: auto;
    grid-template-columns: 36px 1fr;
    gap: 10px;
  }

  .capability-mark {
    display: none;
  }

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

  .project-card-wide {
    grid-row: auto;
  }

  .project-card-wide .project-image {
    aspect-ratio: 0.92;
  }

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

  .project-tile img {
    aspect-ratio: 1.38;
  }

  .acquisitions {
    min-height: 760px;
  }

  .acquisitions h2 {
    font-size: clamp(3.6rem, 17vw, 6.2rem);
  }

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

  .contact-link,
  .contact-address {
    grid-template-columns: 70px 1fr auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-grid > p:nth-child(2),
  .footer-grid > p:last-child {
    text-align: left;
  }
}

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

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

  .hero-frame-one {
    opacity: 1;
  }
}
