@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #5c5c5c;
  --accent: #9b0000;
  --accent-strong: #760000;
  --accent-text: #760000;
  --line: #c9c9c9;
  --soft-line: #e6e6e6;
  --wash: #f1f1f1;
  --wash-strong: #dedede;
  --sans: 'Libre Franklin', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  --content: 1320px;
}

html[data-theme='dark'] {
  color-scheme: dark;
  --paper: #000000;
  --ink: #f7f7f7;
  --muted: #b7b7b7;
  --accent: #b70000;
  --accent-strong: #b70000;
  --accent-text: #d0d0d0;
  --line: #4b4b4b;
  --soft-line: #292929;
  --wash: #000000;
  --wash-strong: #000000;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.68;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--accent-text);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 5px;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  margin-bottom: 2rem;
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

p {
  max-width: 64ch;
}

button {
  font: inherit;
}

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

.wrap {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-inline: clamp(1.35rem, 5vw, 5rem);
}

.skip {
  position: absolute;
  top: -8rem;
  left: 1rem;
  z-index: 20;
  padding: 0.8rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.skip:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 6.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand strong {
  font-weight: 800;
}

.brand span {
  color: var(--accent);
  font-weight: 900;
}

.header-tools,
nav ul {
  display: flex;
  align-items: center;
}

nav ul {
  gap: clamp(0.9rem, 2.2vw, 2rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

nav a {
  display: block;
  padding-block: 0.6rem;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a[aria-current='page'] {
  color: var(--ink);
  box-shadow: inset 0 -3px var(--accent);
}

.eyebrow {
  margin-bottom: 1.4rem;
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(250px, 0.65fr);
  gap: clamp(3rem, 8vw, 9rem);
  min-height: min(650px, calc(100vh - 6.5rem));
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.hero-main {
  align-self: center;
}

.hero h1 {
  max-width: 9.5ch;
}

.intro {
  max-width: 49rem;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 350;
  line-height: 1.5;
}

.hero-note {
  align-self: end;
  padding-top: 1.5rem;
  border-top: 8px solid var(--accent);
}

.hero-note p:not(.eyebrow) {
  font-size: 0.98rem;
}

.hero-index {
  display: block;
  margin-bottom: 1.25rem;
  font-size: clamp(3.4rem, 6vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  padding: 0.7rem 1.2rem;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

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

.text-link {
  font-weight: 700;
}

.experience-strip {
  display: flex;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-block: 1.35rem;
  border-block: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
}

.experience-strip span:first-child {
  color: var(--muted);
}

.section {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-bottom: 1px solid var(--line);
}

/* Resume dividers belong to the full-width timeline and footer, not narrow copy. */
body[data-page='resume'] .capabilities,
body[data-page='resume'] main > .section.reading:last-child {
  border-bottom: 0;
}

body[data-page='resume'] .site-footer {
  border-top: 1px solid var(--line);
}

.capability-band {
  padding-block: clamp(3.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.capability-band + .section {
  padding-top: clamp(3.5rem, 6vw, 5rem);
}

.section-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.section-top h2 {
  margin-bottom: 0;
}

.section-top > p,
.section-top > a {
  justify-self: end;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  padding: 0;
  margin: 0;
  list-style: none;
}

.capability-grid > li {
  list-style: none;
  min-height: 17rem;
  padding: 1.4rem;
  border-right: 1px solid var(--line);
}

.capability-grid > li:last-child {
  border-right: 0;
}

.capability-grid > li > span {
  display: block;
  margin-bottom: 5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.capability-grid h2,
.capability-grid h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 850;
}

.capability-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.capability-grid .capability-title {
  margin: 0 0 0.7rem;
  color: var(--ink);
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-wrap: balance;
}

.capability-grid-compact {
  margin-block: 1rem clamp(5rem, 10vw, 9rem);
}

.project-grid {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project {
  --card-pad: clamp(1.6rem, 4vw, 3.3rem);
  list-style: none;
  position: relative;
  min-height: 35rem;
  padding: var(--card-pad);
  padding-bottom: calc(var(--card-pad) + 2.5rem);
  background: var(--paper);
}

.project:nth-child(3n + 1) {
  background: var(--wash);
}

.project .meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project .project-title {
  max-width: 16ch;
  margin-bottom: 1.4rem;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1;
}

.card-strip {
  display: block;
  overflow: hidden;
  height: 6rem;
  margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) 1.8rem;
  background: #fff;
}

.card-strip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--card-crop, 50%);
}

.project p:not(.tags) {
  max-width: 48ch;
  font-size: 0.98rem;
}

.tags {
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-arrow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: var(--card-pad);
  z-index: 1;
  font-size: 0.8rem;
  font-weight: 750;
}

.project-arrow:focus-visible {
  outline: none;
}

.project-arrow:focus-visible::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 4px solid var(--accent);
  pointer-events: none;
}

@media (forced-colors: active) {
  .project-arrow:focus-visible::after {
    border-color: Highlight;
  }
}

.project:hover {
  box-shadow: inset 0 -8px var(--accent);
}

.split,
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 9vw, 9rem);
}

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

.skill-list li {
  padding-block: 1.7rem;
  border-top: 1px solid var(--line);
}

.skill-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.skill-list h3 {
  margin-bottom: 0.55rem;
}

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

.statement {
  padding-block: clamp(6rem, 14vw, 13rem);
  border-bottom: 1px solid var(--line);
}

.statement p {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 6.2rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.callout {
  margin-block: clamp(4rem, 9vw, 9rem);
  padding: clamp(2.5rem, 7vw, 7rem);
  background: var(--accent-strong);
  color: #ffffff;
}

.callout h2 {
  max-width: 18ch;
}

.callout a,
.callout .eyebrow {
  color: #ffffff;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  padding-block: 2.3rem 3rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
  justify-self: end;
  flex-wrap: wrap;
}

.theme-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-icon {
  display: none;
  font-size: 1.2rem;
  line-height: 1;
}

.theme-toggle[data-target='dark'] .theme-icon-moon,
.theme-toggle[data-target='light'] .theme-icon-sun {
  display: inline;
}

.theme-icon-moon {
  color: var(--muted);
  line-height: 0;
}

.theme-icon svg {
  display: block;
}

.page-head {
  max-width: 1100px;
  padding-block: clamp(5rem, 11vw, 10rem);
}

.page-head h1 {
  max-width: 12ch;
  font-size: clamp(3.25rem, 6.5vw, 6.5rem);
}

.page-head .lede {
  max-width: 49rem;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  font-weight: 350;
}

.project-head {
  max-width: 1180px;
}

.project-head h1 {
  max-width: 13ch;
}

/* Pilot: a full-bleed, scroll-panning image strip on the Redwood work page. */
.project-head--strip {
  padding-bottom: 0;
}
.project-head--strip .lede {
  margin-bottom: 0;
}
.work-image-strip {
  position: relative;
  width: var(--strip-viewport, 100%);
  margin-inline: calc((100% - var(--strip-viewport, 100%)) / 2);
  margin-block: clamp(2rem, 4vw, 3.5rem);
  height: clamp(8rem, 12vw, 13rem);
  overflow: hidden;
  background: #eee9db;
}
.work-image-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--strip-pan, 50%);
}
.work-image-strip + .meta-row {
  margin-top: 0;
}
.work-image-strip[data-pan-start='entry'] {
  background: #fff;
}
.work-image-strip[data-pan-start='entry'] img {
  display: block;
  width: min(100%, 1280px);
  margin-inline: auto;
}
.work-image-strip--training {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  background: #000;
}
.work-image-strip--training .strip-panel {
  position: relative;
  overflow: hidden;
}
.work-image-strip--training img {
  position: absolute;
  top: calc(-1 * var(--strip-pan, 50%));
  height: 200%;
  object-position: center;
}
.work-image-strip--training .strip-panel:first-child img {
  top: calc(-0.35 * var(--strip-pan, 50%));
  object-position: 27% center;
}
.work-image-strip--training .strip-panel:last-child img {
  object-position: 70% center;
}
@media (max-width: 600px) {
  .work-image-strip--training {
    grid-template-columns: 1fr 1fr;
  }
  .work-image-strip--training .strip-panel:last-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .work-image-strip img {
    object-position: center 50%;
  }
}

.back {
  display: inline-block;
  margin-bottom: 3.5rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.portfolio-path {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
  margin-bottom: clamp(5rem, 9vw, 9rem);
  padding: clamp(2rem, 5vw, 5rem);
  background: var(--accent);
  color: #ffffff;
}

.portfolio-path .eyebrow {
  color: #ffffff;
}

.portfolio-path h2 {
  max-width: 16ch;
  margin-bottom: 1rem;
}

.portfolio-path p {
  margin-bottom: 0;
}

.portfolio-path .button {
  border-color: #ffffff;
  background: #ffffff;
  color: #111111;
}

.portfolio-heading {
  margin-top: 1rem;
}

.meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: clamp(4rem, 8vw, 7rem);
  background: var(--line);
  border: 1px solid var(--line);
}

.meta-row > div {
  padding: 1.5rem;
  background: var(--paper);
}

.meta-row strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pattern-study {
  margin-bottom: clamp(5rem, 10vw, 9rem);
  padding-block: clamp(3rem, 7vw, 6rem);
  border-block: 1px solid var(--line);
}

.case-hero-figure {
  margin: 0 0 clamp(5rem, 10vw, 9rem);
}

.case-hero-figure img {
  width: 100%;
  max-height: 48rem;
  border: 1px solid var(--line);
  object-fit: cover;
}

.dashboard-hero {
  overflow: hidden;
  border: 1px solid var(--line);
}

.dashboard-hero img {
  display: block;
  aspect-ratio: 4 / 3;
  max-height: none;
  border: 0;
  object-position: top;
}

.dashboard-hero figcaption {
  margin: 0;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
}

.mvp-flow {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.5fr);
  gap: clamp(3rem, 8vw, 8rem);
  margin-bottom: clamp(5rem, 10vw, 9rem);
  padding-block: clamp(3rem, 7vw, 6rem);
  border-block: 1px solid var(--line);
}

.mvp-flow h2 {
  max-width: 15ch;
  margin-top: 0;
}

.mvp-flow ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: var(--line);
  list-style: none;
}

.mvp-flow li {
  min-height: 12rem;
  padding: 1.5rem;
  background: var(--bg);
}

.mvp-flow li span {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--accent-text);
  font-size: 0.72rem;
  font-weight: 800;
}

.mvp-flow li strong {
  display: block;
  font-size: 1.3rem;
}

.mvp-flow li p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.case-hero-figure figcaption,
.component-evidence figcaption,
.artifact-feature-image figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.pattern-study-intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1.55fr);
  gap: clamp(2rem, 8vw, 8rem);
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.pattern-study-intro h2 {
  max-width: 16ch;
  margin: 0;
}

.pattern-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.component-evidence {
  margin: 0 0 clamp(3rem, 7vw, 6rem);
}

.component-evidence img {
  width: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
}

.dashboard-table-detail {
  margin-bottom: clamp(5rem, 10vw, 9rem);
}

.dashboard-table-detail img {
  height: clamp(20rem, 44vw, 34rem);
  object-fit: cover;
  object-position: center 49%;
}

.pattern-before,
.pattern-options {
  display: grid;
  gap: 1px;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--paper);
}

.pattern-before {
  box-shadow: inset 0 8px var(--accent);
}

.pattern-before span,
.pattern-options span {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pattern-before strong,
.pattern-options strong {
  margin-top: 0.85rem;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.pattern-before b,
.pattern-options b {
  display: block;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
}

.pattern-options b {
  color: var(--accent-text);
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(220px, 0.7fr);
  gap: clamp(3rem, 9vw, 9rem);
}

.reading {
  max-width: 800px;
}

.reading h2 {
  margin-top: 3.5rem;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
}

.reading h3 {
  margin-top: 2rem;
}

.reading li {
  margin-block: 0.5rem;
}

.reading ul {
  padding-left: 1.3rem;
}

.case-study section {
  position: relative;
  padding: 0 0 clamp(4.5rem, 9vw, 8rem) clamp(2.5rem, 6vw, 6rem);
}

.case-study section + section {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.case-study h2 {
  margin-top: 0;
}

.case-study p {
  font-size: 1.08rem;
}

.section-number {
  position: absolute;
  top: 0.25rem;
  left: 0;
  color: var(--accent-text);
  font-size: 0.72rem;
  font-weight: 800;
}

.case-study section + section .section-number {
  top: calc(clamp(3.5rem, 7vw, 6rem) + 0.25rem);
}

.aside {
  align-self: start;
  position: sticky;
  top: 2rem;
  padding-top: 1.2rem;
  border-top: 8px solid var(--accent);
  font-size: 0.88rem;
}

.aside ul {
  padding-left: 1.1rem;
}

.aside li {
  margin-block: 0.55rem;
}

.artifact-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  margin-bottom: clamp(6rem, 12vw, 11rem);
  padding: clamp(2.5rem, 7vw, 7rem);
  background: var(--wash);
}

.artifact-feature h2 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
}

.artifact-feature-image {
  margin: 0;
}

.artifact-feature-image img {
  width: 100%;
  min-height: 22rem;
  border: 1px solid var(--line);
  object-fit: cover;
}

.confidential-mark {
  display: grid;
  min-height: 22rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.confidential-mark strong {
  align-self: center;
  color: var(--accent-text);
  font-size: clamp(2.5rem, 7vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.confidential-mark span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.confidential-mark span:last-child {
  align-self: end;
  justify-self: end;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 7vw, 7rem);
  margin-bottom: clamp(6rem, 12vw, 11rem);
}

.artifact-grid figure {
  margin: 0 0 2rem;
}

.artifact-grid img {
  width: 100%;
  height: clamp(260px, 35vw, 430px);
  border: 1px solid var(--line);
  background: #ffffff;
  object-fit: cover;
  object-position: top;
}

.artifact-grid figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.artifact-grid h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.archive-note {
  margin-block: clamp(5rem, 9vw, 9rem);
  padding: 1.5rem;
  border-left: 8px solid var(--accent);
  background: var(--wash);
}

.archive-note p {
  margin: 0;
  font-size: 0.9rem;
}

.timeline,
.talks {
  padding-left: 0;
  list-style: none;
}

.timeline > li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding-block: 2.3rem;
  border-top: 1px solid var(--line);
}

.timeline .date {
  color: var(--accent-text);
  font-size: 0.82rem;
  font-weight: 750;
}

.timeline h2 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.timeline h3 {
  margin-bottom: 0.7rem;
  font-size: 1.08rem;
}

.timeline ul {
  padding-left: 1.2rem;
}

.timeline li li {
  margin-bottom: 0.7rem;
}

.role + .role {
  margin-top: 2rem;
}

.talks li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
}

.talks h3 {
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.talks p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.talks .year {
  color: var(--accent-text);
  font-weight: 750;
}

.portrait {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0;
  filter: grayscale(1);
  object-fit: cover;
}

.caption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-email {
  font-size: clamp(1.6rem, 4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.print-button {
  padding: 0.65rem 1rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.print-button:hover {
  background: var(--wash);
}

.print-contact {
  display: none;
}

@media (max-width: 900px) {
  .about-grid .portrait {
    height: auto;
  }

  .hero,
  .section-top,
  .split,
  .about-grid,
  .article-layout,
  .artifact-feature,
  .pattern-study-intro,
  .mvp-flow {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 4rem;
  }

  .hero-note {
    max-width: 34rem;
  }

  .section-top > p,
  .section-top > a {
    justify-self: start;
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-grid > li:nth-child(2) {
    border-right: 0;
  }

  .capability-grid > li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .aside {
    position: static;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 1rem;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
    padding-block: 1.25rem;
  }

  nav ul {
    gap: 0.35rem 1rem;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 0.72rem;
  }

  .hero {
    padding-block: 4.5rem;
  }

  .project-grid,
  .artifact-grid,
  .meta-row,
  .pattern-flow {
    grid-template-columns: 1fr;
  }

  .project {
    min-height: 27rem;
  }

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

  body[data-page='resume'] .capabilities .split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  body[data-page='resume'] .capabilities .split p {
    margin: 0;
  }
  body[data-page='resume'] .capabilities .split + p {
    margin: 1.5rem 0 0;
  }

  .capability-grid > li {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-grid > li:last-child {
    border-bottom: 0;
  }

  .capability-grid > li > span {
    margin-bottom: 2.5rem;
  }

  .portfolio-path {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .case-study section {
    padding-left: 2rem;
  }

  .mvp-flow ol {
    grid-template-columns: 1fr;
  }

  .timeline > li,
  .talks li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

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

  .footer-links {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

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

/* Visual portfolio: the artwork carries the story. */
.nav-lock {
  margin-left: 0.35rem;
  vertical-align: -0.05em;
}

.hero h1 {
  max-width: 12ch;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

html[data-theme='dark'] .hero h1 em {
  color: #b70000;
}

.capability-band {
  padding-top: 0;
}

.about-grid .aside h2 {
  font-size: 1.4rem;
  letter-spacing: -0.025em;
}

html[data-theme='dark'] .talks .year {
  align-self: start;
  width: fit-content;
  background: #000000;
  color: #b70000;
  font-size: 1.25rem;
  font-weight: 750;
}

.design-head {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.design-head h1 {
  max-width: 19ch;
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
}

.design-context {
  max-width: 65ch;
  margin-bottom: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.design-card {
  list-style: none;
  position: relative;
  min-width: 0;
  min-height: 31rem;
  aspect-ratio: 1;
  background: var(--paper);
}

.design-card > a {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  flex-direction: column;
  text-decoration: none;
}

.design-card-image {
  display: grid;
  position: relative;
  flex: 1;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  padding: 0;
  background: #e9e9e9;
}

html:not([data-theme='dark']) .design-card[data-design='training'] .design-card-image {
  background: #ffffff;
}

.design-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: clamp(1rem, 3vw, 2.5rem);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 12px #00000015);
}

.design-card-caption {
  position: relative;
  padding: 1.5rem 3.8rem 1.5rem 1.5rem;
  border-top: 1px solid var(--line);
}

.design-card-caption .eyebrow {
  margin-bottom: 0.55rem;
  font-size: 0.65rem;
}

.design-card-caption h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.design-card-number {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  position: absolute;
  right: 1.5rem;
  bottom: 1.6rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.design-card:hover .design-card-caption {
  box-shadow: inset 0 -5px var(--accent);
}

.design-card > a:focus-visible {
  z-index: 1;
  outline: none;
}

.design-card > a:focus-visible::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 4px solid var(--accent);
  pointer-events: none;
}

@media (forced-colors: active) {
  .design-card > a:focus-visible::after {
    border-color: Highlight;
  }
}

.design-card[data-design='mobile'] .design-card-caption,
.design-card[data-design='graphic-web'] .design-card-caption {
  background: var(--paper);
  color: var(--ink);
}

.design-card-image.artwork-mat-white img {
  filter: none;
}

html[data-theme='dark'] .timeline .date {
  font-size: 14pt;
  font-weight: 750;
  color: #b70000;
}

body[data-page='home'] .callout,
body[data-page='work'] .callout,
body[data-page='speaking'] .callout {
  background: #760000;
}

.design-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding-block: 1.4rem;
  border-block: 1px solid var(--line);
}

.design-pagination a {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3rem;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
}

.design-pagination a:last-child {
  justify-content: flex-end;
  text-align: right;
}

.design-pagination small {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-weight: 400;
}

.design-nav-arrow {
  font-size: 2.6rem;
  font-weight: 400;
}

.design-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.design-artwork {
  min-width: 0;
  margin: 0;
}

.design-artwork-feature {
  grid-column: 1 / -1;
}

.artwork-mat {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: #e9e9e9;
}

.artwork-mat img {
  width: 100%;
  max-height: 38rem;
  object-fit: contain;
}

.design-artwork-feature .artwork-mat img {
  max-height: 50rem;
}

.artwork-preview {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
}

.artwork-preview img,
.design-artwork-feature .artwork-preview img {
  position: absolute;
  top: var(--preview-top);
  left: var(--preview-left);
  width: var(--preview-width);
  height: auto;
  max-width: none;
  max-height: none;
  padding: 0;
}

.design-card-image .artwork-preview {
  width: calc(100% - clamp(2rem, 6vw, 5rem));
}

.design-artwork figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.design-back-bottom {
  margin-top: 2rem;
  font-size: 0.85rem;
}

.design-bottom-links {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.design-archives {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 1050px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    padding-block: 1.25rem;
  }
}

@media (max-width: 680px) {
  .design-card {
    min-height: 24rem;
  }
  .design-gallery {
    grid-template-columns: 1fr;
  }
  .design-pagination {
    gap: 0.8rem;
  }
  .design-pagination a {
    gap: 0.5rem;
  }
  .design-nav-arrow {
    font-size: 2rem;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #000000;
    font-size: 10pt;
  }

  .wrap {
    max-width: none;
    padding: 0;
  }

  .site-header,
  .site-footer,
  .no-print,
  .skip,
  .callout,
  .portfolio-path {
    display: none;
  }

  .page-head {
    padding: 0;
  }

  .page-head h1 {
    font-size: 32pt;
  }

  .timeline > li {
    grid-template-columns: 100px 1fr;
    gap: 15pt;
    padding-block: 10pt;
    break-inside: avoid;
  }

  .section {
    padding-block: 15pt;
  }

  a {
    color: inherit;
  }

  .print-contact {
    display: block !important;
  }

  h2,
  h3 {
    break-after: avoid;
  }
}
/* Full-viewport image viewer and private portfolio controls. */
.artwork-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.artwork-mat-white {
  background: #ffffff;
}
.design-gallery-graphic-web .artwork-mat img {
  width: auto;
  max-width: 100%;
}

/* A compact archive wall: artwork is viewed together, not enlarged individually. */
.studio-archive {
  margin-block: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: #fff;
  color: #262626;
}

.studio-archive-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #d5d5d5;
}

.studio-archive-heading h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.studio-archive-heading p {
  margin: 0;
  font-size: 0.75rem;
  color: #595959;
}

.studio-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem) 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.studio-wall li {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 12rem;
  padding: 0;
  margin: 0;
}

.studio-wall li:nth-child(12n + 1) {
  grid-column: span 2;
}

.studio-wall img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 21rem);
  max-height: 16rem;
  object-fit: contain;
}

@media (max-width: 900px) {
  .studio-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .studio-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 0.75rem;
  }
  .studio-wall li {
    min-height: 8rem;
  }
  .studio-wall li:nth-child(12n + 1) {
    grid-column: auto;
  }
  .studio-wall img {
    max-height: 12rem;
  }
}

@media (max-width: 380px) {
  .studio-wall {
    grid-template-columns: 1fr;
  }
}

.artwork-fade-bottom {
  -webkit-mask-image: linear-gradient(to bottom, #000 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 92%, transparent 100%);
}

.studio-slideshow {
  margin-block: clamp(2rem, 5vw, 4rem);
}

.studio-slideshow-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.studio-slideshow-heading h2 {
  font-size: 1.5rem;
  letter-spacing: 0;
  margin: 0;
}

.studio-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #fff;
  color: #262626;
}
.studio-panel[hidden] {
  display: none;
}
/* Uneven column flow avoids repeated horizontal rows, without overlaps. */
.studio-collage {
  columns: 4;
  column-gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.studio-collage li {
  break-inside: avoid;
  padding-block: 0.5rem 1.5rem;
  display: flex;
  justify-content: center;
}
.studio-collage li:nth-child(3n + 2) {
  padding-top: 2rem;
}
.studio-collage li:nth-child(4n) {
  padding-inline: 0.65rem;
}
.studio-collage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 13rem;
  object-fit: contain;
}
.studio-collage .studio-poster {
  padding-block: 0.75rem 2rem;
}
/* Cropped artwork can be sized directly, without magnifying blank margins. */
.studio-collage .studio-poster img {
  max-height: 20rem;
}
.studio-collage .studio-identity img {
  max-height: 10rem;
  max-width: 90%;
}
.studio-slide-note {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 1rem 0 0;
}
@media (max-width: 800px) {
  .studio-collage {
    columns: 3;
    column-gap: 1.25rem;
  }
}
@media (max-width: 540px) {
  .studio-collage {
    columns: 2;
    column-gap: 1rem;
  }
  .studio-panel {
    padding: 1rem;
  }
}
.lightbox {
  /* Keep the viewer independent of the studio archive slideshow. */
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  margin: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.lightbox[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 22rem);
}
.lightbox::backdrop {
  background: #000000cc;
}
.lightbox-close {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 2rem;
  cursor: pointer;
}
.lightbox-stage {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  padding: clamp(1rem, 3vw, 3rem);
}
.lightbox-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 6rem);
  object-fit: contain;
}

.lightbox-image-window {
  display: contents;
}

.lightbox-image-window.artwork-view-crop {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--crop-ratio);
  width: min(100%, var(--crop-native-width), calc((100dvh - 6rem) * var(--crop-ratio)));
}

.lightbox-image-window.artwork-view-crop img {
  position: absolute;
  top: var(--preview-top);
  left: var(--preview-left);
  width: var(--preview-width);
  height: auto;
  max-width: none;
  max-height: none;
}

.lightbox-stage.artwork-scroll {
  display: block;
  overflow: auto;
}

.lightbox-stage.artwork-scroll img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: none;
  margin-inline: auto;
}

.lightbox-stage:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
.lightbox-info {
  align-self: center;
  padding: 5rem 2rem 2rem;
}
.lightbox-info h2 {
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.lightbox-caption,
.lightbox-count {
  color: var(--muted);
  font-size: 0.9rem;
}
.lightbox-controls {
  display: flex;
  gap: 1rem;
}
.lightbox-controls button {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  line-height: 1;
  cursor: pointer;
}
.lightbox-controls svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  display: block;
}
.login-panel {
  max-width: 45rem;
}
.login-form {
  display: grid;
  gap: 0.7rem;
  max-width: 25rem;
  margin-top: 2rem;
}
.login-form label {
  font-weight: 650;
}
.login-form input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.login-form input:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
}
.login-form .button {
  justify-content: center;
  margin-top: 1rem;
  cursor: pointer;
}
.login-error {
  padding: 1rem;
  border-left: 4px solid var(--accent);
  background: var(--wash);
}
.design-logout button {
  padding: 0.5rem 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}
@media (max-width: 680px) {
  .lightbox[open] {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .lightbox-stage {
    padding: 4.5rem 1rem 1rem;
  }
  .lightbox-stage img {
    max-height: calc(100dvh - 18rem);
  }
  .lightbox-info {
    padding: 1rem 1.5rem;
    overflow-y: auto;
    max-height: 14rem;
  }
  .lightbox-info h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  .lightbox-info p {
    margin-bottom: 0.5rem;
  }
}
