.detail-page {
  background: var(--paper);
}

.detail-page section[id] {
  scroll-margin-top: 92px;
}

/* Allow for both the sticky header and the reveal animation's 30px offset. */
.detail-page article[id] {
  scroll-margin-top: 122px;
}

.detail-page .desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.detail-page .desktop-nav a[aria-current="location"]::after {
  transform: scaleX(1);
}

.firm-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(26px, 4vw, 56px);
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.firm-navigation a {
  padding: 23px 0;
  border-bottom: 1px solid transparent;
  font-size: 0.76rem;
  line-height: 1.5;
  transition: border-color 250ms ease;
}

.firm-navigation a[aria-current="page"],
.firm-navigation a:hover,
.firm-navigation a:focus-visible {
  border-color: currentColor;
}

.inner-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--paper-bright);
  background: var(--forest);
}

.inner-hero__media,
.inner-hero__shade {
  position: absolute;
  inset: 0;
}

.inner-hero__media {
  overflow: hidden;
  transform: scale(1.035);
  animation: page-media-arrive 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  will-change: transform;
}

.inner-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.inner-hero--expertise .inner-hero__media img {
  object-position: 58% center;
}

.inner-hero--contact .inner-hero__media img {
  object-position: center;
}

.inner-hero__shade {
  background:
    linear-gradient(90deg, rgba(4, 11, 9, 0.9) 0%, rgba(4, 11, 9, 0.6) 42%, rgba(4, 11, 9, 0.1) 75%),
    linear-gradient(180deg, rgba(4, 11, 9, 0.28) 0%, transparent 38%, rgba(4, 11, 9, 0.48) 100%);
}

.inner-hero__content {
  position: relative;
  z-index: 2;
  width: min(780px, 76vw);
  min-height: 100svh;
  padding: calc(var(--header-height) + 10vh) var(--gutter) 10vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.inner-hero__content > * {
  opacity: 0;
  transform: translateY(24px);
  animation: page-copy-arrive 850ms ease forwards;
}

.inner-hero__content .eyebrow {
  animation-delay: 360ms;
}

.inner-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.3rem, 7.2vw, 8.4rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.88;
  animation-delay: 480ms;
}

.inner-hero__copy {
  max-width: 570px;
  margin: 34px 0 0;
  color: rgba(247, 245, 239, 0.78);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.7;
  animation-delay: 610ms;
}

.inner-hero .primary-link {
  animation-delay: 730ms;
}

.page-intro {
  padding: 0 0 clamp(100px, 12vw, 180px);
  background: var(--paper);
}

.page-intro__layout {
  padding: clamp(88px, 11vw, 165px) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: clamp(60px, 10vw, 170px);
  align-items: end;
}

.page-intro h2,
.method h2,
.offices h2,
.contact-workspace h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.05em;
}

.page-intro h2 {
  max-width: 980px;
  font-size: clamp(3.5rem, 7vw, 8rem);
  line-height: 0.94;
}

.page-intro__copy p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
}

.service-catalog {
  padding: 0 var(--gutter) clamp(110px, 13vw, 190px);
  color: var(--paper-bright);
  background: var(--forest);
}

.service-catalog__heading {
  padding: clamp(90px, 11vw, 160px) 0 clamp(60px, 7vw, 100px);
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(40px, 8vw, 130px);
}

.service-catalog__heading .eyebrow,
.method .eyebrow,
.contact-workspace .eyebrow {
  color: var(--bronze);
}

.service-catalog__heading p:last-child {
  max-width: 680px;
  margin: 0;
  color: rgba(247, 245, 239, 0.68);
  font-size: 1rem;
  line-height: 1.8;
}

.service-entry {
  position: relative;
  padding: clamp(62px, 8vw, 112px) 0;
  display: grid;
  grid-template-columns: 82px minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(30px, 6vw, 100px);
  border-top: 1px solid var(--line-light);
}

.service-entry:last-child {
  border-bottom: 1px solid var(--line-light);
}

.service-entry__number {
  padding-top: 9px;
  color: rgba(247, 245, 239, 0.4);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  transition: color 300ms ease, transform 300ms ease;
}

.service-entry:hover .service-entry__number {
  color: var(--bronze);
  transform: translateX(8px);
}

.service-entry h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.2vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.service-entry__body > p {
  max-width: 620px;
  margin: 0;
  color: rgba(247, 245, 239, 0.7);
  font-size: 0.98rem;
  line-height: 1.82;
}

.service-entry__lead {
  margin-bottom: 24px !important;
  color: var(--paper-bright) !important;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.1vw, 2.2rem) !important;
  line-height: 1.18 !important;
}

.service-points {
  margin: 42px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.service-points li {
  padding: 16px 0;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line-light);
  color: rgba(247, 245, 239, 0.76);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

.service-points li > span:first-child {
  color: var(--bronze);
  font-size: 0.6rem;
}

.method {
  padding: clamp(105px, 13vw, 190px) var(--gutter);
  background: var(--paper);
}

.method__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(60px, 10vw, 160px);
  align-items: end;
}

.method h2 {
  max-width: 900px;
  font-size: clamp(3.4rem, 6.7vw, 7.6rem);
  line-height: 0.94;
}

.method__intro-copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
}

.method__steps {
  margin: clamp(70px, 9vw, 130px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.method__steps li {
  min-height: 260px;
  padding: 28px clamp(18px, 2.4vw, 36px) 32px 0;
  border-right: 1px solid var(--line);
}

.method__steps li + li {
  padding-left: clamp(18px, 2.4vw, 36px);
}

.method__steps li:last-child {
  padding-right: 0;
  border-right: 0;
}

.method__steps span {
  color: rgba(19, 32, 27, 0.46);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
}

.method__steps h3 {
  margin: 58px 0 15px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.2vw, 2.35rem);
  font-weight: 300;
}

.method__steps p {
  margin: 0;
  color: rgba(19, 32, 27, 0.67);
  font-size: 0.83rem;
  line-height: 1.7;
}

.page-risk {
  max-width: 830px;
  margin: 52px 0 0 auto;
  padding-left: 22px;
  color: rgba(19, 32, 27, 0.62);
  border-left: 1px solid var(--bronze);
  font-size: 0.73rem;
  line-height: 1.7;
}

.offices {
  padding: clamp(105px, 13vw, 190px) 0;
  background: var(--paper);
}

.offices__intro {
  padding: 0 var(--gutter) clamp(80px, 10vw, 145px);
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(50px, 9vw, 150px);
}

.offices h2 {
  max-width: 950px;
  font-size: clamp(3.5rem, 7vw, 8rem);
  line-height: 0.94;
}

.office-list {
  display: grid;
  gap: clamp(90px, 13vw, 190px);
}

.office-panel {
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(55px, 9vw, 150px);
  align-items: center;
}

.office-panel--reverse {
  grid-template-columns: minmax(300px, 0.65fr) minmax(0, 1.35fr);
}

.office-panel--reverse .office-media {
  grid-column: 2;
  grid-row: 1;
}

.office-panel--reverse .office-copy {
  grid-column: 1;
  grid-row: 1;
}

.office-media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--forest-soft);
}

.office-media--building {
  width: min(100%, 760px);
  aspect-ratio: 4 / 5;
}

.office-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(4, 11, 9, 0.5));
}

.office-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.office-panel:hover .office-media img {
  transform: scale(1.025);
}

.office-media figcaption {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 18px;
  left: 22px;
  color: var(--paper-bright);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.office-copy .eyebrow {
  color: #77664e;
}

.office-copy h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.3rem, 5.6vw, 6.5rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.office-copy address {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.85;
}

.office-copy address span {
  display: block;
}

.office-copy address a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.office-copy address a:hover,
.office-copy address a:focus-visible {
  color: var(--bronze);
}

.office-media.office-media--paris {
  width: min(100%, 520px);
  aspect-ratio: 1;
}

.contact-workspace {
  padding: clamp(105px, 13vw, 190px) var(--gutter);
  color: var(--paper-bright);
  background: var(--forest);
}

.contact-workspace__layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1fr);
  gap: clamp(70px, 11vw, 180px);
}

.contact-workspace h2 {
  max-width: 660px;
  font-size: clamp(3.5rem, 6vw, 7rem);
  line-height: 0.94;
}

.contact-workspace__intro > p:last-child {
  max-width: 540px;
  margin: 34px 0 0;
  color: rgba(247, 245, 239, 0.68);
  font-size: 0.96rem;
  line-height: 1.8;
}

.page-contact-form {
  display: grid;
  gap: 26px;
}

.page-contact-form label {
  display: grid;
  gap: 10px;
  color: rgba(247, 245, 239, 0.62);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.page-contact-form input,
.page-contact-form select {
  width: 100%;
  min-height: 52px;
  padding: 12px 0;
  color: var(--paper-bright);
  border: 0;
  border-bottom: 1px solid rgba(247, 245, 239, 0.35);
  border-radius: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
  text-transform: none;
  transition: border-color 220ms ease;
}

.page-contact-form select {
  color-scheme: dark;
}

.page-contact-form input:focus,
.page-contact-form select:focus {
  border-color: var(--paper-bright);
}

.page-contact-form input.is-invalid,
.page-contact-form select.is-invalid {
  border-color: #d8947d;
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.page-form-submit {
  min-height: 54px;
  margin-top: 10px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--paper-bright);
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.page-form-submit span:last-child {
  font-size: 1.05rem;
  transition: transform 240ms ease;
}

.page-form-submit:hover span:last-child,
.page-form-submit:focus-visible span:last-child {
  transform: translate(4px, -4px);
}

.page-form-submit:disabled {
  cursor: wait;
  opacity: 0.55;
}

.page-form-note,
.page-form-error {
  margin: 0;
  color: rgba(247, 245, 239, 0.55);
  font-size: 0.68rem;
  line-height: 1.65;
}

.page-form-note a {
  border-bottom: 1px solid currentColor;
}

.page-form-error {
  color: #e4a28b;
}

.page-form-success {
  min-height: 420px;
  display: grid;
  align-content: center;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.page-form-success span {
  color: var(--bronze);
  font-size: 1.5rem;
}

.page-form-success h3 {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 4.6vw, 5rem);
  font-weight: 300;
  line-height: 0.98;
}

.page-form-success p {
  margin: 22px 0 0;
  color: rgba(247, 245, 239, 0.66);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 750ms ease, transform 750ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@keyframes page-media-arrive {
  from { opacity: 0.65; transform: scale(1.09); }
  to { opacity: 1; transform: scale(1.035); }
}

@keyframes page-copy-arrive {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .page-intro__layout,
  .method__intro,
  .contact-workspace__layout {
    grid-template-columns: 1fr;
  }

  .page-intro__copy,
  .method__intro-copy {
    max-width: 600px;
  }

  .service-entry {
    grid-template-columns: 62px minmax(240px, 0.8fr) minmax(260px, 1.2fr);
    gap: 28px;
  }

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

  .method__steps li:nth-child(2) {
    border-right: 0;
  }

  .method__steps li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .method__steps li:nth-child(3) {
    padding-left: 0;
  }

  .office-panel,
  .office-panel--reverse {
    grid-template-columns: 1fr;
  }

  .office-panel--reverse .office-media,
  .office-panel--reverse .office-copy {
    grid-column: 1;
  }

  .office-panel--reverse .office-media {
    grid-row: 1;
  }

  .office-panel--reverse .office-copy {
    grid-row: 2;
  }
}

@media (max-width: 600px) {
  .inner-hero__content {
    width: 100%;
    min-height: max(100svh, 680px);
    padding-top: calc(var(--header-height) + 64px);
    padding-right: max(var(--gutter), env(safe-area-inset-right));
    padding-bottom: max(48px, calc(env(safe-area-inset-bottom) + 32px));
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    justify-content: flex-end;
  }

  .inner-hero h1 {
    max-width: 9em;
    font-size: clamp(3.2rem, 14.5vw, 4.5rem);
    line-height: 0.95;
  }

  html[lang="fr"] .inner-hero h1 {
    font-size: clamp(3rem, 13vw, 4.1rem);
  }

  .inner-hero__copy {
    margin-top: 22px;
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .inner-hero .primary-link {
    min-width: min(230px, 100%);
    margin-top: 20px;
  }

  .page-intro__layout,
  .service-catalog__heading,
  .offices__intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-intro h2,
  .offices h2,
  .method h2,
  .contact-workspace h2 {
    font-size: clamp(3rem, 13.5vw, 4.2rem);
    line-height: 0.97;
  }

  .service-entry {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .service-entry__number {
    padding-top: 0;
  }

  .service-entry h2 {
    font-size: clamp(2.9rem, 13vw, 4rem);
    line-height: 0.97;
  }

  .service-entry__body {
    margin-top: 12px;
  }

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

  .method__steps li,
  .method__steps li + li,
  .method__steps li:nth-child(3) {
    min-height: 0;
    padding: 28px 0 34px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method__steps li:last-child {
    border-bottom: 0;
  }

  .method__steps h3 {
    margin-top: 28px;
  }

  .office-list {
    gap: 96px;
  }

  .office-panel,
  .office-panel--reverse {
    padding: 0;
    gap: 36px;
  }

  .office-media {
    aspect-ratio: 4 / 3;
  }

  .office-media--building {
    width: 100%;
    aspect-ratio: 4 / 5;
  }

  .office-copy {
    padding: 0 var(--gutter);
  }

  .office-copy h3 {
    font-size: clamp(3rem, 13.5vw, 4.2rem);
  }

  .contact-workspace__layout {
    gap: 64px;
  }

  .page-form-success {
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inner-hero__media,
  .inner-hero__content > * {
    animation: none;
    opacity: 1;
    transform: none;
  }

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