:root {
  --paper: #f3efe6;
  --ink: #171715;
  --muted: #65635d;
  --orange: #ed5900;
  --line: rgba(23, 23, 21, 0.62);
  --soft-line: rgba(23, 23, 21, 0.2);
  --page-width: 91vw;
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.page-shell {
  width: var(--page-width);
  max-width: 1600px;
  margin: 0 auto;
}

.site-header {
  min-height: 104px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
}

.brand {
  justify-self: start;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.practice-line {
  margin: 0;
  color: var(--ink);
  white-space: nowrap;
}

.header-link {
  justify-self: end;
  display: inline-flex;
  gap: 0.45rem;
  padding: 0.5rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(320px, 1fr);
  min-height: calc(100svh - 104px);
  border-bottom: 1px solid var(--line);
}

.hero-statement,
.hero-detail {
  min-width: 0;
}

.hero-statement {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 9vh, 7rem) clamp(2rem, 4vw, 5rem) clamp(4rem, 9vh, 7rem) 0;
}

.eyebrow {
  margin: 0 0 clamp(2.5rem, 7vh, 5.5rem);
  color: var(--orange);
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(4.35rem, 7.25vw, 8.2rem);
  font-weight: 400;
  letter-spacing: -0.072em;
  line-height: 0.85;
}

h1 span,
h1 em {
  display: block;
}

h1 em,
h2 em {
  color: var(--orange);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.065em;
}

h1 em {
  white-space: nowrap;
}

.hero-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.75rem;
  padding: clamp(4rem, 9vh, 7rem) 0 clamp(4rem, 9vh, 7rem) clamp(2rem, 6vw, 6rem);
  border-left: 1px solid var(--orange);
}

.hero-intro {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.5rem, 2.1vw, 2.15rem);
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.text-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, padding 160ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--orange);
  padding-left: 0.5rem;
}

.service-list {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  line-height: 1.65;
}

.work {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  border-bottom: 1px solid var(--line);
}

.work-heading {
  padding: clamp(5rem, 11vw, 10rem) clamp(2rem, 6vw, 7rem) clamp(5rem, 11vw, 10rem) 0;
}

.work-heading .eyebrow {
  margin-bottom: 2rem;
}

h2 {
  margin: 0;
  font-size: clamp(3.2rem, 5.5vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

h2 span,
h2 em {
  display: block;
}

.work-intro {
  max-width: 33rem;
  margin: 3rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.project-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--soft-line);
}

.project-row {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto 1.5rem;
  align-items: center;
  gap: 1.25rem;
  min-height: 9.5rem;
  padding: 1.5rem 0 1.5rem clamp(2rem, 5vw, 5rem);
  border-bottom: 1px solid var(--soft-line);
  text-decoration: none;
  isolation: isolate;
}

.project-row:last-child {
  border-bottom: 0;
}

.project-row::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms ease;
}

.project-row:hover::before,
.project-row:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}

.project-row:hover,
.project-row:focus-visible {
  color: white;
  outline: 0;
}

.project-number,
.project-type {
  font-size: 0.68rem;
}

.project-number {
  color: var(--orange);
  transition: color 160ms ease;
}

.project-row:hover .project-number,
.project-row:focus-visible .project-number {
  color: white;
}

.project-name {
  min-width: 0;
  font-size: clamp(1.5rem, 2.2vw, 2.35rem);
  letter-spacing: -0.04em;
}

.project-type {
  color: var(--muted);
  transition: color 160ms ease;
}

.project-row:hover .project-type,
.project-row:focus-visible .project-type {
  color: rgba(255, 255, 255, 0.78);
}

.project-arrow {
  font-size: 1rem;
  transition: transform 160ms ease;
}

.project-row:hover .project-arrow,
.project-row:focus-visible .project-arrow {
  transform: translate(0.2rem, -0.2rem);
}

.site-footer {
  min-height: 116px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  justify-self: end;
}

.contact-link {
  padding: 0.45rem 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.noscript-message {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: 26rem;
  margin: 0;
  padding: 1rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

@media (max-width: 960px) {
  :root {
    --page-width: calc(100vw - 2.5rem);
  }

  .site-header {
    min-height: 84px;
    grid-template-columns: 1fr auto;
  }

  .practice-line {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-statement {
    min-height: 65svh;
    padding-right: 0;
  }

  h1 {
    max-width: none;
    font-size: clamp(3.65rem, 11.5vw, 7rem);
  }

  .hero-detail {
    min-height: 60svh;
    padding: 4rem 0 4rem clamp(1.5rem, 7vw, 4rem);
    border-top: 1px solid var(--soft-line);
  }

  .hero-intro {
    max-width: 24ch;
  }

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

  .work-heading {
    padding-right: 0;
  }

  .project-list {
    border-top: 1px solid var(--soft-line);
    border-left-color: var(--orange);
  }
}

@media (max-width: 640px) {
  :root {
    --page-width: calc(100vw - 2rem);
  }

  .site-header {
    min-height: 76px;
  }

  .header-link {
    font-size: 0.66rem;
  }

  .hero-statement {
    min-height: 68svh;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .eyebrow {
    margin-bottom: 2.5rem;
  }

  h1 {
    font-size: clamp(3.35rem, 16.2vw, 5rem);
  }

  h1 em {
    white-space: normal;
  }

  .hero-detail {
    min-height: auto;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .service-list {
    margin-top: 2rem;
  }

  .work-heading {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  h2 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .project-row {
    grid-template-columns: 2rem minmax(0, 1fr) 1.25rem;
    min-height: 8rem;
    padding-left: 1.25rem;
    gap: 0.75rem;
  }

  .project-type {
    display: none;
  }

  .site-footer {
    min-height: 148px;
    grid-template-columns: 1fr auto;
    align-content: center;
  }

  .site-footer > p:first-child {
    grid-column: 1 / -1;
  }
}

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

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