:root {
  --ink: #050505;
  --muted: #4f4f4f;
  --paper: #fff;
  --paper-strong: #f5f4f1;
  --line: rgba(5, 5, 5, 0.2);
  --accent: #050505;
  --accent-dark: #050505;
  --stone: #8f897d;
  --shadow: none;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

main,
.site-header,
.site-footer {
  width: min(100%, 1800px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  padding: 16px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 0;
  font-family: var(--serif);
  font-size: 16px;
}

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

.site-nav {
  display: none;
  position: absolute;
  inset: 78px 14px auto;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  padding: 11px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 1px;
  background: var(--ink);
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 76px);
  min-height: calc(100svh - 78px);
  padding: clamp(42px, 8vw, 112px) clamp(18px, 5vw, 72px) clamp(36px, 6vw, 72px);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  min-width: 0;
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 900px;
  font-size: 52px;
  line-height: 0.96;
}

h2 {
  font-size: 42px;
  line-height: 0.96;
}

h3 {
  font-size: 29px;
  line-height: 1.08;
}

.hero-lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: #222;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  min-width: 0;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  background: transparent;
}

.button:hover {
  background: var(--ink);
  color: #fff;
}

.button-primary:hover {
  background: #fff;
  color: var(--ink);
}

.hero-points {
  display: grid;
  gap: 0;
  max-width: 720px;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-points li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-portrait {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.hero-portrait img {
  width: 100%;
  min-height: 430px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}

.portrait-note {
  position: absolute;
  right: 14px;
  bottom: 14px;
  max-width: 220px;
  padding: 12px;
  border: 1px solid #fff;
  border-radius: 0;
  background: rgba(5, 5, 5, 0.9);
  color: #fff;
  font-size: 12px;
}

.portrait-note span {
  display: block;
  color: rgba(255, 255, 255, 0.64);
}

.statement {
  padding: clamp(54px, 9vw, 132px) clamp(18px, 8vw, 110px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}

.statement p {
  max-width: 1120px;
  margin: 0 auto;
  font-family: var(--serif);
  text-align: center;
  font-size: 39px;
  line-height: 1;
}

.split-section,
.service-band,
.process-section,
.cases-preview,
.contact-section {
  padding: clamp(54px, 9vw, 120px) clamp(18px, 6vw, 72px);
}

.split-section {
  display: grid;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.rich-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
}

.rich-text p {
  margin: 0 0 18px;
}

.section-head {
  max-width: 980px;
  margin-bottom: 44px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 19px;
}

.service-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-grid article {
  min-height: 280px;
  padding: 26px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
}

.service-grid span {
  color: var(--stone);
  font-family: var(--serif);
  font-size: 30px;
}

.service-grid h3 {
  margin-top: 46px;
}

.service-grid p {
  color: var(--muted);
  font-size: 16px;
}

.process-section {
  background: var(--ink);
  color: #fff;
}

.process-section .eyebrow,
.process-section .section-head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
}

.process-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  list-style: none;
  counter-reset: step;
}

.process-list li {
  position: relative;
  padding: 20px 20px 20px 64px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  background: transparent;
  counter-increment: step;
}

.process-list li::before {
  position: absolute;
  top: 20px;
  left: 20px;
  color: rgba(255, 255, 255, 0.62);
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 24px;
}

.process-list span {
  display: block;
  font-weight: 800;
}

.process-list p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.terms-section {
  display: grid;
  gap: 0;
  padding: clamp(54px, 9vw, 120px) clamp(18px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.terms-card {
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
}

.terms-card .eyebrow {
  color: rgba(255, 255, 255, 0.66);
}

.terms-card p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.terms-card.muted {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.terms-card.muted p:not(.eyebrow) {
  color: var(--muted);
}

.case-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.case-grid a {
  display: grid;
  min-height: 220px;
  align-content: space-between;
  padding: 24px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  transition: background 160ms ease, color 160ms ease;
}

.case-grid a:hover {
  background: var(--ink);
  color: #fff;
}

.case-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.case-grid a:hover span {
  color: rgba(255, 255, 255, 0.64);
}

.case-grid strong {
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
  line-height: 1.1;
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
}

.contact-card a {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.contact-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px clamp(18px, 6vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-hero {
  padding: clamp(54px, 9vw, 130px) clamp(18px, 6vw, 72px) 52px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 1000px;
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
}

.article-layout {
  display: grid;
  gap: 28px;
  padding: clamp(42px, 7vw, 88px) clamp(18px, 6vw, 72px) clamp(60px, 10vw, 130px);
}

.article-body {
  max-width: 760px;
}

.article-body h2 {
  margin-top: 42px;
  font-size: 36px;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 18px;
}

.article-aside {
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
}

.article-aside dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.article-aside dt {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.article-aside dd {
  margin: 2px 0 0;
}

@media (min-width: 760px) {
  .service-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .hero-points li {
    padding-inline: 14px;
    border-right: 1px solid var(--line);
  }
}

@media (min-width: 980px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav a {
    padding: 0;
  }

  .hero {
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.64fr);
  }

  h1 {
    font-size: 88px;
  }

  h2 {
    font-size: 66px;
  }

  .hero-lead {
    font-size: 24px;
  }

  .statement p {
    font-size: 70px;
  }

  .split-section {
    grid-template-columns: 0.82fr 1fr;
    align-items: start;
  }

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

  .process-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .process-list li {
    min-height: 250px;
    padding: 76px 18px 18px;
  }

  .process-list li::before {
    top: 18px;
  }

  .contact-section,
  .article-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.55fr);
  }

  .contact-card a {
    font-size: 42px;
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .statement p {
    font-size: 34px;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero {
    justify-items: start;
    padding-inline: 24px;
  }

  .hero-copy,
  .hero-portrait,
  .hero-points,
  .hero-lead,
  .eyebrow {
    width: 100%;
    max-width: 342px;
  }

  h1 {
    max-width: 342px;
    font-size: 38px;
    line-height: 1.04;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 342px;
  }

  .button {
    width: 100%;
  }
}
