/* Foundations: font geometry, color, spacing and a single content rail. */
@font-face {
  font-family: Calibre;
  src: url("/assets/fonts/Calibre-Regular.4cc3b83d376f.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  ascent-override: 80%;
  descent-override: 20%;
  line-gap-override: 0%;
}
@font-face {
  font-family: Calibre;
  src: url("/assets/fonts/Calibre-Medium.1ffde0037882.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  ascent-override: 80%;
  descent-override: 20%;
  line-gap-override: 0%;
}
@font-face {
  font-family: Calibre;
  src: url("/assets/fonts/Calibre-Semibold.a6c6bc5d2be1.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  ascent-override: 80%;
  descent-override: 20%;
  line-gap-override: 0%;
}
/* The lowercase brand uses its x-height rather than the UI's cap height. */
@font-face {
  font-family: "Calibre Brand";
  src: url("/assets/fonts/Calibre-Semibold.a6c6bc5d2be1.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  ascent-override: 72%;
  descent-override: 28%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "SF Mono";
  src: url("/assets/fonts/SFMono-Regular.d7d0de63b631.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}
body {
  margin: 0;
}
.portfolio {
  --paper: #faf9f6;
  --outer: #f0efeb;
  --ink: #262723;
  --muted: #686b63;
  --line: #e0e0d8;
  --soft: #efeee8;
  --blue: #2d4ecb;
  --blue-soft: #e9edff;
  --grid: #d9d9cf;
  --space-1: 4px;
  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --page-pad: 44px;
  --marker-size: 20px;
  --marker-gap: 12px;
  --marker-gutter: calc(var(--marker-size) + var(--marker-gap));
  --entry-line: 30px;
  --entry-icon: 24px;
  --icon-size: 16px;
  --control-icon-size: 20px;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(var(--grid) 0.6px, transparent 0.6px) 0 0 / 9px
    9px var(--outer);
  font: 400 19px/1.5 Calibre, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s, color 0.2s;
}
.portfolio[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171916;
  --outer: #111310;
  --ink: #efeee5;
  --muted: #a5a79e;
  --line: #33372e;
  --soft: #22261f;
  --blue: #9bafff;
  --blue-soft: #292f48;
  --grid: #2d3229;
}
.portfolio * {
  box-sizing: border-box;
}
.portfolio ::selection {
  background: var(--blue-soft);
  color: var(--blue);
}
:where(.portfolio) :is(h1, h2, h3, h4, p) {
  margin: 0;
}
:where(.portfolio) a {
  color: inherit;
  text-decoration: none;
}
:where(.portfolio) :is(button, input) {
  font: inherit;
  color: inherit;
}
:where(.portfolio) button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.portfolio :is(a, button, summary) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.portfolio :focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.sr-only,
.ui-action--icon .ui-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  padding: 12px 20px;
  background: var(--paper);
  color: var(--ink);
  z-index: 10;
}
.skip-link:focus {
  top: 16px;
}
.page-shell {
  width: min(calc(100% - 64px), 820px);
  margin: auto;
  background: var(--paper);
  border-inline: 1px solid var(--line);
}
.section {
  padding: var(--space-8) var(--page-pad);
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

/* Primitives: icons, metadata, actions, chips and marker/content grids. */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  display: block;
  width: var(--icon-size);
  height: var(--icon-size);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.ui-meta {
  font: 400 12px/1.5 "SF Mono", monospace;
  color: var(--muted);
}
.eyebrow {
  letter-spacing: 1px;
}
.ui-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 24px;
  max-width: 100%;
  border-radius: 6px;
  font-size: var(--action-size, 16px);
  line-height: 1.25;
  color: var(--blue);
  transition: color 0.15s, background-color 0.15s;
}
.ui-label {
  min-width: 0;
}
.ui-action--link {
  font-size: 16px;
  gap: 6px;
}
.ui-action--link > .icon {
  width: 14px;
  height: 14px;
  color: inherit;
}
.ui-action--link:hover .ui-label {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ui-action--primary {
  min-height: 44px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
}
.ui-action--primary:hover {
  background: var(--blue);
}
.ui-action--utility {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 14px;
}
.ui-action--utility:hover {
  background: var(--soft);
  color: var(--ink);
}
.ui-action--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  flex: 0 0 44px;
}
.ui-action--utility > .icon {
  width: var(--control-icon-size);
  height: var(--control-icon-size);
}
.ui-action--segment {
  min-height: 36px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 15px;
}
.ui-action--segment[aria-pressed="true"] {
  color: var(--blue);
  background: var(--paper);
  box-shadow: 0 1px 3px #0000000c;
}
.ui-action--segment:hover {
  color: var(--blue);
}
.filter-count {
  font-size: 11px;
  color: inherit;
}
.ui-action--command {
  display: flex;
  width: 100%;
  min-height: 46px;
  padding: 12px;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  color: var(--ink);
}
.ui-action--command .ui-label {
  flex: 1;
}
.ui-action--command:is(:hover, .is-active) {
  background: var(--blue-soft);
  color: var(--blue);
}
.action-tail,
.action-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.action-tail {
  flex-shrink: 0;
}
.action-tail .icon {
  color: var(--muted);
}
.action-list {
  flex-wrap: wrap;
  gap: var(--space-6);
}
.ui-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}
.ui-chip--outline {
  border-color: var(--line);
  background: var(--paper);
}
.ui-chip--soft {
  background: var(--soft);
  color: var(--muted);
}
.ui-chip--meta,
.ui-chip--key {
  min-height: 24px;
  padding: 3px 6px;
  font: 400 12px/1.5 "SF Mono", monospace;
  background: var(--soft);
  color: var(--muted);
}
.ui-chip--key {
  font-size: 11px;
  border-color: var(--line);
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}
.chip-list li {
  display: flex;
}
.marked-grid {
  --title-line: 32px;
  display: grid;
  align-items: start;
  grid-template-columns: var(--marker-size) minmax(0, 1fr) auto;
  column-gap: var(--marker-gap);
  margin-inline-start: calc(-1 * var(--marker-gutter));
}
.marker {
  display: grid;
  place-items: center;
  height: var(--title-line);
}
.row-meta {
  display: flex;
  align-items: center;
  min-height: var(--title-line);
}
.section-heading {
  margin-bottom: var(--space-4);
  gap: 12px var(--marker-gap);
}
.section-heading h2 {
  font-size: 25px;
  font-weight: 500;
  line-height: var(--title-line);
  letter-spacing: -0.5px;
}
.section-marker {
  color: var(--blue);
}
.section-note {
  letter-spacing: 0.8px;
}
.section-intro {
  margin-bottom: var(--space-6);
  font-size: 18px;
  color: var(--muted);
}

/* One disclosure component for selected work, experiments and career history. */
.entry-list {
  border-top: 1px solid var(--line);
}
.entry {
  border-bottom: 1px solid var(--line);
}
.entry-summary {
  --title-line: var(--entry-line);
  grid-template-columns: var(--marker-size) minmax(0, 1fr) auto var(
      --entry-icon
    );
  row-gap: var(--space-1);
  align-items: start;
  padding-block: var(--space-6);
  list-style: none;
  cursor: pointer;
  transition: background-color 0.15s;
}
.entry-summary::-webkit-details-marker {
  display: none;
}
.entry-summary:hover {
  background: var(--soft);
}
.entry-marker {
  grid-column: 1;
  grid-row: 1;
}
.entry-title {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  font-size: 22px;
  line-height: var(--title-line);
  font-weight: 500;
  letter-spacing: -0.25px;
}
.entry-meta {
  grid-column: 3;
  grid-row: 1;
}
.entry-toggle {
  grid-column: 4;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: var(--entry-icon);
  height: var(--title-line);
  color: var(--muted);
}
.entry-toggle .icon {
  width: var(--control-icon-size);
  height: var(--control-icon-size);
  transition: transform 0.2s;
}
.entry[open] > summary .entry-toggle .icon {
  transform: rotate(45deg);
}
.entry[open] > summary .entry-toggle {
  color: var(--blue);
}
.entry-subtitle {
  grid-column: 2 / -1;
  grid-row: 2;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.entry-body {
  padding-bottom: var(--space-6);
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}
.entry-body > :not(:last-child) {
  margin-bottom: var(--space-6);
}
.entry-body .ui-action {
  justify-content: flex-start;
}
.project-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
}
.prose-list {
  list-style: disc outside;
  margin: 0;
  padding: 0;
}
.prose-list li {
  margin: 0 0 12px;
  padding: 0;
}
.prose-list li::marker {
  color: var(--blue);
  font-size: 11px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--muted);
  border-radius: 50%;
}
.entry[open] .status-dot {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

/* Page compositions contain layout only; controls keep their shared styles. */
.site-header {
  display: flex;
  align-items: center;
  height: 82px;
  padding-inline: var(--page-pad);
  gap: 32px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: "Calibre Brand", Calibre, Arial, sans-serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1;
}
.wordmark span,
.intro-identity h1 span,
.contact-section h2 span {
  color: var(--blue);
}
.site-header nav {
  display: flex;
  gap: 24px;
  font-size: 16px;
}
.site-header nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}
.site-header nav a:hover {
  color: var(--blue);
}
.header-tools {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.theme-toggle.is-dark .icon {
  transform: rotate(180deg);
}
.hero {
  padding: 12px var(--page-pad) var(--space-8);
}
.desk-scene {
  margin: 6px -12px 32px;
}
.desk-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.5;
  object-fit: contain;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .desk-art img {
  mix-blend-mode: normal;
}
.desk-annotation {
  display: block;
  margin-right: 8px;
  color: var(--muted);
  text-align: right;
  font: italic 14px/1.5 Georgia, serif;
  transform: rotate(-3deg);
}
.intro-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.portrait {
  width: 58px;
  height: 64px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 12px;
  filter: saturate(0.75);
  transform: rotate(-3deg);
}
.intro-identity h1 {
  font-size: 45px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -1.4px;
  margin-top: 4px;
}
.hero-statement {
  margin-bottom: 20px;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.45px;
}
.hero-statement a {
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.hero-statement a:hover {
  color: var(--blue);
}
.hero-description {
  max-width: 650px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.small-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.blue-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.project-filters {
  display: flex;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
}
.experiments-heading {
  font-size: 22px;
  font-weight: 500;
  margin: 24px 0 12px;
}
.work-footnote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}
.story-copy p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}
.story-copy p + p {
  margin-top: 16px;
}
.story-copy p:first-child {
  color: var(--ink);
  font-size: 23px;
  line-height: 1.4;
  margin-block: 20px;
}
.story-copy p:first-child span {
  background: var(--soft);
  padding-inline: 3px;
}
.story-copy a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-underline-offset: 4px;
}
.toolbox {
  margin-block: 32px;
}
.toolbox .chip-list {
  margin-top: 12px;
}
.career {
  scroll-margin-top: 32px;
}
.subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.subheading h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}
.contact-section {
  padding-block: 40px;
  background: linear-gradient(145deg, var(--paper) 40%, var(--soft));
}
.contact-section h2 {
  margin-block: 16px;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -1.2px;
}
.contact-section > p {
  font-size: 19px;
  color: var(--muted);
}
.contact-actions {
  margin-block: 24px;
}
.copy-email {
  color: var(--muted);
}
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 24px var(--page-pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.site-footer .ui-action {
  justify-self: end;
}
.site-footer > .ui-meta {
  grid-column: 1 / -1;
  font-size: 11px;
}
.command-palette {
  width: min(500px, calc(100vw - 32px));
  max-height: 80vh;
  top: 16vh;
  margin: 0 auto;
  padding: 0;
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 100px #0005;
}
.command-palette::backdrop {
  background: #1118;
  backdrop-filter: blur(4px);
}
.palette-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
}
.palette-heading h2 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 500;
}
.command-palette > input {
  display: block;
  width: calc(100% - 40px);
  margin: 8px 20px 16px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 18px;
  line-height: 1.3;
  outline-offset: 2px;
}
.command-results {
  padding: 0 8px 8px;
}
.palette-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.no-results {
  padding: 16px 12px;
  color: var(--muted);
  font-size: 17px;
}
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  .palette-keyboard-hints {
    display: none;
  }
}
.not-found-content {
  min-height: calc(100vh - 82px);
  padding-block: 96px;
}
.not-found-content h1 {
  margin-block: 20px;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1.5px;
}
.not-found-content p {
  max-width: 500px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 21px;
}

@media (max-width: 700px) {
  .portfolio {
    --page-pad: 24px;
    --marker-size: 16px;
    --marker-gap: 4px;
    --entry-line: 28px;
  }
  .page-shell {
    width: calc(100% - 32px);
  }
  .site-header {
    height: 72px;
    gap: 24px;
  }
  .site-header nav {
    gap: 20px;
  }
  .command-trigger {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
  }
  .command-trigger .command-label,
  .command-trigger .ui-chip {
    display: none;
  }
  .section-note {
    min-height: 0;
    grid-column: 2 / -1;
    grid-row: 2;
  }
  .section-heading {
    row-gap: 8px;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .entry-title {
    font-size: 20px;
  }
  .project-item .entry-meta {
    display: none;
  }
  .entry-title {
    grid-column: 2 / 4;
  }
  .career-item .entry-meta {
    grid-column: 2 / -1;
    grid-row: 3;
    min-height: 0;
  }
  .entry-body {
    font-size: 17px;
  }
  .hero-lead {
    display: block;
    text-wrap: balance;
  }
  .hero-statement .desktop-break {
    display: none;
  }
  .intro-identity h1 {
    font-size: 40px;
  }
  .hero-statement {
    font-size: 28px;
  }
  .hero-description {
    font-size: 19px;
  }
  .story-copy p {
    font-size: 19px;
  }
  .story-copy p:first-child {
    font-size: 22px;
  }
  .work-footnote {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .contact-section h2 {
    font-size: 38px;
  }
}
@media (max-width: 480px) {
  .page-shell {
    width: 100%;
    border: 0;
  }
  .site-header {
    height: 68px;
    gap: 20px;
  }
  .wordmark {
    font-family: "Calibre Brand", Calibre, Arial, sans-serif;
    font-size: 32px;
  }
  .site-header nav {
    gap: 20px;
    font-size: 15px;
  }
  .hero {
    padding-top: 8px;
  }
  .desk-scene {
    margin: 12px -14px 28px;
  }
  .desk-art img {
    aspect-ratio: 2.2;
  }
  .desk-annotation {
    font-size: 12px;
  }
  .intro-identity {
    gap: 12px;
    margin-bottom: 20px;
  }
  .portrait {
    width: 48px;
    height: 54px;
    border-radius: 9px;
  }
  .intro-identity h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }
  .intro-identity .eyebrow {
    font-size: 11px;
    letter-spacing: 0.7px;
    text-wrap: balance;
  }
  .hero-statement {
    font-size: clamp(24px, 6.4vw, 26px);
    line-height: 1.3;
    letter-spacing: -0.3px;
  }
  .hero-description {
    font-size: 18px;
  }
  .small-label {
    font-size: 12px;
  }
  .section {
    padding-block: 28px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .section-intro {
    font-size: 17px;
  }
  .project-filters {
    width: 100%;
  }
  .ui-action--segment {
    flex: 1;
    font-size: 13px;
    gap: 8px;
    padding-inline: 6px;
  }
  .entry-summary {
    --title-line: var(--entry-line);
    padding-block: 20px;
  }
  .entry-subtitle {
    font-size: 15px;
  }
  .story-copy p {
    font-size: 18px;
  }
  .story-copy p:first-child {
    font-size: 21px;
  }
  .social-links {
    gap: var(--space-2);
  }
  .contact-section h2 {
    font-size: 35px;
  }
  .contact-section > p {
    font-size: 17px;
  }
  .site-footer {
    grid-template-columns: 1fr;
  }
  .site-footer .ui-action {
    justify-self: start;
  }
  .command-palette {
    top: 10vh;
  }
  .not-found-content {
    padding-block: 64px;
  }
  .not-found-content h1 {
    font-size: 44px;
  }
}
@media (max-width: 360px) {
  .site-header {
    padding-inline: 16px;
    gap: 10px;
  }
  .site-header nav {
    gap: 10px;
    font-size: 14px;
  }
}
@media (prefers-color-scheme: dark) {
  .portfolio:not([data-theme]) {
    color-scheme: dark;
    --paper: #171916;
    --outer: #111310;
    --ink: #efeee5;
    --muted: #a5a79e;
    --line: #33372e;
    --soft: #22261f;
    --blue: #9bafff;
    --blue-soft: #292f48;
    --grid: #2d3229;
  }
  .portfolio:not([data-theme]) .desk-art img {
    mix-blend-mode: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  html,
  .portfolio *,
  .portfolio *::before,
  .portfolio *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
