:root {
  color-scheme: light dark;
  --background: #fff;
  --ink: #111;
  --muted: #767676;
  --line: #dedede;
  --work-selected-bg: #f6f8fa;
  --work-selected-line: #ced9e1;
  --work-line: rgba(206, 217, 225, 0.2);
  --blue: #0d97ff;
  --focus: #147dcc;
  --shadow: 0 8px 15px rgba(0, 0, 0, 0.13), 0 2px 4px rgba(0, 0, 0, 0.12);
  --collage-drop-shadow: 0 4px 8px 4px rgba(0, 0, 0, 0.15);
  --motion-duration: 180ms;
  --motion-reduced-duration: 120ms;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font-heading: "Calibre", "SF Pro Text", -apple-system, sans-serif;
  --font-body: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --header-width: 960px;
  --column-width: 520px;
  --page-gutter: clamp(22px, 5vw, 64px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #202123;
    --ink: #f5f5f5;
    --muted: #a8a8aa;
    --line: #525357;
    --work-selected-bg: #181b1f;
    --work-selected-line: #424749;
    --work-line: rgba(206, 217, 225, 0.05);
    --focus: #73aaff;
    --shadow: 0 22px 52px rgba(0, 0, 0, 0.48), 0 4px 10px rgba(0, 0, 0, 0.36);
    --collage-drop-shadow: 0 4px 8px 4px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  min-width: 320px;
  overflow-x: clip;
  scroll-behavior: auto;
  scrollbar-gutter: stable both-edges;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: -0.02em;
  line-height: 20px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

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

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

.progressive-media {
  display: block;
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--background) 82%, var(--ink));
}

.progressive-media__placeholder,
.progressive-media__image {
  display: block;
  width: 100%;
  height: 100%;
}

.progressive-media__placeholder {
  position: absolute;
  z-index: 0;
  inset: 0;
  filter: blur(12px);
  object-fit: cover;
  pointer-events: none;
  scale: 1.08;
}

.progressive-media__image {
  position: relative;
  z-index: 1;
  opacity: 1;
  object-fit: cover;
  transition: none;
}

body[data-page-key="about"] .progressive-media__image,
body[data-page-key="photos"] .progressive-media__image,
body[data-page-key="work"] .progressive-media__image,
body[data-page-key="resume"] .progressive-media__image {
  transition: opacity var(--motion-duration) var(--ease-in-out);
}

.progressive-media.is-loading .progressive-media__image {
  opacity: 0;
}

.progressive-media--contain .progressive-media__placeholder,
.progressive-media--contain .progressive-media__image {
  object-fit: contain;
}

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

h1,
h2,
h3,
.site-identity__name {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 18px;
  font-size: 26px;
  line-height: 1.15;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
}

h3 {
  font-size: 14px;
  line-height: 1.35;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--background);
  transform: translateY(-150%);
}

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

.site-header {
  display: block;
  width: min(calc(100% - (2 * var(--page-gutter))), var(--column-width));
  margin: 0 auto;
  padding-top: 96px;
}

.site-identity {
  display: inline-flex;
  flex-direction: column;
  color: inherit;
  width: var(--column-width);
  max-width: 100%;
  line-height: 1;
  text-decoration: none;
}

.site-identity__name {
  font-size: 26px;
  line-height: 34px;
}

.site-identity__role {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 18px;
}

.site-nav {
  display: flex;
  width: var(--column-width);
  max-width: 100%;
  margin-top: 20px;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  line-height: 18px;
}

.site-nav a {
  padding: 0;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-shell {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--header-width));
  margin: 0 auto;
  padding-top: 26px;
  padding-bottom: 120px;
}

.page-shell--narrow {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--column-width));
}

.page-shell[tabindex="-1"]:focus,
.lightbox:focus {
  outline: none;
}

.prose > *:last-child {
  margin-bottom: 0;
}

.prose p,
.project-summary {
  margin-bottom: 12px;
}

.prose a,
.text-link {
  color: var(--blue);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.not-found__code {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.empty-state {
  color: var(--muted);
}

/* About */
.about-copy {
  position: relative;
  z-index: 2;
}

.about-copy .prose {
  font-size: 16px;
  line-height: 24px;
}

.phrase-callout {
  position: relative;
}

.phrase-callout__trigger {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  vertical-align: baseline;
}

.phrase-callout__card {
  position: absolute;
  z-index: 30;
  top: calc(100% + 13px);
  left: 4px;
  width: min(288px, calc(100vw - 24px));
  padding: 24px;
  border: 0;
  border-radius: 4px;
  background: #efeae5;
  color: #000;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px rgba(191, 191, 191, 0.25),
    0 4px 8px 4px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px) rotate(var(--rotation, 0deg));
  visibility: hidden;
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
}

.phrase-callout__card::before,
.polaroid::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 2px solid #fff;
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.phrase-callout:hover .phrase-callout__card,
.phrase-callout__card[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) rotate(var(--rotation, 0deg));
  visibility: visible;
}

.phrase-callout--note .phrase-callout__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 18px;
}

.phrase-callout--note .phrase-callout__card .prose {
  line-height: 18px;
}

.phrase-callout--note[data-callout-variant="2"] .phrase-callout__card {
  background: #fff7fc;
}

.phrase-callout--image .phrase-callout__card {
  position: fixed;
  top: 182px;
  left: calc(50vw + 104px);
  width: min(196px, calc(100vw - (2 * var(--page-gutter))));
  aspect-ratio: 196 / 272;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #fff;
}

.phrase-callout--image img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.phrase-callout--image .progressive-media {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.phrase-callout__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 16px;
  place-items: center;
  border-radius: 4px;
  background: #eeeeeb;
  color: #777;
  font-family: "SF Pro Text", -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.phrase-callout__link {
  display: block;
  position: relative;
  z-index: 3;
  color: var(--blue);
  font-family: "SF Pro Text", -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 18px;
  pointer-events: auto;
}

.phrase-callout--image .phrase-callout__card > a {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.contact-button {
  display: inline-flex;
  width: auto;
  min-width: 132px;
  height: 32px;
  min-height: 32px;
  margin-top: 24px;
  padding: 6px 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #29b4ff 0%, var(--blue) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px #1981e7, 0 1px 0 rgba(12, 89, 163, 0.25);
  transition: filter 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.contact-button:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px #1981e7, 0 2px 0 rgba(12, 89, 163, 0.25);
}

.contact-button:active {
  filter: brightness(0.93);
  transform: translateY(0);
  box-shadow: inset 0 0 0 1px #1981e7, 0 1px 0 rgba(12, 89, 163, 0.25);
}

/* All visible framing is CSS. */
.photo-frame {
  display: block;
  padding: 4px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #181818;
  box-shadow: var(--shadow);
  transform: rotate(var(--rotation, 0deg));
  transition: box-shadow 180ms ease, transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .phrase-callout__card {
    position: fixed;
    top: 0;
    left: 0;
    translate: var(--callout-x, calc(50vw + 30px)) var(--callout-y, 213px);
  }

  .phrase-callout--image .phrase-callout__card {
    top: 0;
    left: 0;
    translate: var(--callout-x, calc(50vw + 104px)) var(--callout-y, 182px);
  }

  a.photo-frame:hover,
  .home-collage .collage-photo:hover {
    z-index: 20;
    transform: rotate(var(--rotation, 0deg)) translateY(-2px) scale(1.01);
  }

  a.polaroid:hover,
  .home-collage .collage-photo:hover {
    box-shadow:
      0 0 0 2px #fff,
      0 0 0 3px rgba(191, 191, 191, 0.25),
      0 8px 18px 4px rgba(0, 0, 0, 0.17);
  }
}

.photo-frame > img {
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 2px;
  object-fit: cover;
  object-position: center;
}

/* Work */
body[data-page-key="work"] {
  --work-standard-width: 520px;
  --work-wide-width: 760px;
  --work-full-width: 1400px;
}

.work-page {
  --work-subnav-height: 40px;
  width: 100%;
  max-width: none;
  padding-top: 26px;
  padding-bottom: 0;
}

.work-subnav-sentinel {
  display: block;
  height: 0;
  pointer-events: none;
}

.work-subnav {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--work-subnav-height);
  overflow-x: auto;
  border-bottom: 1px solid transparent;
  background: var(--background);
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.work-subnav[data-stuck] {
  border-bottom-color: var(--line);
}

.work-subnav::-webkit-scrollbar {
  display: none;
}

.work-subnav__inner {
  display: flex;
  width: min(100%, calc(var(--work-standard-width) + (2 * var(--page-gutter))));
  min-width: max-content;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  align-items: center;
  gap: 18px;
}

.work-subnav__link {
  display: inline-flex;
  height: 100%;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.work-subnav__link:hover,
.work-subnav__link[aria-current="location"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.work-introduction {
  width: 100%;
  padding: 0 var(--page-gutter) 48px;
}

.work-introduction > * {
  width: min(100%, var(--work-standard-width));
  margin-right: auto;
  margin-left: auto;
}

.work-introduction h1 {
  margin-bottom: 18px;
  font-size: 26px;
  line-height: 30px;
}

.work-introduction .prose {
  color: var(--ink);
  font-size: 16px;
  line-height: 24px;
}

.work-introduction .prose p {
  margin-bottom: 12px;
}

.work-stories {
  width: 100%;
}

.work-story {
  width: 100%;
  padding: 64px var(--page-gutter) 80px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--work-subnav-height);
}

.work-story__header,
.work-story__credits {
  width: min(100%, var(--work-standard-width));
  margin-right: auto;
  margin-left: auto;
}

.work-story__header {
  margin-bottom: 24px;
}

.work-story__header h2 {
  margin: 0;
  font-size: 26px;
  line-height: 30px;
}

.work-story__details {
  width: min(100%, var(--work-wide-width));
  margin: 0 auto 48px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--ink) 3%, var(--background));
  box-shadow: none;
}

.work-story__meta dt,
.work-outcome__value {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 20px;
  opacity: 1;
}

.work-story__hero {
  width: min(100%, var(--work-full-width));
  margin: 0 auto 48px;
}

.work-story__hero-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--ink) 14%, var(--background));
}

.work-story__hero figcaption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.work-story__summary,
.work-story__meta dd,
.work-outcome__note {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 20px;
  opacity: 1;
}

.work-story__summary {
  margin: 16px 0 0;
}

.work-story__summary > *:last-child {
  margin-bottom: 0;
}

.work-story__meta {
  display: grid;
  width: 100%;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.work-story__meta-item {
  min-width: 0;
}

.work-story__meta dd,
.work-outcome__note {
  margin: 0;
}

.work-story__meta-value {
  display: block;
}

.work-story__outcomes {
  width: 100%;
  margin: 24px 0 0;
}

.work-story__outcome-list {
  display: grid;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.work-outcome {
  min-width: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}

.work-outcome__note > *:last-child {
  margin-bottom: 0;
}

.work-story__media {
  display: grid;
  width: min(100%, var(--work-full-width));
  margin: 0 auto 48px;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: clamp(12px, 1.6vw, 24px);
  align-items: start;
}

.work-story__image {
  display: block;
  min-width: 0;
  aspect-ratio: var(--frame-ratio, 16 / 10);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--work-selected-bg);
  color: inherit;
  box-shadow: none;
  text-decoration: none;
  transition: none;
}

.work-story__image img {
  display: block;
  width: 100%;
  height: 100%;
  background: color-mix(in srgb, var(--background) 82%, var(--ink));
  object-fit: contain;
}

.work-story__image > .progressive-media {
  width: 100%;
  height: 100%;
}

.work-story__figure {
  min-width: 0;
  margin: 0;
}

.work-story__figure--tall {
  width: min(100%, var(--work-wide-width));
  justify-self: center;
}

.work-story__figure figcaption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.work-story .project-section {
  width: min(100%, var(--work-full-width));
  margin-right: auto;
  margin-left: auto;
  font-size: 16px;
  line-height: 24px;
}

.project-section__copy {
  width: min(100%, var(--work-standard-width));
  margin-right: auto;
  margin-left: auto;
}

.project-evidence {
  width: 100%;
  margin-top: 32px;
}

.project-evidence__grid {
  display: grid;
  gap: clamp(12px, 1.6vw, 24px);
  align-items: start;
}

.project-evidence--comparison .project-evidence__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-evidence--working-session .project-evidence__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-evidence__item {
  min-width: 0;
  margin: 0;
}

.project-evidence__item:only-child {
  grid-column: 1 / -1;
}

.project-evidence__visual {
  width: 100%;
}

.project-evidence--comparison .project-evidence__visual {
  aspect-ratio: 16 / 10;
}

.project-evidence--working-session .project-evidence__visual {
  aspect-ratio: 4 / 3;
}

.project-evidence__item figcaption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.work-story .project-section + .project-section {
  margin-top: 64px;
}

.work-story .project-section__copy > h2,
.work-story .project-section__copy > h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.025em;
}

.work-story .project-section .prose p {
  margin-bottom: 12px;
}

.work-story .project-section .prose h4 {
  margin: 24px 0 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 22px;
}

.work-story .project-section .prose h4:first-child {
  margin-top: 0;
}

.work-story .project-section .prose ul,
.work-story .project-section .prose ol {
  margin-top: 12px;
  margin-bottom: 12px;
  padding-left: 1.25em;
}

.work-story .project-section .prose li + li {
  margin-top: 4px;
}

.work-story .project-section .prose a {
  text-decoration-thickness: 1px;
}

.project-section__media {
  display: grid;
  width: 100%;
  margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(12px, 1.6vw, 24px);
  align-items: start;
}

.work-story__credits {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.work-story__credits > *:last-child {
  margin-bottom: 0;
}

.resume-job + .resume-job {
  margin-top: 24px;
}

.work-footer {
  width: 100%;
  margin: 0;
  padding: 0 var(--page-gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.work-footer__inner {
  width: min(100%, var(--work-standard-width));
  margin: 0 auto;
  padding: 48px 0 50px;
}

.work-footer h2 {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.work-footer .prose p {
  margin-bottom: 12px;
}

.work-footer .prose a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
}

.work-footer__archive {
  color: var(--blue);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.work-acknowledgements {
  margin-top: 32px;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}

.work-acknowledgements h2 {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.work-acknowledgements .prose,
.work-acknowledgements .prose p {
  font-size: 11px;
  line-height: 16px;
}

.work-page #archive {
  scroll-margin-top: var(--work-subnav-height);
}

/* Photos */
.photos-page {
  width: 100%;
  max-width: none;
  padding-bottom: 72px;
}

.photo-wall {
  display: grid;
  width: 100%;
  padding: 4px var(--page-gutter) 24px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 4px;
  column-gap: 12px;
  row-gap: 0;
  align-items: start;
}

.photo-wall__item {
  position: relative;
  left: 0;
  min-width: 0;
  margin: 0;
  padding: 4px 2px 8px;
  grid-row-end: span var(--wall-span, 90);
  align-self: start;
}

.photo-wall__item:nth-child(3n + 1) {
  left: -2px;
}

.photo-wall__item:nth-child(3n + 2) {
  left: 2px;
}

.photo-wall__item:hover {
  z-index: 30;
}

.polaroid {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0 0 14px;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  text-decoration: none;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px rgba(191, 191, 191, 0.25),
    0 4px 8px 4px rgba(0, 0, 0, 0.15);
}

.polaroid > .progressive-media {
  width: 100%;
  aspect-ratio: var(--photo-ratio, auto);
  border-radius: 2px 2px 0 0;
}

.polaroid > .progressive-media img {
  border-radius: 2px 2px 0 0;
  object-fit: cover;
}

.polaroid .photo-title,
.polaroid .photo-caption {
  display: -webkit-box;
  min-height: 0;
  margin: 8px 9px 0;
  overflow: hidden;
  font-family: "Over the Rainbow", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 20px;
  text-align: center;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.polaroid .photo-caption {
  margin-top: 3px;
  font-size: 15px;
  line-height: 18px;
}

.photo-camera {
  display: block;
  margin: 2px 9px 0;
  color: #625e56;
  font-family: "Over the Rainbow", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 17px;
  text-align: center;
}

@media (max-width: 1279px) {
  .photo-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

@media (prefers-color-scheme: dark) {
  .polaroid {
    background: #000;
    color: #f5f5f5;
    box-shadow:
      0 0 0 2px #000,
      0 0 0 3px rgba(191, 191, 191, 0.25),
      0 4px 8px 4px rgba(0, 0, 0, 0.35);
  }

  .polaroid::before {
    border-color: #000;
  }

  .photo-camera {
    color: #a8a8aa;
  }
}

@media (prefers-color-scheme: dark) and (hover: hover) and (pointer: fine) {
  a.polaroid:hover {
    box-shadow:
      0 0 0 2px #000,
      0 0 0 3px rgba(191, 191, 191, 0.25),
      0 8px 18px 4px rgba(0, 0, 0, 0.35);
  }
}

/* Resume */
body[data-page-key="resume"] .page-shell--narrow {
  font-size: 15px;
  line-height: 22px;
}

.resume-job__heading {
  display: flex;
  margin-bottom: 8px;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.resume-job__heading h2 {
  flex: 0 1 auto;
  margin: 0;
  font-family: "SF Pro Text", -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 22px;
}

.resume-job__leader {
  min-width: 20px;
  flex: 1;
  border-bottom: 1px solid var(--line);
}

.resume-job__heading time,
.resume-job__heading .resume-job__location {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
  text-align: right;
  white-space: nowrap;
}

.resume-positions {
  display: grid;
  gap: 7px;
  padding-left: 10px;
}

.resume-position__heading {
  display: flex;
  margin-bottom: 0;
  align-items: baseline;
  gap: 9px;
}

.resume-position__heading h3 {
  flex: 0 1 auto;
  margin: 0;
  font-family: "SF Pro Text", -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 22px;
}

.resume-position__leader {
  min-width: 22px;
  flex: 1;
  border-bottom: 1px solid var(--line);
}

.resume-position time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
  white-space: nowrap;
}

.resume-job__heading time,
.resume-position time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.resume-position .prose {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
}

.resume-independent {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.resume-independent__heading {
  margin: 0 0 12px;
  font-family: "SF Pro Text", -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 22px;
}

.resume-projects {
  display: grid;
  gap: 12px;
}

.resume-project {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.resume-project__media {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-bottom: 1px solid var(--line);
}

.resume-project__image {
  object-fit: contain;
  object-position: center;
}

.resume-project__content {
  min-width: 0;
  padding: 14px 16px 16px;
}

.resume-project__heading {
  display: flex;
  margin-bottom: 4px;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.resume-project__heading h3 {
  min-width: 0;
  margin: 0;
  font-family: "SF Pro Text", -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 22px;
}

.resume-project__date {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 22px;
  white-space: nowrap;
}

.resume-project__summary,
.resume-project__summary p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
}

.resume-project__actions {
  display: flex;
  margin: 12px 0 0;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 20px;
}

.resume-project__primary-link,
.resume-project__source-link {
  color: var(--blue);
  font-weight: 500;
}

.resume-project__primary-link::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
}

.resume-project__source-link {
  position: relative;
  z-index: 2;
  text-align: left;
}

.resume-project__primary-link:focus-visible {
  outline: none;
}

.resume-project__primary-link:focus-visible::after {
  outline: 2px solid var(--focus);
  outline-offset: -3px;
}

/* Native modal: browser focus trapping and Escape behavior stay intact. */
.lightbox {
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: #fff;
}

.lightbox::backdrop {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.lightbox__scrim {
  position: fixed;
  z-index: 0;
  inset: 0;
  background: #0b0b0c;
  pointer-events: none;
}

.lightbox__surface {
  display: grid;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 16px;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  grid-template-rows: 48px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  pointer-events: auto;
}

.lightbox__figure {
  position: static;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  grid-column: 2;
  grid-row: 1 / span 2;
  place-items: center;
  transform: none;
}

.lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 32px);
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
}

.lightbox--photos .lightbox__image {
  max-height: calc(100vh - 96px);
}

.lightbox--photos .lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox__caption {
  min-height: 28px;
  margin-top: 12px;
  font-family: "Over the Rainbow", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: calc(1.1rem + 2px);
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 2px 7px #000;
}

.lightbox button {
  display: grid;
  position: relative;
  z-index: 3;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  color: #f5f5f5;
  cursor: pointer;
  font-family: "SF Pro Text", -apple-system, sans-serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
}

.lightbox button:hover {
  background: transparent;
}

.lightbox button:focus-visible {
  outline: 2px solid #f5f5f5;
  outline-offset: 3px;
}

.lightbox__close {
  position: static;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.lightbox__close-glyph {
  display: block;
  line-height: 1;
  pointer-events: none;
  transform: translate(-1px, -2px);
}

.lightbox__previous {
  position: static;
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  transform: none;
}

.lightbox__next {
  position: static;
  grid-column: 3;
  grid-row: 2;
  align-self: center;
  justify-self: end;
  transform: none;
}

.lightbox[data-lightbox-motion="opening"] .lightbox__figure {
  animation: lightbox-figure-in var(--motion-duration) var(--ease-out) both;
}

.lightbox[data-lightbox-motion="opening"] .lightbox__scrim {
  animation: lightbox-scrim-in var(--motion-duration) var(--ease-out) both;
}

.lightbox[data-lightbox-motion="closing"] .lightbox__figure {
  animation: lightbox-figure-out 140ms var(--ease-out) both;
}

.lightbox[data-lightbox-motion="closing"] .lightbox__scrim {
  animation: lightbox-scrim-out 140ms var(--ease-out) both;
}

@keyframes lightbox-figure-in {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes lightbox-scrim-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lightbox-figure-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    opacity: 0;
    transform: translate3d(0, 4px, 0) scale(0.99);
  }
}

@keyframes lightbox-scrim-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (max-width: 1040px) {
  :root {
    --header-width: 900px;
  }

  .project-evidence--working-session .project-evidence__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .work-story__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  :root {
    --page-gutter: 20px;
  }

  .site-header {
    padding-top: 48px;
  }

  .site-nav {
    gap: 16px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .site-nav a {
    min-height: 30px;
  }

  .phrase-callout--image .phrase-callout__card {
    position: absolute;
    top: calc(100% + 13px);
    right: 0;
    left: auto;
    translate: none;
  }

  .phrase-callout--note .phrase-callout__card {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(288px, calc(100vw - (2 * var(--page-gutter))));
    transform: translate(-50%, calc(-50% + 5px)) rotate(var(--rotation, 0deg));
    translate: none;
  }

  .phrase-callout--note:hover .phrase-callout__card,
  .phrase-callout--note .phrase-callout__card[aria-hidden="false"] {
    transform: translate(-50%, -50%) rotate(var(--rotation, 0deg));
  }

  .page-shell {
    padding-top: 22px;
    padding-bottom: 80px;
  }

  .work-page {
    width: 100%;
    max-width: none;
    padding-top: 22px;
    padding-bottom: 0;
  }

  .work-subnav__inner {
    gap: 16px;
  }

  .work-story {
    padding: 48px var(--page-gutter) 56px;
  }

  .work-introduction {
    padding-bottom: 36px;
  }

  .work-story__header {
    margin-bottom: 20px;
  }

  .work-story__details {
    margin-bottom: 40px;
    padding: 20px;
  }

  .project-evidence--comparison .project-evidence__grid,
  .project-evidence--working-session .project-evidence__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-story__meta,
  .work-story__outcome-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-story__outcome-list {
    gap: 16px;
  }

  .work-story__media {
    margin-bottom: 40px;
    grid-template-columns: minmax(0, 1fr);
  }

  .project-section__media {
    margin-top: 24px;
    grid-template-columns: minmax(0, 1fr);
  }

  .project-evidence {
    margin-top: 24px;
  }

  .work-story .project-section + .project-section {
    margin-top: 48px;
  }

  .work-footer {
    padding-right: var(--page-gutter);
    padding-left: var(--page-gutter);
  }

  .work-footer__inner {
    padding-top: 48px;
    padding-bottom: 50px;
  }

  .photos-page {
    padding-top: 18px;
    padding-bottom: 36px;
  }

  .photo-wall {
    padding-right: var(--page-gutter);
    padding-left: var(--page-gutter);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
  }

  .photo-wall__item {
    padding-right: 1px;
    padding-left: 1px;
  }

  .polaroid {
    padding-bottom: 10px;
  }

  .polaroid .photo-title,
  .polaroid .photo-caption {
    margin-right: 5px;
    margin-left: 5px;
    font-size: 14px;
    line-height: 16px;
  }

  .polaroid .photo-caption,
  .photo-camera {
    font-size: 12px;
    line-height: 14px;
  }

  .resume-project__heading {
    align-items: flex-start;
  }

  .resume-project__content {
    padding: 12px;
  }

  .lightbox {
    height: 100dvh;
    padding: 0;
  }

  .lightbox__surface {
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-rows: 44px minmax(0, 1fr);
    column-gap: 8px;
  }

  .lightbox button {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 30px;
    line-height: 1;
  }

  .lightbox__close-glyph {
    transform: translate(-1px, -1px);
  }

  .lightbox__image {
    max-height: calc(100dvh - 16px);
  }

  .lightbox--photos .lightbox__image {
    max-height: calc(100dvh - 90px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body[data-page-key="about"] .progressive-media__image,
  body[data-page-key="photos"] .progressive-media__image,
  body[data-page-key="work"] .progressive-media__image,
  body[data-page-key="resume"] .progressive-media__image {
    transition: opacity var(--motion-reduced-duration) linear !important;
  }

  .lightbox[data-lightbox-motion="opening"] .lightbox__figure,
  .lightbox[data-lightbox-motion="opening"] .lightbox__scrim {
    animation-name: lightbox-opacity-in;
    animation-duration: var(--motion-reduced-duration) !important;
    animation-timing-function: linear;
  }

  .lightbox[data-lightbox-motion="closing"] .lightbox__figure,
  .lightbox[data-lightbox-motion="closing"] .lightbox__scrim {
    animation-name: lightbox-opacity-out;
    animation-duration: var(--motion-reduced-duration) !important;
    animation-timing-function: linear;
  }

  @keyframes lightbox-opacity-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes lightbox-opacity-out {
    from { opacity: 1; }
    to { opacity: 0; }
  }

}

@media print {
  .site-header,
  .contact-button {
    display: none;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }
}
