.subpage {
  padding-block-end: 48px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 15px;
}
.homeward {
  color: var(--color-11);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inner-head {
  padding: 14px 0 7px;
}
.inner-head h1 {
  font-size: clamp(34px, 5.8vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}
.inner-head p {
  color: var(--text-2);
  margin: 12px 0 0;
  line-height: 1.55;
}
.inner-card {
  overflow-wrap: anywhere;
  min-width: 0;
}
.inner-card h2 {
  font-size: 23px;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 16px;
}
.inner-card h3 {
  font-size: 18px;
  margin: 20px 0 6px;
}
.inner-card p,
.inner-card li,
.inner-card dd {
  line-height: 1.65;
}
.inner-card p {
  margin: 0 0 14px;
}
.inner-card p:last-child {
  margin-bottom: 0;
}
.inner-card ul:not(.tech-list),
.inner-card ol {
  padding-inline-start: 1.3em;
}
.inner-card dl {
  margin: 0;
}
.inner-card dt,
.job small {
  color: var(--color-11);
  font-weight: 600;
  font-size: 0.85rem;
}
.inner-card dd {
  margin: 1px 0 13px;
}
.inner-card dd:last-child {
  margin-bottom: 0;
}
.inner-card .mini {
  width: 49px;
  height: 49px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  flex: none;
}
.project-shot {
  margin: 0;
  background: var(--color-3);
  border-radius: 18px;
  text-align: center;
  padding: 18px;
}
.project-shot img {
  max-width: 100%;
  max-height: 420px;
  display: block;
  margin: auto;
  border-radius: 8px;
}
.inner-actions,
.inner-nav,
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}
.inner-actions {
  margin-block: 15px 0;
}
.inner-actions .btn {
  height: auto;
  min-height: 42px;
  text-align: center;
}
.inner-nav {
  padding: 17px 21px;
  gap: 10px 20px;
}
.inner-nav a {
  font-size: 0.92rem;
}
.inner-nav a[aria-current] {
  color: var(--color-11);
  font-weight: 650;
}
.tech-list {
  padding: 0;
  list-style: none;
  margin: 0 0 14px;
}
.tech-list li {
  background: var(--color-3);
  color: var(--color-12);
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 0.86rem;
}
.prose a,
.inner-card p a {
  color: var(--color-11);
  text-decoration: underline;
}
.prose h2:not(:first-child) {
  margin-top: 26px;
}
.prose pre {
  overflow: auto;
  padding: 14px;
  background: var(--color-2);
  border-radius: 8px;
}
.prose img {
  max-width: 100%;
  height: auto;
}
.prose blockquote {
  border-inline-start: 3px solid var(--color-7);
  margin-inline: 0;
  padding-inline-start: 14px;
}
.prose table {
  display: block;
  max-width: 100%;
  overflow: auto;
}

/* Skiper UI · Skiper26 by Gurvinder Singh (https://skiper-ui.com).
   GIF preset 2 (GIPHY 5PncuvcXbBuIZcSiQo), adapted for this static multi-page portfolio. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-1: oklch(0.188 0.028 55);
  --color-2: oklch(0.22 0.039 55);
  --color-3: oklch(0.284 0.074 55);
  --color-4: oklch(0.335 0.103 55);
  --color-5: oklch(0.381 0.127 55);
  --color-6: oklch(0.432 0.148 55);
  --color-7: oklch(0.5 0.169 55);
  --color-8: oklch(0.588 0.189 55);
  --color-9: oklch(0.67 0.185 55);
  --color-10: oklch(0.725 0.175 55);
  --color-11: oklch(0.869 0.108 55);
  --color-12: oklch(0.935 0.063 55);
  --bg: var(--color-1);
  --card: var(--color-2);
  --card-inset: var(--color-3);
  --text: var(--color-12);
  --text-2: color-mix(in oklab, var(--color-12) 79%, var(--bg));
  --text-3: color-mix(in oklab, var(--color-12) 68%, var(--bg));
  --line: color-mix(in oklab, var(--color-12) 26%, var(--bg));
  --raised: 0 0 0 1px var(--line);
  --raised-hover: 0 0 0 1px var(--text-3);
}
[data-theme="dark"]
  :is(
    .card,
    .row,
    .input,
    .field .input,
    .tiles li,
    .social-icon,
    .btn-secondary,
    #more-pages,
    .job
  ) {
  background: var(--card);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--raised);
}
[data-theme="dark"] .project-story .inner-card {
  background: none;
  box-shadow: none;
}
[data-theme="dark"] #more-pages a:hover {
  color: var(--color-12);
}
#theme-toggle i {
  font-style: normal;
}
#theme-toggle {
  display: grid;
  place-items: center;
}
#theme-toggle > svg {
  grid-area: 1 / 1;
  pointer-events: none;
  transform-origin: center;
}
[data-theme="light"] #theme-toggle i.to-sun,
[data-theme="dark"] #theme-toggle i.to-moon {
  display: none;
}
[data-theme="light"] #theme-toggle svg.to-sun,
[data-theme="dark"] #theme-toggle svg.to-moon {
  opacity: 0;
}
#theme-toggle .moon-star {
  transform-box: fill-box;
  transform-origin: center;
}
body:has(> .theme-reveal-layer) > .site-menu {
  z-index: 101;
}
@media (prefers-reduced-motion: no-preference) {
  #theme-toggle > svg {
    transition: transform 740ms cubic-bezier(.22, 1, .36, 1), opacity 360ms ease, scale 140ms ease-out;
  }
  [data-theme="light"] #theme-toggle svg.to-sun {
    transform: rotate(-150deg) scale(.52);
  }
  [data-theme="dark"] #theme-toggle svg.to-moon {
    transform: translateY(3px) rotate(54deg) scale(.54);
  }
  #theme-toggle [data-l="all"] {
    transform-origin: 8px 8px;
    transition: transform 850ms cubic-bezier(.22, 1, .36, 1);
  }
  #theme-toggle .moon-star {
    transition: transform 680ms cubic-bezier(.34, 1.56, .64, 1);
  }
  #theme-toggle:focus-visible {
    --sun-turn: 100deg;
    --moon-tilt: -14deg;
    --star-scale: 1.24;
  }
  @media (hover: hover) {
    #theme-toggle:hover {
      --sun-turn: 100deg;
      --moon-tilt: -14deg;
      --star-scale: 1.24;
    }
  }
  #theme-toggle .to-sun [data-l="all"] { transform: rotate(var(--sun-turn, 0deg)); }
  #theme-toggle .to-moon [data-l="all"] { transform: rotate(var(--moon-tilt, 0deg)); }
  #theme-toggle .moon-star { transform: scale(var(--star-scale, .68)); }
}
#theme-toggle kbd {
  font: 12px var(--font-sans);
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
@property --cloud-clear {
  syntax: "<percentage>";
  inherits: false;
  initial-value: -1%;
}
.theme-reveal-layer {
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  /* Fit the square animation inside the visible viewport. */
  --gif-width: min(calc(var(--visible-width, 100vw) * .96), calc(var(--visible-height, 100vh) * .94));
  --cloud-center: calc(50% + var(--cloud-x, 0px)) calc(50% + var(--cloud-y, 0px));
  --gif-box: var(--gif-width) var(--gif-width);
  z-index: 100;
  /* Feather the mask edges as the artwork reveals the next theme. */
  mask-image:
    radial-gradient(circle farthest-corner at var(--cloud-center), transparent var(--cloud-clear), black calc(var(--cloud-clear) + .6%)),
    linear-gradient(black, black),
    linear-gradient(to right, transparent, black 12%, black 88%, transparent),
    linear-gradient(to bottom, transparent, black 12%, black 88%, transparent),
    url("/portfolio-assets/assets/theme-reveal.gif");
  mask-position: center, center, var(--cloud-center), var(--cloud-center), var(--cloud-center);
  mask-repeat: no-repeat;
  mask-composite: intersect, exclude, intersect, intersect, add;
  mask-size:
    100% 100%,
    100% 100%,
    var(--gif-box),
    var(--gif-box),
    var(--gif-box);
}
.theme-reveal-layer[data-ready] {
  visibility: visible;
  animation: theme-gif-reveal 3s both;
}
@keyframes theme-gif-reveal {
  0% {
    mask-size: 100% 100%, 100% 100%, 0 0, 0 0, 0 0;
  }
  12%, 100% {
    mask-size: 100% 100%, 100% 100%, var(--gif-box), var(--gif-box), var(--gif-box);
  }
  0%, 75% { --cloud-clear: -1%; }
  100% { --cloud-clear: 101%; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-reveal-layer {
    display: none;
  }
}
[data-theme="dark"] .btn-primary:is(:hover, :active) {
  --btn-top: #265e96;
  --btn-bottom: #204d79;
}

/* Skiper UI 63. Filter only the surface so type and focus outlines stay crisp. */
:is(.card, .row, .job, .preview-image, .story-end .story-link:last-child) {
  position: relative;
  isolation: isolate;
}
:is(
  .card,
  .row,
  .job,
  .preview-image,
  .story-end .story-link:last-child
)::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: inherit;
  background: inherit;
  /* Clip the expanded SVG paint to this inset layer, inside the original border. */
  clip-path: border-box;
  filter: url("/portfolio-assets/assets/card-squircle.svg#SkiperSquiCircleFilterLayout");
  pointer-events: none;
}

:root {
  --section-rule: color-mix(in oklab, var(--text) 49%, var(--bg));
  --item-rule: color-mix(in oklab, var(--text) 45%, var(--bg));
}

/* Keep homepage navigation on the same baseline in both palettes. */
.home-editorial {
  --cta-top: #126ccb;
  --cta-bottom: #155294;
}
main.home-editorial {
  row-gap: clamp(24px, 4vw, 38px);
}
.home-editorial > section {
  padding-block-start: clamp(24px, 3.5vw, 36px);
  border-top: 1px solid var(--section-rule);
}
.home-editorial .writing-index li {
  border-color: var(--item-rule);
}
.home-editorial .writing-index li:first-child,
.home-editorial .current-role > a {
  border-top: 0;
}
.home-editorial .current-role > a {
  margin-top: 12px;
  padding-top: 0;
}
.call-option {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--text-2);
}
.call-option a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  color: var(--color-11);
  font-weight: 550;
}
.home-footer {
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px solid var(--section-rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 20px;
}
.footer-name {
  font-size: 15px;
  font-weight: 600;
}
.home-footer .collab-links {
  margin: 0;
  gap: 0 16px;
}
.home-footer .collab-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
}
.home-footer .collab-links a:hover,
.call-option a:hover {
  text-decoration: underline;
}
@media (max-width: 470px) {
  .home-footer {
    flex-direction: column;
    align-items: start;
    gap: 2px;
  }
}

.home-editorial .form .btn-primary {
  --btn-top: var(--cta-top);
  --btn-bottom: var(--cta-bottom);
  box-shadow:
    inset 0 1px rgb(255 255 255 / 18%),
    0 1px 2px rgb(0 0 0 / 14%);
}
.home-editorial .form .btn-primary:hover {
  --btn-top: #1465b8;
  --btn-bottom: #11477e;
}
.home-editorial .form .btn-primary:active {
  --btn-top: #155294;
  --btn-bottom: #103e70;
}
.home-editorial .form .btn-primary:focus-visible {
  outline: 2px solid var(--color-11);
  outline-offset: 3px;
}
[data-theme="dark"] .home-editorial .field .input {
  box-shadow: none;
}

.experience-entry {
  padding-block: 22px;
}
.experience-entry + .experience-entry {
  border-top: 1px solid var(--item-rule);
}
.experience-entry:last-child { padding-bottom: 0; }
.experience-entry h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(21px, 3vw, 25px);
  line-height: 1.25;
  letter-spacing: -.035em;
}
.experience-entry img {
  border-radius: 9px;
  background: var(--card);
}
.experience-entry details {
  position: relative;
  margin: 8px 0 0 15px;
  padding-left: 28px;
}
.experience-entry details::before {
  content: "";
  position: absolute;
  inset: -8px auto auto 0;
  width: 17px;
  height: 29px;
  border: solid var(--item-rule);
  border-width: 0 0 1px 1px;
  border-bottom-left-radius: 6px;
}
.experience-entry summary {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 7px 40px 7px 8px;
  margin-left: -8px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  border-radius: 10px;
}
.experience-entry summary::-webkit-details-marker { display: none; }
.experience-entry summary::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 16px;
  width: 8px;
  height: 8px;
  border: solid var(--color-11);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.experience-entry details[open] summary::after { transform: rotate(225deg); }
@media (hover: hover) {
  .experience-entry summary:hover { background: var(--color-3); }
}
.experience-role { font-weight: 600; line-height: 1.35; }
.experience-meta { color: var(--text-2); font-size: 14px; }
.experience-notes { padding-top: 3px; }
.experience-notes p {
  max-width: 58ch;
  margin: 0;
  color: var(--text-2);
  line-height: 1.55;
}
.experience-notes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 2px;
  padding: 0;
  list-style: none;
}
.experience-notes li {
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--color-3);
  color: var(--color-12);
  font: 12px/1.5 var(--font-sans);
}
.experience-notes a {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 44px;
  color: var(--color-11);
  font-size: 15px;
  font-weight: 550;
}
@media (prefers-reduced-motion: no-preference) {
  .experience-entry summary::after { transition: transform 220ms ease; }
  .experience-entry summary { transition: background-color 160ms ease; }
  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .experience-entry details::details-content {
      interpolate-size: allow-keywords;
      block-size: 0;
      overflow: clip;
      opacity: 0;
      transition: block-size 260ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease,
        content-visibility 260ms allow-discrete;
    }
    .experience-entry details[open]::details-content {
      block-size: auto;
      opacity: 1;
    }
  }
}
.home-editorial > .home-footer {
  display: block;
  margin: 0;
  padding-top: clamp(24px, 3.5vw, 36px);
}
.home-editorial .home-footer .collab-links { margin-top: 8px; }
.home-editorial :is(.experience-notes, .selected-work, .writing-index, .home-footer) a:is(:hover, :focus-visible) {
  color: var(--color-11);
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .experience-notes a:hover span { translate: 1px -1px; }
  .experience-notes a span { transition: translate .15s ease-out; }
}

#more-pages .shortcut-setting {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 12px;
  border-top: 1px solid var(--item-rule);
  cursor: pointer;
  font-size: 14px;
}
#more-pages :focus-visible { outline-color: currentColor; }
#more-pages input:focus-visible { outline-offset: 2px; }
#theme-toggle kbd[hidden] { display: none; }

.work-page {
  width: min(100%, 760px);
  margin-inline: auto;
  padding: clamp(24px, 5vw, 64px) clamp(20px, 5vw, 48px) 128px;
  overflow-wrap: break-word;
}
.work-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 14px;
}
.work-hero {
  margin-block: clamp(24px, 5vw, 52px) clamp(28px, 5vw, 44px);
}
.work-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 550;
  letter-spacing: -.045em;
  line-height: 1.04;
  text-wrap: balance;
}
.work-hero p {
  max-width: 56ch;
  margin: 14px 0 0;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--text-2);
}
.work-product, .work-related {
  border-top: 1px solid var(--section-rule);
  padding-block-start: 24px;
}
.work-product + .work-product { margin-top: 36px; }
.work-product-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.work-product-head img { border-radius: 9px; }
.work-product-head h2, .work-related h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.work-product-head p {
  margin: 2px 0 0;
  color: var(--text-2);
  font-size: 14px;
}
.work-product > p { max-width: 54ch; margin: 18px 0 0; }
.work-entries { list-style: none; padding: 0; margin: 12px 0 0; }
.work-entries li + li { border-top: 1px solid var(--item-rule); }
.work-entries a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 20px;
  padding: 18px 2px;
}
.work-entries h3 {
  margin: 0;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 570;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.work-entries p {
  grid-column: 1;
  margin: 0;
  max-width: 55ch;
  color: var(--text-2);
  font-size: 16px;
}
.work-entries a > span {
  grid-area: 1 / 2;
  color: var(--color-11);
  align-self: baseline;
}
.work-product-link, .work-related a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 550;
  color: var(--color-11);
}
.work-entries a:is(:hover, :focus-visible) h3,
.work-product-link:is(:hover, :focus-visible),
.work-related a:is(:hover, :focus-visible) { color: var(--color-12); }
.work-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 18px 28px;
  margin: 0;
  padding-block: 20px;
  border-block: 1px solid var(--item-rule);
}
.work-facts dt {
  margin-bottom: 4px;
  color: var(--text-2);
  font: 12px/1.4 var(--font-sans);
}
.work-facts dd { margin: 0; font-size: 16px; line-height: 1.5; }
.work-prose {
  max-width: 59ch;
  margin-block: clamp(32px, 5vw, 48px);
  line-height: 1.65;
}
.work-prose section + section { margin-top: 32px; }
.work-prose h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.work-prose h3 { margin: 20px 0 4px; font-size: 18px; font-weight: 600; }
.work-prose p, .work-prose ul { margin: 0 0 12px; }
.work-prose ul { padding-inline-start: 21px; }
.work-prose li + li { margin-top: 6px; }
.work-prose li::marker { color: var(--color-11); }
.work-related { display: grid; justify-items: start; gap: 2px; }
.work-related h2 { margin-bottom: 8px; font-size: 20px; }

.work-index .work-product,
.about-page .about-section {
  display: grid;
  align-items: start;
  gap: 20px;
  padding-block: clamp(24px, 5vw, 36px);
  border-top: 1px solid var(--section-rule);
}
.work-index .work-product + .work-product { margin: 0; }
.work-index .work-product-head { align-items: flex-start; }
.work-index .work-product-head img { flex: none; }
.work-index .work-entries { margin: 0; }
.work-index .work-entries a { padding-inline: 0; }
.work-index .work-entries li:first-child a { padding-top: 0; }
.work-index .work-entries li:last-child a { padding-bottom: 0; }
.work-index .work-product-summary p,
.about-page .about-section p { margin: 0; line-height: 1.6; }
.work-index .work-entries a:is(:hover, :focus-visible) h3,
:is(.work-index, .about-page) .work-product-link:is(:hover, :focus-visible) {
  color: var(--color-11);
}
.about-page .about-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.about-page .about-intro img {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
.about-page .about-intro p { margin: 6px 0 0; }
.about-page .about-section h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.03em;
}
.work-index .work-product-summary p + p,
.about-page .about-section p + p { margin-top: 12px; }
.about-page .work-product-link, .work-index .work-product-link { margin-top: 4px; }
@media (min-width: 680px) {
  .work-index .work-product,
  .about-page .about-section {
    grid-template-columns: minmax(164px, 1fr) minmax(0, 2.3fr);
    gap: 32px;
  }
}

.work-example { margin: 22px 0 0; }
.work-example img { display: block; width: 100%; height: auto; border-radius: 10px; }
.work-example figcaption { margin-top: 8px; color: var(--text-2); font-size: 14px; }

.page > nav[aria-label="breadcrumb" i] {
  zoom: calc(1 / var(--page-zoom, 1));
}

/* The pill is 26px high inside a 44px link target. */
:is(nav[aria-label="breadcrumb" i], .post-footer) a {
  --pill-fill: var(--color-3, var(--secondary));
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  border-radius: 8px;
  color: var(--color-11, var(--foreground));
  font-size: .875rem;
  font-weight: 550;
  line-height: 18px;
  white-space: nowrap;
  text-decoration: none;
}

:is(nav[aria-label="breadcrumb" i], .post-footer) a::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 50% 0 auto;
  height: 26px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--pill-fill);
}

:is(nav[aria-label="breadcrumb" i], .post-footer) a:hover {
  --pill-fill: color-mix(in srgb, var(--color-3, var(--secondary)) 82%, currentColor);
  color: var(--color-12, var(--foreground));
  text-decoration: none;
}

:is(nav[aria-label="breadcrumb" i], .post-footer) a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

nav[aria-label="breadcrumb" i] ol {
  align-items: center;
  flex-wrap: wrap;
}
