@font-face {
  font-family: Geist;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
}

:root {
  /* Animation Timing Custom Variables */
  --entry-duration: 0.85s;
  --entry-easing: cubic-bezier(0.25, 1, 0.5, 1);
  --exit-duration: 0.6s;
  --exit-easing: cubic-bezier(0.48, 0, 0.83, 0.45);
  --backdrop-entry-duration: 0.8s;
  --backdrop-entry-easing: cubic-bezier(0.16, 1, 0.3, 1);

  --page-bg: #edece8;
  --ink: #050505;
  --muted: rgba(0, 0, 0, 0.3);
  --line: rgba(0, 0, 0, 0.3);
  --selected-marker: #edece8;
  --portrait-tint: transparent;
  --portrait-tint-opacity: 0;
  --tile: #d9d9d9;
  --card-bg: #ffffff;
  --card-ink: #000000;
  --card-muted: rgba(0, 0, 0, 0.3);
  --page-max: 1800px;
  --gutter: clamp(24px, 5.1vw, 88px);
  --page-side: max(var(--gutter), calc((100vw - var(--page-max)) / 2 + var(--gutter)));
  --project-breadcrumb-left: var(--page-side);
  --surface-start-y: clamp(128px, 8.1vw, 140px);
  --content-start-y: 299px;
  --landing-top-padding: 64px;
  --landing-heading-offset: calc(var(--content-start-y) - var(--landing-top-padding));
  --left-width: 42%;
  --right-width: 58%;
  --text-size: 17px;
  --experiments-boundary-gap: 64px;
  --resize-bar: #D4D4D0;
  --resize-pill: #555555;
  --card-padding: 28px;
  --safari-mask-solid: 1px;

  /* Cutting Mat Design Variables (Default Green) */
  --mat-bg: #2D6D63;
  --mat-accent: #2D6D63;
  --mat-grid-thin: rgba(255, 255, 255, 0.4);
  --mat-grid-thick: rgba(255, 255, 255, 0.4);
  --mat-text: rgba(255, 255, 255, 0.85);
}

/* Themed overrides for blue, red, and yellow themes */
[data-theme="blue"] {
  --mat-bg: var(--ink);
  --mat-accent: var(--ink);
  --mat-grid-thin: color-mix(in srgb, var(--page-bg) 40%, transparent);
  --mat-grid-thick: color-mix(in srgb, var(--page-bg) 40%, transparent);
  --mat-text: var(--page-bg);
}

[data-theme="red"] {
  --mat-bg: #B13333;
  --mat-accent: #B13333;
  --mat-grid-thin: color-mix(in srgb, var(--page-bg) 40%, transparent);
  --mat-grid-thick: color-mix(in srgb, var(--page-bg) 40%, transparent);
  --mat-text: var(--page-bg);
}

[data-theme="yellow"] {
  --mat-bg: var(--ink);
  --mat-accent: var(--ink);
  --mat-grid-thin: color-mix(in srgb, var(--page-bg) 40%, transparent);
  --mat-grid-thick: color-mix(in srgb, var(--page-bg) 40%, transparent);
  --mat-text: var(--page-bg);
}

* {
  box-sizing: border-box;
}

/* Highlighter text selection and element highlighting */
::selection {
  background-color: #FFF53D !important;
  color: #000000 !important;
}

::-moz-selection {
  background-color: #FFF53D !important;
  color: #000000 !important;
}

mark,
.highlight {
  background-color: #FFF53D !important;
  color: #000000 !important;
}

.info-highlight {
  background-image: linear-gradient(to right, rgba(255, 245, 61, 0.7) 0%, rgba(255, 245, 61, 0.7) 100%) !important;
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left center;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.1em;
  color: var(--ink);
  display: inline;
  animation: highlight-sweep 1.2s cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 1.0s;
}

.no-stagger-reveal .info-highlight {
  animation-delay: 1.0s;
}

@keyframes highlight-sweep {
  from {
    background-size: 0% 100%;
    color: var(--ink);
  }
  to {
    background-size: 100% 100%;
    color: #000000;
  }
}

@media (prefers-reduced-motion: reduce) {
  .info-highlight {
    animation: none;
    background-size: 100% 100%;
    color: #000000;
  }
}

html {
  overflow-x: clip;
  background: var(--page-bg);
  background-color: var(--page-bg);
  color: var(--ink);
  font-family:
    Geist,
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-size: var(--text-size);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--page-bg);
  background-color: var(--page-bg);
  font-weight: 400;
  transition: background-color 220ms ease;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: calc(var(--safari-mask-solid) + 12px);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--page-bg) 0,
    var(--page-bg) var(--safari-mask-solid),
    color-mix(in srgb, var(--page-bg) 0%, transparent) 100%
  );
  transition: background-color 220ms ease;
  z-index: 2147483647;
}

@media (max-width: 860px), (hover: none) and (pointer: coarse) {
  body::before {
    content: none;
    display: none !important;
  }
}

@supports (-webkit-touch-callout: none) {
  body::before {
    content: none;
    display: none !important;
  }
}

.project-detail-body::before,
html.detail-overlay-active body::before {
  display: none;
}

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

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

.page {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro {
  display: grid;
  grid-template-columns: var(--left-width) var(--right-width);
  align-items: start;
  min-height: calc(100vh - 128px);
  padding: var(--landing-top-padding) var(--gutter) var(--experiments-boundary-gap);
}

.profile-panel {
  position: sticky;
  top: 64px;
  min-height: calc(100vh - 128px);
  display: flex;
  flex-direction: column;
  align-self: start;
  padding-right: clamp(24px, 3.5vw, 64px);
  padding-bottom: 0;
  container-type: inline-size;
}

.identity {
  position: absolute;
  top: 0;
  left: 0;
  right: clamp(24px, 3.5vw, 64px);
  line-height: 1.35;
  z-index: 10;
  transition: opacity 180ms ease;
}

.identity p,
.bio p,
.contact-links a,
.project-caption,
.note,
.site-footer {
  margin: 0;
  font-size: 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;
}

.name {
  position: relative;
  display: inline-grid;
  margin: 0;
  width: max-content;
  cursor: pointer;
  user-select: none;
}

.name-label {
  grid-area: 1 / 1;
  transition: opacity 200ms ease;
}

.name-label--action {
  opacity: 0;
}

.identity:has(.role:hover) .name-label--default,
.identity:has(.name:hover) .name-label--default {
  opacity: 0;
  transition-delay: 500ms;
}

.identity:has(.role:hover) .name-label--action,
.identity:has(.name:hover) .name-label--action {
  opacity: 1;
  transition-delay: 500ms;
}

.role {
  margin: 0;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  width: fit-content;
}

.role-char {
  display: inline-block;
  transition: color 400ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: color;
}
.bio {
  max-width: 560px;
  padding-top: var(--landing-heading-offset);
  line-height: 1.62;
}

.bio p {
  transition: color 220ms ease;
}

.bio a {
  color: var(--ink);
  transition: color 220ms ease;
}

.bio:has(a:hover) p {
  color: var(--muted);
}

.bio:has(a:hover) a:not(:hover) {
  color: var(--muted);
}

.bio a:hover {
  color: var(--ink);
}

/* Link Preview Popover */
.preview-trigger {
  position: relative;
  display: inline-block;
}

.link-preview {
  position: absolute;
  top: 100%;
  left: var(--mouse-x, 50%);
  transform: translate(-50%, 0) scale(0.95);
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  padding: 10px 12px;
  background: var(--card-bg);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 100;
  text-decoration: none !important;
  color: var(--card-ink);
  font-family: Geist, sans-serif;
  letter-spacing: 0;
  transition:
    opacity 180ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 180ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 180ms;
  transition-delay: 0s;
}

/* Remove underlines inside the preview popover */
.link-preview * {
  text-decoration: none !important;
}

/* Show preview popover on hover / focus-within */
.preview-trigger:hover .link-preview,
.preview-trigger:focus-within .link-preview {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 8px) scale(1); /* Slides down below the link */
  transition-delay: 150ms; /* hover delay for a smoother feel */
}

.preview-logo-container {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--page-bg);
  border: 0;
  transition: background-color 220ms ease;
}

.preview-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-placeholder {
  background: #000000;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background-color 220ms ease, color 220ms ease;
}

.preview-details {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  text-align: left;
  gap: 2px;
}

.preview-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--card-ink);
  white-space: nowrap;
  overflow: hidden;
  max-width: none;
  transition: none;
}

.preview-url {
  font-size: 11px;
  color: var(--card-muted);
  font-weight: 400;
  transition: none;
}

.bio p + p {
  margin-top: 1.62em;
}

.section-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: clamp(12px, 2vw, 20px);
  display: flex;
  align-items: baseline;
  gap: 2px;
  transition: color 220ms ease;
}

.section-title sup {
  font-size: 0.65rem;
  font-weight: 400;
  position: relative;
  top: -0.45em;
  margin-left: 4px;
}

.section-title-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  position: relative;
}

.section-title-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 240ms cubic-bezier(0.25, 1, 0.5, 1);
}

.section-title-link:hover::after,
.section-title-link:focus-visible::after {
  width: 100%;
}

.section-title-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.contact-block {
  margin-top: auto;
  padding-top: 72px;
  display: grid;
  grid-template-columns: 174px 1fr;
  gap: 24px;
  align-items: end;
}

.portrait-wrap {
  position: relative;
  width: 174px;
  height: 220px;
  overflow: hidden;
  margin-bottom: 0;
}

.portrait-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--portrait-tint);
  mix-blend-mode: screen;
  opacity: var(--portrait-tint-opacity);
  pointer-events: none;
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
}

.contact-links {
  display: grid;
  justify-items: start;
  line-height: 1.62;
}

.contact-links a {
  text-decoration: none;
}

.contact-links a:hover {
  text-decoration: underline;
}

.contact-links a .material-symbols-outlined {
  font-size: 0.9em;
  line-height: 1;
  display: inline-block;
  vertical-align: -0.05em;
  text-decoration: none !important;
  opacity: 0;
  width: 1em;
  overflow: hidden;
  transition:
    opacity 220ms cubic-bezier(0.25, 1, 0.5, 1);
  margin-left: 4px;
}

.contact-links a:hover .material-symbols-outlined,
.contact-links a .material-symbols-outlined.copied {
  opacity: 1;
  width: 1em;
  margin-left: 4px;
}

.contact-links a:hover .copy-icon:hover {
  opacity: 1;
}



.work-panel {
  position: relative;
  padding-top: var(--landing-heading-offset);
  padding-left: clamp(24px, 3.5vw, 64px);
  container-type: inline-size;
}

.theme-picker {
  position: absolute;
  top: 0;
  right: -40px;
  width: 180px;
  height: 130px;
  z-index: 2;
}

.theme-picker::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  bottom: 0;
  left: 0;
}

.theme-picker-label {
  position: absolute;
  top: 30px;
  right: 110px; /* Collapsed position */
  font-size: 1rem;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    color 220ms ease,
    right 220ms ease; /* Smooth slide transition */
}



.theme-picker:hover .theme-picker-label,
.theme-picker:focus-within .theme-picker-label,
.theme-picker.is-open .theme-picker-label {
  opacity: 1;
  transform: translateX(0);
  right: 200px; /* Expanded position */
}

.theme-swatch {
  position: absolute;
  width: 23px;
  height: 23px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  translate: 0 0;
  transition:
    transform 220ms ease,
    translate 220ms ease,
    scale 220ms ease,
    width 220ms ease,
    height 220ms ease,
    box-shadow 160ms ease;
}

.theme-swatch::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: var(--selected-marker);
  transform: translate(-50%, -50%);
  transition:
    width 160ms ease,
    height 160ms ease,
    background-color 160ms ease;
}

.theme-swatch.is-selected::after {
  width: 9px;
  height: 9px;
}

.theme-swatch.is-selected {
  z-index: 10;
}

.theme-swatch:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.theme-swatch--red {
  z-index: 1;
  background: #ff1414;
  transform: translate(103px, -2px);
}

.theme-swatch--white {
  z-index: 5;
  background: #fff;
  transform: translate(115px, 7px);
}

.theme-swatch--black {
  z-index: 4;
  background: #000;
  transform: translate(111px, 20px);
}

.theme-swatch--black.is-selected {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.theme-swatch--black.is-selected::after {
  background-color: #7f7f7f;
}

.theme-swatch--blue {
  z-index: 3;
  background: #0a53ff;
  transform: translate(96px, 20px);
}

.theme-swatch--yellow {
  z-index: 2;
  background: #ffd817;
  transform: translate(92px, 7px);
}

.theme-picker:hover .theme-swatch,
.theme-picker:focus-within .theme-swatch,
.theme-picker.is-open .theme-swatch {
  width: 40px;
  height: 40px;
  translate: var(--x, 0px) var(--y, 0px);
  transition:
    transform 220ms ease,
    translate 0s,
    scale 220ms ease,
    width 220ms ease,
    height 220ms ease,
    box-shadow 160ms ease;
}

.theme-picker:hover .theme-swatch--red,
.theme-picker:focus-within .theme-swatch--red,
.theme-picker.is-open .theme-swatch--red {
  transform: translate(55px, 10px);
}

.theme-picker:hover .theme-swatch--white,
.theme-picker:focus-within .theme-swatch--white,
.theme-picker.is-open .theme-swatch--white {
  transform: translate(100px, 18px);
}

.theme-picker:hover .theme-swatch--black,
.theme-picker:focus-within .theme-swatch--black,
.theme-picker.is-open .theme-swatch--black {
  transform: translate(74px, 64px);
}

.theme-picker:hover .theme-swatch--blue,
.theme-picker:focus-within .theme-swatch--blue,
.theme-picker.is-open .theme-swatch--blue {
  transform: translate(24px, 54px);
}

.theme-picker:hover .theme-swatch--yellow,
.theme-picker:focus-within .theme-swatch--yellow,
.theme-picker.is-open .theme-swatch--yellow {
  transform: translate(0, 20px);
}

.theme-picker:hover .theme-swatch.is-selected::after,
.theme-picker:focus-within .theme-swatch.is-selected::after,
.theme-picker.is-open .theme-swatch.is-selected::after {
  width: 14px;
  height: 14px;
}

.theme-picker:hover .theme-swatch.is-selected,
.theme-picker:focus-within .theme-swatch.is-selected,
.theme-picker.is-open .theme-swatch.is-selected {
  scale: 1.1;
}

.project-stack-shell {
  position: relative;
  overflow-anchor: none;
}

.project-stack-shell.is-project-stack-expanded .project-stack-fade {
  height: 0;
  opacity: 0;
}

.projects-page-body {
  min-height: 100vh;
}

.projects-page-body::after {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 18;
  height: clamp(128px, 11vw, 188px);
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      var(--page-bg) 0%,
      color-mix(in srgb, var(--page-bg) 92%, transparent) 42%,
      color-mix(in srgb, var(--page-bg) 0%, transparent) 100%
    );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(#000 0%, #000 44%, transparent 100%);
  mask-image: linear-gradient(#000 0%, #000 44%, transparent 100%);
}

.projects-page {
  --projects-page-start: var(--surface-start-y);
  --projects-breadcrumb-top: var(--landing-top-padding);
  width: 100%;
  max-width: var(--page-max);
  min-height: 100vh;
  margin: 0 auto;
  padding: var(--projects-page-start) var(--gutter) clamp(80px, 11vw, 160px);
}

.projects-page-header {
  position: fixed;
  top: var(--projects-breadcrumb-top);
  left: var(--project-breadcrumb-left);
  right: var(--page-side);
  z-index: 30;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.project-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.62;
  pointer-events: auto;
}

.project-breadcrumb a,
.project-breadcrumb strong {
  color: inherit;
  font-weight: 400;
  text-decoration: none;
}

.project-breadcrumb a {
  opacity: 0.3;
  transition: opacity 220ms ease;
}

.project-breadcrumb a:hover,
.project-breadcrumb a:focus-visible {
  opacity: 1;
}

.project-breadcrumb span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.projects-page-column {
  width: min(856px, 100%);
  margin: 0;
}

.projects-page-title {
  margin-bottom: 28px;
}

.projects-list {
  display: grid;
  gap: clamp(52px, 5vw, 68px);
}

.project-stack {
  position: relative;
  display: grid;
  gap: 48px;
  max-height: 1500px;
  overflow: hidden;
  transition: max-height 1000ms cubic-bezier(0.65, 0, 0.35, 1);
  will-change: max-height;
  padding: calc(var(--card-padding) + 4px);
  margin-inline: calc(-1 * (var(--card-padding) + 4px));
  margin-top: calc(-1 * (var(--card-padding) + 4px));
  margin-bottom: 0;
}

.project-card {
  display: grid;
  grid-template-rows: auto auto;
  padding: var(--card-padding);
  padding-top: 20px;
  margin-left: 0;
  margin-right: 0;
  background-color: var(--card-bg);
  color: var(--card-ink);
  cursor: pointer;
  text-decoration: none;
  transform-origin: center;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover,
.project-card:focus-visible {
  transform: scale(1.01);
}

.project-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

.project-card-copy {
  display: block;
  max-width: 668px;
  font-size: 1rem;
  line-height: 1.62;
}

.project-card-copy strong,
.project-card-copy small {
  display: block;
  font-weight: 400;
}

.project-card-copy small {
  color: var(--card-muted);
  transition: color 220ms ease;
  font-size: 1rem;
}

.project-card-visual {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 20px;
  overflow: hidden;
  background: #f0f0f0;
}

.project-media,
.project-placeholder,
.project-video {
  width: 100%;
  height: 100%;
}

.project-media {
  position: relative;
  display: block;
  overflow: hidden;
}

.project-media:focus-visible {
  outline: 2px solid #000;
  outline-offset: -6px;
}

.project-placeholder,
.project-video {
  object-fit: cover;
  object-position: center;
}

.project-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 180ms ease;
}

.project-media.is-video-ready .project-video {
  opacity: 1;
}

.project-video-toggle {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.84);
  color: #000;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.project-card:hover .project-video-toggle,
.project-card:focus-within .project-video-toggle,
.project-video-toggle:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-video-toggle:hover {
  background: #fff;
}

.project-video-toggle:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

.project-video-toggle-icon {
  width: 14px;
  height: 16px;
  background: currentColor;
  clip-path: polygon(0 0, 32% 0, 32% 100%, 0 100%, 0 0, 68% 0, 100% 0, 100% 100%, 68% 100%, 68% 0);
}

.project-media.is-video-paused .project-video-toggle-icon {
  width: 15px;
  height: 16px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.project-card-visual img,
.project-card-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-stack-fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 190px;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
  opacity: 1;
  transition:
    height 1000ms cubic-bezier(0.65, 0, 0.35, 1),
    opacity 1000ms cubic-bezier(0.65, 0, 0.35, 1);
}

.project-stack-fade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(237, 236, 232, 0) 0%,
    rgba(237, 236, 232, 0.38) 42%,
    var(--page-bg) 86%,
    var(--page-bg) 100%
  );
  background: linear-gradient(
    180deg,
    rgba(237, 236, 232, 0) 0%,
    color-mix(in srgb, var(--page-bg) 38%, transparent) 42%,
    var(--page-bg) 86%,
    var(--page-bg) 100%
  );
}

.project-stack-fade-layer {
  position: absolute;
  inset: var(--start) 0 0;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  transition:
    backdrop-filter 1000ms cubic-bezier(0.65, 0, 0.35, 1),
    -webkit-backdrop-filter 1000ms cubic-bezier(0.65, 0, 0.35, 1);
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.8) 24%,
    #000 100%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.8) 24%,
    #000 100%
  );
}

.project-stack-shell.is-project-stack-expanded .project-stack-fade-layer {
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}

.show-projects-button {
  appearance: none;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin: 0 0 0 var(--card-padding);
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}

.show-projects-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

.show-projects-button:hover {
  text-decoration: none;
}

.show-projects-button:hover [data-project-accordion-label] {
  text-decoration: underline;
}

.show-projects-button .project-count {
  font-size: 0.65rem;
  font-weight: 400;
  position: relative;
  top: -0.45em;
  margin-left: 4px;
}

.show-projects-button[aria-expanded="true"] .project-count {
  display: none;
}

.experiments {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #000;
  padding: var(--experiments-boundary-gap) var(--page-side) 0;
}

.experiments-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 40px 0;
  gap: 5px;
  line-height: 1.35;
}

.rainbow-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: inherit;
  letter-spacing: 0.33px;
}

.playground-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.playground-title-svg {
  display: block;
  height: 24px;
  width: auto;
  color: #ffffff;
}

.playground-title-icon {
  display: block;
  height: 23px;
  width: auto;
  transform: translateY(-3px);
}

/* Static fallback colors for the playground icon shapes (e.g. for prefers-reduced-motion) */
.playground-title-icon path:nth-child(1) {
  stroke: #B94008;
}
.playground-title-icon path:nth-child(2) {
  stroke: #8B89F5;
}
.playground-title-icon path:nth-child(3) {
  stroke: #00A400;
}
.playground-title-icon path:nth-child(4) {
  stroke: #0268F1;
}

@media (prefers-reduced-motion: no-preference) {
  .playground-title-icon path:nth-child(1) {
    animation: playground-shuffle-1 22s infinite step-end;
  }
  .playground-title-icon path:nth-child(2) {
    animation: playground-shuffle-2 22s infinite step-end;
  }
  .playground-title-icon path:nth-child(3) {
    animation: playground-shuffle-3 22s infinite step-end;
  }
  .playground-title-icon path:nth-child(4) {
    animation: playground-shuffle-4 22s infinite step-end;
  }
}

@keyframes playground-shuffle-1 {
  /* Sub-cycle 1 (0s - 5.5s) */
  0% { stroke: #00A400; }
  0.57% { stroke: #8B89F5; }
  1.14% { stroke: #0268F1; }
  1.70% { stroke: #00A400; }
  2.27%, 25.0% { stroke: #B94008; } /* Resting 1: Red-brown */

  /* Sub-cycle 2 (5.5s - 11s) */
  25.57% { stroke: #0268F1; }
  26.14% { stroke: #00A400; }
  26.70% { stroke: #B94008; }
  27.27%, 50.0% { stroke: #8B89F5; } /* Resting 2: Purple */

  /* Sub-cycle 3 (11s - 16.5s) */
  50.57% { stroke: #B94008; }
  51.14% { stroke: #0268F1; }
  51.70% { stroke: #8B89F5; }
  52.27%, 75.0% { stroke: #00A400; } /* Resting 3: Green */

  /* Sub-cycle 4 (16.5s - 22s) */
  75.57% { stroke: #8B89F5; }
  76.14% { stroke: #B94008; }
  76.70% { stroke: #00A400; }
  77.27%, 100% { stroke: #0268F1; } /* Resting 4: Blue */
}

@keyframes playground-shuffle-2 {
  /* Sub-cycle 1 (0s - 5.5s) */
  0% { stroke: #0268F1; }
  0.57% { stroke: #00A400; }
  1.14% { stroke: #B94008; }
  1.70% { stroke: #0268F1; }
  2.27%, 25.0% { stroke: #8B89F5; } /* Resting 1: Purple */

  /* Sub-cycle 2 (5.5s - 11s) */
  25.57% { stroke: #B94008; }
  26.14% { stroke: #0268F1; }
  26.70% { stroke: #8B89F5; }
  27.27%, 50.0% { stroke: #00A400; } /* Resting 2: Green */

  /* Sub-cycle 3 (11s - 16.5s) */
  50.57% { stroke: #8B89F5; }
  51.14% { stroke: #B94008; }
  51.70% { stroke: #00A400; }
  52.27%, 75.0% { stroke: #0268F1; } /* Resting 3: Blue */

  /* Sub-cycle 4 (16.5s - 22s) */
  75.57% { stroke: #0268F1; }
  76.14% { stroke: #00A400; }
  76.70% { stroke: #8B89F5; }
  77.27%, 100% { stroke: #B94008; } /* Resting 4: Red-brown */
}

@keyframes playground-shuffle-3 {
  /* Sub-cycle 1 (0s - 5.5s) */
  0% { stroke: #B94008; }
  0.57% { stroke: #0268F1; }
  1.14% { stroke: #8B89F5; }
  1.70% { stroke: #B94008; }
  2.27%, 25.0% { stroke: #00A400; } /* Resting 1: Green */

  /* Sub-cycle 2 (5.5s - 11s) */
  25.57% { stroke: #8B89F5; }
  26.14% { stroke: #B94008; }
  26.70% { stroke: #00A400; }
  27.27%, 50.0% { stroke: #0268F1; } /* Resting 2: Blue */

  /* Sub-cycle 3 (11s - 16.5s) */
  50.57% { stroke: #0268F1; }
  51.14% { stroke: #8B89F5; }
  51.70% { stroke: #00A400; }
  52.27%, 75.0% { stroke: #B94008; } /* Resting 3: Red-brown */

  /* Sub-cycle 4 (16.5s - 22s) */
  75.57% { stroke: #B94008; }
  76.14% { stroke: #0268F1; }
  76.70% { stroke: #8B89F5; }
  77.27%, 100% { stroke: #00A400; } /* Resting 4: Green */
}

@keyframes playground-shuffle-4 {
  /* Sub-cycle 1 (0s - 5.5s) */
  0% { stroke: #8B89F5; }
  0.57% { stroke: #B94008; }
  1.14% { stroke: #00A400; }
  1.70% { stroke: #8B89F5; }
  2.27%, 25.0% { stroke: #0268F1; } /* Resting 1: Blue */

  /* Sub-cycle 2 (5.5s - 11s) */
  25.57% { stroke: #00A400; }
  26.14% { stroke: #8B89F5; }
  26.70% { stroke: #0268F1; }
  27.27%, 50.0% { stroke: #B94008; } /* Resting 2: Red-brown */

  /* Sub-cycle 3 (11s - 16.5s) */
  50.57% { stroke: #0268F1; }
  51.14% { stroke: #00A400; }
  51.70% { stroke: #B94008; }
  52.27%, 75.0% { stroke: #8B89F5; } /* Resting 3: Purple */

  /* Sub-cycle 4 (16.5s - 22s) */
  75.57% { stroke: #8B89F5; }
  76.14% { stroke: #B94008; }
  76.70% { stroke: #0268F1; }
  77.27%, 100% { stroke: #00A400; } /* Resting 4: Green */
}

.experiments-description {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.34);
  font-size: 1rem;
  font-weight: 400;
  line-height: inherit;
}

.rainbow-title sup {
  font-size: 0.55em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  position: relative;
  top: -0.45em;
  margin-left: 6px;
  letter-spacing: normal;
}

.rainbow-title span:nth-child(1),
.rainbow-title span:nth-child(8) {
  color: #ff6100;
}

.rainbow-title span:nth-child(2) {
  color: #7f7f7f;
}

.rainbow-title span:nth-child(3) {
  color: #00a200;
}

.rainbow-title span:nth-child(4) {
  color: #ad8c00;
}

.rainbow-title span:nth-child(5),
.rainbow-title span:nth-child(9) {
  color: #8b89ee;
}

.rainbow-title span:nth-child(6),
.rainbow-title span:nth-child(10) {
  color: #995d26;
}

.rainbow-title span:nth-child(7),
.rainbow-title span:nth-child(11) {
  color: #006aff;
}

.experiments-stack-shell {
  position: relative;
  display: block;
}

.experiments-stack {
  position: relative;
  max-height: 800px;
  overflow: hidden;
  transition: max-height 1000ms cubic-bezier(0.65, 0, 0.35, 1);
  will-change: max-height;
}

.experiment-grid {
  display: flex;
  gap: 39px;
  width: 100%;
  padding-bottom: 56px;
  align-items: flex-start;
}

.experiment-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 39px;
}

.experiment-tile {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: var(--tile-ratio, 1);
  background: transparent;
  text-decoration: none;
  overflow: hidden;
  cursor: zoom-in;
}

.experiment-tile img,
.experiment-lightbox-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experiment-tile video,
.experiment-lightbox-visual video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.experiment-tile img,
.experiment-tile video {
  transform: scale(1.01);
  transition: transform 220ms ease;
}

.experiment-tile:hover img,
.experiment-tile:hover video,
.experiment-tile:focus-visible img,
.experiment-tile:focus-visible video {
  transform: scale(1);
}

.experiment-tile.is-lifted {
  opacity: 0;
}

.experiment-tile::after {
  content: attr(data-year);
  position: absolute;
  top: 12px;
  right: 12px;
  color: #8f8f8f;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.experiment-tile:hover::after,
.experiment-tile:focus-visible::after {
  opacity: 1;
}

.experiment-tile--tall {
  aspect-ratio: 360 / 480;
}

.experiment-tile--short {
  aspect-ratio: 360 / 210;
}

.experiment-tile--medium {
  aspect-ratio: 360 / 330;
}

.experiments-stack-fade {
  position: absolute;
  right: -100px;
  bottom: 0;
  left: -100px;
  height: 360px;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
  opacity: 1;
  transition: opacity 1000ms cubic-bezier(0.65, 0, 0.35, 1);
}

.experiments-stack-fade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.15) 25%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.8) 75%,
    #000000 100%
  );
}

.experiments-stack-fade-layer {
  position: absolute;
  inset: var(--start) -100px 0;
  background: rgba(255, 255, 255, 0.01);
  opacity: 1;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  transition:
    opacity 1000ms cubic-bezier(0.65, 0, 0.35, 1),
    backdrop-filter 1000ms cubic-bezier(0.65, 0, 0.35, 1),
    -webkit-backdrop-filter 1000ms cubic-bezier(0.65, 0, 0.35, 1);
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.8) 24%,
    #000 100%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.8) 24%,
    #000 100%
  );
}

.is-experiments-stack-expanded .experiments-stack-fade-layer {
  opacity: 0;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}

.is-experiments-stack-expanded .experiments-stack-fade {
  opacity: 0;
}

.show-experiments-button {
  appearance: none;
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: -90px;
  margin-bottom: 40px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 220ms ease;
}

.show-experiments-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 5px;
}

.show-experiments-button:hover {
  text-decoration: none;
  opacity: 1;
}

.show-experiments-button:hover [data-experiments-accordion-label] {
  text-decoration: underline;
}

.show-experiments-button .experiment-count {
  font-size: 0.65rem;
  font-weight: 400;
  position: relative;
  top: -0.45em;
  margin-left: 4px;
}

.show-experiments-button[aria-expanded="true"] .experiment-count {
  display: none;
}

.experiment-lightbox {
  --start-left: 0px;
  --start-top: 0px;
  --start-width: 0px;
  --start-height: 0px;
  --target-x: 0px;
  --target-y: 0px;
  --target-scale: 1;
  --info-left: 0px;
  --info-top: 0px;
  --info-width: 220px;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0);
  visibility: hidden;
  pointer-events: none;
  cursor: zoom-out;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition:
    background-color 260ms ease,
    backdrop-filter 260ms ease,
    -webkit-backdrop-filter 260ms ease,
    visibility 0s linear 260ms;
}

.experiment-lightbox.is-visible {
  visibility: visible;
  pointer-events: auto;
  transition:
    background-color 260ms ease,
    backdrop-filter 260ms ease,
    -webkit-backdrop-filter 260ms ease,
    visibility 0s;
}

.experiment-lightbox.is-active {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.experiment-lightbox-visual {
  position: fixed;
  top: var(--start-top);
  left: var(--start-left);
  width: var(--start-width);
  height: var(--start-height);
  overflow: hidden;
  background: transparent;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  cursor: zoom-out;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: top left;
  transition:
    box-shadow 460ms cubic-bezier(0.65, 0, 0.35, 1),
    transform 460ms cubic-bezier(0.65, 0, 0.35, 1);
  will-change: box-shadow, transform;
}

.experiment-lightbox.is-active .experiment-lightbox-visual {
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  transform: translate3d(var(--target-x), var(--target-y), 0) scale(var(--target-scale));
}

.experiment-lightbox-info {
  position: fixed;
  top: var(--info-top);
  left: var(--info-left);
  width: var(--info-width);
  z-index: 1;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.experiment-lightbox.is-active .experiment-lightbox-info {
  opacity: 1;
  transition-delay: 460ms;
}

.experiment-lightbox.is-closing .experiment-lightbox-info {
  opacity: 0;
  transition-delay: 0ms;
}

.experiment-lightbox-year {
  display: block;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.experiment-lightbox-info p {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

body.is-experiment-lightbox-open {
  overflow: hidden;
}

.site-footer {
  display: flex;
  gap: 36px;
  align-items: center;
  padding: 47px var(--gutter) 64px;
  margin-left: calc(var(--gutter) + 286px);
  line-height: 1.62;
}

.site-footer a {
  text-decoration: none;
}

.site-footer span {
  color: var(--muted);
}

@media (max-width: 1280px) {
  :root {
    --text-size: 16px;
    --left-width: 42%;
    --right-width: 58%;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
    --text-size: 16px;
    --experiments-boundary-gap: 96px;
    --card-padding: 24px;
    --surface-start-y: 104px;
    --landing-top-padding: 32px;
  }

  .intro {
    position: relative;
    display: block;
    min-height: 0;
    padding: var(--landing-top-padding) var(--gutter) var(--experiments-boundary-gap);
  }

  .profile-panel {
    position: relative;
    top: 0;
    min-height: 0;
    display: block;
    padding-right: 0;
    padding-bottom: 0;
  }

  .bio {
    padding-top: 136px;
  }

  .contact-block {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 24px;
    align-items: end;
    margin-top: 0;
    padding: 64px 0 0;
  }

  .portrait-wrap {
    width: 118px;
    height: 150px;
    margin: 0;
  }

  .work-panel {
    position: static;
    padding-top: 112px;
    padding-left: 0;
  }

  .theme-picker {
    top: var(--landing-top-padding);
    right: 0;
    width: 164px;
  }

  .theme-picker::before {
    right: 0;
  }

  .theme-picker-label {
    right: 94px;
  }

  .theme-picker:hover .theme-picker-label,
  .theme-picker:focus-within .theme-picker-label,
  .theme-picker.is-open .theme-picker-label {
    right: 184px;
  }

  .project-stack {
    gap: 24px;
    max-height: 1200px;
  }

  .project-card-visual {
    height: auto;
  }

  .projects-page {
    padding-top: var(--projects-page-start);
    padding-bottom: 96px;
  }

  .projects-page-header {
    position: fixed;
    top: var(--projects-breadcrumb-top);
    right: var(--gutter);
    left: var(--project-breadcrumb-left);
    pointer-events: none;
  }

  .projects-list {
    gap: 24px;
  }

  .experiments-header {
    gap: 0;
  }

  .experiment-grid {
    gap: 24px;
  }

  .experiment-col {
    gap: 24px;
  }

  .site-footer {
    margin-left: 0;
    padding-inline: var(--gutter);
  }
}

@media (max-width: 560px) {
  .intro:has(.theme-picker:hover) .identity,
  .intro:has(.theme-picker:focus-within) .identity,
  .intro:has(.theme-picker.is-open) .identity {
    opacity: 0;
    pointer-events: none;
  }

  .contact-block {
    grid-template-columns: 1fr;
  }

  .project-stack {
    max-height: 1120px;
  }

  .project-card-visual img {
    width: 100%;
  }

  .note {
    gap: 14px;
  }

  .experiment-grid {
    gap: 16px;
  }

  .experiment-col {
    gap: 16px;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 12px 24px;
  }
}

.about-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--page-bg);
  color: var(--ink);
  padding: 120px var(--page-side);
  border-top: 1px solid var(--line);
  transition:
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: start;
}

.about-mat-container {
  align-self: stretch;
  position: relative;
  padding-right: 0;
}

.about-mat-sticky-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.cutting-mat {
  position: sticky;
  top: 64px;
  width: calc(100% + var(--card-padding));
  height: calc(100vh - 128px);
  max-height: 100%;
  margin-left: calc(-1 * var(--card-padding));
  background: var(--mat-bg);
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--card-padding);
  transition: background-color 220ms ease;
  user-select: none;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.15);
}

.cutting-mat-inner-grid {
  position: absolute;
  top: 110px;
  left: var(--card-padding);
  right: var(--card-padding);
  bottom: 80px;
  overflow: visible;
  cursor: crosshair;
}

.cutting-mat-grid {
  position: absolute;
  bottom: -15px;
  left: -15px;
  width: calc(100% + 30px);
  height: 2100px;
  pointer-events: none;
}


.cutting-mat-crosshair-x,
.cutting-mat-crosshair-y {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.cutting-mat-inner-grid:hover .cutting-mat-crosshair-x,
.cutting-mat-inner-grid:hover .cutting-mat-crosshair-y {
  opacity: 1;
}

.cutting-mat-crosshair-x {
  left: 0;
  right: 0;
  height: 1px;
  border-top: 1px dashed var(--mat-grid-thick);
  top: 0;
  transform: translateY(0);
}

.cutting-mat-crosshair-y {
  top: 0;
  bottom: 0;
  width: 1px;
  border-left: 1px dashed var(--mat-grid-thick);
  left: 0;
  transform: translateX(0);
}

.cutting-mat-coords {
  position: absolute;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--mat-bg);
  padding: 6px 10px;
  font-family: monospace;
  font-size: 14px;
  border-radius: 6px;
  opacity: 0;
  z-index: 30;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
  height: 32px;
  line-height: 20px;
  transition:
    opacity 0.2s ease,
    width 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-theme="black"] .cutting-mat-coords {
  background: rgba(237, 236, 232, 0.55);
}

.cutting-mat-inner-grid:hover ~ .cutting-mat-coords {
  opacity: 1;
}

.cutting-mat-info {
  position: absolute;
  top: 32px;
  left: var(--card-padding);
  z-index: 5;
  pointer-events: none;
}

.cutting-mat-text-title {
  margin: 0;
  font-family: Geist, sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--mat-text);
  line-height: 1.4;
  white-space: nowrap;
}

.cutting-mat-text-subtitle {
  margin: 5px 0 0 0;
  font-family: Geist, sans-serif;
  font-size: 17px;
  color: var(--mat-text);
  opacity: 0.5;
}

.cutting-mat-logo {
  position: absolute;
  bottom: 24px;
  left: var(--card-padding);
  z-index: 5;
  color: var(--mat-text);
  line-height: 0;
  transition: opacity 0.25s ease;
}

.cutting-mat-logo.logo-hidden {
  opacity: 0;
  pointer-events: none;
}

.cutting-mat-logo svg {
  width: 32px;
  height: auto;
}

/* Interactive artifact description sitting next to the logo */
.cutting-mat-description {
  position: absolute;
  bottom: 24px;
  left: var(--card-padding);
  right: var(--card-padding);
  z-index: 5;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.45;
  color: var(--mat-text);
  opacity: 0;
  pointer-events: none;
  max-width: none;
  transition: opacity 0.25s ease;
  height: 45px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.cutting-mat-description.desc-active {
  opacity: 1;
}

/* Cutting Mat Scattered Artifacts */
.mat-artifact {
  position: absolute;
  box-sizing: content-box;
  z-index: 2;
  cursor: pointer;
  padding: 25px;
  margin: -25px;
  --card-rotation: 0deg;
}

.mat-artifact-inner {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  overflow: hidden;
  transform: rotate(var(--card-rotation));
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.mat-artifact-inner img {
  display: block;
  width: 100%;
  height: auto;
}

.mat-artifact:hover {
  z-index: 10;
}

.mat-artifact:hover .mat-artifact-inner {
  transform: scale(1.08) rotate(0deg);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3), 0 6px 12px rgba(0, 0, 0, 0.22);
}

/* Staggered letter animations for coords tooltip */
.cutting-mat-coords .coord-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(5px);
  animation: coordLetterIn 0.15s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  font-family: monospace;
  font-weight: normal;
}

.cutting-mat-coords .coord-letter-out {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  animation: coordLetterOut 0.1s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}

.cutting-mat-coords .coord-arrow {
  display: inline-block;
  opacity: 0;
  transform: translateY(5px);
  animation: coordLetterIn 0.15s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  font-size: 14px;
  vertical-align: middle;
  margin-left: 5px;
  font-weight: 500;
  font-variation-settings: 'wght' 500;
}

@keyframes coordLetterIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes coordLetterOut {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes coordFadeIn {
  to {
    opacity: 0.7;
  }
}

/* Organic, scattered layout matching the red squares */
.artifact-ipod {
  top: 59%;
  left: 61%;
  width: clamp(120px, 12vw, 170px);
  --card-rotation: 23deg;
}

.artifact-dynamicland {
  top: 15%;
  left: 5%;
  width: clamp(180px, 18vw, 260px);
  --card-rotation: -7deg;
}

.artifact-fluid-interface {
  top: 42%;
  left: 11%;
  width: clamp(180px, 18vw, 260px);
  --card-rotation: 6deg;
}

.artifact-radical-innovation {
  top: 30%;
  left: 56%;
  width: clamp(180px, 18vw, 260px);
  --card-rotation: -3deg;
}

.artifact-hypercard {
  top: 74%;
  left: 4%;
  width: clamp(180px, 18vw, 260px);
  --card-rotation: -21deg;
}

.artifact-notion {
  top: 3%;
  left: 54%;
  width: clamp(175px, 18vw, 255px);
  --card-rotation: 5deg;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.89;
  letter-spacing: 0.18px;
  padding-top: 180px;
}

.about-hero-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-hero-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-hero-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.4;
  color: var(--ink);
}

.about-hero-accent {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
  font-weight: normal;
  color: var(--mat-accent);
  transition: color 220ms ease;
}

.about-intro-paragraph p {
  margin: 0;
  font-size: 18px;
  line-height: 1.89;
  color: var(--ink);
  opacity: 0.9;
  max-width: 668px;
}

.about-scribble-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 668px;
}

.about-scribble-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 18px;
  line-height: 1.89;
  color: var(--ink);
}

.about-scribble-list li svg.scribble-icon {
  flex-shrink: 0;
  color: var(--mat-accent);
  transition: color 220ms ease;
  margin-top: 10px;
}

.about-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-block-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: normal;
  color: var(--mat-accent);
  text-transform: none;
  opacity: 1;
  transition: color 220ms ease;
}

.about-block-body {
  font-size: 18px;
  line-height: 1.89;
  color: var(--ink);
  opacity: 0.9;
}

.about-block-body p {
  margin: 0;
  max-width: 668px;
}

.about-signature-container {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signature-greeting {
  margin: 0;
  font-size: 18px;
  color: var(--ink);
}

.signature-svg-wrapper {
  color: var(--ink);
  line-height: 0;
}

.signature-svg {
  width: 72px;
  height: auto;
}

.footnote-ref {
  font-size: 12px;
  font-weight: 500;
  vertical-align: baseline;
  text-decoration: none;
  color: var(--mat-accent);
  margin-left: 2px;
}

.footnote-ref:hover {
  text-decoration: underline;
}


.about-contact-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: opacity 220ms ease, color 220ms ease;
}

.about-contact-link:hover {
  opacity: 0.8;
}

.about-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Geist, sans-serif;
  font-size: 14px;
  color: var(--ink);
  opacity: 0.6;
  transition: border-color 220ms ease;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer-link:hover {
  border-color: currentColor;
}

@media (max-width: 900px) {
  .about-grid {
    display: block;
  }

  .about-mat-container {
    display: none;
  }

  .about-section {
    padding: var(--experiments-boundary-gap) var(--gutter);
  }

  .about-content {
    gap: 40px;
    padding-top: 0;
  }
}

/* Progressive Viewport Blur */
.progressive-blur-container {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  height: 50px;
  pointer-events: none;
  z-index: 9999;
}

.progressive-blur-container--top {
  top: 0;
  transform: scaleY(-1);
}

html.detail-overlay-active .progressive-blur-container--top {
  display: none;
}

.progressive-blur-container--bottom {
  bottom: 0;
}

.progressive-blur-container > .blur-filter {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.progressive-blur-container > .blur-filter:nth-child(1) {
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  -webkit-mask: linear-gradient(
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 0) 40%
  );
  mask: linear-gradient(
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 0) 40%
  );
}

.progressive-blur-container > .blur-filter:nth-child(2) {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  -webkit-mask: linear-gradient(
    rgba(0, 0, 0, 0) 10%,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 0) 50%
  );
  mask: linear-gradient(
    rgba(0, 0, 0, 0) 10%,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 0) 50%
  );
}

.progressive-blur-container > .blur-filter:nth-child(3) {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  -webkit-mask: linear-gradient(
    rgba(0, 0, 0, 0) 15%,
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0) 60%
  );
  mask: linear-gradient(
    rgba(0, 0, 0, 0) 15%,
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0) 60%
  );
}

.progressive-blur-container > .blur-filter:nth-child(4) {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-mask: linear-gradient(
    rgba(0, 0, 0, 0) 20%,
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 1) 60%,
    rgba(0, 0, 0, 0) 70%
  );
  mask: linear-gradient(
    rgba(0, 0, 0, 0) 20%,
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 1) 60%,
    rgba(0, 0, 0, 0) 70%
  );
}

.progressive-blur-container > .blur-filter:nth-child(5) {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-mask: linear-gradient(
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 1) 60%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0) 90%
  );
  mask: linear-gradient(
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 1) 60%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0) 90%
  );
}

.progressive-blur-container > .blur-filter:nth-child(6) {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  -webkit-mask: linear-gradient(rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 80%);
  mask: linear-gradient(rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 80%);
}

.progressive-blur-container > .blur-filter:nth-child(7) {
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  -webkit-mask: linear-gradient(rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 1) 100%);
  mask: linear-gradient(rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 1) 100%);
}

.progressive-blur-container > .gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, #ffffff00);
  -webkit-mask-image: linear-gradient(transparent, #000);
  mask-image: linear-gradient(transparent, #000);
}

@media (max-width: 860px) {
  .progressive-blur-container {
    display: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .progressive-blur-container--top {
    display: none;
  }
}

@supports (-webkit-touch-callout: none) {
  .progressive-blur-container--top {
    display: none;
  }
}



/* CSS Container Queries for Panel Responsiveness */
@container (max-width: 380px) {
  .contact-block {
    grid-template-columns: 120px 1fr;
    gap: 16px;
  }
  .portrait-wrap {
    width: 120px;
    height: 152px;
  }
}

@container (max-width: 290px) {
  .contact-block {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .portrait-wrap {
    width: 100px;
    height: 126px;
  }
}

@container (max-width: 480px) {
  .project-stack-shell {
    --card-padding: 20px;
  }
  .project-card-copy {
    font-size: 1rem;
  }
}

/* Staggered Load Animations (inspired by paco.me) */
.no-stagger-reveal [data-animate] {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

[data-animate] {
  --stagger: 0;
  --delay: 0.15s;
  --start: 0s;
  --duration: 0.8s;
}

@media (prefers-reduced-motion: no-preference) {
  [data-animate] {
    animation: var(--duration) cubic-bezier(0.16, 1, 0.3, 1) both enter;
    animation-delay: calc(var(--stagger) * var(--delay) + var(--start));
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    animation: fadeIn 0.4s ease-out both;
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Project Detail Overlay */
.detail-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  overflow: hidden;
  pointer-events: none;
}

.detail-overlay.is-active {
  display: block;
  pointer-events: auto;
}

.detail-overlay-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--page-bg);
  opacity: 0;
  transition: opacity var(--exit-duration, 0.6s) var(--exit-easing, cubic-bezier(0.48, 0, 0.83, 0.45));
  z-index: 1;
}

.detail-overlay.is-active .detail-overlay-backdrop {
  opacity: 1;
  transition: opacity var(--backdrop-entry-duration, 0.8s) var(--backdrop-entry-easing, cubic-bezier(0.16, 1, 0.3, 1));
}

.detail-overlay-sheet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
}

/* Inside overlay, the page is the scroll container! */
.detail-overlay .project-detail-page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* White sheet slide up */
.detail-overlay .project-detail-main {
  transform: translateY(100vh);
  transition: transform var(--exit-duration, 0.6s) var(--exit-easing, cubic-bezier(0.48, 0, 0.83, 0.45));
}

.detail-overlay.is-active .project-detail-main {
  transform: translateY(0);
  transition: transform var(--entry-duration, 0.85s) var(--entry-easing, cubic-bezier(0.25, 1, 0.5, 1));
}

/* Peek sheet also slides up with the main content */
.detail-overlay .project-detail-peek-sheet {
  transform: translateY(100vh);
  transition: transform var(--exit-duration, 0.6s) var(--exit-easing, cubic-bezier(0.48, 0, 0.83, 0.45));
}

.detail-overlay.is-active .project-detail-peek-sheet {
  transform: translateY(0);
  transition: transform var(--entry-duration, 0.85s) var(--entry-easing, cubic-bezier(0.25, 1, 0.5, 1));
}

.detail-overlay.is-active .project-detail-peek-sheet.is-pointer-hovered,
.detail-overlay.is-active .project-detail-peek-sheet:focus-visible {
  transform: translateY(-28px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Sidebar controls fade in */
.detail-overlay .detail-section-nav {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0s;
}

.detail-overlay.is-active .detail-section-nav {
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s;
}

/* Disable background scrollbar visibility without breaking scroll position */
html.detail-overlay-active {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow: hidden;
}

html.detail-overlay-active::-webkit-scrollbar {
  display: none;
}

.detail-overlay-active .page {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}
