:root {
  --paper: #f2f0e9;
  --ink: #101010;
  --muted: #6b6a64;
  --line: #c7c5bd;
  --acid: #d9ff43;
  --white: #fffefa;
  --shell: min(1440px, calc(100vw - 64px));
  --section-space: clamp(96px, 12vw, 180px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--acid);
  transform: translateY(-160%);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: color-mix(in srgb, var(--ink) 16%, transparent);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
}

.brand {
  width: 178px;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  gap: clamp(20px, 3vw, 48px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav a,
.scroll-cue,
.email {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
}

.hero {
  min-height: 100svh;
  padding: 150px 0 42px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  min-height: calc(100svh - 192px);
  grid-template-columns: minmax(170px, 0.55fr) minmax(560px, 2.1fr) minmax(160px, 0.45fr);
  grid-template-rows: auto 1fr auto;
  gap: 24px;
}

.hero-kicker,
.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-kicker {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 11px;
  padding-top: 14px;
}

.signal {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 1px var(--ink);
}

.hero-copy {
  grid-column: 2 / 4;
}

.hero h1 {
  max-width: 1120px;
  margin: 0;
  font-size: clamp(54px, 7.6vw, 126px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.hero-copy p {
  max-width: 640px;
  margin: clamp(40px, 6vw, 84px) 0 0 auto;
  font-size: clamp(18px, 1.55vw, 25px);
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.scroll-cue {
  display: flex;
  grid-column: 2 / 4;
  grid-row: 3;
  align-items: center;
  justify-content: space-between;
  align-self: end;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.section {
  padding-block: var(--section-space);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(560px, 2.1fr) minmax(160px, 0.45fr);
  gap: 24px;
  margin-bottom: clamp(64px, 8vw, 112px);
}

.section-heading .eyebrow {
  padding-top: 13px;
}

.section-heading h2 {
  grid-column: 2 / 4;
  margin: 0;
  font-size: clamp(44px, 6vw, 92px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-lead {
  max-width: 500px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 22px);
  letter-spacing: -0.02em;
}

.section-heading > .section-lead {
  grid-column: 2 / 3;
}

.services {
  background: var(--white);
}

.service-list {
  border-top: 1px solid var(--ink);
}

.service-card {
  display: grid;
  grid-template-columns: minmax(72px, 0.25fr) minmax(440px, 1.2fr) minmax(240px, 0.75fr);
  gap: 24px;
  align-items: start;
  padding: 36px 0 42px;
  border-bottom: 1px solid var(--line);
}

.service-number,
.service-tag,
.process-number,
.principle > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-card h3 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.service-card p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.service-tag {
  justify-self: end;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: right;
}

.approach {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.approach-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(520px, 1.25fr);
  gap: clamp(56px, 10vw, 160px);
}

.approach .section-heading {
  display: block;
  margin: 0;
}

.approach .section-heading h2 {
  margin-top: 42px;
  font-size: clamp(42px, 5vw, 78px);
}

.principles {
  border-top: 1px solid #464646;
}

.principle {
  display: grid;
  grid-template-columns: 56px 0.75fr 1.25fr;
  gap: 24px;
  padding: 32px 0 42px;
  border-bottom: 1px solid #464646;
}

.principle > span {
  color: var(--acid);
}

.principle h3,
.principle p {
  margin: 0;
}

.principle h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.principle p {
  color: #aaa9a4;
  font-size: 15px;
}

.section-heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.section-heading--row h2 {
  margin-top: 42px;
}

.section-heading--row .section-lead {
  margin: 0 0 6px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.process-step {
  min-height: 320px;
  padding: 25px 28px 34px;
  border-right: 1px solid var(--line);
}

.process-step:first-child {
  padding-left: 0;
}

.process-step:last-child {
  padding-right: 0;
  border-right: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.process-number {
  color: var(--muted);
}

.process-step h3 {
  margin: 0 0 15px;
  font-size: clamp(23px, 2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.contacts {
  padding-block: clamp(90px, 11vw, 160px);
  background: var(--acid);
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(560px, 2.1fr) minmax(160px, 0.45fr);
  gap: 24px;
}

.contacts .eyebrow {
  padding-top: 15px;
}

.contacts-main h2 {
  margin: 0;
  font-size: clamp(52px, 7.8vw, 118px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.89;
}

.contacts-main p {
  max-width: 560px;
  margin: 52px 0 28px;
  font-size: clamp(17px, 1.5vw, 22px);
}

.phone,
.email {
  display: block;
  width: fit-content;
}

.phone {
  font-size: clamp(30px, 4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.1;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.email {
  margin-top: 22px;
  font-size: 16px;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px;
  padding-block: 30px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.legal-link {
  justify-self: end;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-transform: inherit;
  cursor: pointer;
}

.legal-link:hover,
.legal-link:focus-visible {
  color: var(--acid);
}

.legal-dialog {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}

.legal-dialog::backdrop {
  background: rgb(16 16 16 / 78%);
  backdrop-filter: blur(7px);
}

.legal-dialog__inner {
  padding: clamp(24px, 4.5vw, 54px);
}

.legal-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ink);
}

.dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  place-items: center;
}

.dialog-close span {
  margin-top: -3px;
  font-size: 31px;
  font-weight: 400;
  line-height: 1;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  background: var(--acid);
}

.legal-dialog__content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 7vw, 90px);
  padding-top: clamp(42px, 7vw, 76px);
}

.legal-dialog__content h2 {
  margin: 0;
  font-size: clamp(31px, 4.2vw, 54px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.legal-details {
  margin: 0;
}

.legal-details div {
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.legal-details div + div {
  padding-top: 20px;
}

.legal-details dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-details dd {
  margin: 0;
  font-size: 15px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

  .hero-grid,
  .section-heading,
  .contacts-grid {
    grid-template-columns: 150px 1fr;
  }

  .hero-copy,
  .section-heading h2,
  .contacts-main {
    grid-column: 2;
  }

  .hero-copy p {
    margin-left: 0;
  }

  .scroll-cue {
    grid-column: 2;
  }

  .section-heading > .section-lead {
    grid-column: 2;
  }

  .service-card {
    grid-template-columns: 60px 1fr;
  }

  .service-tag {
    grid-column: 2;
    justify-self: start;
  }

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

  .principle {
    grid-template-columns: 56px 0.8fr 1.2fr;
  }

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

  .process-step {
    min-height: 260px;
    border-bottom: 1px solid var(--line);
  }

  .process-step:nth-child(2) {
    padding-right: 0;
    border-right: 0;
  }

  .process-step:nth-child(3) {
    padding-left: 0;
  }

}

@media (max-width: 720px) {
  :root {
    --shell: calc(100% - 32px);
    --section-space: 88px;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    width: 134px;
  }

  .site-nav a:not(:last-child) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 118px 0 28px;
  }

  .hero-grid,
  .section-heading,
  .contacts-grid {
    display: block;
    min-height: auto;
  }

  .hero-kicker {
    margin-bottom: 52px;
  }

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

  .hero-copy p {
    margin-top: 44px;
  }

  .scroll-cue {
    margin-top: 38px;
  }

  .section-heading .eyebrow {
    margin-bottom: 36px;
    padding: 0;
  }

  .section-heading h2,
  .approach .section-heading h2,
  .section-heading--row h2 {
    margin-top: 0;
    font-size: clamp(40px, 12.5vw, 64px);
  }

  .section-heading > .section-lead {
    margin-top: 28px;
  }

  .service-card {
    grid-template-columns: 36px 1fr;
    gap: 14px;
    padding: 28px 0 32px;
  }

  .service-tag {
    display: none;
  }

  .service-card p {
    font-size: 15px;
  }

  .approach-grid {
    display: block;
  }

  .principles {
    margin-top: 64px;
  }

  .principle {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }

  .principle p {
    grid-column: 2;
  }

  .section-heading--row {
    display: block;
  }

  .section-heading--row .section-lead {
    margin-top: 28px;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-step,
  .process-step:first-child,
  .process-step:nth-child(2),
  .process-step:nth-child(3),
  .process-step:last-child {
    min-height: 220px;
    padding: 22px 0 30px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contacts .eyebrow {
    margin-bottom: 48px;
    padding: 0;
  }

  .contacts-main h2 {
    font-size: clamp(50px, 14vw, 76px);
  }

  .contacts-main p {
    margin-top: 44px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner span:nth-child(2) {
    display: none;
  }

  .legal-dialog__content {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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