/* Shared design tokens and components. Responsive rules follow the components.
   Page-specific prefixes: home-, profile-, experience-, case-, article-, contact-.
   All full-width page sections use .container for their content alignment. */

:root {
  --iris-950: #2D152F;
  --iris-800: #542956;
  --iris-600: #6C396B;
  --paper-000: #FCFBF8;
  --ivory-050: #F7F4EC;
  --stone-100: #EEEAE1;
  --grey-600: #68666B;
  --charcoal-800: #303034;
  --ink-950: #171719;
  --bg: var(--paper-000);
  --bg-subtle: var(--ivory-050);
  --text: var(--ink-950);
  --text-muted: var(--grey-600);
  --brand: var(--iris-800);
  --brand-hover: var(--iris-600);
  --border: rgba(23, 23, 25, .16);
  --border-dark: rgba(247, 244, 236, .18);
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 80px;
  --space-11: 96px;
  --space-12: 128px;
  --container-reading: 760px;
  --radius-control: 2px;
  --duration-fast: 180ms;
  --ease-brand: cubic-bezier(.2,.8,.2,1);
  --site-header-height: 88px;
  --about-nav-height: 72px;
}

::after {
  box-sizing: border-box;
}

::before {
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}

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

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--duration-fast) var(--ease-brand),
    border-color var(--duration-fast) var(--ease-brand),
    background-color var(--duration-fast) var(--ease-brand);
}

a:hover {
  color: var(--brand);
}

summary {
  font: inherit;
}

select {
  font: inherit;
}

textarea {
  font: inherit;
}

input {
  font: inherit;
}

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: 20px;
  top: 12px;
  transform: translateY(-150%);
  z-index: 999;
  background: var(--ink-950);
  color: var(--paper-000);
  padding: 10px 14px;
  text-decoration: none;
}

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

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-panel a:last-child {
  border-bottom: 0;
}

main {
  overflow: clip;
}

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

.section-subtle {
  background: var(--bg-subtle);
}

.section-white {
  background: #fff;
}

.eyebrow {
  margin: 0 0 var(--space-4);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink-950);
  margin: 0;
  max-width: 840px;
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  max-width: 760px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--charcoal-800);
}

.small {
  font-size: 14px;
  line-height: 1.5;
}

.muted {
  color: var(--text-muted);
}

.btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-control);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid var(--brand);
}

.btn-primary {
  background: var(--brand);
  color: var(--paper-000);
}

.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--paper-000);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: var(--space-10);
}

.section-head .section-title {
  grid-column: 1 / span 7;
}

.section-head .section-intro {
  grid-column: 9 / span 4;
  align-self: end;
}

.section-intro p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-5);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform var(--duration-fast) var(--ease-brand);
}

.text-link:hover::after {
  transform: translateX(4px);
}

.dark-section {
  background: var(--iris-950);
  color: var(--ivory-050);
}

.dark-section .display {
  color: var(--ivory-050);
}

.dark-section h3 {
  color: var(--ivory-050);
}

.dark-section h2 {
  color: var(--ivory-050);
}

.dark-section .eyebrow {
  color: rgb(201, 175, 200);
}

.dark-section .muted {
  color: rgba(247, 244, 236, 0.7);
}

.article-list {
  border-top: 1px solid var(--border-dark);
}

.article-row {
  display: grid;
  grid-template-columns: 150px 1fr 160px;
  gap: var(--space-6);
  padding-block: var(--space-7);
  border-bottom: 1px solid var(--border-dark);
  text-decoration: none;
  color: inherit;
}

.article-row:hover {
  color: inherit;
}

.article-row:hover h3 {
  color: rgb(201, 175, 200);
}

.article-meta {
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(247, 244, 236, 0.62);
}

.article-row h3 {
  color: var(--ivory-050);
  transition: color var(--duration-fast) var(--ease-brand);
}

.article-row p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(247, 244, 236, 0.65);
  max-width: 64ch;
}

.article-read {
  align-self: start;
  text-align: right;
  font-size: 12px;
  color: rgba(247, 244, 236, 0.58);
}

.resume-records {
  background: rgb(59, 30, 62);
  color: var(--paper-000);
}

.resume-record-group + .resume-record-group {
  margin-top: var(--space-10);
}

.resume-record-group h2 {
  margin-bottom: var(--space-6);
}

.resume-record-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resume-record {
  display: grid;
  grid-template-columns: minmax(120px, 2fr) minmax(0, 10fr);
  gap: 24px;
  padding-block: var(--space-6);
  border-top: 1px solid #755b77;
}

.resume-record:last-child {
  border-bottom: 1px solid #755b77;
}

.resume-record p {
  margin: 0;
}

.resume-record-period {
  padding-top: 5px;
  color: #d5bfd2;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resume-record-content h3 {
  margin-bottom: 8px;
  font-size: 23px;
  line-height: 1.2;
}

.resume-record-institution {
  color: #fcfbf8;
  font-size: 15px;
}

.resume-record-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.resume-record-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

[data-expandable-list] > [hidden] {
  display: none;
}

.list-toggle {
  margin-top: 24px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.list-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

@media print {

  .analytics-choice,
  .footer-privacy {
    display: none;
  }
  [data-expandable-list] > [hidden] { display: grid; }
  .list-toggle { display: none; }
}

.resume-record-content .resume-record-detail {
  margin-top: 12px;
  max-width: 70ch;
  color: #e1d5df;
}

.page-hero {
  padding-block: var(--space-12) var(--space-10);
  border-bottom: 1px solid var(--border);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.page-hero-main {
  grid-column: 1 / span 8;
}

.page-hero-side {
  grid-column: 10 / span 3;
  align-self: end;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-hero .lead {
  margin-top: var(--space-5);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}

.profile-copy {
  grid-column: 1 / span 7;
}

.profile-aside {
  grid-column: 9 / span 4;
}

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

.fact {
  padding-block: 14px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  font-size: 15px;
}

.fact-detail {
  display: block;
  color: var(--text-muted);
}

.fact dt {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}

.experience-group + .experience-group {
  margin-top: var(--space-11);
}

.experience-item {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  padding-block: var(--space-7);
  border-top: 1px solid var(--border);
}

.experience-item:last-child {
  border-bottom: 1px solid var(--border);
}

.experience-role {
  grid-column: 3 / span 4;
}

.experience-date {
  grid-column: 1 / span 2;
  font-size: 11px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.experience-organisation {
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.experience-title {
  display: block;
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 23px;
  line-height: 1.2;
}

.experience-location {
  font-size: 11px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 10px;
}

.experience-description ul {
  margin: 0;
  padding-left: 1.2em;
}

.experience-description li {
  margin-bottom: 10px;
  color: var(--charcoal-800);
}

.experience-description li:last-child {
  margin-bottom: 0;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.case-main {
  grid-column: 1 / span 8;
}

.case-side {
  grid-column: 10 / span 3;
  align-self: end;
}

.case-facts {
  border-top: 1px solid var(--border);
  margin-top: var(--space-8);
}

.case-fact {
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-4);
  font-size: 12px;
}

.case-fact strong {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.case-body {
  width: min(calc(100% - 40px), var(--container-reading));
  margin-inline: auto;
  padding-block: var(--space-11);
}

.case-body section + section {
  margin-top: var(--space-10);
}

.case-body h2 {
  margin-bottom: var(--space-5);
}

.case-body p {
  color: var(--charcoal-800);
}

.result-callout {
  margin-block: var(--space-8);
  padding: var(--space-6) 0 var(--space-6) var(--space-6);
  border-left: 2px solid var(--brand);
}

.result-callout .eyebrow {
  margin-bottom: 8px;
}

.result-callout p {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.35;
  color: var(--ink-950);
}

.confidentiality {
  margin-top: var(--space-10);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.article-hero {
  padding-block: var(--space-11) var(--space-9);
  border-bottom: 1px solid var(--border);
}

.article-hero-inner {
  width: min(100% - 40px, 980px);
  margin-inline: auto;
}

.article-hero h1 {
  max-width: 900px;
  font-size: clamp(40px, 5vw, 68px);
}

.article-standfirst {
  max-width: 760px;
  margin-top: var(--space-5);
  font-size: 20px;
  line-height: 1.55;
  color: var(--charcoal-800);
}

.article-byline {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.article-prose {
  width: min(calc(100% - 40px), var(--container-reading));
  margin-inline: auto;
  padding-block: var(--space-11);
}

.article-contents {
  border-block: 1px solid var(--border);
  padding-block: var(--space-4);
}

.article-contents summary {
  color: var(--brand);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}

.article-contents nav {
  margin-top: var(--space-4);
}

.article-prose .article-contents ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-prose .article-contents li {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.article-prose .article-contents + h2 {
  margin-top: var(--space-7);
}

html:has(.note-page) {
  scroll-behavior: auto;
}

.note-page .article-prose h2[id] {
  scroll-margin-top: calc(var(--site-header-height) + var(--space-5));
}

.article-prose h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-5);
  font-size: clamp(28px, 3vw, 36px);
}

.article-prose h2:first-child {
  margin-top: 0;
}

.article-prose h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  font-size: 24px;
}

.article-prose li {
  font-size: 18px;
  line-height: 1.72;
  color: rgb(41, 40, 43);
}

.article-prose p {
  font-size: 18px;
  line-height: 1.72;
  color: rgb(41, 40, 43);
  margin-bottom: var(--space-5);
}

.article-prose ol {
  margin: 0 0 var(--space-6);
  padding-left: 1.3em;
}

.article-prose ul {
  margin: 0 0 var(--space-6);
  padding-left: 1.3em;
}

.article-prose blockquote {
  margin: var(--space-9) 0;
  padding-left: var(--space-6);
  border-left: 2px solid var(--brand);
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.42;
  color: var(--ink-950);
}

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--space-8);
  font-size: 14px;
}

.article-prose th {
  padding: 14px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-weight: 500;
  color: var(--ink-950);
}

.article-prose td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  color: var(--charcoal-800);
}

.article-note {
  --callout-accent: #77717b;
  --callout-background: #f1eef0;
  margin-block: var(--space-8);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-left: 3px solid var(--callout-accent);
  background: var(--callout-background);
  font-size: 15px;
  line-height: 1.6;
}

.article-note-tip {
  --callout-accent: #68765e;
  --callout-background: #eef1e9;
}

.article-note-important {
  --callout-accent: var(--iris-800);
  --callout-background: #f0e9ef;
}

.article-note-warning {
  --callout-accent: #957341;
  --callout-background: #f5efe3;
}

.article-note-caution {
  --callout-accent: #98615f;
  --callout-background: #f5eae7;
}

.article-prose :is(h1, h4, h5, h6) {
  margin-block: var(--space-8) var(--space-4);
}

.article-prose :is(h4, h5, h6) {
  font-size: 20px;
}

.article-prose img {
  max-width: 100%;
  height: auto;
}

.article-prose li > :is(ul, ol) {
  margin-block: var(--space-3);
}

.article-prose .task-list-item {
  list-style: none;
}

.task-list-item input[type="checkbox"] {
  width: auto;
  margin-right: 0.5em;
  accent-color: var(--brand);
}

.article-note > :last-child {
  margin-bottom: 0;
}

.article-prose .footnotes {
  margin-top: var(--space-8);
}

.article-prose dt {
  font-weight: 600;
}

.article-prose dd {
  margin: 0 0 var(--space-5) var(--space-5);
}

.article-footer {
  width: min(calc(100% - 40px), var(--container-reading));
  margin-inline: auto;
  padding-bottom: var(--space-11);
  border-top: 1px solid var(--border);
  padding-top: var(--space-6);
}

.article-footer a {
  font-size: 13px;
  font-weight: 500;
}

.article-author {
  width: min(calc(100% - 40px), var(--container-reading));
  margin: 0 auto 64px;
}

.contact-page .page-hero {
  padding-block: 64px 48px;
}

.contact-methods,
.contact-page .author-summary {
  padding-block: 64px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 64px;
  align-items: start;
}

.services-contact {
  padding-block: 64px;
}

.services-contact .contact-grid {
  align-items: center;
}

.services-contact-copy p {
  margin: 0 0 24px;
  max-width: 52ch;
}

.contact-options {
  border-top: 1px solid var(--border);
}

.contact-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 28px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.contact-option[hidden] {
  display: none;
}

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

.contact-option-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.2;
}

.contact-option-description {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-muted);
}

.footer-privacy {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}

.footer-privacy button {
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.footer-privacy [hidden],
.footer-links [hidden],
.analytics-choice[hidden] {
  display: none;
}

.analytics-choice {
  position: fixed;
  bottom: 16px;
  left: 16px;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 120px);
  overflow: auto;
  z-index: 100;
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--paper-000);
  box-shadow: 0 8px 32px rgba(23, 23, 25, .12);
  font-size: 14px;
}

.analytics-choice h2 {
  font-size: 26px;
  margin: 0 0 12px;
}

.analytics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.analytics-actions .btn {
  flex: 1;
  background: var(--paper-000);
  color: var(--brand);
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-7);
  background: var(--paper-000);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
}

.footer-name {
  grid-column: 1 / span 5;
}

.footer-links {
  grid-column: 7 / span 6;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.footer-name strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-name span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.not-found {
  min-height: calc(-76px + 100vh);
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-10) 20px;
}

.not-found .display {
  margin-inline: auto;
}

.not-found p {
  max-width: 560px;
  margin: var(--space-5) auto 0;
  color: var(--text-muted);
}

.not-found-action {
  margin-top: var(--space-7);
}

.case-media-wrap {
  margin-top: var(--space-10);
}

.case-media {
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--border);
  background: var(--ivory-050);
  overflow: hidden;
}

.case-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article-prose pre {
  overflow-x: auto;
  margin-block: var(--space-8);
  padding: var(--space-5);
  background: var(--ink-950);
  color: var(--ivory-050);
  border-radius: var(--radius-control);
  font-size: 14px;
  line-height: 1.6;
}

.article-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.article-prose :not(pre) > code {
  padding: 2px 5px;
  background: var(--stone-100);
  border-radius: 2px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-block: var(--space-8);
}

.table-wrap table {
  margin-block: 0;
  min-width: 560px;
}

.article-prose hr {
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-image: none;
  border-top: 1px solid var(--border);
  margin-block: var(--space-9);
}

.home {
  background: var(--paper-000);
}

.home + .site-footer {
  margin-top: 0;
}

.home-eyebrow {
  margin: 0 0 14px;
  color: var(--iris-800);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-hero-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 0 26px;
  border: 1px solid var(--iris-800);
  border-radius: 2px;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}

.home-cases-heading .home-eyebrow {
  margin-bottom: 11px;
}

.home-cases h2 {
  margin: 0;
  color: rgb(22, 34, 49);
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.case-card {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.case-card-number {
  flex: 0 0 auto;
  color: var(--iris-800);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1;
}

.case-card-meta span:last-child {
  text-align: right;
}

.container {
  margin-inline: auto;
  width: min(1264px, 100% - 64px);
  max-width: none;
}

.home-hero h1 {
  margin: 0;
  color: rgb(22, 34, 49);
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  max-width: 18ch;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.08;
}

.home-hero-lead {
  margin: 24px 0 0;
  color: rgb(80, 92, 109);
  font-size: 17px;
  line-height: 1.65;
  max-width: 48ch;
}

.home .section {
  padding-block: clamp(48px, 6vw, 80px);
}

.home-notes .section-head {
  margin-bottom: 28px;
}

.home-notes .article-row {
  border-color: var(--border);
  color: var(--text);
  padding-block: 28px;
}

.home-notes .article-row h3 {
  color: var(--ink-950);
  font-size: clamp(24px, 2.2vw, 30px);
}

.home-notes .article-row p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 65ch;
}

.home-notes .article-read {
  color: var(--text-muted);
  font-size: 13px;
}

.home-notes .article-meta {
  color: var(--text-muted);
  font-size: 13px;
}

.home-notes .article-row:hover h3 {
  color: var(--brand);
}

.home-notes .article-list {
  border-color: var(--border);
}

.home-cases {
  padding: 39px 0 58px;
  background: var(--paper-000);
  border-top: 1px solid var(--border);
  padding-block: clamp(40px, 5vw, 64px);
}

.case-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 32px;
}

.case-card p {
  margin: 0;
  color: rgb(100, 112, 130);
  min-height: 0;
  font-size: 16px;
  line-height: 1.6;
}

.case-card h3 {
  margin: 9px 0 8px;
  color: rgb(23, 34, 49);
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  font-size: 25px;
  line-height: 1.2;
}

.case-card-meta {
  min-height: 30px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgb(104, 115, 134);
  line-height: 1.25;
  font-size: 13px;
}

.home-cases-link {
  justify-self: end;
  padding-bottom: 5px;
  min-width: 123px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--iris-800);
  border-bottom: 1px solid var(--iris-800);
  font-family: var(--font-serif);
  font-size: 15px;
  text-decoration: none;
  min-height: 44px;
  align-items: center;
  margin-bottom: 0;
}

.case-card-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 12px;
  color: var(--iris-800);
  font-size: 14px;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  align-items: center;
}

.footer-links a,
.footer-links button {
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.footer-links button:hover {
  color: var(--brand);
}

.fact dd {
  margin: 0;
  overflow-wrap: break-word;
}

.experience-description {
  grid-column: 7 / span 6;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 var(--space-5);
  overflow-wrap: break-word;
}

h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink-950);
  margin: 0;
  font-size: clamp(24px, 2vw, 28px);
  line-height: 1.18;
  overflow-wrap: break-word;
}

h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink-950);
  margin: 0;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.1;
  overflow-wrap: break-word;
}

h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink-950);
  margin: 0;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

.page-hero-grid > * {
  min-width: 0;
}

.article-row > * {
  min-width: 0;
}

.section-head > * {
  min-width: 0;
}

.home-hero-layout > * {
  min-width: 0;
}

#notes,
#selected-work,
#resume {
  scroll-margin-top: var(--site-header-height);
}

.home-notes .article-meta span {
  display: block;
}

::selection {
  background: rgb(84, 41, 86);
  color: rgb(255, 255, 255);
}

.dark-section ::selection {
  background: rgb(240, 217, 237);
  color: rgb(45, 21, 47);
}

.home-hero {
  position: relative;
  border-bottom: 1px solid var(--border);
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(110deg, rgb(252, 251, 248) 45%, rgb(240, 235, 233) 100%);
}

.home-hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  min-height: 520px;
  padding-block: 72px;
}

.home-hero-copy {
  grid-column: 1;
  align-self: center;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.home-hero-art {
  z-index: 1;
  max-width: none;
  place-items: center;
  position: absolute;
  grid-area: auto;
  inset: 0 calc((min(1264px, 100vw - 64px) - 100vw) / 2) 0 50%;
  width: auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  opacity: 0.3;
  display: block;
  pointer-events: none;
}

.home-hero-art img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: 60% center;
  transform: none;
}

.home-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--paper-000), transparent 22%);
}

.home-hero-actions {
  display: flex;
  gap: 26px;
  margin-top: 28px;
}

.home-hero-button-primary {
  min-width: 0;
  padding-inline: 0;
  border-radius: 0;
  padding: 0 22px;
  min-height: 48px;
  border: 1px solid var(--brand);
  color: rgb(255, 255, 255);
  background: var(--brand);
}

.home-hero-button-primary:hover {
  color: rgb(255, 255, 255);
  background: var(--iris-950);
  border-color: var(--iris-950);
}

.home-introduction {
  padding-block: clamp(40px, 5vw, 64px);
  background: var(--paper-000);
}

.introduction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.introduction-grid > * {
  align-self: center;
}

.introduction-grid h2 {
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.introduction-copy {
  width: 100%;
  max-width: 54ch;
  justify-self: end;
  text-align: left;
}

.introduction-copy p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 12px;
}

.introduction-copy .text-link {
  margin-top: 0;
  min-height: 44px;
  align-items: center;
}

.home-notes.dark-section {
  background: rgb(59, 30, 62);
  color: rgb(252, 251, 248);
}

.home-notes.dark-section .eyebrow {
  color: rgb(225, 194, 223);
}

.home-notes.dark-section .article-row h3 {
  color: rgb(252, 251, 248);
}

.home-notes.dark-section h2 {
  color: rgb(252, 251, 248);
}

.home-notes.dark-section .article-row p {
  color: rgb(225, 213, 223);
}

.home-notes.dark-section .muted {
  color: rgb(225, 213, 223);
}

.home-notes.dark-section .article-read {
  color: rgb(213, 191, 210);
}

.home-notes.dark-section .article-meta {
  color: rgb(213, 191, 210);
}

.home-notes.dark-section .article-list {
  border-color: rgb(117, 91, 119);
}

.home-notes.dark-section .article-row {
  border-color: rgb(117, 91, 119);
  color: rgb(252, 251, 248);
  transition: background-color 180ms;
}

.home-notes.dark-section .article-row:hover {
  background-color: rgb(70, 40, 73);
}

.home-notes.dark-section .article-row:hover h3 {
  color: rgb(240, 217, 237);
}

.home-notes.dark-section .text-link {
  color: rgb(252, 251, 248);
  min-height: 44px;
  align-items: center;
}

.home-notes.dark-section .text-link:hover {
  color: rgb(240, 217, 237);
}

.home-notes.dark-section :focus-visible {
  outline-color: rgb(240, 217, 237);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  height: auto;
  min-height: 76px;
  background: rgba(252, 251, 248, 0.98);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  gap: 24px;
  padding-block: 16px;
  min-height: 88px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  gap: 7px;
}

.wordmark-name {
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
  white-space: normal;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.wordmark-desc {
  line-height: 1.2;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 15px;
  font-size: 14px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  border-radius: 3px;
  color: rgb(83, 78, 85);
}

.desktop-nav a:hover {
  color: var(--brand);
  background: rgb(240, 233, 239);
  border-color: transparent;
}

.desktop-nav a[aria-current="page"] {
  color: var(--brand);
  background: rgb(240, 233, 239);
  border-color: transparent;
}

.desktop-nav .nav-contact {
  margin-left: 12px;
  padding-inline: 20px;
  border-color: rgb(185, 166, 185);
  color: var(--brand);
}

.desktop-nav .nav-contact[aria-current="page"] {
  background: var(--brand);
  color: rgb(255, 255, 255);
  border-color: var(--brand);
}

.desktop-nav .nav-contact:hover {
  background: var(--brand);
  color: rgb(255, 255, 255);
  border-color: var(--brand);
}

.mobile-nav summary {
  min-width: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  gap: 12px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgb(205, 191, 202);
  border-radius: 3px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  line-height: 1.2;
  color: var(--brand);
}

.menu-icon {
  position: relative;
  width: 18px;
  height: 12px;
  display: block;
  border-block: 1px solid;
}

.menu-icon::after {
  content: "";
  position: absolute;
  inset: 5px 0 auto;
  border-top: 1px solid;
}

.mobile-nav[open] summary {
  background: var(--brand);
  color: rgb(255, 255, 255);
  border-color: var(--brand);
}

.mobile-nav[open] .menu-icon {
  border-color: transparent;
}

.mobile-nav[open] .menu-icon::before {
  content: "";
  position: absolute;
  inset: 5px 0 auto;
  border-top: 1px solid;
  transform: rotate(45deg);
}

.mobile-nav[open] .menu-icon::after {
  content: "";
  position: absolute;
  inset: 5px 0 auto;
  border-top: 1px solid;
  transform: rotate(-45deg);
}

.mobile-panel {
  position: absolute;
  right: 0;
  background: var(--paper-000);
  top: calc(100% + 14px);
  width: min(420px, -40px + 100vw);
  padding: 24px;
  border: 1px solid rgb(217, 207, 216);
  border-radius: 4px;
  box-shadow: rgba(45, 21, 47, 0.125) 0 18px 45px;
  max-height: calc(100dvh - 115px);
  overflow-y: auto;
}

.menu-caption {
  margin: 0 0 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.mobile-panel nav {
  display: grid;
  gap: 0;
}

.mobile-panel a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  padding: 16px 8px;
  font-family: var(--font-serif);
  font-size: 23px;
  line-height: 1.2;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  border-color: var(--border);
}

.mobile-panel a::after {
  content: "↗";
  font: 16px var(--font-sans);
  color: rgb(141, 107, 139);
}

.mobile-panel a:hover {
  color: var(--brand);
  background: rgb(240, 233, 239);
}

.mobile-panel a[aria-current="page"] {
  color: var(--brand);
  background: rgb(240, 233, 239);
}

.mobile-panel .nav-contact {
  margin-top: 12px;
  padding-inline: 16px;
  color: rgb(255, 255, 255);
  background: var(--brand);
  border: 0;
  border-radius: 3px;
}

.mobile-panel .nav-contact::after {
  color: rgb(255, 255, 255);
}

.mobile-panel .nav-contact[aria-current="page"] {
  color: rgb(255, 255, 255);
  background: var(--iris-950);
}

.mobile-panel .nav-contact:hover {
  color: rgb(255, 255, 255);
  background: var(--iris-950);
}

.background-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.background-links .text-link {
  margin-top: 0;
  min-height: 44px;
  align-items: center;
}

.library-page > .section {
  padding-top: 0;
}

.library-filters {
  position: sticky;
  top: var(--site-header-height);
  z-index: 40;
  background: var(--bg);
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 20px;
  padding-block: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.library-filters label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.library-filters select {
  font: inherit;
  color: inherit;
  background: rgb(252, 251, 248);
  border: 1px solid rgb(185, 173, 185);
  border-radius: 4px;
  padding: 12px 36px 12px 14px;
  min-width: 180px;
}

.library-filters .btn {
  cursor: pointer;
}

.library-entry {
  padding: 32px 0;
  border-bottom: 1px solid rgb(221, 213, 220);
  max-width: 900px;
}

.library-entry h2 {
  font-size: clamp(25px, 3vw, 36px);
  margin: 12px 0;
}

.library-entry p {
  max-width: 720px;
}

.related-grid a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.library-entry a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.about-nav {
  position: sticky;
  top: var(--site-header-height);
  z-index: 45;
  border-bottom: 1px solid rgb(221, 213, 220);
  background: rgba(252, 251, 248, 0.98);
  backdrop-filter: blur(14px);
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.about-links a {
  font-size: 14px;
}

#education {
  scroll-margin-top: calc(var(--site-header-height) + var(--about-nav-height));
}

#experience {
  scroll-margin-top: calc(var(--site-header-height) + var(--about-nav-height));
}

#profile {
  scroll-margin-top: calc(var(--site-header-height) + var(--about-nav-height));
}

#experience h2 {
  margin-bottom: 32px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.related-grid h3 {
  margin: 12px 0;
}

#honours-publications {
  scroll-margin-top: calc(var(--site-header-height) + var(--about-nav-height));
}

.services-section {
  padding-block: 64px;
  border-bottom: 1px solid var(--border);
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: 64px;
  align-items: start;
}

.services-layout h2,
.services-details > p:first-child {
  margin-top: 0;
}

.services-details {
  max-width: 70ch;
}

.services-details > p:first-child {
  color: var(--text-muted);
}

.services-details h3 {
  margin: 32px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 26px;
}

.services-details > p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .services-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .services-layout h2 {
    margin-bottom: 0;
  }

  .services-section {
    padding-block: 40px;
  }
}

.author-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 64px;
  align-items: center;
}

.author-summary-grid > * {
  align-self: center;
}

.author-summary-identity {
  text-align: left;
}

.author-summary-identity h2 {
  margin-bottom: 28px;
}

.author-portrait {
  width: 176px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin: 0;
  display: block;
  background: rgb(232, 225, 232);
  border: 1px solid rgb(212, 199, 213);
  object-fit: cover;
}

.author-summary-copy {
  width: 100%;
  max-width: 620px;
  justify-self: end;
  text-align: left;
  transform: translateY(14px);
}

.author-summary-copy p {
  margin: 0 0 20px;
}

.author-summary-copy .background-links {
  gap: 8px 24px;
  margin-top: 24px;
}

.site-footer .footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.site-footer .footer-links {
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  max-width: 100%;
}

.site-footer .footer-links a,
.site-footer .footer-links button {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.home-cases-heading {
  display: grid;
  align-items: end;
  margin-bottom: 30px;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.home-cases-heading .home-cases-link {
  grid-column: 2;
  justify-self: end;
}

.profile-copy h2 {
  margin-bottom: 24px;
}

@media (max-width: 1023px) {

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

  .section-head .section-title {
    grid-column: 1 / span 8;
  }

  .section-head .section-intro {
    grid-column: 9 / span 4;
  }

  .profile-copy {
    grid-column: 1 / span 7;
  }

  .profile-aside {
    grid-column: 8 / span 5;
  }

  .case-main {
    grid-column: 1 / span 8;
  }

  .case-side {
    grid-column: 9 / span 4;
  }
}

@media (max-width: 767px) {

  :root {
    --site-header-height: 76px;
    --about-nav-height: 0px;
  }

  .article-prose {
    padding-block: 72px;
  }

  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .wordmark-desc {
    display: none;
  }

  .section {
    padding-block: 72px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .case-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .profile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .page-hero-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .section-head {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: var(--space-8);
  }

  .footer-name {
    grid-column: 1 / -1;
  }

  .case-side {
    grid-column: 1 / -1;
  }

  .case-main {
    grid-column: 1 / -1;
  }

  .profile-aside {
    grid-column: 1 / -1;
    transform: none;
  }

  .about-nav {
    display: none;
  }

  .profile-copy {
    grid-column: 1 / -1;
  }

  .page-hero-side {
    grid-column: 1 / -1;
  }

  .page-hero-main {
    grid-column: 1 / -1;
  }

  .lead {
    font-size: 18px;
  }

  .section-head .section-intro {
    margin-top: 8px;
  }

  .article-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: var(--space-6);
  }

  .article-read {
    text-align: left;
  }

  .experience-item {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 16px;
  }

  .experience-description {
    grid-column: 1 / -1;
    margin-top: 8px;
  }

  .experience-role {
    grid-column: 1 / -1;
  }

  .experience-date {
    grid-column: 1 / -1;
  }

  .article-hero {
    padding-block: 72px 56px;
  }

  .article-prose li {
    font-size: 17px;
    line-height: 1.68;
  }

  .article-prose p {
    font-size: 17px;
    line-height: 1.68;
  }

  .article-prose blockquote {
    font-size: 23px;
    margin-block: var(--space-8);
  }
}

@media (max-width: 479px) {

  .btn {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  ::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  ::before {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {

  .resume-records {
    background: white;
    color: black;
  }

  .resume-records h2,
  .resume-records h3,
  .resume-records p {
    color: black;
  }

  .resume-record {
    break-inside: avoid;
  }

  .mobile-nav {
    display: none !important;
  }

  .site-footer {
    display: none !important;
  }

  .site-header {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .article-prose {
    padding-block: 32px;
  }

  .page-hero {
    padding-block: 32px;
  }

  .section {
    padding-block: 32px;
  }

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

@media (max-width: 767px) {

  .case-media-wrap {
    margin-top: var(--space-8);
  }

  .case-media {
    min-height: 280px;
  }
}

@media (max-width: 1100px) {

  .home-cases-link {
    grid-column: 2;
    justify-self: start;
    margin-top: 16px;
  }
}

@media (max-width: 760px) {

  .home-hero-layout {
    display: block;
    padding: 64px 0 70px;
  }

  .home-hero-actions {
    flex-wrap: wrap;
    gap: 12px;
  }

  .home-hero-button {
    min-width: 0;
  }

  .home-cases-heading {
    display: block;
  }

  .home-cases-link {
    display: inline-flex;
    margin-top: 22px;
  }
}

@media (max-width: 480px) {

  .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero-button {
    width: 100%;
  }
}

@media (max-width: 1100px) {

  .container {
    width: min(100% - 48px, 1264px);
  }
}

@media (max-width: 760px) {

  .container {
    width: calc(100% - 40px);
  }
}

@media (max-width: 480px) {

  .container {
    width: calc(100% - 32px);
  }
}

@media (max-width: 1000px) {

  .home-cases-link {
    grid-column: auto;
    justify-self: start;
  }

  .section-head .section-title {
    grid-column: 1 / span 7;
  }

  .section-head .section-intro {
    grid-column: 8 / span 5;
  }
}

@media (max-width: 767px) {

  .home-hero-layout {
    display: grid;
    gap: 20px;
  }

  .home-eyebrow {
    font-size: 12px;
    line-height: 1.5;
  }

  .home-hero-lead {
    font-size: 16px;
  }

  .home-hero-actions {
    display: flex;
    flex-direction: row;
  }

  .home-hero-button {
    width: auto;
  }

  .section-head .section-intro {
    grid-column: 1 / -1;
  }

  .section-head .section-title {
    grid-column: 1 / -1;
  }

  .home-cases-heading {
    display: grid;
    gap: 12px;
  }

  .home-cases-link {
    margin-top: 0;
  }

  .case-cards {
    gap: 24px;
  }

  .home-notes .article-row {
    gap: 12px;
  }

  .home-notes .article-meta br {
    display: none;
  }

  .home-notes .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}

@media (max-width: 560px) {

  .home-hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-hero h1 {
    font-size: clamp(36px, 9vw, 48px);
    max-width: 14ch;
  }

  .wordmark-desc {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1000px) {

  .article-row {
    grid-template-columns: 125px minmax(0, 1fr) 85px;
    gap: 24px;
  }
}

@media (max-width: 1000px) {

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
    flex-shrink: 0;
  }

  .home-hero-layout {
    min-height: 460px;
    padding-block: 56px;
  }

  .home-hero-art {
    right: -24px;
  }
}

@media (max-width: 767px) {

  .nav-shell {
    min-height: 76px;
    padding-block: 12px;
  }

  .home-hero-layout {
    grid-template-columns: 1fr;
    min-height: 440px;
    padding-block: 56px;
  }

  .home-hero-copy {
    width: 70%;
  }

  .home-hero h1 {
    font-size: clamp(36px, 7vw, 50px);
  }

  .home-hero-art {
    inset: 0 -20px 0 45%;
    opacity: 0.12;
  }

  .home-hero-art img {
    object-position: 60% center;
  }

  .home-hero-lead {
    max-width: 34ch;
  }

  .introduction-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .introduction-grid h2 br {
    display: none;
  }

  .introduction-copy {
    max-width: 60ch;
    justify-self: start;
  }
}

@media (max-width: 480px) {

  .home-hero-copy {
    width: 88%;
  }

  .home-hero-art {
    left: 35%;
    right: -16px;
    opacity: 0.09;
  }

  .home-hero-layout {
    min-height: 430px;
    padding-block: 48px;
  }

  .wordmark-name {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .mobile-nav summary {
    padding-inline: 10px;
    gap: 9px;
  }

  .mobile-panel {
    right: 0;
    width: calc(-32px + 100vw);
  }
}

@media print {

  .home-notes.dark-section {
    background: white;
    color: black;
  }

  .home-notes.dark-section .eyebrow {
    color: black;
  }

  .home-notes.dark-section .muted {
    color: black;
  }

  .home-notes.dark-section .text-link {
    color: black;
  }

  .home-notes.dark-section .article-read {
    color: black;
  }

  .home-notes.dark-section .article-meta {
    color: black;
  }

  .home-notes.dark-section .article-row p {
    color: black;
  }

  .home-notes.dark-section .article-row h3 {
    color: black;
  }

  .home-notes.dark-section h2 {
    color: black;
  }
}

@media (max-width: 700px) {

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

  .library-filters > div {
    flex: 1 1 0;
    min-width: 0;
  }

  .library-filters select {
    width: 100%;
    min-width: 0;
    padding-left: 8px;
    font-size: 14px;
  }

  .library-filters {
    gap: 10px;
    padding-block: 12px;
  }

  .library-filters .btn {
    min-height: 44px;
    padding: 10px;
  }

  .library-filters label {
    margin-bottom: 4px;
  }



  .library-page .page-hero {
    padding: 48px 0 32px;
  }


  .library-entry .eyebrow span {
    display: block;
  }

  .resume-record {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .resume-record-period {
    padding-top: 0;
  }

  .author-summary-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .author-summary-copy {
    margin: 0;
    justify-self: stretch;
    transform: none;
  }

  .site-footer .footer-links {
    justify-content: flex-start;
    gap: 16px;
  }

  .home-cases-heading {
    grid-template-columns: 1fr;
  }

  .home-cases-heading .home-cases-link {
    grid-column: 1;
    justify-self: start;
  }

  .author-summary-copy .background-links {
    justify-content: flex-start;
  }
}
