/* ==========================================================================
   SGY Consulting — Design system & layout
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Colour */
  --paper:      #F3F0E8;
  --paper-2:    #ECE7DC;
  --ink:        #16231E;
  --ink-2:      #3A4540;
  --ink-3:      #6B726D;
  --line:       #D6D0C2;
  --line-soft:  #E2DDD1;
  --forest:     #1C3329;
  --forest-2:   #24402F;
  --on-dark:    #EDE9DF;
  --on-dark-2:  #A9B3AB;
  --line-dark:  rgba(237, 233, 223, 0.16);
  --accent:     #A65F35;
  --error:      #9B3A2A;

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans:  "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max: 1320px;
  --pad: clamp(20px, 4.2vw, 56px);
  --gap: clamp(20px, 2.4vw, 32px);
  --section: clamp(88px, 11vw, 160px);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .9s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--forest); color: var(--paper); }

:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 14px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Typography primitives ---------- */
.eyebrow, .label, .section-index {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.4;
}
.section-index { display: flex; align-items: center; gap: 14px; color: var(--ink-2); }
.section-index span {
  font-family: var(--serif); font-style: italic; font-size: 15px;
  letter-spacing: 0; text-transform: none; color: var(--accent);
}
.section-index::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .35; }
.section-index--light { color: var(--on-dark-2); }
.section-index--light span { color: #C98C62; }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.35rem + 2.1vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 60;
  max-width: 18ch;
  text-wrap: balance;
}
.section-intro {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 17px;
}
em { font-style: italic; }

/* ---------- Links & buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-fill: var(--forest-2);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 26px 17px 28px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 0; border-radius: 1px; cursor: pointer;
  font-size: 15px; font-weight: 500; letter-spacing: .01em; line-height: 1;
  transition: color .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn__arrow {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4;
  transition: transform .45s var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--small { padding: 12px 20px; font-size: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.link-arrow::after {
  content: "→"; font-family: var(--sans); transition: transform .45s var(--ease-out);
}
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow:hover::after { transform: translateX(4px); }

.link-underline {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out);
  padding-bottom: 2px;
}
.link-underline:hover { background-size: 100% 1px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo__mark {
  font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1;
  letter-spacing: .04em; font-variation-settings: "opsz" 36;
}
.logo__rule { width: 1px; height: 22px; background: currentColor; opacity: .4; }
.logo__type {
  font-size: 11.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  padding-top: 2px;
}
.logo--light { color: var(--on-dark); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: transform .5s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  height: 88px; transition: height .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(243, 240, 232, .9);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled .site-header__inner { height: 72px; }
.site-header.is-hidden { transform: translateY(-100%); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav__link {
  position: relative; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding-block: 8px; transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav__link:hover, .nav__link.is-current { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none; position: relative; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.menu-toggle__line {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink);
  transition: transform .45s var(--ease-out), top .45s var(--ease-out);
}
.menu-toggle__line:nth-of-type(2) { top: 18px; }
.menu-toggle__line:nth-of-type(3) { top: 25px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-of-type(2) { top: 21.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-of-type(3) { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--paper);
  padding-top: 96px; overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.mobile-menu__inner { display: flex; flex-direction: column; justify-content: space-between; min-height: calc(100% - 24px); padding-bottom: 32px; }
.mobile-menu__list li { border-top: 1px solid var(--line); }
.mobile-menu__list li:last-child { border-bottom: 1px solid var(--line); }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 18px; padding: 20px 0;
  font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -.01em; line-height: 1.1;
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .6s var(--ease-out);
}
.mobile-menu__list a span { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--accent); }
.mobile-menu.is-open .mobile-menu__list a { opacity: 1; transform: none; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .05s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .1s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .15s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: .2s; }
.mobile-menu__foot { display: grid; gap: 6px; margin-top: 40px; font-size: 15px; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(120px, 14vw, 172px); }
.hero__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: end;
}
.hero__copy { grid-column: 1 / span 6; padding-bottom: clamp(8px, 3vw, 48px); }
.hero__title {
  margin-top: 28px;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 1.6rem + 3.3vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.026em;
  font-variation-settings: "opsz" 72;
  max-width: 13ch;
}
.hero__title em { font-weight: 300; color: var(--forest-2); }
.hero__lede { margin-top: 32px; max-width: 44ch; font-size: clamp(16.5px, 1.1vw, 18px); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 44px; }

.hero__media {
  grid-column: 8 / -1;
  margin-right: calc(-1 * max(var(--pad), (100vw - var(--max)) / 2 + var(--pad)));
}
.hero__image { position: relative; overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--paper-2); }
.hero__image img { width: 100%; height: 112%; object-fit: cover; filter: saturate(.7) contrast(1.04); }
.hero__caption {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad) 0 0; max-width: calc(100% - 0px);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}

/* Facts */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--ink);
}
.facts__item {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 14px;
  padding: 28px 28px 8px 0;
}
.facts__item + .facts__item { padding-left: 28px; border-left: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--ink-3); max-width: 22ch; line-height: 1.45; }
.facts dd {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--serif); font-weight: 300; line-height: 1;
}
.facts__num { font-size: clamp(2.4rem, 1.8rem + 1.6vw, 3.4rem); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.facts__unit { font-size: clamp(1.4rem, 1.1rem + .8vw, 1.9rem); color: var(--ink-2); }
.facts__unit--pre { font-family: var(--sans); font-size: 13px; letter-spacing: .02em; color: var(--ink-3); margin-right: 6px; align-self: flex-start; margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--split {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px;
}
.section-head--split > .section-index { grid-column: 1 / span 4; align-self: start; padding-top: 14px; }
.section-head--split > div { grid-column: 5 / -1; }

.frame { position: relative; overflow: hidden; background: var(--paper-2); }
.frame img { width: 100%; height: 112%; object-fit: cover; filter: saturate(.7) contrast(1.04); }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 7 / 5; }

/* ---------- Firm ---------- */
.firm { padding-top: clamp(120px, 13vw, 190px); }
.firm .section-head { margin-bottom: clamp(36px, 4vw, 56px); }
.firm__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  grid-template-areas:
    "st st st st st st st st st . . ."
    "md md md md md . bd bd bd bd bd bd";
  row-gap: clamp(56px, 7vw, 104px);
}
.firm__statement {
  grid-area: st;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.75rem, 1.2rem + 1.75vw, 2.75rem);
  line-height: 1.2; letter-spacing: -0.014em;
  font-variation-settings: "opsz" 48;
  text-wrap: pretty;
}
.firm__media { grid-area: md; }
.firm__body { grid-area: bd; display: flex; flex-direction: column; justify-content: space-between; gap: 56px; padding-top: clamp(0px, 6vw, 96px); }
.firm__cols { display: grid; gap: 22px; color: var(--ink-2); }
.firm__cols p:first-child::first-line { color: var(--ink); }
.sectors .label { padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.sectors__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); }
.sectors__list li {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 19px; line-height: 1.3;
}

/* ---------- Practices ---------- */
.practices { background: var(--paper-2); }
.practices__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: start;
}
.practice-list { grid-column: 1 / span 7; border-top: 1px solid var(--ink); counter-reset: p; }
.practice {
  position: relative;
  display: grid; grid-template-columns: 64px 1fr; gap: 0 12px;
  padding: 30px 0 30px;
  border-bottom: 1px solid var(--line);
  cursor: default; outline: none;
  transition: padding .5s var(--ease-out);
}
.practice::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.practice:first-child::before { top: -1px; }
.practice.is-active::before { transform: scaleX(1); }
.practice__num { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-3); padding-top: 8px; transition: color .4s; }
.practice__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.45rem, 1.15rem + .9vw, 2rem); line-height: 1.15; letter-spacing: -.012em;
  color: var(--ink-2); transition: color .4s var(--ease);
}
.practice__desc { margin-top: 12px; max-width: 52ch; color: var(--ink-2); }
.practice__tags { margin-top: 14px; font-size: 13px; letter-spacing: .02em; color: var(--ink-3); }
.practice.is-active .practice__title { color: var(--ink); }
.practice.is-active .practice__num { color: var(--accent); }

/* Collapsible detail on pointer devices with room for the image panel */
@media (min-width: 861px) and (hover: hover) {
  .practice { cursor: pointer; }
  .practice__desc, .practice__tags {
    display: grid; max-height: 0; opacity: 0; overflow: hidden; margin-top: 0;
    transition: max-height .6s var(--ease-out), opacity .4s var(--ease), margin-top .6s var(--ease-out);
  }
  .practice.is-active .practice__desc { max-height: 160px; opacity: 1; margin-top: 12px; }
  .practice.is-active .practice__tags { max-height: 80px; opacity: 1; margin-top: 14px; }
}

.practices__media { grid-column: 9 / -1; position: sticky; top: 112px; }
.practices__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--line-soft); }
.practices__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.65) contrast(1.05);
  opacity: 0; transform: scale(1.06);
  transition: opacity .8s var(--ease), transform 1.4s var(--ease-out);
}
.practices__frame img.is-active { opacity: 1; transform: scale(1); }
.practices__counter { margin-top: 14px; font-size: 12px; letter-spacing: .14em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.practices__counter span { color: var(--ink); }

/* ---------- Difference (dark) ---------- */
.difference { background: var(--forest); color: var(--on-dark); }
.difference .h2 { color: var(--on-dark); }
.difference .section-intro { color: var(--on-dark-2); }
.difference__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; }
.difference__head {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px;
  margin-bottom: clamp(24px, 4vw, 48px);
}
.difference__head .section-index { grid-column: 1 / -1; }
.difference__head .h2 { grid-column: 1 / span 7; max-width: 16ch; }
.difference__head .section-intro { grid-column: 9 / -1; align-self: end; margin-top: 0; }
.compare { grid-column: 1 / -1; }
.compare__row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gap);
  padding: 28px 0; border-bottom: 1px solid var(--line-dark);
}
.compare__row--head {
  padding: 0 0 16px; border-bottom-color: var(--on-dark);
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2);
}
.compare__row > :nth-child(1) { grid-column: 1 / span 3; }
.compare__row > :nth-child(2) { grid-column: 4 / span 4; padding-right: 24px; }
.compare__row > :nth-child(3) { grid-column: 8 / -1; }
.compare__row--head span:last-child { color: var(--on-dark); padding-left: 18px; }
.compare__row:not(.compare__row--head) { transition: background-color .4s var(--ease); }
.compare__row:not(.compare__row--head):hover { background: rgba(237, 233, 223, .03); }
.compare__q { font-family: var(--serif); font-size: clamp(19px, 1.5vw, 22px); line-height: 1.3; color: var(--on-dark); }
.compare__them { font-size: 16px; color: var(--on-dark-2); line-height: 1.55; }
.compare__us { font-size: 16px; color: var(--on-dark); line-height: 1.55; position: relative; padding-left: 18px; max-width: 46ch; }
.compare__us::before {
  content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: #C98C62;
}

/* ---------- Approach ---------- */
.approach__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; }
.approach__head { grid-column: 1 / span 5; position: sticky; top: 120px; align-self: start; }
.approach__head .h2 { margin-top: 28px; }
.approach__head .link-arrow { margin-top: 36px; }
.steps { grid-column: 7 / -1; position: relative; padding-left: 48px; }
.steps__track { position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.steps__fill { position: absolute; inset: 0 0 auto 0; height: 100%; background: var(--ink); transform: scaleY(var(--p, 0)); transform-origin: top; }
.step { position: relative; padding-bottom: clamp(48px, 6vw, 80px); }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: -52px; top: 6px; width: 9px; height: 9px;
  background: var(--paper); border: 1px solid var(--ink); border-radius: 50%;
  transition: background-color .4s var(--ease);
}
.step.is-passed::before { background: var(--ink); }
.step__meta { display: flex; gap: 20px; align-items: baseline; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.step__time { color: var(--accent); }
.step__title {
  margin-top: 14px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 1.3rem + 1.1vw, 2.35rem); line-height: 1.1; letter-spacing: -.015em;
}
.step p { margin-top: 14px; max-width: 48ch; color: var(--ink-2); }

/* ---------- Work ---------- */
.work { border-top: 1px solid var(--line); }
.case-feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 36px; align-items: end; }
.case-feature__media { grid-column: 1 / span 7; }
.case-feature__body { grid-column: 9 / -1; }
.case-feature__title {
  margin-top: 18px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.45rem, 1.15rem + .85vw, 1.95rem); line-height: 1.2; letter-spacing: -.012em;
  text-wrap: pretty;
}
.case-feature__body > p:not(.label) { margin-top: 20px; color: var(--ink-2); }
.case-feature__stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 36px; border-top: 1px solid var(--ink); }
.case-feature__stats div { padding-top: 18px; }
.case-feature__stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.case-feature__stats dt { font-size: 13px; color: var(--ink-3); }
.case-feature__stats dd { margin-top: 8px; font-family: var(--serif); font-weight: 300; font-size: 2.4rem; line-height: 1; letter-spacing: -.02em; }
.case-feature__stats small { font-family: var(--sans); font-size: 13px; letter-spacing: .02em; margin-left: 6px; color: var(--ink-3); }

.ledger { margin-top: clamp(72px, 9vw, 128px); }
.ledger__row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color .4s var(--ease);
}
.ledger__row:not(.ledger__row--head):hover { background: linear-gradient(90deg, transparent, rgba(22,35,30,.035) 20%, rgba(22,35,30,.035) 80%, transparent); }
.ledger__row--head {
  padding: 0 0 14px; border-bottom-color: var(--ink);
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.ledger__row > :nth-child(1) { grid-column: 1 / span 3; }
.ledger__row > :nth-child(2) { grid-column: 4 / span 6; }
.ledger__row > :nth-child(3) { grid-column: 10 / -1; text-align: right; }
.ledger__sector { font-size: 14px; color: var(--ink-3); }
.ledger__brief { color: var(--ink-2); max-width: 60ch; }
.ledger__brief strong { font-weight: 500; color: var(--ink); }
.ledger__result { font-family: var(--serif); font-weight: 300; font-size: 1.9rem; line-height: 1; letter-spacing: -.015em; white-space: nowrap; }
.ledger__result small { display: block; margin-top: 8px; font-family: var(--sans); font-size: 13px; letter-spacing: .01em; color: var(--ink-3); white-space: normal; }

/* ---------- Quote ---------- */
.quote { background: var(--paper-2); padding-block: clamp(96px, 11vw, 168px); }
.quote__inner figure { max-width: 980px; margin-left: calc((100% - var(--gap) * 11) / 12 * 2 + var(--gap) * 2); }
.quote__text p {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.55rem); line-height: 1.28; letter-spacing: -.012em;
  text-indent: -.42em; text-wrap: pretty;
}
.quote__text p::before { content: "“"; color: var(--accent); }
.quote__text p::after { content: "”"; color: var(--accent); }
.quote__cite { display: flex; align-items: center; gap: 18px; margin-top: 40px; font-size: 14px; letter-spacing: .02em; color: var(--ink-2); }
.quote__rule { width: 48px; height: 1px; background: var(--ink); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 64px; }
.contact__intro { grid-column: 1 / span 5; }
.contact__intro .h2 { margin-top: 28px; max-width: 14ch; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.office p { margin-top: 12px; font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.office a { display: inline-block; margin-top: 8px; font-size: 15.5px; }
.office a:hover { color: var(--accent); }
.contact__mail { margin-top: 40px; font-family: var(--serif); font-size: clamp(1.25rem, 1rem + .6vw, 1.6rem); }

.form { grid-column: 7 / -1; align-self: start; position: relative; padding-top: 10px; }
.form__row { display: grid; gap: 0 var(--gap); }
.form__row--2 { grid-template-columns: 1fr 1fr; }
.field { position: relative; display: flex; flex-direction: column; margin-bottom: 30px; }
.field label { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2); margin-bottom: 4px; }
.field__opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 0 12px; background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  font-size: 17px; color: var(--ink); appearance: none; -webkit-appearance: none;
  transition: border-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 112px; line-height: 1.5; }
.field::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
  bottom: 0; pointer-events: none;
}
.field:has(.field__error:not(:empty))::after { display: none; }
.field:focus-within::after { transform: scaleX(1); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--ink-3); }
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px;
  border-right: 1px solid var(--ink-2); border-bottom: 1px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select select { cursor: pointer; padding-right: 28px; }
.select select:invalid { color: var(--ink-3); }
.field__error { position: absolute; bottom: -22px; left: 0; font-size: 12.5px; color: var(--error); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: var(--error); }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; margin-top: 8px; }
.form__note { max-width: 36ch; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.form__note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.form__note a:hover { text-decoration-color: currentColor; }
.form__success {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  background: var(--paper); border-top: 1px solid var(--ink);
  font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + .8vw, 1.9rem); line-height: 1.3;
  animation: fadeIn .6s var(--ease) both;
}
.form__success[hidden] { display: none; }
.form__success .label { font-family: var(--sans); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding-top: clamp(72px, 8vw, 112px); font-size: 15px; }
.site-footer .label { color: var(--on-dark-2); margin-bottom: 20px; opacity: .8; }
.site-footer__top {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px;
  padding-bottom: clamp(56px, 7vw, 96px);
}
.site-footer__brand { grid-column: 1 / span 4; }
.site-footer__brand p { margin-top: 24px; max-width: 34ch; line-height: 1.6; }
.site-footer__top > :nth-child(2) { grid-column: 6 / span 2; }
.site-footer__top > :nth-child(3) { grid-column: 8 / span 2; }
.site-footer__top > :nth-child(4) { grid-column: 10 / -1; }
.site-footer__col li + li { margin-top: 10px; }
.site-footer__col a { color: var(--on-dark); transition: color .3s; }
.site-footer__col a:hover { color: #C98C62; }
.site-footer__col li { color: var(--on-dark); }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap;
  padding-block: 28px; border-top: 1px solid var(--line-dark); font-size: 13px;
}
.site-footer__bottom ul { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer__bottom a:hover { color: var(--on-dark); }

/* ---------- Reveal animations ---------- */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 22px, 0);
  transition: opacity var(--dur) var(--ease), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal="media"] { transform: none; clip-path: inset(0 0 100% 0); opacity: 1;
  transition: clip-path 1.4s var(--ease-out); }
.js [data-reveal="media"] img { transform: scale(1.12); transition: transform 1.8s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="media"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="media"].is-in img { transform: scale(1) translate3d(0, var(--py, 0px), 0); }
.js [data-reveal="media"].is-settled img { transition: none; }

/* ---------- Secondary pages ---------- */
.page-head { padding-top: clamp(140px, 15vw, 200px); padding-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-top: 24px; font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 1.7rem + 2.4vw, 3.6rem); line-height: 1.05; letter-spacing: -.022em; }
.page-head p { margin-top: 18px; color: var(--ink-3); font-size: 15px; }
.prose { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-block: clamp(56px, 7vw, 96px) var(--section); }
.prose__nav { grid-column: 1 / span 3; position: sticky; top: 112px; align-self: start; }
.prose__nav li + li { margin-top: 10px; }
.prose__nav a { font-size: 14.5px; color: var(--ink-2); }
.prose__nav a:hover { color: var(--ink); }
.prose__body { grid-column: 5 / span 7; }
.prose__body h2 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; letter-spacing: -.012em; line-height: 1.2; margin-top: 56px; scroll-margin-top: 110px; }
.prose__body h2:first-child { margin-top: 0; }
.prose__body p, .prose__body ul { margin-top: 18px; color: var(--ink-2); max-width: 64ch; }
.prose__body ul li { position: relative; padding-left: 20px; }
.prose__body ul li + li { margin-top: 8px; }
.prose__body ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 1px; background: var(--ink-3); }
.prose__body a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hero__copy { grid-column: 1 / span 7; }
  .hero__media { grid-column: 8 / -1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .practice-list { grid-column: 1 / span 7; }
  .practices__media { grid-column: 8 / -1; }
  .case-feature__body { grid-column: 8 / -1; }
}

@media (max-width: 960px) {
  .nav, .site-header__cta { display: none; }
  .menu-toggle { display: block; }
  .site-header__inner { height: 72px; }
}

@media (max-width: 860px) {
  body { font-size: 16.5px; }
  html { scroll-padding-top: 72px; }

  .hero { padding-top: 112px; }
  .hero__copy, .hero__media { grid-column: 1 / -1; }
  .hero__media { margin-top: 56px; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }
  .hero__image { aspect-ratio: 4 / 3.4; }
  .hero__caption { padding-inline: var(--pad); }

  .section-head--split > .section-index,
  .section-head--split > div { grid-column: 1 / -1; padding-top: 0; }

  .firm__grid { grid-template-areas: "st" "md" "bd"; grid-template-columns: 1fr; row-gap: 48px; }
  .firm__media .frame--tall { aspect-ratio: 4 / 3.6; }
  .firm__body { padding-top: 0; }

  .practices__grid { display: block; }
  .practices__media { display: none; }

  .difference__head .h2, .difference__head .section-intro { grid-column: 1 / -1; }
  .compare__row { row-gap: 14px; }
  .compare__row > :nth-child(1) { grid-column: 1 / -1; }
  .compare__row > :nth-child(2) { grid-column: 1 / span 6; }
  .compare__row > :nth-child(3) { grid-column: 7 / -1; }

  .approach__head { grid-column: 1 / -1; position: static; }
  .steps { grid-column: 1 / -1; padding-left: 36px; }
  .step::before { left: -40px; }

  .case-feature__media, .case-feature__body { grid-column: 1 / -1; }

  .ledger__row--head { display: none; }
  .ledger__row { row-gap: 10px; padding: 24px 0; }
  .ledger__row:first-of-type + .ledger__row { border-top: 1px solid var(--ink); }
  .ledger__row > :nth-child(1) { grid-column: 1 / -1; }
  .ledger__row > :nth-child(2) { grid-column: 1 / span 8; }
  .ledger__row > :nth-child(3) { grid-column: 9 / -1; }

  .quote__inner figure { margin-left: 0; }

  .contact__intro, .form { grid-column: 1 / -1; }

  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__top > :nth-child(2) { grid-column: 1 / span 4; }
  .site-footer__top > :nth-child(3) { grid-column: 5 / span 4; }
  .site-footer__top > :nth-child(4) { grid-column: 9 / -1; }

  .prose__nav { display: none; }
  .prose__body { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .hero__title { font-size: clamp(2.35rem, 9.6vw, 2.9rem); }
  .hero__actions { gap: 20px 28px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts__item { padding: 22px 16px 6px 0; }
  .facts__item + .facts__item { padding-left: 16px; }
  .facts__item:nth-child(3) { padding-left: 0; }
  .facts dt { font-size: 13px; }

  .sectors__list { grid-template-columns: 1fr; }
  .practice { grid-template-columns: 40px 1fr; padding: 26px 0; }

  .compare__row > :nth-child(2), .compare__row > :nth-child(3) { grid-column: 1 / -1; padding-right: 0; }
  .compare__row--head { display: none; }
  .compare__them::before { content: "Typical — "; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
  .compare__row:first-of-type + .compare__row { border-top: 1px solid var(--on-dark); }

  .ledger__row > :nth-child(2), .ledger__row > :nth-child(3) { grid-column: 1 / -1; text-align: left; }
  .ledger__result small { display: inline; margin-left: 8px; }

  .offices { grid-template-columns: 1fr; gap: 28px; }
  .form__row--2 { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; justify-content: space-between; }

  .site-footer__top > :nth-child(2) { grid-column: 1 / span 6; }
  .site-footer__top > :nth-child(3) { grid-column: 7 / -1; }
  .site-footer__top > :nth-child(4) { grid-column: 1 / -1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal="media"] { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal="media"] img { transform: none; }
}
