@font-face {
  font-family: "Work Sans";
  src: url("../assets/fonts/WorkSans-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("../assets/fonts/WorkSans-Italic-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("../assets/fonts/DMMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("../assets/fonts/DMMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("../assets/fonts/DMMono-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0f0d0b;
  --ink-2: #1c1c1c;
  --brown: #2a2121;
  --paper: #fffcfc;
  --gold: #c7a75b;
  --blue: #374a8f;
  --rust: #a54b37;
  --peach: #e99f71;
  --peri: #7685b6;
  --line: rgba(255, 252, 252, 0.16);
  --line-strong: rgba(255, 252, 252, 0.32);
  --muted: rgba(255, 252, 252, 0.66);
  --faint: rgba(255, 252, 252, 0.42);
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --frame: min(1120px, calc(100% - 2.5rem));
  --pad: 1.4rem;
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--blue);
  color: var(--paper);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.6rem 0.9rem;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip:focus {
  top: 0.75rem;
}

.frame-lines {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: var(--frame);
  margin-inline: auto;
  border-inline: 1px solid var(--line);
  pointer-events: none;
  z-index: 40;
}

.shell {
  width: var(--frame);
  margin-inline: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main > :last-child {
  flex: 1;
}

.strip,
.site-header,
.kicker,
.section-head,
.hero,
.lanes,
.board,
.caps,
.phases,
.statement,
.about-block,
.cards,
.site-footer,
.chapter {
  border-bottom: 1px solid var(--line);
}

.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 13, 11, 0.94);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  border-bottom: 1px solid var(--line);
}

.page-toggle {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--paper);
}

.page-toggle__opt {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.page-toggle__opt:hover {
  color: var(--paper);
}

.page-toggle__opt:focus-visible {
  outline: 1px solid var(--paper);
  outline-offset: 3px;
}

.page-toggle__switch {
  position: relative;
  flex: 0 0 auto;
  width: 1.55rem;
  height: 0.72rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--paper);
  background: transparent;
  cursor: pointer;
}

.page-toggle__switch:focus-visible {
  outline: 1px solid var(--paper);
  outline-offset: 3px;
}

.page-toggle__thumb {
  position: absolute;
  top: 50%;
  left: 0.05rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--paper);
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.page-toggle__switch[aria-checked="true"] .page-toggle__thumb {
  transform: translate(0.88rem, -50%);
}

.page-toggle__opt--off {
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.header__bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 0.7rem var(--pad);
}

.header__logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.header__bar .nav {
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.header__logo img {
  display: block;
  height: 2.55rem;
  width: 8.47rem;
  max-width: 100%;
}

.brand {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--faint);
}

.brand:hover {
  color: var(--paper);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--paper);
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.nav .btn,
.nav .btn:hover,
.nav .btn[aria-current="page"] {
  color: var(--ink);
  box-shadow: none;
}

.strip {
  display: block;
  padding: 0.72rem var(--pad);
  text-align: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.strip:hover {
  color: var(--gold);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.hero__title,
.hero__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.4rem var(--pad);
}

.hero__aside {
  position: relative;
  align-self: stretch;
  justify-self: stretch;
  width: clamp(10.5rem, 18vw, 13.5rem);
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  border-left: 1px solid var(--line);
}

.hero__title {
  border-top: 1px solid var(--line);
}

.hero__cell:last-child {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.hero__mark {
  position: absolute;
  top: 9%;
  left: 9%;
  width: 82%;
  height: 82%;
  margin: 0;
}

.hero h1,
.hero .lede {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-transform: none;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__aside p:last-of-type {
  margin: 0 0 1.6rem;
  max-width: 28ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.board__bar,
.board__grid {
  display: grid;
}

.board__bar {
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem var(--pad);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.board__bar--end {
  display: flex;
  justify-content: flex-end;
}

.board__bar--center {
  display: flex;
  justify-content: center;
  text-align: center;
}

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

.note,
.lockup {
  padding: 1.35rem var(--pad) 1.5rem;
  border-left: 1px solid var(--line);
}

.note:nth-child(3n + 1) {
  border-left: 0;
}

.note:nth-child(n + 4) {
  border-top: 1px solid var(--line);
}

.note__id {
  margin: 0 0 1.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.note:nth-child(2) .note__id {
  color: var(--peri);
}

.note:nth-child(3) .note__id,
.note:nth-child(6) .note__id {
  color: var(--peach);
}

.note:nth-child(4) .note__id {
  color: var(--paper);
}

.note:nth-child(5) .note__id {
  color: var(--peri);
}

.note h2,
.lockup p,
.card address,
.phase h3,
.cap h3 {
  font-weight: 500;
}

.note h2 {
  margin: 0 0 0.7rem;
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.note p,
.cap p,
.phase p,
.section-head p,
.statement p,
.card p {
  margin: 0;
  color: var(--muted);
}

.note p {
  max-width: 18ch;
  font-size: 0.98rem;
}

.lockup {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.9rem;
  background: var(--brown);
}

.lockup img {
  width: 5.5rem;
  height: 5.5rem;
}

.lockup strong {
  font-family: var(--mono);
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lockup span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--gold);
}

.kicker {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem var(--pad);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.kicker b {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.55rem;
  background: var(--gold);
  vertical-align: 0.05em;
}

.section-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: end;
  padding: 2rem var(--pad);
}

.section-head--chronicle {
  align-items: stretch;
  gap: 0;
  padding: 0;
}

#chronicle,
#about,
#contact {
  scroll-margin-top: 11rem;
}

.section-head h1,
.section-head h2,
.statement h2,
.chapter h1 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(2.7rem, 7vw, 4.8rem);
  line-height: 0.88;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

#about-title,
#contact-title {
  text-transform: none;
  letter-spacing: -0.03em;
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.contact-panel__copy {
  margin: 0;
  padding: 2rem var(--pad);
  max-width: 34ch;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-transform: none;
}

.contact-panel__details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.1rem;
  justify-content: flex-start;
  padding: 2rem var(--pad);
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(0.82rem, 1.15vw, 0.95rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-align: right;
  text-transform: none;
}

.contact-panel__details a,
.contact-panel__details address {
  margin: 0;
  font-style: normal;
  color: inherit;
}

.contact-panel__details a:hover {
  color: var(--gold);
}

#practice.section-head {
  grid-template-columns: 1fr;
}

#practice-title {
  white-space: nowrap;
}

.section-head p {
  max-width: 34ch;
  padding-bottom: 0.35rem;
  font-size: 1.02rem;
}

.section-head--chronicle h1,
.section-head--chronicle h2,
.section-head--chronicle .section-head__side {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 1.15rem var(--pad);
}

.section-head--chronicle h1,
.section-head--chronicle h2 {
  text-transform: none;
  letter-spacing: -0.03em;
}

.section-head--chronicle .section-head__side {
  border-left: 1px solid var(--line);
}

.section-head--solo {
  grid-template-columns: 1fr;
}

.section-head--solo h1,
.section-head--solo h2 {
  max-width: none;
  justify-content: flex-start;
  text-align: left;
  font-size: clamp(1.05rem, 2.4vw, 1.85rem);
  line-height: 1.1;
  white-space: nowrap;
}

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

.lanes article {
  min-height: 0;
  padding: 1.05rem var(--pad);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0.35rem;
}

.lanes article:nth-child(odd) {
  border-left: 0;
}

.lanes article:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.lanes h3 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.lanes h3,
.lanes p {
  width: 100%;
}

.lanes p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.caps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.cap {
  min-height: 16.5rem;
  padding: 1.35rem var(--pad) 1.7rem;
  border-left: 1px solid var(--line);
}

.cap:first-child {
  border-left: 0;
}

.cap__id {
  display: block;
  margin-bottom: 0.55rem;
  border-bottom: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.cap:nth-child(2) .cap__id { color: var(--peri); }
.cap:nth-child(3) .cap__id { color: var(--peach); }
.cap:nth-child(4) .cap__id { color: var(--paper); }

.cap h3 {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
}

.cap:hover {
  background: rgba(255, 252, 252, 0.03);
}

.phases__head,
.phase {
  display: grid;
  grid-template-columns: 5.5rem minmax(8rem, 0.8fr) 1.5fr 8.5rem;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem var(--pad);
  border-bottom: 1px solid var(--line);
}

.phases__head {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.phase:last-child {
  border-bottom: 0;
}

.phase:hover {
  background: rgba(255, 252, 252, 0.03);
}

.phase__id,
.phase__meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.phase__meta {
  text-align: right;
  color: var(--faint);
}

.phase h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.statement {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 22rem;
}

.statement--flip {
  min-height: 0;
}

.statement__copy {
  padding: 3.5rem var(--pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.statement h2 {
  max-width: 12em;
  text-transform: none;
  letter-spacing: -0.03em;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.02;
}

.statement .btn {
  margin-top: 1.8rem;
}

.statement--flip .statement__side {
  order: -1;
  border-left: 0;
  justify-content: flex-start;
}

.statement--flip .statement__copy {
  border-left: 1px solid var(--line);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.statement__side {
  border-left: 1px solid var(--line);
  padding: 1.4rem var(--pad);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.about-block {
  padding: 0 var(--pad);
}

.doc {
  padding: 0 0 1.7rem;
}

.doc p {
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.55;
}

.doc p + p {
  margin-top: 1rem;
}

.doc strong {
  color: var(--paper);
  font-weight: 620;
}

.lead {
  padding: 1.25rem 0 1.35rem;
}

.lead h3 {
  margin: 0 0 0.25rem;
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  min-height: 14rem;
  padding: 1.4rem var(--pad) 1.7rem;
  border-left: 1px solid var(--line);
}

.card:first-child {
  border-left: 0;
}

.card__k {
  display: block;
  margin-bottom: 2rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.card:nth-child(2) .card__k { color: var(--peri); }
.card:nth-child(3) .card__k { color: var(--peach); }

.card a,
.card address {
  font-family: var(--mono);
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--paper);
}

.card a:hover {
  color: var(--gold);
}

.site-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem var(--pad) 1.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.site-footer nav {
  display: flex;
  gap: 1.1rem;
}

.site-footer a:hover {
  color: var(--gold);
}

.chapter {
  padding: 2.6rem var(--pad) 1.5rem;
}

.chapter .eyebrow {
  margin-bottom: 1rem;
}

.chapter h1 {
  max-width: 10ch;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero,
  .section-head,
  .statement,
  .board__grid,
  .lanes {
    grid-template-columns: 1fr;
  }

  .lanes article {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 0;
  }

  .lanes article:first-child {
    border-top: 0;
  }

  .hero__cell {
    display: none;
  }

  .hero__aside {
    width: min(100%, 16rem);
    height: auto;
    min-height: 0;
    justify-self: center;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero__title {
    border-top: 0;
  }

  .section-head--chronicle .section-head__side {
    display: none;
  }

  .statement__side,
  .note,
  .lockup {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .statement--flip .statement__copy {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .statement--flip .statement__side {
    border-top: 0;
  }

  .note:first-child {
    border-top: 0;
  }

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

  .cap:nth-child(odd) {
    border-left: 0;
  }

  .cap:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .phases__head {
    display: none;
  }

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

  .phase h3,
  .phase p {
    grid-column: 1 / -1;
  }

  .phase__meta {
    text-align: right;
  }

  .statement__side {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  :root {
    --frame: 100%;
    --pad: 1.1rem;
  }

  .section-head--solo h1,
  .section-head--solo h2 {
    white-space: normal;
    font-size: clamp(0.95rem, 4.2vw, 1.2rem);
  }

  .header__logo img {
    height: 2.15rem;
    width: 7.14rem;
  }

  .brand {
    letter-spacing: 0.08em;
  }

  .header__bar .nav {
    gap: 0.75rem 1rem;
  }

  .caps,
  .cards {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel__details {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .cap,
  .card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .cap:first-child,
  .card:first-child {
    border-top: 0;
  }

  .hero {
    min-height: 0;
  }

  .hero__title,
  .statement__copy {
    padding-top: 2.2rem;
    padding-bottom: 2.2rem;
  }

  .doc {
    padding: 0 0 1.4rem;
  }

  .strip,
  .board__bar,
  .kicker {
    letter-spacing: 0.04em;
    line-height: 1.45;
  }

  .strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.6rem;
    padding-inline: 0.75rem;
  }

  .board__bar {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.35rem;
  }
}

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

  .btn {
    transition: none;
  }
}
