:root {
  --night: #111315;
  --night-soft: #1a1d1f;
  --paper: #f3efe7;
  --paper-light: #fbf9f4;
  --sand: #ded6c9;
  --ink: #171a1c;
  --muted: #626663;
  --clay: #ad5236;
  --clay-light: #d07a58;
  --white: #ffffff;
  --rule-dark: #333638;
  --rule-light: #c9c1b6;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
  --content: 74rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  min-width: 20rem;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--clay);
  color: var(--white);
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--clay-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  background: var(--paper-light);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--rule-dark);
  background: var(--night);
  color: var(--white);
}

.header-inner,
.hero-inner,
.section-inner,
.about-inner,
.footer-inner {
  width: min(calc(100% - 3rem), var(--content));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4.75rem;
}

.wordmark {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 150ms ease;
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--clay-light);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #c9cccd;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
}

.hero {
  overflow: hidden;
  background: var(--night);
  color: var(--white);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7.5rem);
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.hero-portrait {
  grid-column: 1;
  grid-row: 1;
  width: min(100%, 27rem);
  margin: 0;
}

.hero-portrait picture {
  display: block;
  overflow: hidden;
  border: 1px solid #3a3d3f;
  background: #6d422f;
}

.hero-portrait img {
  width: 100%;
  height: auto;
  transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-portrait:hover img {
  transform: scale(1.012);
}

.hero-copy {
  grid-column: 2;
  grid-row: 1;
  max-width: 41rem;
}

.school-line {
  margin: 2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule-dark);
  color: #989c9d;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 6vw, 5.2rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.role-line {
  margin: 2rem 0 0;
  color: var(--paper);
  font-size: clamp(1.25rem, 2.25vw, 1.7rem);
  font-weight: 590;
  letter-spacing: -0.022em;
  line-height: 1.4;
}

.hero-summary {
  max-width: 38rem;
  margin: 1.6rem 0 0;
  color: #bfc2c2;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.72;
}

.section {
  padding: clamp(5.5rem, 10vw, 9rem) 0;
}

.work,
.leadership {
  background: var(--paper-light);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: start;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-heading > p {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  letter-spacing: -0.015em;
  line-height: 1.62;
}

.work-heading {
  max-width: 46rem;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.work-heading h2,
.technical-heading h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.work-heading > p {
  max-width: 38rem;
  margin: 1.7rem 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  letter-spacing: -0.015em;
  line-height: 1.62;
}

.case-studies {
  border-bottom: 1px solid var(--ink);
}

.case-study {
  display: grid;
  grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 1.18fr) minmax(12rem, 0.72fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2.75rem, 5vw, 4.5rem) 0;
  border-top: 1px solid var(--ink);
}

.case-title p,
.case-title h3,
.case-copy p,
.case-scope p {
  margin-top: 0;
}

.case-title p {
  margin-bottom: 0.65rem;
  color: var(--clay);
  font-size: 0.83rem;
  font-weight: 750;
}

.case-title h3 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 710;
  letter-spacing: -0.04em;
  line-height: 1.08;
  transition: color 150ms ease;
}

.case-study:hover .case-title h3 {
  color: var(--clay);
}

.case-copy p {
  margin-bottom: 1rem;
  color: #444846;
  font-size: 1.02rem;
}

.case-copy p:last-child {
  margin-bottom: 0;
}

.case-scope {
  color: #4d514e;
  font-size: 0.9rem;
}

.case-scope p {
  margin-bottom: 1.3rem;
}

.case-scope strong {
  color: var(--ink);
  font-weight: 720;
}

.case-scope a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  color: var(--clay);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3rem;
}

.case-scope a:hover,
.case-scope a:focus-visible {
  text-decoration-thickness: 2px;
}

.technical {
  background: var(--sand);
}

.technical-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: start;
}

.technical-heading {
  position: sticky;
  top: 7rem;
}

.technical-heading > p {
  margin: 1.7rem 0 0;
  color: #555956;
  font-size: 1.05rem;
}

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

.practice-row {
  padding: clamp(2.4rem, 4vw, 3.5rem) 0;
  border-top: 1px solid var(--rule-light);
}

.practice-row:first-child {
  border-top: 0;
}

.practice-row h3,
.practice-row p {
  margin: 0;
}

.practice-row h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 690;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.practice-row p {
  max-width: 43rem;
  color: #474b48;
}

.toolkit {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}

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

.toolkit h3 {
  margin-bottom: 0.65rem;
  color: var(--clay);
  font-size: 0.86rem;
  font-weight: 750;
}

.toolkit p {
  max-width: 43rem;
  color: #505451;
  font-size: 0.92rem;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 7vw, 7rem);
}

.leadership-grid article {
  padding-top: 1.7rem;
  border-top: 1px solid var(--ink);
}

.leadership-grid h3,
.leadership-grid p {
  margin-top: 0;
}

.leadership-grid h3 {
  max-width: 16ch;
  margin-bottom: 1.5rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.14;
}

.leadership-grid p:last-child {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
}

.role-label {
  margin-bottom: 0.7rem;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 750;
}

.about-section {
  background: var(--clay-light);
  color: var(--night);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 8vw, 8rem);
  padding-top: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.about-inner h2,
.about-inner p {
  margin-top: 0;
}

.about-inner h2 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  font-weight: 730;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.about-inner > div {
  max-width: 43rem;
}

.about-inner p {
  margin-bottom: 1.7rem;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

.about-note {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(17, 19, 21, 0.45);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.site-footer {
  border-top: 1px solid var(--rule-dark);
  background: var(--night);
  color: #b9bdbd;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 7rem;
  font-size: 0.84rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  color: var(--paper);
  font-weight: 650;
  text-decoration-color: #5c6061;
  text-underline-offset: 0.3rem;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  text-decoration-color: var(--clay-light);
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 1.22fr);
    gap: 3rem;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 8vw, 5rem);
  }

  .case-study {
    grid-template-columns: minmax(12rem, 0.75fr) minmax(0, 1.25fr);
  }

  .case-scope {
    grid-column: 2;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule-light);
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 4.25rem;
  }

  .header-inner,
  .hero-inner,
  .section-inner,
  .about-inner,
  .footer-inner {
    width: min(calc(100% - 2rem), var(--content));
  }

  .header-inner {
    min-height: 4.25rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 4.5rem;
  }

  .hero-portrait {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 25rem);
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 38rem;
  }

  .school-line {
    margin-top: 1.7rem;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 15vw, 5.2rem);
  }

  .section-heading,
  .technical-layout,
  .about-inner {
    grid-template-columns: 1fr;
    gap: 1.7rem;
  }

  .section-heading {
    margin-bottom: 3.5rem;
  }

  .case-study {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .case-scope {
    grid-column: auto;
  }

  .technical-heading {
    position: static;
  }

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

  .about-inner {
    gap: 2rem;
  }
}

@media (max-width: 520px) {
  .header-inner {
    gap: 0.75rem;
  }

  .site-nav {
    gap: 0.65rem;
  }

  .site-nav a {
    font-size: 0.74rem;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 16vw, 4.6rem);
  }

  .section {
    padding: 4.75rem 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
  }
}

@media (max-width: 380px) {
  html {
    scroll-padding-top: 5.75rem;
  }

  .header-inner {
    align-items: start;
    flex-direction: column;
    gap: 0;
    padding: 0.45rem 0;
  }

  .wordmark,
  .site-nav a {
    min-height: 2.25rem;
  }

  .wordmark {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }
}

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

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