:root {
  --bg: #0a0a0a;
  --bg-soft: #141414;
  --panel: rgba(12, 12, 12, 0.76);
  --panel-strong: rgba(10, 10, 10, 0.94);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f0f0f0;
  --muted: #a8a8a8;
  --muted-2: #717171;
  --accent: #e6e6e6;
  --accent-2: #fafafa;
  --shop-toolbar-focus-ring: 0.8px;
  --shop-toolbar-focus-offset: 2px;
  /** Sort + FILTERS bubbles share one fixed track height (expanded FILTERS nests mini chips; padding + their min-height was stacking taller than Sort). */
  --shop-toolbar-chip-track-h: 48px;
  /** Sort-by + FILTERS label: one shared ramp (font, tracking, line-height). */
  --shop-toolbar-label-font-size: calc(0.74rem * 1.15);
  --shop-toolbar-label-tracking: 0.2em;
  /** Software / Approach / Entity row: same type ramp as Sort/FILTERS, 20% smaller body. */
  --shop-toolbar-mini-label-font-size: calc(var(--shop-toolbar-label-font-size) * 0.8);
  /** Inner filter pills: hug text; vertically centered inside expanded FILTERS row. */
  --shop-filter-mini-pad-y: 10px;
  --shop-filter-mini-pad-x: 15px;
  --shop-filter-mini-border: 1px;
  /** Custom Sort/Filters menus mount on `body` — not inside `.section--shop`; keep radii defined globally. */
  --shop-dd-panel-radius: 14px;
  --shop-dd-option-radius: 10px;
  --accent-client: #ff3b53;
  --accent-partner: #4ea1ff;
  --accent-personal: #ffc840;
  /** Shop tile legibility: approach stroke + underline (distinct from accents used elsewhere when needed). */
  --tile-ring-client: #e88324;
  --tile-ring-partner: #9b62f2;
  --tile-ring-personal: #e86ba8;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --container: min(1180px, calc(100vw - 40px));
  --topbar-h: 64px;
  --noise-opacity: 0.154;
  --cursor-x: 0;
  --cursor-y: 0;
  --cursor-glow-scale: 1;
  --skills-line-parallax-y: 0px;
  --skills-line-parallax-opacity: 1;
}

/* Animated shimmer angle — top header bar (::after ring). */
@property --topbar-shine-spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

html {
  color-scheme: dark;
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  user-select: none;
  -webkit-user-select: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.06), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.035), transparent 24%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 45%, #080808 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

/* Smooth-scroll mode removed — native document scroll only. */

.site-scroll-progress {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100%;
  max-width: 100vw;
  height: 3px;
  margin: 0;
  padding: 0;
  border: none;
  z-index: 2147483640 !important;
  pointer-events: none !important;
  background: transparent !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  isolation: isolate !important;
  mix-blend-mode: normal !important;
  transform: translate3d(0, 0, 0);
  contain: layout paint style;
}

.site-scroll-progress__fill {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.92),
    rgba(200, 200, 200, 0.88),
    rgba(248, 248, 248, 0.95)
  );
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.22);
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

img,
video,
canvas,
svg,
.protected-media,
.js-pdf-thumb,
.project-card,
.media-card,
#modal-media-lightbox-img,
#modal-media-lightbox-video,
#modal-media-lightbox-pdf-image {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

html[data-theme="light"] {
  color-scheme: light;
  --noise-opacity: 0.154;
  --bg: #f5f5f5;
  --bg-soft: #e8e8e8;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: rgba(246, 246, 246, 0.96);
  --line: rgba(0, 0, 0, 0.1);
  --text: #121212;
  --muted: #4f4f4f;
  --muted-2: #6a6a6a;
  --accent: #0f0f0f;
  --accent-2: #080808;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 0, 0, 0.05), transparent 32%),
    radial-gradient(circle at 82% 10%, rgba(0, 0, 0, 0.034), transparent 26%),
    linear-gradient(180deg, #fbfbfb 0%, #f2f2f2 52%, #e9e9e9 100%);
}

html[data-theme="light"] ::selection {
  background: rgba(0, 0, 0, 0.12);
  color: inherit;
}

html[data-theme="light"] .topbar {
  background: linear-gradient(180deg, rgb(252, 252, 252), rgb(237, 237, 237));
}

html[data-theme="light"] .topbar.is-scrolled {
  border-color: rgba(0, 0, 0, 0.11);
  background: linear-gradient(180deg, rgb(252, 252, 252), rgb(237, 237, 237));
}

html[data-theme="light"] .theme-toggle {
  background: linear-gradient(180deg, rgba(28, 28, 32, 0.95), rgba(14, 14, 17, 0.92));
  border-color: rgba(0, 0, 0, 0.22);
  color: #fafafa;
}

html[data-theme="light"] .topbar.is-scrolled ~ .theme-toggle {
  border-color: rgba(0, 0, 0, 0.26);
  background: linear-gradient(180deg, rgba(22, 22, 26, 0.98), rgba(12, 12, 14, 0.94));
}

html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .theme-toggle:focus-visible {
  border-color: rgba(0, 0, 0, 0.32);
}

html[data-theme="light"] .theme-toggle:focus-visible {
  outline-color: rgba(255, 255, 255, 0.28);
}

html[data-theme="light"] .nav-link:hover {
  color: var(--text);
}

html[data-theme="light"] .topbar .nav-link {
  border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .topbar .nav-link:hover,
html[data-theme="light"] .topbar .nav-link:focus-visible,
html[data-theme="light"] .topbar .nav-link:active {
  border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .topbar .nav-link.is-active {
  color: #111;
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .intro-title {
  --metal-contrast: 0.9;
  --sheen-intensity: 0.34;
  background-blend-mode: multiply, multiply, multiply, normal, normal;
  filter:
    brightness(0.62)
    contrast(1.06)
    drop-shadow(0 0 12px rgba(0, 0, 0, 0.05))
    drop-shadow(0 12px 30px rgba(0, 0, 0, 0.08));
  text-shadow:
    0 0 22px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.22);
}

html[data-theme="light"] .intro-title::after {
  opacity: 0.2;
}

html[data-theme="light"] .intro-bg-lines {
  opacity: 0.24;
}

html[data-theme="light"] .modal-panel {
  border: none;
  background: linear-gradient(180deg, rgba(254, 254, 254, 0.995), rgba(242, 242, 242, 0.98));
  box-shadow: 0 36px 86px rgba(0, 0, 0, 0.12);
  scrollbar-color: rgba(0, 0, 0, 0.68) rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .modal-backdrop {
  background: rgba(0, 0, 0, 0.34);
}

html[data-theme="light"] .modal-close {
  color: var(--text);
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .modal-close:focus-visible {
  outline-color: rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] .modal-detail-box {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.74);
}

html[data-theme="light"] .modal-tag-bubbles .tag.tag--bubble-ap {
  background: #000;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  opacity: 1;
  position: relative;
  z-index: 10;
}

html[data-theme="light"] .project-modal.is-shop-layout .modal-panel {
  scrollbar-color: rgba(0, 0, 0, 0.7) rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .project-modal.is-shop-layout .modal-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
  border-left: var(--modal-scrollbar-inner-pad) solid transparent;
  border-right: var(--modal-scrollbar-edge-pad) solid transparent;
  background-clip: padding-box;
  margin-block: var(--modal-scrollbar-block-pad);
}

html[data-theme="light"] .project-modal.is-shop-layout .modal-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.72),
    rgba(0, 0, 0, 0.38)
  );
  border-left: var(--modal-scrollbar-inner-pad) solid transparent;
  border-right: var(--modal-scrollbar-edge-pad) solid transparent;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  background-clip: padding-box;
}

html[data-theme="light"] .modal-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
  border-left: var(--modal-scrollbar-inner-pad) solid transparent;
  border-right: var(--modal-scrollbar-edge-pad) solid transparent;
  background-clip: padding-box;
  margin-block: var(--modal-scrollbar-block-pad);
}

html[data-theme="light"] .modal-panel::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.68);
  border-left: var(--modal-scrollbar-inner-pad) solid transparent;
  border-right: var(--modal-scrollbar-edge-pad) solid transparent;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  background-clip: padding-box;
}

html[data-theme="light"] .modal-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.82);
}

html[data-theme="light"] .modal-skill-pill {
  border-color: rgba(78, 84, 96, 0.42);
  color: var(--accent-2);
  background: #fafafa;
}

html[data-theme="light"] .modal-skill-pill::before {
  background-image: repeating-linear-gradient(
    112deg,
    transparent 0,
    transparent 6px,
    rgba(0, 0, 0, 0.07) 6px,
    rgba(0, 0, 0, 0.07) 7px
  );
}

html[data-theme="light"] .modal-skill-pill__icon {
  color: rgba(56, 60, 70, 0.62);
}

html[data-theme="light"] .shop-chip {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(252, 252, 253, 0.97);
}

/** Sort / FILTERS pills + nested filter bubbles: labels and carets readable on light panels (menus stay dark – separate rules). */
html[data-theme="light"] .shop-chip--sort .shop-sort-face,
html[data-theme="light"] .shop-filters-toggle {
  color: rgba(62, 64, 72, 0.88);
}

html[data-theme="light"] .shop-filter-face {
  color: rgba(62, 64, 72, 0.88);
}

html[data-theme="light"] .shop-filters-toggle__icon {
  color: rgba(66, 68, 76, 0.86);
}

html[data-theme="light"] .shop-chip .shop-chip__arrow span {
  border-top-color: rgba(76, 78, 86, 0.72);
}

html[data-theme="light"] .shop-chip--sort:hover .shop-sort-face,
html[data-theme="light"] .shop-filters-toggle:hover {
  color: rgba(14, 14, 18, 0.96);
}

html[data-theme="light"] .shop-filters-toggle:hover .shop-filters-toggle__icon {
  color: rgba(14, 14, 18, 0.96);
}

html[data-theme="light"] .shop-chip--filter-mini:hover .shop-filter-face {
  color: rgba(14, 14, 18, 0.96);
}

html[data-theme="light"] .shop-chip--sort:hover .shop-chip__arrow span,
html[data-theme="light"] .shop-chip--filter-mini:hover .shop-chip__arrow span {
  border-top-color: rgba(22, 22, 26, 0.9);
}

html[data-theme="light"] .shop-grid {
  scrollbar-color: rgba(40, 40, 42, 0.3) rgba(232, 232, 232, 0.9);
}

html[data-theme="light"] .shop-grid::-webkit-scrollbar-track {
  background: rgba(230, 230, 232, 0.92);
}

html[data-theme="light"] .shop-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(62, 62, 68, 0.28), rgba(62, 62, 68, 0.12));
}

html[data-theme="light"] .skills-spine__line {
  background: linear-gradient(
    180deg,
    rgba(8, 8, 10, 0.48),
    rgba(8, 8, 10, 0.12)
  );
}

html[data-theme="light"] .site-scroll-progress__fill {
  background: #000;
  box-shadow: 0 0 11px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] body.cursor-hot .cursor-ring {
  border-color: rgba(22, 22, 26, 0.62);
  opacity: 0.58;
}

html[data-theme="light"] .cursor-ring {
  border-color: rgba(28, 28, 32, 0.48);
}

html[data-theme="light"] .cursor-dot {
  background: rgba(20, 20, 24, var(--cursor-dot-alpha, 0.92));
  border-color: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .cursor-glow {
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.035) 36%,
    transparent 68%
  );
}

html[data-theme="light"] .project-card:not(.project-card--shop):focus-visible {
  outline-color: rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] .project-card:not(.project-card--shop):hover {
  border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .project-card.project-card--shop {
  --shop-tile-border-color: #fff;
}

html[data-theme="light"] .project-card--shop .project-tile-title-group--accent-client::after,
html[data-theme="light"] .project-card--shop .project-tile-title-group--accent-personal::after,
html[data-theme="light"] .project-card--shop .project-tile-title-group--accent-partner::after {
  background-color: rgba(10, 10, 14, 0.98);
}

html[data-theme="light"] .project-card--shop .project-tile-overlay {
  background: linear-gradient(
    to top,
    #fff 0%,
    #fff 30%,
    rgba(255, 255, 255, 0.92) 46%,
    rgba(255, 255, 255, 0.68) 58%,
    rgba(255, 255, 255, 0.38) 72%,
    rgba(255, 255, 255, 0.12) 86%,
    transparent 100%
  );
}

html[data-theme="light"] .project-card--shop .project-tile-title {
  color: #0e0e12;
}

html[data-theme="light"] .project-card--shop .project-tile-entity {
  color: #000;
}

html[data-theme="light"] .project-card--shop .project-tile-soft--top .tag.tag--soft {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(250, 250, 252, 0.92);
  color: rgba(28, 28, 34, 0.92);
  box-shadow: none;
}

.topbar-shell {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  width: var(--container);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.topbar-shell > * {
  pointer-events: auto;
}

.topbar {
  --topbar-shine-ring: 1.75px;
  --topbar-shine-dur: 7s;

  position: relative;
  isolation: isolate;
  flex: 1 1 auto;
  min-width: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgb(12, 12, 12), rgb(8, 8, 8));
  /* Avoid backdrop-filter blur when hardware acceleration is off */
  border: 1px solid transparent;
  transition: border-color 220ms ease, background 220ms ease;
  overflow: visible;
}

.click-confetti-burst {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483646;
  width: 0;
  height: 0;
  color: rgba(255, 255, 255, 0.88);
  pointer-events: none;
  overflow: visible;
  transform: translate3d(var(--burst-x, 0px), var(--burst-y, 0px), 0);
}

html[data-theme="light"] .click-confetti-burst {
  color: rgba(0, 0, 0, 0.84);
}

.click-confetti-burst__line {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--line-l, 12px);
  height: 3.4px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: 0 50%;
  opacity: 0;
  box-shadow: 0 0 7px currentColor;
  animation: clickConfettiLine 0.58s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes clickConfettiLine {
  0% {
    opacity: 0;
    transform: rotate(var(--angle)) translateX(0) scaleX(0.35);
  }
  14% {
    opacity: 1;
  }
  62% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--angle)) translateX(var(--travel)) scaleX(0.95);
  }
}

.topbar > * {
  position: relative;
  z-index: 1;
}

@keyframes topbarBorderShine {
  from {
    --topbar-shine-spin: 0deg;
  }

  to {
    --topbar-shine-spin: 360deg;
  }
}

.theme-toggle {
  flex: 0 0 var(--topbar-h);
  width: var(--topbar-h);
  height: var(--topbar-h);
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.32);
  cursor: pointer;
  color: #121214;
  background: linear-gradient(180deg, rgba(252, 252, 252, 0.98), rgba(236, 238, 242, 0.9));
  transition:
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease,
    transform 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.52);
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.theme-toggle__icon {
  display: grid;
  place-items: center;
}

.theme-toggle__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.theme-toggle__icon--sun svg {
  width: calc(22px * 1.1);
  height: calc(22px * 1.1);
}

.theme-toggle__icon--sun svg circle,
.theme-toggle__icon--sun svg path {
  vector-effect: non-scaling-stroke;
}

.topbar.is-scrolled ~ .theme-toggle {
  border-color: rgba(255, 255, 255, 0.42);
  background: linear-gradient(180deg, rgba(250, 250, 252, 0.99), rgba(238, 240, 244, 0.92));
}

.theme-toggle__icon--moon {
  display: none;
}

.theme-toggle__icon--sun {
  display: grid;
}

html[data-theme="light"] .theme-toggle__icon--sun {
  display: none;
}

html[data-theme="light"] .theme-toggle__icon--moon {
  display: grid;
}

.topbar.is-scrolled {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgb(12, 12, 12), rgb(8, 8, 8));
}

.brand {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0;
  cursor: default;
  color: inherit;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

.nav-link:hover {
  color: white;
  transform: translateY(-1px);
}

.topbar .nav-link {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  transition:
    color 180ms ease,
    transform 180ms ease,
    background 220ms ease;
}

.topbar .nav-link:hover,
.topbar .nav-link:focus-visible,
.topbar .nav-link:active {
  border-color: rgba(255, 255, 255, 0.12);
}

.topbar .nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.topbar .nav-link[href="#skills"]:hover,
.topbar .nav-link[href="#skills"]:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.topbar .nav-link[href="#skills"].is-active:hover,
.topbar .nav-link[href="#skills"].is-active:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.page {
  position: relative;
  width: 100%;
  z-index: 30;
}

.section {
  width: var(--container);
  margin: 0 auto;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  pointer-events: none;
}

.hero {
  /* JS sets min-height to runway + viewport so scroll scrub always has physical scroll distance */
  min-height: 260vh;
  padding-top: calc(var(--topbar-h) + 48px);
  padding-bottom: 70px;
  display: block;
}

.hero-bg-lines {
  position: absolute;
  inset: 10% -8% auto auto;
  width: 46vw;
  height: 60vh;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 34%, transparent 78%);
}

/* Role pin / scroll-driven text stack */
.hero-roles-pin {
  margin-top: 8px;
}

.hero-roles-sticky {
  position: sticky;
  top: calc(14px + var(--topbar-h) + 18px);
  height: calc(100vh - (14px + var(--topbar-h) + 18px));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-roles-track {
  position: relative;
  width: 100%;
  min-height: min(52vh, 420px);
}

.hero-role {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  --morph-shift: 0px;
  --morph-blur: 0px;
  transform: translateY(calc(-50% + var(--morph-shift)));
  margin: 0;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: center;
  font-size: clamp(2.6rem, 7.2vw, 6.2rem);
  line-height: 0.92;
  padding: 18px 0;
  color: #f5f7ff;
  text-shadow:
    0 0 24px rgba(255, 255, 255, 0.12),
    0 0 40px rgba(255, 255, 255, 0.04);
  filter: blur(var(--morph-blur));
  opacity: 0;
  pointer-events: none;
  transition: none;
  will-change: transform, opacity, filter;
}

.hero-copy h1,
.section-head h2,
.contact-card h2 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3.6rem, 8vw, 7.2rem);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-2);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-text,
.section-intro,
.overview-card p,
.timeline-card p,
.contact-card p,
.modal-summary,
.modal-card p,
.modal-card li {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.hero-text {
  max-width: 58ch;
  margin: 22px 0 0;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.button-primary {
  color: #081019;
  background: linear-gradient(135deg, #eceff5, #d4d9e0);
}

.button-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.stat-card,
.overview-card,
.timeline-card,
.contact-card,
.modal-card {
  background: var(--panel);
  /* backdrop-filter is expensive without acceleration */
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 16px;
  border-radius: 18px;
}

.stat-label {
  display: block;
  color: var(--muted-2);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-panel {
  position: relative;
  min-height: 620px;
}

.hero-panel-inner {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 18px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(20, 24, 40, 0.95), rgba(10, 13, 20, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}

.panel-topline,
.panel-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.panel-topline {
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.panel-screen {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 20% 10%, rgba(120, 160, 255, 0.16), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.07), transparent 30%),
    linear-gradient(180deg, rgba(7, 10, 18, 0.98), rgba(10, 13, 20, 0.92));
  display: flex;
  align-items: flex-end;
  padding: 26px;
}

.panel-screen-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
  opacity: 0.35;
}

.panel-screen-copy {
  position: relative;
  z-index: 2;
  max-width: 30rem;
}

.mini-label,
.timeline-step,
.card-index,
.modal-topline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel-screen-copy h2 {
  margin: 12px 0 12px;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.panel-screen-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.panel-bottom {
  margin-top: 18px;
}

.mini-metric {
  flex: 1 1 0;
  min-width: 140px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.mini-metric span {
  display: block;
  font-size: 0.7rem;
  color: var(--muted-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.mini-metric strong {
  font-size: 1rem;
}

.overview,
.timeline,
.projects,
.contact {
  padding: 100px 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-head h2,
.contact-card h2 {
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.section-intro {
  margin-top: 16px;
  max-width: 58ch;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.skills-conductor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  align-items: start;
}

.skills-conductor-grid .skill-card {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.skills-conductor-grid .skill-card.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.skills-conductor-grid .skill-card.is-active .skill-tags {
  opacity: 1;
  transform: translateY(0);
}

.skills-conductor-grid .skill-card.is-active::after {
  opacity: 1;
}

.skills-conductor-grid .skill-card[data-skill-index="3"] {
  margin-top: 64px;
}

.overview-card {
  min-height: 260px;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.skill-card {
  position: relative;
}

.skill-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: radial-gradient(
    circle at var(--hi-x, 50%) var(--hi-y, 50%),
    rgba(255, 255, 255, 0.18),
    transparent 62%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 0;
}

.skill-card:hover::after,
.skill-card:focus-visible::after {
  opacity: 1;
}

.skill-card > * {
  position: relative;
  z-index: 1;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 260ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-card:hover .skill-tags,
.skill-card:focus-visible .skill-tags {
  opacity: 1;
  transform: translateY(0);
}

.overview-card h3,
.timeline-card h3,
.modal-card h3 {
  margin: 16px 0 10px;
  font-size: 1.25rem;
}

.timeline-wrap {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.timeline-line {
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.05));
  z-index: 0;
}

.timeline-worm {
  position: absolute;
  left: 17px;
  top: 0;
  bottom: 0;
  width: 3px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.timeline-worm::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: var(--worm-len, 120px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45),
    rgba(255, 255, 255, 0)
  );
  border-radius: 999px;
  transform: translate3d(0, var(--worm-y, 0px), 0);
  transition: transform 60ms linear;
}

.timeline-card {
  margin-left: 46px;
  padding: 22px 24px;
  border-radius: 22px;
  position: relative;
  z-index: 2;
}

.reveal.is-visible.timeline-card:not(.is-step-active) {
  opacity: 0.6;
}

.reveal.is-visible.timeline-card.is-step-active {
  opacity: 1;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0f2f6, #cfd6df);
  box-shadow: 0 0 0 8px rgba(255,255,255,0.06);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(14, 18, 30, 0.98), rgba(10, 13, 20, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  text-align: left;
  color: white;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  --card-shift-x: 0px;
  --card-shift-y: 0px;
  --card-tilt-x: 0deg;
  --card-tilt-y: 0deg;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  background: radial-gradient(
    circle at var(--hi-x, 50%) var(--hi-y, 50%),
    rgba(138, 180, 255, 0.22),
    transparent 60%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.project-card:hover::after,
.project-card:focus-visible::after {
  opacity: 1;
}

.project-card:hover,
.project-card:focus-visible {
  transform:
    translate3d(var(--card-shift-x), calc(-8px + var(--card-shift-y)), 0)
    scale(1.018)
    rotateX(var(--card-tilt-x))
    rotateY(var(--card-tilt-y));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.42);
  border-color: rgba(255, 255, 255, 0.18);
}

.project-card:focus-visible {
  outline: 2px solid rgba(255,255,255,0.35);
  outline-offset: 2px;
}

@keyframes hoverJiggle {
  0% { transform: translate3d(0, -8px, 0) scale(1.016) rotateZ(0deg); }
  35% { transform: translate3d(0, -9px, 0) scale(1.02) rotateZ(-0.35deg); }
  70% { transform: translate3d(0, -8px, 0) scale(1.018) rotateZ(0.28deg); }
  100% { transform: translate3d(0, -8px, 0) scale(1.018) rotateZ(0deg); }
}

@keyframes hoverJiggle {
  0% { transform: translate3d(0, -8px, 0) scale(1.016) rotateZ(0deg); }
  35% { transform: translate3d(0, -9px, 0) scale(1.02) rotateZ(-0.35deg); }
  70% { transform: translate3d(0, -8px, 0) scale(1.018) rotateZ(0.28deg); }
  100% { transform: translate3d(0, -8px, 0) scale(1.018) rotateZ(0deg); }
}

.project-card-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  height: 100%;
  --jiggle: 0;
  animation: projectJiggleLoop 900ms cubic-bezier(0.22, 1, 0.36, 1) infinite;
  animation-play-state: paused;
  transition:
    --jiggle 650ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.project-card--shop .project-card-inner {
  will-change: auto;
}

@property --jiggle {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.project-card:hover .project-card-inner,
.project-card:focus-visible .project-card-inner {
  --jiggle: 1;
  animation-play-state: running;
}

@keyframes projectJiggleLoop {
  0% {
    transform: translate3d(0, calc(var(--jiggle) * -1.5px), 0) rotateZ(0deg);
  }
  20% {
    transform: translate3d(calc(var(--jiggle) * 0.8px), calc(var(--jiggle) * -2.4px), 0)
      rotateZ(calc(var(--jiggle) * -0.45deg));
  }
  55% {
    transform: translate3d(calc(var(--jiggle) * -0.6px), calc(var(--jiggle) * -2px), 0)
      rotateZ(calc(var(--jiggle) * 0.3deg));
  }
  100% {
    transform: translate3d(0, calc(var(--jiggle) * -1.5px), 0) rotateZ(0deg);
  }
}

/* Shop tiles: scale on hover/focus — no lifted card shadows from base .project-card. */
.project-card.project-card--shop:hover,
.project-card.project-card--shop:focus-visible {
  --shop-scale: 1.12;
  z-index: 3;
  will-change: transform;
  box-shadow: none;
}

.project-card.project-card--shop::before {
  content: "";
  position: absolute;
  z-index: 50;
  pointer-events: none;
  inset: var(--shop-tile-ring-shrink);
  border-radius: max(0px, calc(var(--shop-tile-r) - var(--shop-tile-ring-shrink)));
  box-shadow:
    inset 0 0 0 calc(var(--shop-tile-border-w) / 2) var(--shop-tile-border-color),
    0 0 0 calc(var(--shop-tile-border-w) / 2) var(--shop-tile-border-color);
}

.project-card.project-card--shop::after {
  opacity: 0 !important;
  transition: none !important;
}

.project-card.project-card--shop:hover .project-card-inner,
.project-card.project-card--shop:focus-visible .project-card-inner {
  --jiggle: 0;
  animation: none !important;
  animation-play-state: paused !important;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.project-preview {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 25% 20%, color-mix(in srgb, var(--card-a), transparent 75%), transparent 25%),
    radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--card-b), transparent 72%), transparent 30%),
    linear-gradient(135deg, rgba(12, 16, 26, 0.95), rgba(18, 22, 36, 0.88));
}

.project-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.55;
  mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
}

.preview-chip {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  /* backdrop-filter is expensive without acceleration */
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(216, 216, 216, 0.95);
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-2);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tag {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.78rem;
}

.project-open {
  margin-top: auto;
  display: inline-flex;
  color: #ffffff;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-card {
  padding: 34px;
  border-radius: 28px;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100070;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 420ms;
}

.project-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  opacity: 0;
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-modal.is-open .modal-backdrop {
  opacity: 1;
}

.modal-panel {
  position: relative;
  z-index: 2;
  --modal-pad-x: 11px;
  --modal-pad-top: 29px;
  --modal-scrollbar-w: 16px;
  --modal-scrollbar-edge-pad: 7px;
  --modal-scrollbar-inner-pad: 3px;
  --modal-scrollbar-block-pad: 16px;

  width: min(94vw, 1320px);
  height: min(93vh, 1080px);
  max-height: min(93vh, 1080px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: var(--modal-pad-x);
  padding-top: var(--modal-pad-top);
  border-radius: 28px;
  border: none;
  background:
    linear-gradient(180deg, rgba(16, 16, 16, 0.99), rgba(10, 10, 10, 0.98));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.985);
  background-clip: padding-box;
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.62) rgba(255, 255, 255, 0.08);
}

/* Shop-origin modal layout: fills viewport vertically with ±(1/20)v gutters; wider content rails */
.project-modal.is-shop-layout .modal-panel {
  width: min(1520px, 96vw, calc(100vw - clamp(32px, 5vw, 80px)));
  height: calc(100vh - (100vh / 20) * 2);
  max-height: calc(100vh - (100vh / 10));
  margin-top: calc(100vh / 20);
  margin-bottom: calc(100vh / 20);
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.68) rgba(255, 255, 255, 0.08);
}

.project-modal.is-shop-layout .modal-gallery-scroll {
  aspect-ratio: 16 / 9;
  max-height: min(39.2vh, 364px, 78.4vw);
}

.project-modal.is-shop-layout .modal-gallery-eyebrow {
  box-sizing: border-box;
  width: calc(100% - 2 * var(--modal-pad-x));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.project-modal.is-shop-layout .modal-title-heading,
.project-modal.is-shop-layout .modal-subheading,
.project-modal.is-shop-layout .modal-detail-box,
.project-modal.is-shop-layout .modal-skill-grid {
  box-sizing: border-box;
  width: calc(100% - 2 * var(--modal-pad-x));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.project-modal.is-shop-layout .modal-skill-grid {
  justify-content: flex-start;
}

.project-modal.is-shop-layout .modal-panel::-webkit-scrollbar {
  width: var(--modal-scrollbar-w);
}

.project-modal.is-shop-layout .modal-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-left: var(--modal-scrollbar-inner-pad) solid transparent;
  border-right: var(--modal-scrollbar-edge-pad) solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
  margin-block: var(--modal-scrollbar-block-pad);
}

.project-modal.is-shop-layout .modal-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.08)
  );
  border-radius: 999px;
  border-left: var(--modal-scrollbar-inner-pad) solid transparent;
  border-right: var(--modal-scrollbar-edge-pad) solid transparent;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  background-clip: padding-box;
}

.project-modal.is-shop-layout .modal-panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.32),
    rgba(255, 255, 255, 0.14)
  );
}

.modal-panel::-webkit-scrollbar {
  width: var(--modal-scrollbar-w);
}
.modal-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-left: var(--modal-scrollbar-inner-pad) solid transparent;
  border-right: var(--modal-scrollbar-edge-pad) solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
  margin-block: var(--modal-scrollbar-block-pad);
}
.modal-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  border-left: var(--modal-scrollbar-inner-pad) solid transparent;
  border-right: var(--modal-scrollbar-edge-pad) solid transparent;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  background-clip: padding-box;
}
.modal-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.82);
}
.modal-panel::-webkit-scrollbar-button {
  display: block;
  height: var(--modal-scrollbar-block-pad);
}

.project-modal.is-open .modal-panel {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  margin: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: white;
  cursor: pointer;
  transition:
    transform 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  transform: scale(1.07);
  background: rgba(255, 255, 255, 0.12);
}

.modal-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.modal-summary {
  max-width: 70ch;
  margin: 14px 0 22px;
}

.modal-media-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.media-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  min-height: 240px;
}

.media-card.is-feature {
  min-height: 280px;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-card {
  padding: 22px;
  border-radius: 22px;
}

.modal-card ul {
  margin: 0;
  padding-left: 18px;
}

.watermarked::after {
  content: "JAMES ROBY";
  position: absolute;
  inset: auto 8px 9px auto;
  padding: 6px 10px;
  background: rgba(8, 8, 10, 0.64);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: clamp(0.58rem, 1.05vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  pointer-events: none;
  z-index: 6;
}

/* Grid tiles: smaller label, top-left */
.project-card--shop .project-tile-image.project-preview.watermarked::after {
  inset: 10px auto auto 10px;
  right: auto;
  bottom: auto;
  transform: scale(0.4);
  transform-origin: top left;
}

/* Shop modal slides — single strip watermark overlays .modal-gallery-stage */
.modal-gallery-slide.modal-gallery-slide--tile-only::after {
  display: none;
}

.reveal {
  opacity: 0;
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

.reveal:not(.project-card) {
  --reveal-y: 44px;
  --mag-x: 0px;
  --mag-y: 0px;
  --parallax-y: 0px;
  transform: translate3d(var(--mag-x), calc(var(--reveal-y) + var(--parallax-y) + var(--mag-y)), 0);
}

.reveal.project-card {
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
}

.reveal.is-visible:not(.project-card) {
  --reveal-y: 0px;
}

.cursor-glow,
.cursor-ring,
.cursor-dot {
  position: fixed;
  inset: 0 auto auto 0;
  pointer-events: none;
  z-index: 2147483647 !important;
  opacity: 0;
  transition: opacity 180ms ease;
}

body.has-pointer.cursor-ready .cursor-glow,
body.has-pointer.cursor-ready .cursor-ring,
body.has-pointer.cursor-ready .cursor-dot {
  opacity: 1;
}

.cursor-glow {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  transform: translate3d(calc(var(--cursor-x) * 1px), calc(var(--cursor-y) * 1px), 0)
    translate(-50%, -50%) scale(var(--cursor-glow-scale));
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.04) 36%,
    transparent 68%
  );
  transition:
    opacity 180ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cursor-ring {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  transform: translate3d(calc(var(--cursor-x) * 1px), calc(var(--cursor-y) * 1px), 0)
    translate(-50%, -50%);
  display: grid;
  place-items: center;
  will-change: transform;
  transition:
    opacity 180ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cursor-dot {
  position: fixed;
  inset: 0 auto auto 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, var(--cursor-dot-alpha, 0.92));
  border: 1px solid rgba(0, 0, 0, 0.82);
  box-sizing: border-box;
  --cursor-dot-scale: 1;
  --cursor-dot-alpha: 0.92;
  transform: translate3d(calc(var(--cursor-x) * 1px), calc(var(--cursor-y) * 1px), 0)
    translate(-50%, -50%) scale(var(--cursor-dot-scale));
  pointer-events: none;
  will-change: transform;
  /* Dot follows instantly; ring/glow use transform transitions only */
  transition: opacity 180ms ease;
}

body.has-pointer.cursor-ready,
body.has-pointer.cursor-ready * {
  cursor: none !important;
}

body.cursor-hot {
  --cursor-glow-scale: 1.25;
  --cursor-dot-scale: 3;
  --cursor-dot-alpha: 0.5;
}

body.cursor-hot .cursor-ring {
  border-color: rgba(255,255,255,0.75);
  opacity: 0.55;
}

/* Native video fullscreen uses the browser top layer; restore system cursor (site uses cursor:none). */
body.native-fullscreen-video.has-pointer.cursor-ready,
body.native-fullscreen-video.has-pointer.cursor-ready * {
  cursor: auto !important;
}

body.native-fullscreen-video .cursor-glow,
body.native-fullscreen-video .cursor-ring,
body.native-fullscreen-video .cursor-dot {
  opacity: 0 !important;
}

body.modal-open {
  overflow: hidden;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: var(--noise-opacity);
  mix-blend-mode: normal;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

.noscript-warning {
  position: fixed;
  inset: auto 14px 14px 14px;
  z-index: 9999;
  padding: 14px 16px;
  border-radius: 16px;
  background: #141414;
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 980px) {
  .hero,
  .overview-grid,
  .project-grid,
  .modal-columns,
  .modal-media-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .section-head h2,
  .contact-card h2,
  .hero-copy h1 {
    max-width: unset;
  }
}

@media (max-width: 700px) {
  :root {
    --container: min(1180px, calc(100vw - 24px));
  }

  .overview,
  .timeline,
  .projects,
  .contact {
    padding: 76px 0;
  }

  .timeline-card {
    margin-left: 32px;
  }

  .timeline-line {
    left: 10px;
  }

  .modal-panel {
    --modal-pad-x: 4px;
    --modal-pad-top: 8px;
  }

  .modal-close {
    top: 6px;
    right: 6px;
  }
}

/* --- Static portfolio (sections 1–3, native scroll) --- */

.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;
}

.shop-search,
.shop-toolbar-controls select {
  user-select: text;
  -webkit-user-select: text;
}

.section--intro {
  min-height: min(92vh, 980px);
  padding: calc(var(--topbar-h) + 72px) 0 96px;
  display: grid;
  place-items: center;
  text-align: center;
}

.intro-inner {
  width: min(100vw, 1200px);
  position: relative;
  z-index: 1;
  text-align: center;
}

.intro-bg-lines {
  position: absolute;
  inset: 8% -6% auto auto;
  width: 44vw;
  height: 56vh;
  pointer-events: none;
  opacity: 0.16;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 78%);
}

.intro-title {
  /** Liquid-metal controls: contrast, sheen strength, and loop speeds. */
  --metal-contrast: 1.08;
  --sheen-intensity: 0.78;
  --shimmer-speed: 7.5s;
  --liquid-flow-speed: 11s;

  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 1.05;
  inline-size: max-content;
  max-inline-size: min(100vw, 100%);
  text-align: center;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.98) 0 8%, transparent 16%),
    radial-gradient(circle at 74% 34%, rgba(205, 232, 255, calc(0.34 * var(--sheen-intensity))) 0 9%, transparent 21%),
    linear-gradient(
      105deg,
      rgba(5, 5, 5, 0.72) 0%,
      rgba(93, 98, 106, 0.64) 10%,
      rgba(249, 251, 255, 0.74) 18%,
      rgba(138, 143, 151, 0.56) 27%,
      rgba(24, 26, 29, 0.68) 37%,
      rgba(244, 246, 250, 0.72) 47%,
      rgba(125, 130, 136, 0.58) 57%,
      rgba(16, 17, 19, 0.68) 67%,
      rgba(220, 230, 239, 0.72) 78%,
      rgba(58, 61, 66, 0.6) 88%,
      rgba(248, 249, 251, 0.7) 100%
    ),
    linear-gradient(
      72deg,
      transparent 8%,
      rgba(174, 244, 255, calc(0.32 * var(--sheen-intensity))) 24%,
      rgba(255, 213, 247, calc(0.24 * var(--sheen-intensity))) 39%,
      transparent 58%,
      rgba(255, 246, 194, calc(0.2 * var(--sheen-intensity))) 74%,
      transparent 92%
    ),
    url("https://static.vecteezy.com/system/resources/thumbnails/028/545/172/small/abstract-silver-gradient-background-flow-chrome-liquid-metal-waves-photo.jpg");
  background-blend-mode: screen, soft-light, overlay, screen, normal;
  background-size: 180% 180%, 210% 170%, 235% 100%, 260% 100%, 175% auto;
  background-position: 15% 42%, 88% 52%, 0% 50%, 120% 50%, 50% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.08))
    drop-shadow(0 12px 34px rgba(0, 0, 0, 0.34));
  isolation: isolate;
  transform: translateZ(0);
  animation: introLiquidMetalFlow var(--liquid-flow-speed) ease-in-out infinite;
  will-change: opacity, transform;
  backface-visibility: hidden;
  text-shadow:
    0 0 32px rgba(255, 255, 255, 0.1),
    0 0 60px rgba(255, 255, 255, 0.04);
}

.intro-title__word {
  display: block;
  text-align: center;
  white-space: nowrap;
}

.intro-title.intro-title--swap-out {
  opacity: 0;
  transform: translate3d(-48vw, 0, 0);
  transition:
    opacity 0.3s cubic-bezier(0.35, 0, 0.18, 1),
    transform 0.76s cubic-bezier(0.5, 0, 0.18, 1);
}

.intro-title.intro-title--swap-prepare {
  opacity: 0;
  transform: translate3d(48vw, 0, 0);
  transition: none;
}

.intro-title.intro-title--swap-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.76s cubic-bezier(0.18, 0.82, 0.24, 1),
    transform 0.76s cubic-bezier(0.16, 1, 0.28, 1);
}

.intro-title::before,
.intro-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: block;
  white-space: pre-line;
  text-align: center;
  color: transparent;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  -webkit-background-clip: text;
  background-clip: text;
}

.intro-title::before {
  z-index: -1;
  -webkit-text-stroke: max(1px, 0.016em) rgba(255, 255, 255, 0.26);
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.16),
    0 0 44px rgba(154, 214, 255, 0.08);
  opacity: 0.86;
}

.intro-title::after {
  z-index: 1;
  background:
    linear-gradient(
      110deg,
      transparent 14%,
      rgba(255, 255, 255, 0.04) 25%,
      rgba(196, 238, 255, calc(0.48 * var(--sheen-intensity))) 35%,
      rgba(255, 255, 255, 0.92) 43%,
      rgba(255, 213, 247, calc(0.34 * var(--sheen-intensity))) 50%,
      transparent 64%
    );
  background-size: 240% 100%;
  opacity: 0.66;
  mix-blend-mode: screen;
  text-shadow:
    0 0 13px rgba(255, 255, 255, 0.22),
    0 0 38px rgba(210, 236, 255, 0.08);
  animation: introTitleSheen var(--shimmer-speed) cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

@keyframes introLiquidMetalFlow {
  0%,
  100% {
    background-position: 15% 42%, 88% 52%, 0% 50%, 120% 50%, 50% 50%;
    filter:
      contrast(var(--metal-contrast))
      drop-shadow(0 0 20px rgba(255, 255, 255, 0.08))
      drop-shadow(0 12px 34px rgba(0, 0, 0, 0.34));
  }
  42% {
    background-position: 54% 24%, 38% 70%, 66% 50%, 42% 50%, 58% 46%;
  }
  72% {
    background-position: 82% 56%, 68% 28%, 118% 50%, -12% 50%, 43% 55%;
  }
}

@keyframes introTitleSheen {
  0%,
  18% {
    background-position: 145% 50%;
    opacity: 0.32;
  }
  48% {
    background-position: 52% 50%;
    opacity: 0.76;
  }
  78%,
  100% {
    background-position: -55% 50%;
    opacity: 0.38;
  }
}

.intro-title::after {
  content: none;
}

.intro-lead {
  margin: 26px auto 0;
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.75;
}

.section--skills {
  padding: 88px 0 100px;
}

.skills-head {
  max-width: 820px;
  margin-bottom: 8px;
}

.skills-head h2 {
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.skills-spine {
  position: relative;
  margin-top: 50px;
  padding: 8px 0 72px;
  min-height: 520px;
}

.skills-spine__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translate3d(-50%, var(--skills-line-parallax-y), 0);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.38),
    rgba(255, 255, 255, 0.06)
  );
  border-radius: 2px;
  opacity: var(--skills-line-parallax-opacity);
  pointer-events: none;
  will-change: transform, opacity;
}

.skills-spine__track {
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.skill-spine-card {
  --topbar-shine-ring: 1.75px;
  --topbar-shine-spin: 0deg;

  position: relative;
  isolation: isolate;
  max-width: min(44vw, 420px);
  padding: 22px 24px 26px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.86;
  transform: translate3d(0, 0, 0) scale(0.94);
  backface-visibility: hidden;
}

.skill-spine-card > * {
  position: relative;
  z-index: 1;
}

.skill-spine-card::after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  inset: 0;
  z-index: 50;
  padding: var(--topbar-shine-ring);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: conic-gradient(
    from calc(-135deg + var(--topbar-shine-spin)) at 50% 50%,
    transparent 0%,
    transparent 8%,
    rgba(255, 255, 255, 0.92) 9.8%,
    rgba(0, 0, 0, 0.45) 10.9%,
    transparent 12.8%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) border-box;
  -webkit-mask-composite: xor;
  -webkit-mask-repeat: no-repeat;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) border-box;
  mask-composite: exclude;
  mask-repeat: no-repeat;
}

.skill-spine-card.is-scrolled-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.skill-spine-card.is-scrolled-in:hover,
.skill-spine-card.is-scrolled-in:focus-within {
  transform: translate3d(0, -3px, 0) scale(1);
  box-shadow:
    var(--shadow),
    0 18px 46px rgba(255, 255, 255, 0.045);
}

html[data-theme="light"] .skill-spine-card.is-scrolled-in:hover,
html[data-theme="light"] .skill-spine-card.is-scrolled-in:focus-within {
  box-shadow:
    var(--shadow),
    0 18px 46px rgba(0, 0, 0, 0.1);
}

@media (prefers-reduced-motion: no-preference) {
  .skill-spine-card.skill-border-glisten::after {
    animation:
      topbarBorderShine 2.7s linear 0.16s 1 both,
      skillCardBorderGlistenOpacity 2.7s ease 0.16s 1 both;
  }
}

@keyframes skillCardBorderGlistenOpacity {
  0% {
    opacity: 0;
  }
  8%,
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.skill-spine-card--left {
  align-self: flex-end;
  margin-right: calc(50% + 26px);
}

.skill-spine-card--left .skill-spine-card__copy {
  text-align: right;
}

.skill-spine-card--left .skill-spine-card__tags {
  justify-content: flex-end;
}

.skill-spine-card--right {
  align-self: flex-start;
  margin-left: calc(50% + 26px);
}

.skill-spine-card__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.skill-spine-card--left .skill-spine-card__row {
  flex-direction: row-reverse;
}

.skill-spine-card__draft-icon {
  flex-shrink: 0;
  margin-top: 6px;
  display: block;
  width: 38px;
  height: 38px;
  background-color: var(--muted-2);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.skills-spine__track .skill-spine-card:nth-child(1) .skill-spine-card__draft-icon {
  -webkit-mask-image: url(assets/skill-1.svg);
  mask-image: url(assets/skill-1.svg);
}

.skills-spine__track .skill-spine-card:nth-child(2) .skill-spine-card__draft-icon {
  -webkit-mask-image: url(assets/skill-2.svg);
  mask-image: url(assets/skill-2.svg);
}

.skills-spine__track .skill-spine-card:nth-child(3) .skill-spine-card__draft-icon {
  -webkit-mask-image: url(assets/skill-3.svg);
  mask-image: url(assets/skill-3.svg);
}

.skills-spine__track .skill-spine-card:nth-child(4) .skill-spine-card__draft-icon {
  -webkit-mask-image: url(assets/skill-4.svg);
  mask-image: url(assets/skill-4.svg);
}

.skill-spine-card__copy {
  flex: 1;
  min-width: 0;
}

.skill-spine-card__index {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.skill-spine-card h3 {
  margin: 10px 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.skill-spine-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.skill-spine-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  justify-content: flex-start;
}

.section--shop {
  --shop-ui-radius: 20px;
  padding: 66px 0 50px;
  margin-bottom: 0;
  position: relative;
}

.shop-projects-panel {
  position: relative;
  z-index: 50;
  padding: clamp(calc(26px * 0.85 * 0.5), calc(3.3vw * 0.85 * 0.5), calc(34px * 0.85 * 0.5))
    clamp(calc(26px * 0.85), calc(3.3vw * 0.85), calc(34px * 0.85))
    clamp(calc(26px * 0.85), calc(3.3vw * 0.85), calc(34px * 0.85));
  border-radius: var(--shop-ui-radius);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  isolation: isolate;
  overflow: visible;
}

.shop-projects-panel.shop-projects-panel--stack {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* Faded panel fill (original mask) — content/tiles sit above in z-index, not masked. */
.shop-projects-panel.shop-projects-panel--stack::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  box-sizing: border-box;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 83%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 83%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.shop-projects-panel--stack {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.shop-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: calc(3px * 0.85 * 0.5);
  position: relative;
  z-index: 2;
}

.shop-panel-fade {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  padding: calc(20px * 0.85)
    clamp(calc(26px * 0.85), calc(3.3vw * 0.85), calc(34px * 0.85))
    max(calc(58px * 0.85), calc((12px + 40px) * 0.85));
}

.section--shop.section--shop-outer {
  position: relative;
}

/* Archive count line (“Showing all N projects”): class .shop-count, id #shop-count */
.shop-count {
  margin: calc(6px * 0.85 - 50px) auto 0;
  padding: 0 clamp(calc(26px * 0.85), calc(3.3vw * 0.85), calc(34px * 0.85))
    clamp(calc(10px * 0.85), calc(1.8vw * 0.85), calc(16px * 0.85));
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 80;
  isolation: isolate;
  opacity: 1;
  width: min(var(--container), calc(100vw - 40px));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  color: rgba(248, 248, 250, 0.978);
}

html[data-theme="light"] .shop-toolbar-dd-hit:focus-visible {
  outline-color: rgba(42, 44, 52, 0.88);
}

html[data-theme="light"] .shop-toolbar-dd-menu {
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.98);
  color-scheme: light;
  scrollbar-color: rgba(0, 0, 0, 0.28) rgba(242, 242, 244, 0.92);
  box-shadow: var(--shadow);
}

html[data-theme="light"] .shop-toolbar-dd-menu::-webkit-scrollbar-track {
  background: rgba(242, 242, 244, 0.95);
}

html[data-theme="light"] .shop-toolbar-dd-menu::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .shop-toolbar-dd-option {
  color: rgba(16, 18, 22, 0.92);
}

html[data-theme="light"] .shop-toolbar-dd-option:hover,
html[data-theme="light"] .shop-toolbar-dd-option:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  color: #070707;
}

html[data-theme="light"] .shop-toolbar-dd-option:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.14);
}

html[data-theme="light"] .shop-toolbar-dd-option[aria-selected="true"] {
  background: rgba(0, 0, 0, 0.05);
  color: #0a0a0a;
}

html[data-theme="light"] .shop-toolbar-dd-option--filter:hover .shop-toolbar-dd-check:not([data-checked="true"]),
html[data-theme="light"] .shop-toolbar-dd-option--filter:focus-visible .shop-toolbar-dd-check:not([data-checked="true"]) {
  border-color: rgba(0, 0, 0, 0.42);
}

html[data-theme="light"] .shop-toolbar-dd-check[data-checked="true"]::after {
  border-color: rgba(16, 18, 22, 0.9);
}

html[data-theme="light"] .shop-count {
  color: rgba(12, 12, 14, 0.97);
}

.shop-head {
  position: relative;
  z-index: 8;
  margin-bottom: 6px;
  overflow: visible;
}

.shop-head h2 {
  position: relative;
  z-index: 2;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  font-weight: 700;
  padding-top: 0.06em;
  overflow: visible;
}

.shop-head__projects-p {
  text-transform: none;
}

.shop-head__projects-p::first-letter {
  font-size: 1.15em;
  font-weight: 750;
}

.shop-head .shop-head__intro {
  max-width: none;
  width: 100%;
  margin-bottom: 0;
}

.shop-search-wrap {
  position: relative;
  width: 100%;
  margin-top: 22px;
}

.shop-search {
  width: 100%;
  margin-top: 0;
  padding: 14px 18px;
  padding-right: 36px;
  border-radius: var(--shop-ui-radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.shop-search::-webkit-search-cancel-button {
  display: block;
  cursor: pointer;
  -webkit-appearance: searchfield-cancel-button;
}

.shop-toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 12px 16px;
  margin-top: 18px;
}

.shop-chip {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 10px 16px;
  border-radius: var(--shop-ui-radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 12, 0.58);
  min-height: 48px;
}

.shop-chip--sort {
  position: relative;
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  flex-wrap: nowrap;
  box-sizing: border-box;
  height: var(--shop-toolbar-chip-track-h);
  min-height: var(--shop-toolbar-chip-track-h);
  max-height: var(--shop-toolbar-chip-track-h);
  /** Same inset as `.shop-chip` (matches FILTERS pill padding). */
  padding: 10px 16px;
}

/** Sort-by + FILTERS: identical type (size, spacing, weight, face). */
.shop-chip--sort .shop-sort-face,
.shop-filters-toggle {
  font-family: inherit;
  font-weight: inherit;
  font-size: var(--shop-toolbar-label-font-size);
  letter-spacing: var(--shop-toolbar-label-tracking);
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted-2);
}

.shop-chip--sort .shop-sort-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.shop-chip--sort:hover .shop-sort-face {
  color: var(--accent-2);
}

.shop-chip--sort:hover .shop-chip__arrow span {
  border-top-color: rgba(250, 250, 250, 0.88);
}

.shop-toolbar-dd-hit {
  position: absolute;
  inset: 0;
  z-index: 5;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.shop-toolbar-dd-hit:focus-visible {
  outline: var(--shop-toolbar-focus-ring) solid var(--accent-2);
  outline-offset: var(--shop-toolbar-focus-offset);
}

/** Synced by script.js (shop-select-offscreen); invisible hit layer opens .shop-toolbar-dd-menu */
.shop-chip--sort .shop-sort-native.shop-select-offscreen,
.shop-chip--filter-mini .shop-filter-native.shop-select-offscreen {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  inset: unset !important;
  opacity: 1 !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.shop-chip__arrow span {
  display: block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(180, 180, 180, 0.8);
  margin-bottom: -1px;
}

.shop-chip--filters {
  position: relative;
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
}

.shop-chip--filters:not(.is-expanded) {
  position: relative;
  gap: 0;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  height: var(--shop-toolbar-chip-track-h);
  min-height: var(--shop-toolbar-chip-track-h);
  max-height: var(--shop-toolbar-chip-track-h);
  align-items: center;
  justify-content: center;
}

.shop-chip--filters:not(.is-expanded) .shop-filters-toggle {
  position: relative;
  inset: auto;
  flex: none;
  width: auto;
  height: auto;
  min-height: 0;
  z-index: 2;
  /** Match chip padding so hover/click cover the pill, not dead padding outside the button. */
  margin: -10px -16px;
  padding: 10px 16px;
}

.shop-filters-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 0;
  padding: 0;
  margin: 0;
  width: auto;
  min-height: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.shop-chip--filters.is-expanded .shop-filters-toggle {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  min-height: 0;
  align-self: center;
  z-index: 1;
  flex-shrink: 0;
  /** Widen hit area around FILTERS (top/left/bottom); keep right tight so Software/Entity pills don’t trigger it. */
  margin: -10px 0;
  padding: 10px 6px 10px 0;
}

.shop-filters-toggle__face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.shop-filters-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(252, 252, 254, 0.94);
  opacity: 1;
  transform: translateY(-2px);
}

.shop-filters-toggle:hover {
  color: var(--accent-2);
  background: transparent;
}

.shop-filters-toggle:hover .shop-filters-toggle__icon {
  color: var(--accent-2);
}

.shop-filters-toggle:focus-visible {
  outline: none;
}

.shop-filters-drawer[hidden] {
  display: none !important;
}

.shop-filters-drawer:not([hidden]) {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: clamp(8px, 2vw, 12px);
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  margin: 0;
  padding: 0 0 0 10px;
  border: none;
  overflow-x: auto;
  overflow-y: hidden;
}

.shop-filters-drawer:not([hidden]):not(.is-collapsing) {
  animation: shopFiltersTrayIn 0.34s cubic-bezier(0.25, 0.82, 0.25, 1) both;
}

.shop-chip--filters.is-expanded.filters-chip-collapsing {
  flex: 1 1 auto;
  transition: max-width 0.65s cubic-bezier(0.25, 0.82, 0.25, 1);
}

.shop-filters-drawer:not([hidden]).is-collapsing {
  animation: shopFiltersTrayIn 0.65s cubic-bezier(0.25, 0.82, 0.25, 1) reverse both;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 42%,
    rgba(0, 0, 0, 0.82) 62%,
    rgba(0, 0, 0, 0.32) 84%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 42%,
    rgba(0, 0, 0, 0.82) 62%,
    rgba(0, 0, 0, 0.32) 84%,
    transparent 100%
  );
  pointer-events: none;
}

.shop-filters-drawer:not([hidden]).is-collapsing .shop-chip--filter-mini {
  overflow: hidden;
  mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 100%);
  mask-position: left center;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 100%);
  -webkit-mask-position: left center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  will-change: opacity, transform, mask-size, -webkit-mask-size;
  animation: shopFilterMiniWipeOut 0.76s cubic-bezier(0.25, 0.82, 0.25, 1) both;
}

.shop-filters-drawer:not([hidden]).is-collapsing .shop-chip--filter-mini:nth-child(3) {
  animation-delay: 0s;
}

.shop-filters-drawer:not([hidden]).is-collapsing .shop-chip--filter-mini:nth-child(2) {
  animation-delay: 0.05s;
}

.shop-filters-drawer:not([hidden]).is-collapsing .shop-chip--filter-mini:nth-child(1) {
  animation-delay: 0.1s;
}

@keyframes shopFiltersTrayIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shopFilterMiniWipeOut {
  0% {
    opacity: 1;
    transform: translateX(0);
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
  }
  52% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateX(-8px);
    mask-size: 0% 100%;
    -webkit-mask-size: 0% 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-chip--filters.is-expanded.filters-chip-collapsing {
    transition: none;
  }

  .shop-filters-drawer:not([hidden]):not(.is-collapsing),
  .shop-filters-drawer:not([hidden]).is-collapsing,
  .shop-filters-drawer:not([hidden]).is-collapsing .shop-chip--filter-mini {
    animation: none;
    transition: none;
  }
}

.shop-chip--filters.is-expanded {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
  gap: clamp(10px, 2.4vw, 14px);
  align-self: center;
  align-items: center;
  box-sizing: border-box;
  height: var(--shop-toolbar-chip-track-h);
  min-height: var(--shop-toolbar-chip-track-h);
  max-height: var(--shop-toolbar-chip-track-h);
  padding-block: 0;
  overflow: hidden;
}

/** Nested filter pills: height from text + padding only; centered in expanded FILTERS row (outer chip stays 48px). */
.shop-chip.shop-chip--filter-mini {
  position: relative;
  flex: 1 1 0;
  max-width: none;
  min-width: 0;
  min-height: 0;
  height: auto;
  width: auto;
  padding: var(--shop-filter-mini-pad-y) var(--shop-filter-mini-pad-x);
  border-width: var(--shop-filter-mini-border);
  border-radius: calc(var(--shop-ui-radius) - 8px);
  flex-wrap: nowrap;
  gap: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  align-self: center;
  box-sizing: border-box;
}

.shop-filter-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font-family: inherit;
  font-weight: inherit;
  font-size: var(--shop-toolbar-mini-label-font-size);
  letter-spacing: var(--shop-toolbar-label-tracking);
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted-2);
}

.shop-chip--filter-mini:hover .shop-filter-face {
  color: var(--accent-2);
}

.shop-chip--filter-mini:hover .shop-chip__arrow span {
  border-top-color: rgba(250, 250, 250, 0.88);
}

.shop-filter-native {
  position: absolute;
  inset: 0;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: inherit;
  background: transparent;
  font: inherit;
  line-height: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
}

.shop-toolbar-dd-menu {
  position: fixed;
  z-index: 100068;
  box-sizing: border-box;
  padding: 6px;
  margin: 0;
  border-radius: var(--shop-dd-panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 12, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  max-height: min(42vh, 320px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) rgba(6, 6, 6, 0.55);
  color-scheme: dark;
}

.shop-toolbar-dd-menu::-webkit-scrollbar {
  width: 10px;
}

.shop-toolbar-dd-menu::-webkit-scrollbar-track {
  background: rgba(6, 6, 6, 0.55);
  border-radius: 999px;
}

.shop-toolbar-dd-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.shop-toolbar-dd-option {
  display: flex;
  width: 100%;
  align-items: center;
  box-sizing: border-box;
  margin: 2px 0;
  padding: 8px 12px;
  border: none;
  border-radius: var(--shop-dd-option-radius);
  background: transparent;
  color: #b4b9c9;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.shop-toolbar-dd-option:hover,
.shop-toolbar-dd-option:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fafafa;
}

.shop-toolbar-dd-option:focus-visible {
  box-shadow: 0 0 0 2px rgba(230, 230, 236, 0.25);
}

.shop-toolbar-dd-option[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.05);
  color: #e9eaef;
}

.shop-toolbar-dd-option--filter {
  gap: 10px;
  justify-content: flex-start;
  text-align: left;
}

.shop-toolbar-dd-option__label {
  flex: 1 1 auto;
  min-width: 0;
}

.shop-toolbar-dd-check {
  position: relative;
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  margin-top: 0.06em;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(0, 0, 0, 0.2);
}

.shop-toolbar-dd-check[data-checked="true"] {
  border-color: rgba(250, 250, 250, 0.55);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.shop-toolbar-dd-check[data-checked="true"]::after {
  content: "";
  display: block;
  margin: 2px auto 0;
  width: 5px;
  height: 8px;
  border: solid rgba(250, 250, 250, 0.94);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.shop-toolbar-dd-option--filter:hover .shop-toolbar-dd-check:not([data-checked="true"]),
.shop-toolbar-dd-option--filter:focus-visible .shop-toolbar-dd-check:not([data-checked="true"]) {
  border-color: rgba(250, 250, 250, 0.45);
}

html[data-theme="light"] .shop-toolbar-dd-check {
  border-color: rgba(42, 44, 52, 0.35);
  background: rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] .shop-toolbar-dd-check[data-checked="true"] {
  border-color: rgba(42, 44, 52, 0.55);
  background: rgba(240, 240, 242, 0.95);
}

.shop-grid-wrap {
  margin-top: 18px;
  position: relative;
  z-index: 10;
  isolation: isolate;
}

.shop-grid-wrap .project-card.project-card--shop {
  position: relative;
  z-index: 1;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: calc(13px * 1.5 * 1.5);
  align-content: start;
  --shop-grid-scroll-height: max(
    120px,
    calc(
      min(
        calc(1.05 * 0.75 * (4 * ((min(1180px, calc(100vw - 40px)) - 3 * 10px) / 4) + 3 * (13px * 1.5 * 1.5))),
        calc(58.5vh * 1.05)
      ) - 50px
    )
  );
  min-height: var(--shop-grid-scroll-height);
  max-height: var(--shop-grid-scroll-height);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 30px 18px 16px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) rgba(6, 6, 6, 0.55);
  overscroll-behavior: auto;
  touch-action: pan-y;
}

.shop-grid .project-card.project-card--shop {
  width: calc(94.5% * 1.05 * 0.95);
  max-width: calc(94.5% * 1.05 * 0.95);
  justify-self: center;
}

.shop-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.shop-grid::-webkit-scrollbar {
  width: 7px;
}

.shop-grid::-webkit-scrollbar-track {
  background: rgba(8, 8, 8, 0.85);
  border-radius: 999px;
}

.project-card.project-card--shop {
  --shop-tile-r: var(--shop-ui-radius, 20px);
  --shop-tile-border-w: 2px;
  --shop-tile-border-color: #000;
  /*
   * Centered stroke (≈ half inside/half outside) on ::before above all tile paints.
   * `--shop-tile-ring-shrink`: pull ring slightly inward vs the media edge — hides fractional px gaps.
   */
  --shop-tile-ring-shrink: 0.75px;
  --tile-title-fs: 15px;
  --tile-entity-fs: 13px;
  --shop-scale: 1;
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  /*
   * Thickness/color/curve vars above. Stroke renders on ::before (top layer).
   */
  border: none;
  border-radius: var(--shop-tile-r);
  position: relative;
  z-index: 0;
  overflow: visible;
  /* No tile fill — bleed-through gaps match page backdrop; border + inner media only paint */
  background: transparent;
  /* No depth shadow behind archive tiles — keep stroked rim (::before) only. */
  box-shadow: none;
  transition: transform 0.45s cubic-bezier(0.25, 0.82, 0.25, 1);
  transform: translate3d(var(--shop-shift-x, 0px), var(--shop-shift-y, 0px), 0)
    rotateZ(var(--shop-tilt-r, 0deg))
    scale(var(--shop-scale));
  transform-origin: center center;
}

@media (prefers-reduced-motion: reduce) {
  .project-card.project-card--shop {
    transition-duration: 0.24s;
  }

  .project-card.project-card--shop:hover,
  .project-card.project-card--shop:focus-visible {
    --shop-scale: 1.05;
  }
}

.project-card--shop .project-card-inner--tile {
  position: relative;
  display: grid;
  grid-template: 1fr / 1fr;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border-radius: inherit;
  background: transparent;
}

.project-card--shop:hover .project-card-inner,
.project-card--shop:focus-visible .project-card-inner {
  animation-play-state: paused;
}

.project-card--shop .project-tile-image.project-preview {
  position: absolute;
  inset: 0;
  min-height: 0;
  border-radius: 0;
  border: none;
  background: transparent;
}

.project-card--shop .project-tile-image.project-preview::before {
  display: none;
}

.project-card--shop .project-tile-overlay {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  z-index: 24;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  margin-top: auto;
  padding: 36px 14px 14px;
  border-radius: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.75) 52.5%,
    transparent 100%
  );
  pointer-events: none;
  isolation: auto;
  filter: none;
  -webkit-font-smoothing: subpixel-antialiased;
  text-rendering: optimizeLegibility;
}

.project-card--shop .project-tile-soft.project-tile-soft--top {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: stretch;
  position: relative;
  z-index: 32;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-start;
  gap: calc(3px * 1.1);
  --tile-soft-inset-l: calc(14px * 1.35);
  --tile-soft-inset-r: 14px;
  width: calc(100% - var(--tile-soft-inset-l) - var(--tile-soft-inset-r));
  max-width: none;
  margin: 12px var(--tile-soft-inset-r) 0 var(--tile-soft-inset-l);
  padding: 0;
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.project-card--shop:hover .project-tile-soft--top,
.project-card--shop:focus-visible .project-tile-soft--top {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .project-card--shop .project-tile-soft.project-tile-soft--top {
    transition-duration: 0.01ms;
  }
}

.project-card--shop .project-tile-soft--top .tag.tag--soft {
  padding: calc(4px * 0.66) calc(9px * 0.66);
  font-size: calc(0.61rem * 1.1);
  line-height: 1.22;
  border-style: solid;
  border-width: calc(1px * 0.98);
  border-color: rgba(13, 13, 15, 0.72);
  background: rgba(4, 4, 6, 0.53);
  background-clip: padding-box;
  color: rgba(255, 255, 255, 0.96);
  opacity: 1;
  box-shadow: none;
}

.project-card--shop .project-tile-title,
.project-card--shop .project-tile-entity {
  position: relative;
  z-index: 1;
}


.project-card--shop .project-tile-title-group {
  margin-top: auto;
  align-self: flex-start;
  display: block;
  max-width: 100%;
  width: 100%;
}

/* Title underline bar between heading and entity (on group — not clipped by title line-clamp). */
.project-card--shop .project-tile-title-group--accent-client::after,
.project-card--shop .project-tile-title-group--accent-personal::after,
.project-card--shop .project-tile-title-group--accent-partner::after {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 100%;
  height: clamp(0.61px, 0.076em, 0.88px);
  margin-top: 6px;
  border-radius: 1px;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.92);
}

.project-card--shop .project-tile-title {
  margin: 0;
  font-size: var(--tile-title-fs);
  line-height: 1.08;
  letter-spacing: -0.02em;
  padding: 0;
  border: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  max-width: 100%;
  text-overflow: clip;
}

.project-card--shop .project-tile-entity {
  margin: 0;
  font-size: var(--tile-entity-fs);
  line-height: 1.2;
  color: #fff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  white-space: normal;
  max-width: 100%;
  text-overflow: ellipsis;
}

.project-card--shop .project-tile-image--photo .project-tile-thumb,
.project-card--shop .project-tile-image--photo video.project-tile-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border-radius: 0;
}

.project-card--shop .project-tile-thumb--video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  z-index: 1;
}

.project-card--shop .project-tile-video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: transparent;
}

.project-card--shop .project-tile-video-fallback-icon {
  width: clamp(38px, 12vw, 58px);
  height: clamp(38px, 12vw, 58px);
  display: block;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.project-card--shop .project-tile-image--video {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.project-card--shop .project-tile-thumb--pdf-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #121214;
  pointer-events: none;
}

.project-card--shop .project-tile-thumb--pdf {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card--shop .project-tile-pdf-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.72rem, 2.5vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(145deg, rgba(28, 28, 34, 0.96), rgba(12, 12, 16, 0.98));
  transition: opacity 0.25s ease;
}

.project-card--shop .project-tile-thumb--pdf-wrap.is-ready .project-tile-pdf-fallback {
  opacity: 0;
}

.project-card--shop .project-tile-image--photo:has(video.project-tile-thumb)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.92);
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}

html[data-theme="light"] .project-card--shop .project-tile-thumb--video-wrap {
  background: transparent;
}

html[data-theme="light"] .project-card--shop .project-tile-video-fallback {
  color: #fff;
  background: transparent;
}

html[data-theme="light"] .project-card--shop .project-tile-video-fallback-icon {
  background: rgba(10, 10, 12, 0.96);
}

html[data-theme="light"] .project-card--shop .project-tile-image--video {
  background: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.14);
}

.project-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e4e4e4;
}

.project-pill--muted {
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.tag.tag--soft {
  border-style: dashed;
  opacity: 0.9;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 20px;
  margin-bottom: 12px;
}

.modal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-meta-item--full {
  grid-column: 1 / -1;
}

.modal-meta-k {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.modal-meta-v {
  color: var(--text);
}

.modal-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-gallery-block {
  margin-left: calc(-1 * var(--modal-pad-x));
  margin-right: calc(-1 * var(--modal-pad-x));
  margin-top: calc(-1 * (var(--modal-pad-top) - var(--modal-pad-x)));
  width: calc(100% + 2 * var(--modal-pad-x));
  border-radius: 0;
  overflow: hidden;
}

.modal-gallery-eyebrow {
  margin: 0;
  padding: calc(12px * 0.9) var(--modal-pad-x)
    clamp(calc(14px * 1.15 * 1.5), calc(2.5vw * 1.15 * 1.5), calc(20px * 1.15 * 1.5))
    var(--modal-pad-x);
  font-size: calc(0.74rem * 1.2 * 0.85);
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.modal-gallery-stage {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
}

.modal-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 11;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 8, 10, 0.61);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.modal-gallery-arrow:hover:not(:disabled),
.modal-gallery-arrow:focus-visible:not(:disabled) {
  background: rgba(22, 22, 28, 0.75);
  border-color: rgba(255, 255, 255, 0.38);
}

.modal-gallery-arrow:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.modal-gallery-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.modal-gallery-arrow--prev {
  left: 10px;
}

.modal-gallery-arrow--next {
  right: 10px;
}

html[data-theme="light"] .modal-gallery-arrow {
  border-color: rgba(42, 44, 52, 0.35);
  background: rgba(255, 255, 255, 0.7);
  color: #111;
}

html[data-theme="light"] .modal-gallery-arrow:hover:not(:disabled),
html[data-theme="light"] .modal-gallery-arrow:focus-visible:not(:disabled) {
  background: rgba(255, 255, 255, 0.81);
  border-color: rgba(42, 44, 52, 0.5);
}

html[data-theme="light"] .modal-gallery-arrow:focus-visible {
  outline-color: rgba(0, 0, 0, 0.22);
}

.modal-gallery-watermark {
  pointer-events: none;
  position: absolute;
  z-index: 8;
  inset: auto var(--modal-pad-x) var(--modal-pad-x) auto;
  padding: calc(8px * 0.7) 11px;
  font-size: calc(0.78rem * 1.2 * 0.85);
  line-height: 1.2;
  letter-spacing: 0.06em;
  border-radius: 999px;
  font-weight: 700;
  text-transform: none;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(8, 8, 10, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-sizing: border-box;
}

.modal-gallery-slide__type-badge {
  pointer-events: none;
  position: absolute;
  z-index: 40;
  inset: 10px auto auto 10px;
  padding: calc(8px * 0.504) 8.4px;
  font-size: calc(0.78rem * 0.84);
  line-height: 1.15;
  letter-spacing: 0.08em;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(8, 8, 10, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
  isolation: isolate;
  transform: translateZ(0);
}

.modal-gallery-slide.modal-gallery-slide--tile {
  isolation: isolate;
}

.modal-gallery-slide.modal-gallery-slide--tile .modal-gallery-slide__media-wrap--video {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  width: auto;
  min-width: 0;
  display: block;
}

.modal-gallery-slide.modal-gallery-slide--tile .modal-gallery-slide__media-wrap--video video.modal-gallery-slide__media--video {
  position: relative;
  z-index: 1;
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

.modal-gallery-slide__video-hint-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  pointer-events: none;
  box-sizing: border-box;
}

.modal-gallery-slide__video-hint-icon {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  user-select: none;
}

html[data-theme="light"] .modal-gallery-slide__video-hint-overlay {
  background: rgba(255, 255, 255, 0.25);
  color: #111;
}

html[data-theme="light"] .modal-gallery-slide__type-badge {
  color: #111;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(42, 44, 52, 0.18);
}

.modal-gallery-scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: none;
  scrollbar-width: none;
  width: 100%;
  aspect-ratio: 16 / 8;
  max-height: min(44vh, 420px);
  border-radius: 0;
  padding: 0;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-overflow-scrolling: touch;
}

.modal-gallery-scroll::-webkit-scrollbar {
  display: none;
}

.modal-gallery-slide.modal-gallery-slide--tile {
  flex: 0 0 auto;
  height: 100%;
  min-height: 0;
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.modal-gallery-slide.modal-gallery-slide--tile img.modal-gallery-slide__media {
  flex: 0 0 auto;
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.modal-gallery-slide.modal-gallery-slide--tile .modal-gallery-slide__media--pdf {
  flex: 0 0 auto;
  height: 100%;
  width: auto;
  min-width: 0;
  aspect-ratio: var(--pdf-thumb-ar, 210 / 297);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  box-sizing: border-box;
}

.modal-gallery-slide__pdf-thumb {
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  display: block;
  background: transparent;
}

.modal-gallery-slide__pdf-label {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(10, 10, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: opacity 0.2s ease;
}

.modal-gallery-slide__media--pdf.is-ready .modal-gallery-slide__pdf-label {
  opacity: 0;
}

.modal-gallery-slide--zoomable {
  cursor: zoom-in;
}

.modal-gallery-slide--zoomable:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 3px;
}

.modal-title-heading {
  margin: calc(28px * 1.3) 0 0;
  font-size: calc(1.75rem * 1.2 * 0.85);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.modal-subheading {
  margin: calc(8px * 1.2) 0 0;
  font-size: calc(1rem * 1.2 * 1.2 * 0.85);
  font-weight: 700;
  color: var(--muted);
  line-height: 1.58;
}

.modal-tag-bubbles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(8px * 1.2);
  margin: calc(16px * 1.2) 0 calc(20px * 1.2);
}

.modal-completion-lead {
  color: var(--muted);
  font-size: calc(0.78rem * 1.2 * 0.85);
  font-weight: 600;
  line-height: 1.2;
}

.modal-tags-sep {
  color: var(--muted);
  opacity: 0.6;
  font-weight: 300;
  line-height: 1.2;
  margin-right: calc(2px * 1.2);
}

.modal-detail-box .modal-tag-bubbles {
  margin: 0 0 calc(16px * 1.2);
}

.modal-tag-bubbles .tag.tag--bubble-soft,
.modal-tag-bubbles .tag.tag--bubble-ap {
  padding: calc(8px * 0.7) 11px;
  font-size: calc(0.78rem * 1.2 * 0.85);
  line-height: 1.2;
}

.tag.tag--bubble-soft {
  border-style: solid;
}

.modal-tag-bubbles .tag.tag--bubble-ap {
  background: #fff;
  color: #000;
  font-weight: 700;
  border-color: rgba(0, 0, 0, 0.12);
  opacity: 1;
  position: relative;
  z-index: 10;
}

.tag.tag--bubble-ap {
  background: rgba(255, 255, 255, 0.07);
}

.modal-detail-box {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: calc(22px * 1.2) 0 calc(22px * 1.2);
  padding: calc(22px * 1.2) calc(18px * 1.2);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 8, 12, 0.5);
}

.modal-detail-box > .modal-body-text {
  margin-bottom: 0;
}

.modal-body-text {
  margin: 0 0 calc(18px * 1.2);
  font-size: calc(1rem * 1.2 * 0.9 * 0.85);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.68;
}

.modal-body-section + .modal-body-section {
  margin-top: calc(18px * 1.2);
}

.modal-body-section__heading {
  margin: 0 0 calc(7px * 1.2);
  font-size: inherit;
  font-weight: 650;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: 0.01em;
}

.modal-body-section p {
  margin: 0;
}

.modal-body-section p + p {
  margin-top: calc(10px * 1.2);
}

.modal-body-table-wrap {
  margin-top: calc(12px * 1.2);
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-body-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94em;
  line-height: 1.45;
}

.modal-body-table th,
.modal-body-table td {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: calc(8px * 1.2) calc(10px * 1.2);
  text-align: left;
  vertical-align: top;
}

.modal-body-table th {
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.modal-body-table td {
  color: var(--muted);
}

html[data-theme="light"] .modal-body-table th,
html[data-theme="light"] .modal-body-table td {
  border-color: rgba(42, 44, 52, 0.22);
}

html[data-theme="light"] .modal-body-table th {
  background: rgba(0, 0, 0, 0.04);
}

.modal-media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.modal-media-lightbox[hidden] {
  display: none !important;
}

.modal-media-lightbox__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}

.modal-media-lightbox__close {
  position: absolute;
  top: -50px;
  right: 0;
  z-index: 3;
  margin: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transform: scale(1);
  transition:
    transform 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease;
}

.modal-media-lightbox__close:hover,
.modal-media-lightbox__close:focus-visible {
  transform: scale(1.07);
  background: rgba(255, 255, 255, 0.16);
}

.modal-media-lightbox__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.modal-media-lightbox__frame {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: inline-block;
  vertical-align: middle;
}

.modal-media-lightbox__img[hidden],
.modal-media-lightbox__video[hidden],
.modal-media-lightbox__pdf[hidden] {
  display: none !important;
}

.modal-media-lightbox__pdf-error[hidden] {
  display: none !important;
}

.modal-media-lightbox__pdf-loading[hidden] {
  display: none !important;
}

.modal-media-lightbox__img,
.modal-media-lightbox__video {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: auto;
  user-select: none;
}

.modal-media-lightbox__video {
  background: #0a0a0c;
}

.modal-media-lightbox__pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
  padding: 12px 14px;
  box-sizing: border-box;
  pointer-events: auto;
}

.modal-media-lightbox__pdf-shell {
  display: grid;
  grid-template-columns: minmax(156px, 172px) auto;
  grid-template-areas:
    "sidebar main"
    "sidebar nav";
  gap: 4px;
  width: max-content;
  max-width: calc(90vw - 28px);
  max-height: calc(90vh - 24px);
  padding: 6px 8px 4px;
  box-sizing: border-box;
  align-items: stretch;
}

.modal-media-lightbox__pdf-sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-height: calc(90vh - 24px);
  padding: 4px 8px 6px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  background: transparent;
  align-self: stretch;
}

.modal-media-lightbox__pdf-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  align-items: center;
}

.modal-media-lightbox__pdf-nav {
  grid-area: nav;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  justify-self: center;
}

.modal-media-lightbox__pdf-viewport {
  position: relative;
  width: min(var(--pdf-page-w, 76vw), 1280px, calc(90vw - 188px));
  height: min(var(--pdf-page-h, 84vh), 1280px, calc(90vh - 88px));
  min-width: min(var(--pdf-page-w, 320px), 1280px, calc(90vw - 188px));
  min-height: min(var(--pdf-page-h, 420px), 1280px, calc(90vh - 88px));
  max-width: 100%;
  max-height: calc(90vh - 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.modal-media-lightbox__pdf-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(12, 12, 16, 0.92);
  z-index: 2;
}

.modal-media-lightbox__pdf-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
}

.modal-media-lightbox__pdf-loading-spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.88);
  animation: pdf-loading-spin 0.8s linear infinite;
}

.modal-media-lightbox__pdf-loading-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.modal-media-lightbox__pdf-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.modal-media-lightbox__pdf-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.modal-media-lightbox__pdf-thumb {
  position: relative;
  flex: 0 0 auto;
  display: block;
  box-sizing: border-box;
  width: var(--pdf-thumb-w, 148px);
  max-width: 100%;
  height: auto;
  aspect-ratio: var(--pdf-thumb-ar, 210 / 297);
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  cursor: pointer;
  line-height: 0;
}

.modal-media-lightbox__pdf-thumb:focus-visible {
  outline: none;
}

.modal-media-lightbox__pdf-thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.modal-media-lightbox__pdf-thumb:hover .modal-media-lightbox__pdf-thumb-image,
.modal-media-lightbox__pdf-thumb:focus-visible .modal-media-lightbox__pdf-thumb-image {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.42),
    0 8px 20px rgba(0, 0, 0, 0.28);
}

.modal-media-lightbox__pdf-thumb.is-active .modal-media-lightbox__pdf-thumb-image {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.88),
    0 10px 22px rgba(0, 0, 0, 0.34);
}

.modal-media-lightbox__pdf-thumb-label {
  position: absolute;
  inset: auto 8px 8px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(10, 10, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-media-lightbox__pdf-thumb.is-ready .modal-media-lightbox__pdf-thumb-label {
  opacity: 0;
}

.modal-media-lightbox__pdf-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 8, 10, 0.72);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.modal-media-lightbox__pdf-arrow:hover:not(:disabled),
.modal-media-lightbox__pdf-arrow:focus-visible:not(:disabled) {
  background: rgba(22, 22, 28, 0.88);
  border-color: rgba(255, 255, 255, 0.38);
}

.modal-media-lightbox__pdf-arrow:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.modal-media-lightbox__pdf-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.modal-media-lightbox__pdf-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  min-width: 5.6em;
  padding: 0.55rem 0.82rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-media-lightbox__pdf-page-current,
.modal-media-lightbox__pdf-page-sep,
.modal-media-lightbox__pdf-page-total {
  display: inline-block;
  min-width: 1ch;
  text-align: center;
  pointer-events: none;
}

html[data-theme="light"] .modal-media-lightbox__pdf-error {
  color: #111;
  background: rgba(250, 250, 252, 0.95);
}

html[data-theme="light"] .modal-media-lightbox__pdf-loading-spinner {
  border-color: rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .modal-media-lightbox__pdf-loading-label {
  color: rgba(255, 255, 255, 0.86);
}

html[data-theme="light"] .modal-media-lightbox__pdf-image,
html[data-theme="light"] .modal-media-lightbox__pdf-thumb-image {
  background: #fff;
}

html[data-theme="light"] .modal-media-lightbox__pdf-thumb {
  background: transparent;
  border: none;
}

html[data-theme="light"] .modal-media-lightbox__pdf-arrow {
  border-color: rgba(42, 44, 52, 0.35);
  background: rgba(255, 255, 255, 0.82);
  color: #111;
}

html[data-theme="light"] .modal-media-lightbox__pdf-thumb:hover .modal-media-lightbox__pdf-thumb-image,
html[data-theme="light"] .modal-media-lightbox__pdf-thumb:focus-visible .modal-media-lightbox__pdf-thumb-image {
  box-shadow:
    0 0 0 2px rgba(42, 44, 52, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.16);
}

html[data-theme="light"] .modal-media-lightbox__pdf-thumb.is-active .modal-media-lightbox__pdf-thumb-image {
  box-shadow:
    0 0 0 2px rgba(42, 44, 52, 0.72),
    0 10px 22px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .modal-media-lightbox__pdf-arrow:hover:not(:disabled),
html[data-theme="light"] .modal-media-lightbox__pdf-arrow:focus-visible:not(:disabled) {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(42, 44, 52, 0.5);
}

html[data-theme="light"] .modal-media-lightbox__pdf-arrow:focus-visible {
  outline-color: rgba(0, 0, 0, 0.22);
}

html[data-theme="light"] .modal-media-lightbox__pdf-page,
html[data-theme="light"] .modal-media-lightbox__pdf-page-current,
html[data-theme="light"] .modal-media-lightbox__pdf-page-sep,
html[data-theme="light"] .modal-media-lightbox__pdf-page-total {
  color: #111;
}
html[data-theme="light"] .modal-media-lightbox__pdf-page {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(42, 44, 52, 0.35);
}
html[data-theme="light"] .modal-media-lightbox__pdf-thumb-label {
  color: #111;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(42, 44, 52, 0.18);
}

@media (max-width: 1100px) {
  .modal-media-lightbox__pdf-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "sidebar"
      "nav";
    grid-template-rows: auto auto auto;
    gap: 6px;
    width: min(92vw, 1000px);
    max-width: min(92vw, 1000px);
    justify-items: stretch;
  }

  .modal-media-lightbox__pdf-main,
  .modal-media-lightbox__pdf-sidebar,
  .modal-media-lightbox__pdf-nav {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    justify-self: stretch;
  }

  .modal-media-lightbox__pdf-main {
    align-items: stretch;
    gap: 6px;
  }

  .modal-media-lightbox__pdf-viewport {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: min(var(--pdf-page-h, 280px), calc(90vh - 200px));
    aspect-ratio: var(--pdf-page-ar, 210 / 297);
    max-height: min(var(--pdf-page-h, 78vh), calc(90vh - 200px));
  }

  .modal-media-lightbox__pdf-sidebar {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    align-self: stretch;
    min-height: 72px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 4px;
    gap: 10px;
  }

  .modal-media-lightbox__pdf-thumb {
    width: min(96px, var(--pdf-thumb-w, 96px));
    max-width: 96px;
    min-height: 0;
  }

  .modal-media-lightbox__pdf-nav {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    justify-self: center;
  }
}

@keyframes pdf-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

html[data-theme="light"] .modal-media-lightbox__close {
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  border-color: rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] .modal-media-lightbox__close:hover,
html[data-theme="light"] .modal-media-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 1);
}

.project-card--shop > .project-tile-favourite {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 60;
  font-size: clamp(32.13px, 6.426vw, 41.31px);
  line-height: 1;
  color: #ffd24a;
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.95),
    0 1px 2px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  transform: translate(calc(-50% + 6px), calc(-50% + 6px));
}

.modal-skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: calc(10px * 1.2 * 1.4);
  box-sizing: border-box;
  overflow: visible;
  padding: 10px 8px;
  margin: 0 -8px;
  width: calc(100% + 16px);
}

.modal-skill-pill {
  --modal-pill-r: 8px;
  --modal-pill-border-w: 1.5px;

  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: calc(12px * 0.7 * 1.2) calc(20px * 1.38) calc(12px * 0.7 * 1.2) calc(12px + 6px);
  border-radius: var(--modal-pill-r);
  overflow: visible;
  isolation: isolate;
  border: var(--modal-pill-border-w) solid rgba(110, 118, 130, 0.48);
  font-size: calc(0.92rem * 1.2 * 0.85);
  letter-spacing: 0.04em;
  color: var(--accent-2);
  background: #090909;
  transform-origin: center center;
  transition:
    transform 220ms cubic-bezier(0.25, 0.82, 0.25, 1),
    border-color 220ms ease;
}

.modal-skill-pill:hover {
  transform: scale(1.1);
  z-index: 4;
}

.modal-skill-pill__icon {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-right: 2px;
  color: rgba(168, 176, 190, 0.88);
}

.modal-skill-pill__label {
  position: relative;
  z-index: 3;
}

.modal-skill-pill::before {
  content: "";
  position: absolute;
  inset: calc(2px + var(--modal-pill-border-w) * 0.35);
  border-radius: max(2px, calc(var(--modal-pill-r) - var(--modal-pill-border-w) - 2px));
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    112deg,
    transparent 0,
    transparent 6px,
    rgba(255, 255, 255, 0.07) 6px,
    rgba(255, 255, 255, 0.07) 7px
  );
  opacity: 1;
  transition: opacity 220ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  .modal-skill-pill:hover::before {
    opacity: 0.94;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-skill-pill:hover::before {
    opacity: 1;
  }
}

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

@media (max-width: 520px) {
  .shop-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .skill-spine-card--left,
  .skill-spine-card--right {
    align-self: stretch;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    text-align: left;
  }

  .skills-spine__line {
    left: 14px;
    transform: translate3d(0, var(--skills-line-parallax-y), 0);
  }

  .shop-toolbar-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-chip--filters.is-expanded {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    min-width: 0;
    align-self: stretch;
  }

  .shop-chip--filters .shop-filters-toggle {
    align-self: center;
    justify-content: flex-start;
    margin-left: 0;
    flex-shrink: 0;
  }

  .shop-filters-drawer:not([hidden]) {
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-left: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) rgba(6, 6, 6, 0.35);
  }
}

@media (max-width: 720px), (hover: none), (pointer: coarse) {
  :root {
    --container: min(1180px, calc(100vw - 48px));
    --topbar-h: 42px;
    --shop-toolbar-chip-track-h: 34px;
    --shop-toolbar-label-font-size: calc(0.74rem * 1.15 * 0.7);
    --shop-toolbar-label-tracking: 0.13em;
    --shop-toolbar-mini-label-font-size: calc(var(--shop-toolbar-label-font-size) * 0.86);
    --shop-filter-mini-pad-y: 7px;
    --shop-filter-mini-pad-x: 10px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .page {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .section {
    width: var(--container);
    max-width: calc(100vw - 48px);
    margin-left: auto;
    margin-right: auto;
  }

  .intro-inner {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .intro-title {
    max-inline-size: 100%;
    overflow: visible;
  }

  .intro-title__word {
    max-width: 100%;
  }

  .topbar-shell {
    gap: 6px;
    align-items: stretch;
    touch-action: manipulation;
  }

  .topbar {
    flex: 1 1 auto;
    width: auto;
    height: var(--topbar-h);
    min-width: 0;
    padding: 0 10px;
    border-radius: 15px;
  }

  .brand {
    flex: 0 0 auto;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .nav {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    gap: 3px;
    min-width: 0;
  }

  .topbar .nav-link {
    font-size: 0.58rem;
    letter-spacing: 0.045em;
    padding: 5px 6px;
    white-space: nowrap;
  }

  .theme-toggle {
    flex: 0 0 var(--topbar-h);
    width: var(--topbar-h);
    height: var(--topbar-h);
    border-radius: 13px;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
  }

  .theme-toggle *,
  .theme-toggle__icon,
  .theme-toggle__icon svg {
    pointer-events: none;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
  }

  .theme-toggle:hover,
  .theme-toggle:focus,
  .theme-toggle:focus-visible,
  .theme-toggle:active {
    outline: none;
    box-shadow: none;
    transform: none;
  }

  .theme-toggle:hover,
  .theme-toggle:focus-visible {
    border-color: rgba(255, 255, 255, 0.32);
  }

  html[data-theme="light"] .theme-toggle:hover,
  html[data-theme="light"] .theme-toggle:focus,
  html[data-theme="light"] .theme-toggle:focus-visible,
  html[data-theme="light"] .theme-toggle:active {
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
  }

  html[data-theme="light"] .theme-toggle:hover,
  html[data-theme="light"] .theme-toggle:focus-visible {
    border-color: rgba(0, 0, 0, 0.22);
  }

  .theme-toggle__icon svg,
  .theme-toggle__icon--sun svg {
    width: 12px;
    height: 12px;
  }

  .click-confetti-burst {
    display: none !important;
  }

  button,
  a,
  .shop-chip,
  .shop-toolbar-dd-hit,
  .shop-filters-toggle,
  .project-card,
  .modal-gallery-scroll {
    touch-action: manipulation;
  }

  .section--skills {
    padding: 70px 0 78px;
  }

  .skills-spine {
    margin-top: 28px;
    padding-bottom: 42px;
    min-height: 0;
  }

  .skills-spine__track {
    gap: 24px;
  }

  .skill-spine-card--left,
  .skill-spine-card--right {
    align-self: stretch;
    max-width: calc(100% - 34px);
    margin-left: 34px;
    margin-right: 0;
    text-align: left;
  }

  .skill-spine-card--left .skill-spine-card__copy {
    text-align: left;
  }

  .skill-spine-card--left .skill-spine-card__row {
    flex-direction: row;
  }

  .skill-spine-card--left .skill-spine-card__tags {
    justify-content: flex-start;
  }

  .skill-spine-card {
    padding: 14px 15px 16px;
    border-radius: 16px;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .skill-spine-card.is-scrolled-in:hover,
  .skill-spine-card.is-scrolled-in:focus-within {
    padding: 14px 15px 16px;
    transform: translate3d(0, 0, 0) scale(1);
    box-shadow: var(--shadow);
  }

  .skill-spine-card__row {
    gap: 11px;
  }

  .skill-spine-card__draft-icon {
    width: 26px;
    height: 26px;
    margin-top: 4px;
  }

  .skill-spine-card__index {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  .skill-spine-card h3 {
    margin: 7px 0 7px;
    font-size: 1rem;
  }

  .skill-spine-card p {
    font-size: 0.78rem;
    line-height: 1.52;
  }

  .skill-spine-card__tags {
    gap: 6px;
    margin-top: 10px;
  }

  .shop-toolbar-controls {
    flex-direction: row;
    flex-wrap: wrap;
    position: relative;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 12px;
    z-index: 40;
  }

  .section--shop {
    padding: 46px 0 38px;
  }

  .shop-projects-panel {
    padding: clamp(9px, 3vw, 13.5px) clamp(12px, 4vw, 18px) clamp(12px, 4vw, 18px);
  }

  .shop-panel-body {
    padding-top: 0;
  }

  .shop-head h2 {
    font-size: clamp(1rem, 6vw, 1.5rem);
    margin-bottom: 8px;
  }

  .shop-head .shop-head__intro {
    font-size: 0.7rem;
    line-height: 1.55;
  }

  .shop-search-wrap {
    margin-top: 14px;
  }

  .shop-search {
    padding: 10px 13px;
    padding-right: 32px;
    border-radius: 14px;
    font-size: 0.7rem;
  }

  .shop-chip {
    gap: 6px 8px;
    padding: 7px 11px;
    border-radius: 14px;
    min-height: var(--shop-toolbar-chip-track-h);
  }

  .shop-chip--sort {
    height: var(--shop-toolbar-chip-track-h);
    min-height: var(--shop-toolbar-chip-track-h);
    max-height: var(--shop-toolbar-chip-track-h);
    padding: 7px 11px;
  }

  .shop-chip--sort,
  .shop-chip--filters:not(.is-expanded) {
    flex: 1 1 calc(50% - 4px);
    width: auto;
    max-width: none;
    justify-content: center;
  }

  .shop-chip--filters.is-expanded {
    display: contents;
  }

  .shop-chip--filters.is-expanded .shop-filters-toggle {
    box-sizing: border-box;
    flex: 1 1 calc(50% - 4px);
    min-height: var(--shop-toolbar-chip-track-h);
    align-self: stretch;
    justify-content: center;
    margin: 0;
    padding: 7px 11px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgb(12, 12, 12);
  }

  .shop-filters-drawer:not([hidden]) {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--shop-toolbar-chip-track-h) + 8px);
    z-index: 100056;
    flex: none;
    box-sizing: border-box;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-height: none;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgb(12, 12, 12);
    overflow: visible;
    animation: none !important;
  }

  .shop-chip.shop-chip--filter-mini {
    flex: 0 0 auto;
    width: 100%;
    justify-content: center;
  }

  .shop-toolbar-dd-menu {
    max-width: calc(100vw - 48px) !important;
    max-height: min(48vh, 300px);
  }

  .shop-toolbar-dd-option {
    padding: 6px 9px;
    font-size: 0.72rem;
  }

  .shop-count {
    font-size: 0.58rem;
  }

  html[data-theme="light"] .shop-chip--filters.is-expanded .shop-filters-toggle,
  html[data-theme="light"] .shop-filters-drawer:not([hidden]) {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgb(252, 252, 253);
  }

  .shop-grid-wrap {
    margin-top: 12px;
  }

  .shop-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    min-height: calc(var(--shop-grid-scroll-height) + 110px);
    max-height: calc(var(--shop-grid-scroll-height) + 110px);
    padding: 18px 12px 12px 16px;
  }

  .shop-grid .project-card.project-card--shop {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    justify-self: stretch;
  }

  .project-card.project-card--shop {
    overflow: visible;
    transform: none !important;
  }

  .project-card.project-card--shop:hover,
  .project-card.project-card--shop:focus-visible {
    --shop-scale: 1;
    --shop-shift-x: 0px;
    --shop-shift-y: 0px;
    --shop-tilt-r: 0deg;
    transform: translate3d(0, 0, 0) rotateZ(0deg) scale(1);
  }

  .project-modal.is-shop-layout .modal-gallery-watermark {
    padding: calc(8px * 0.42) 7px;
    font-size: calc(0.78rem * 0.72);
  }

  .project-modal.is-shop-layout .modal-gallery-slide__type-badge {
    inset: 8px auto auto 8px;
  }

  .project-modal.is-shop-layout .modal-gallery-slide__media-wrap--video video.modal-gallery-slide__media--video {
    opacity: 0;
  }

  .project-modal.is-shop-layout
    .modal-gallery-slide--tile[data-video-frame-ready="1"]
    .modal-gallery-slide__media-wrap--video
    video.modal-gallery-slide__media--video {
    opacity: 1;
  }

  .project-modal.is-shop-layout .modal-panel {
    width: min(760px, calc(100vw - 24px));
    height: auto;
    max-height: calc(100dvh - max(28px, env(safe-area-inset-top)) - max(46px, env(safe-area-inset-bottom)));
    margin-top: max(14px, env(safe-area-inset-top));
    margin-bottom: max(16px, env(safe-area-inset-bottom));
    padding-bottom: max(14px, calc(env(safe-area-inset-bottom) + 9px));
    scrollbar-gutter: auto;
    overscroll-behavior: contain;
  }

  .project-modal {
    overscroll-behavior: contain;
  }

  .modal-media-lightbox {
    padding:
      max(16px, calc(env(safe-area-inset-top) + 10px))
      max(16px, calc(env(safe-area-inset-right) + 12px))
      max(28px, calc(env(safe-area-inset-bottom) + 18px))
      max(16px, calc(env(safe-area-inset-left) + 12px));
  }

  .modal-media-lightbox__frame {
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 44px);
    padding-top: 50px;
    box-sizing: border-box;
  }

  .modal-media-lightbox__img,
  .modal-media-lightbox__video {
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 122px);
  }

  .modal-media-lightbox__pdf {
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 122px);
    padding: 0;
  }

  .modal-media-lightbox__close {
    top: 0;
    right: 0;
  }

  .modal-gallery-arrow {
    width: 31px;
    height: 31px;
    font-size: 0.9rem;
  }

  .modal-gallery-arrow--prev {
    left: 6px;
  }

  .modal-gallery-arrow--next {
    right: 6px;
  }

  .modal-media-lightbox__pdf-shell {
    width: min(88vw, 1000px);
    max-width: 88vw;
    gap: 3px;
    padding: 0;
  }

  .modal-media-lightbox__pdf-main {
    gap: 3px;
  }

  .modal-media-lightbox__pdf-viewport {
    max-height: min(var(--pdf-page-h, 42vh), calc(100dvh - 248px));
  }

  .modal-media-lightbox__pdf-sidebar {
    gap: 8px;
    scrollbar-width: thin;
  }

  .modal-media-lightbox__pdf-thumb {
    width: min(80px, var(--pdf-thumb-w, 80px));
    max-width: 80px;
  }

  .modal-media-lightbox__pdf-nav {
    gap: 4px;
    margin-top: 0;
  }

  .project-modal.is-shop-layout .modal-close {
    top: 11px;
    right: 11px;
    width: 25px;
    height: 25px;
    font-size: 0.9rem;
  }

  .project-modal.is-shop-layout .modal-gallery-eyebrow {
    padding-left: calc(var(--modal-pad-x) * 2);
    font-size: calc(0.58rem * 1.3);
  }

  .project-modal.is-shop-layout .modal-title-heading {
    margin-top: 22px;
    font-size: calc(1.75rem * 1.2 * 0.6);
  }

  .project-modal.is-shop-layout .modal-subheading {
    font-size: calc(1rem * 1.2 * 1.2 * 0.6);
    line-height: 1.46;
  }

  .project-modal.is-shop-layout .modal-detail-box {
    margin: 16px auto;
    padding: 15px 13px;
  }

  .project-modal.is-shop-layout .modal-tag-bubbles {
    gap: 7px;
  }

  .project-modal.is-shop-layout .modal-completion-lead {
    flex: 0 0 100%;
    font-size: calc(0.78rem * 1.2 * 0.6);
    padding-bottom: 8px;
  }

  .project-modal.is-shop-layout .modal-tags-sep {
    display: none;
  }

  .project-modal.is-shop-layout .modal-tag-bubbles .tag.tag--bubble-soft,
  .project-modal.is-shop-layout .modal-tag-bubbles .tag.tag--bubble-ap {
    padding: calc(8px * 0.42) 7px;
    font-size: calc(0.78rem * 1.2 * 0.6);
  }

  .project-modal.is-shop-layout .modal-body-text {
    font-size: calc(1rem * 1.2 * 0.9 * 0.6);
    line-height: 1.6;
  }

  .project-modal.is-shop-layout .modal-body-section + .modal-body-section {
    margin-top: 14px;
  }

  .project-modal.is-shop-layout .modal-body-section__heading {
    margin-bottom: 5px;
  }

  .project-modal.is-shop-layout .modal-skill-grid {
    gap: calc(10px * 1.2 * 1.4 * 0.6);
    padding: 2.295px 15.12px;
    margin: 0 auto;
    width: 100%;
  }

  .project-modal.is-shop-layout .modal-skill-pill {
    gap: 6px;
    padding: calc(12px * 0.7 * 1.2 * 0.6) calc(20px * 1.38 * 0.6)
      calc(12px * 0.7 * 1.2 * 0.6) calc((12px + 6px) * 0.6);
    font-size: calc(0.92rem * 1.2 * 0.6);
  }

  .project-modal.is-shop-layout .modal-skill-pill:hover,
  .project-modal.is-shop-layout .modal-skill-pill:focus-visible {
    transform: none;
  }

  .project-modal.is-shop-layout .modal-skill-pill__icon {
    width: 13px;
    height: 13px;
    margin-right: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .cursor-glow,
  .cursor-ring {
    display: none !important;
  }

  .skills-spine__line {
    transform: none !important;
    opacity: 1 !important;
    will-change: auto !important;
  }

  .skill-spine-card {
    opacity: 1 !important;
    transform: none !important;
  }
}