:root {
  --bg: #161616;
  --surface: #1f1f1f;
  --surface-hover: #262626;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text-muted: #8e8e93;
  --text-bright: #ffffff;
  --accent: #a259ff;
  --accent-rgb: 162, 89, 255;
  --font-display: 'Plus Jakarta Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;

  /* Responsive Resolution Scaling System */
  --site-max-w: 1080px;
  --page-padding-x: 28px;
  --header-padding-y: 20px;
  --card-w: min(680px, 76vw);
  --card-min-h: min(510px, 80vh);
  --card-padding: 24px 28px;
  --gutter-w: 24px;
  --reel-edge-fade: min(60px, 6vw);
  --video-stage-min-h: 380px;
  --video-max-h: 420px;
  --img-max-h: 395px;
  --mascot-max-h: 360px;
  --flip-wide-max-w: min(640px, 100%);
  --stacked-max-w: 480px;
  --stacked-img-max-h: 195px;
  --section-header-max-w: 660px;
  --bio-box-max-w: 680px;
  --special-map-max-w: 320px;
  --special-gap: 48px;
  --df-card-w: min(560px, 82vw);
  --df-img-max-h: 320px;
  --modal-max-w: 720px;
  --lightbox-stage-max-w: 1120px;
  --arrow-btn-size: 38px;
  --arrow-btn-font: 19px;
}

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

html {
  scroll-padding-top: 84px;
}

html.is-loaded {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

picture {
  display: contents;
}

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

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

button {
  font-family: inherit;
}

strong {
  color: var(--text-bright);
  font-weight: 500;
}

code {
  font-family: inherit;
  color: var(--text-bright);
}

.hidden {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 18, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(14, 14, 14, 0.96);
  border-bottom-color: var(--border-strong);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  max-width: var(--site-max-w, 1080px);
  margin: 0 auto;
  padding: var(--header-padding-y, 20px) var(--page-padding-x, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.site-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}

.btn-resume-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.btn-resume-header:hover {
  color: var(--text-bright);
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-bright);
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-linkedin-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-bright);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-linkedin-top:hover {
  background: var(--surface-hover);
  border-color: var(--text-bright);
  transform: translateY(-1px);
}

.btn-formatter-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 8px;
  border-radius: 999px;
  background: rgba(162, 89, 255, 0.12);
  border: 1px solid rgba(162, 89, 255, 0.45);
  color: var(--text-bright);
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-formatter-top:hover,
.btn-formatter-top.active {
  background: rgba(162, 89, 255, 0.24);
  border-color: var(--accent);
}

.btn-formatter-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--accent);
  padding: 2px 7px;
  border-radius: 999px;
}

.page-container {
  max-width: var(--site-max-w, 1080px);
  margin: 0 auto;
  padding: 0 var(--page-padding-x, 28px) 72px;
}

.about-section {
  margin-top: 64px;
  padding-top: 48px;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--border);
}

.bio-box {
  max-width: var(--bio-box-max-w, 680px);
  text-align: center;
}

.bio-box p {
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 20px;
  font-weight: 400;
}

.bio-box p strong {
  color: var(--text-bright);
  font-weight: 500;
}

.bio-box p:last-child {
  margin-bottom: 0;
}

.bio-box .bio-closing {
  margin-top: 24px;
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.btn-light {
  background: var(--text-bright);
  color: var(--bg);
}

.btn-light:hover {
  opacity: 0.88;
}

.btn-outline {
  background: transparent;
  color: var(--text-bright);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--surface);
}

.work-section {
  padding-top: 40px;
}

.section-header {
  text-align: center;
  max-width: var(--section-header-max-w, 660px);
  margin: 0 auto 26px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 600;
  color: var(--text-bright);
  margin: 0 0 10px;
  letter-spacing: -0.025em;
}

.work-intro-heading {
  font-family: var(--font-sans);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.work-intro-line {
  display: block;
}

.work-intro-first {
  display: block;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  color: var(--text-muted);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  font-weight: 400;
}

.work-intro-second {
  display: inline-block;
  font-size: clamp(2.35rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-bright);
  transform-origin: center center;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.65s ease;
}

.work-intro-second.attention-enlarge {
  transform: scale(1.06);
  color: #ffffff;
}

.work-intro-second strong,
.work-intro-heading strong {
  color: var(--text-bright);
  font-weight: 700;
}

.print-specs-note {
  max-width: var(--section-header-max-w, 660px);
  margin: 32px auto 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

.work-header-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 56px;
}

.work-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.filter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.filter-master-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.filter-btn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.filter-arrow {
  font-size: 10px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.filter-categories-drawer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  max-width: 880px;
  box-sizing: border-box;
  animation: filterDrawerFade 0.22s ease-out;
}

@keyframes filterDrawerFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-categories-drawer.hidden {
  display: none !important;
}

.filter-categories-drawer .filter-btn {
  font-size: 13px;
  padding: 6px 14px;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-bright);
  border-color: var(--border-strong);
}

.filter-btn.active {
  background: var(--text-bright);
  color: var(--bg);
  border-color: var(--text-bright);
}

.work-view-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.arrow-nav-bar {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 8px;
}

.reel-counter {
  font-size: 12.5px;
  color: var(--text-muted);
  min-width: 52px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.view-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.view-toggle-group {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
}

.view-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.view-mode-btn:hover {
  color: var(--text-bright);
}

.view-mode-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-bright);
}

.horiz-nav-btns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.horiz-step-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text-bright);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.horiz-step-btn:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.5);
}

.horiz-step-btn:active {
  transform: scale(0.95);
}

.projects-list.view-vertical {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.projects-list.view-vertical .project-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.projects-list.view-vertical .project-media-grid {
  flex: 1 1 auto;
  display: grid;
  align-items: center;
  align-content: center;
  justify-items: center;
  width: 100%;
}

.projects-list.view-vertical .project-img-wrap img,
.projects-list.view-vertical .flip-face img {
  max-height: 290px;
}

.projects-list.view-vertical .project-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 260px;
}

.projects-list.view-vertical .project-caption-block {
  margin-top: auto;
  padding-top: 14px;
  width: 100%;
}

.projects-list.view-vertical .project-caption-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
  font-size: 14px;
}

.projects-reel-shell {
  position: relative;
}

.projects-reel-shell.view-horizontal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--reel-edge-fade, 110px);
  background: linear-gradient(to left, rgba(22, 22, 22, 0) 0%, rgba(22, 22, 22, 0.85) 70%, var(--bg) 100%);
  pointer-events: none;
  z-index: 10;
}

.projects-reel-shell.view-horizontal::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--reel-edge-fade, 110px);
  background: linear-gradient(to right, rgba(22, 22, 22, 0) 0%, rgba(22, 22, 22, 0.85) 70%, var(--bg) 100%);
  pointer-events: none;
  z-index: 10;
}

.projects-list.view-horizontal {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: var(--gutter-w);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 6px calc((100% - var(--card-w)) / 2) 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 var(--reel-edge-fade, 110px), #000 calc(100% - var(--reel-edge-fade, 110px)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 var(--reel-edge-fade, 110px), #000 calc(100% - var(--reel-edge-fade, 110px)), transparent 100%);
}

.projects-list.view-horizontal::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.projects-list.view-horizontal .project-item {
  flex: 0 0 var(--card-w);
  min-height: var(--card-min-h, 510px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--card-padding, 24px 28px);
  box-sizing: border-box;
  transition: opacity 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
}

.projects-list.view-horizontal .project-item:not(.is-active-card) {
  opacity: 0.52;
  transform: scale(0.975);
  cursor: pointer;
}

.projects-list.view-horizontal .project-item:not(.is-active-card):hover {
  opacity: 0.72;
  border-color: var(--border-strong);
}

.projects-list.view-horizontal .project-media-grid {
  flex: 1 1 auto;
  display: grid;
  align-items: center;
  align-content: center;
  justify-items: center;
  width: 100%;
}

.projects-list.view-horizontal .project-img-wrap {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.projects-list.view-horizontal .project-img-wrap img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: var(--img-max-h, 395px);
  display: block;
}

.projects-list.view-horizontal .project-media-grid.stacked {
  grid-template-columns: 1fr;
  max-width: var(--stacked-max-w, 480px);
  margin: 0 auto;
  gap: 12px;
}

.projects-list.view-horizontal .project-media-grid.stacked .project-img-wrap img {
  max-height: var(--stacked-img-max-h, 195px);
}

.projects-list.view-horizontal .project-caption-block {
  margin-top: auto;
  padding-top: 14px;
  width: 100%;
}

.project-specs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  justify-content: center;
}

.spec-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.gutter-arrow {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  z-index: 25;
  width: var(--arrow-btn-size, 38px);
  height: var(--arrow-btn-size, 38px);
  padding: 0;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  color: var(--text-bright);
  font-size: var(--arrow-btn-font, 19px);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.gutter-arrow:hover {
  background: var(--text-bright);
  color: var(--bg);
  border-color: var(--text-bright);
  transform: translateY(-50%) scale(1.08);
}

.gutter-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.gutter-arrow.prev {
  left: 14px;
}

.gutter-arrow.next {
  right: 14px;
}

.gutter-arrow.is-disabled {
  opacity: 0;
  pointer-events: none;
}

.projects-reel-shell.view-vertical .gutter-arrow {
  display: none !important;
}

.gutter-arrow.is-disabled {
  opacity: 0;
  pointer-events: none;
}

.project-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #101010;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
}

.project-video-wrap.is-reel {
  aspect-ratio: 9 / 16;
  max-width: 250px;
  margin: 0 auto;
}

.projects-list.view-horizontal .project-video-wrap {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  min-height: min(var(--video-stage-min-h, 380px), 100%);
  max-height: var(--video-max-h, 420px);
}

.projects-list.view-horizontal .project-video-wrap.is-reel {
  aspect-ratio: 9 / 16;
  max-width: 240px;
  min-height: min(var(--video-stage-min-h, 380px), 100%);
  max-height: var(--video-max-h, 420px);
}

.projects-list.view-vertical .project-video-wrap.is-reel {
  aspect-ratio: 9 / 16;
  max-width: 230px;
  max-height: 400px;
}

.project-video-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease, opacity 0.22s ease;
}

.project-video-wrap:hover img {
  transform: scale(1.015);
  opacity: 0.88;
}

.video-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--text-bright);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.project-video-wrap:hover .video-play-badge {
  background: var(--text-bright);
  color: var(--bg);
  border-color: var(--text-bright);
  transform: translate(-50%, -50%) scale(1.04);
}

.flip-stage-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  perspective: 1500px;
  cursor: pointer;
  user-select: none;
}

.flip-stage-wrap.flip-wide {
  max-width: var(--flip-wide-max-w, min(640px, 100%));
}

.flip-card-inner {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 8px;
}

.flip-stage-wrap:hover .flip-card-inner {
  transform: rotateY(4deg) translateY(-2px);
}

.flip-stage-wrap.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-stage-wrap.is-flipped:hover .flip-card-inner {
  transform: rotateY(176deg) translateY(-2px);
}

.flip-face {
  width: fit-content;
  max-width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
}

.flip-face-front {
  position: relative;
}

.flip-face-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotateY(180deg);
}

.flip-face img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 440px;
  display: block;
}

.projects-list.view-horizontal .flip-face img {
  max-height: var(--img-max-h, 395px);
}

.flip-face-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-hover-hint {
  position: relative;
  margin: 12px auto 0;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(162, 89, 255, 0.55);
  color: var(--text-bright);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  animation: flipHintBob 2.4s ease-in-out infinite;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.flip-stage-wrap:hover .flip-hover-hint {
  background: var(--accent);
  color: #141414;
  border-color: var(--accent);
}

.flip-side-tag {
  display: none !important;
}

.card-enlarge-btn,
.flip-zoom-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.015em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
  user-select: none;
  -webkit-user-select: none;
}

.card-enlarge-btn svg,
.flip-zoom-btn svg {
  display: block;
  flex-shrink: 0;
  opacity: 0.82;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.card-enlarge-btn:hover,
.flip-zoom-btn:hover {
  color: var(--text-bright);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(38, 38, 38, 0.96);
  transform: translateY(-1px);
}

.card-enlarge-btn:hover svg,
.flip-zoom-btn:hover svg {
  opacity: 1;
  transform: scale(1.08);
}

.card-enlarge-btn:active,
.flip-zoom-btn:active {
  transform: translateY(0);
}

.is-flip-card-item .project-caption-block {
  margin-top: 14px;
}

.is-flip-card-item .project-meta-row {
  justify-content: center;
  width: 100%;
}

@keyframes flipHintBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.project-video-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-file-protocol-notice {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 20px;
  background: radial-gradient(circle at center, rgba(32, 32, 32, 0.98) 0%, rgba(16, 16, 16, 0.98) 100%);
  color: var(--text-bright);
  z-index: 5;
  box-sizing: border-box;
}

.video-file-protocol-notice .notice-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 60, 60, 0.15);
  color: #ff4d4f;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.video-file-protocol-notice h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.video-file-protocol-notice p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 0 14px;
}

.video-file-protocol-notice .notice-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
}

.video-file-protocol-notice .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-file-protocol-notice .btn-primary {
  background: #ff0000;
  color: #fff;
  border: 1px solid #ff0000;
}

.video-file-protocol-notice .btn-primary:hover {
  background: #cc0000;
  border-color: #cc0000;
  transform: translateY(-1px);
}

.video-file-protocol-notice .notice-subtext {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
}

.video-file-protocol-notice .notice-subtext code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.project-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: subtleFadeIn 0.24s ease-out;
}

.project-media-grid {
  width: 100%;
  display: grid;
  gap: 16px;
  align-items: center;
  justify-items: center;
}

.project-media-grid.cols-1 {
  grid-template-columns: 1fr;
  max-width: 820px;
}

.project-media-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: center;
}

.project-media-grid.stacked {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.project-img-wrap {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  background: transparent;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.22s ease,
              box-shadow 0.22s ease;
}

.project-img-wrap:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.project-img-wrap.project-doc-wrap {
  position: relative;
  display: block;
  cursor: pointer;
  text-decoration: none;
}

.doc-open-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: rgba(14, 15, 17, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.project-doc-wrap:hover .doc-open-badge {
  background: rgba(22, 24, 28, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.project-img-wrap img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-img-wrap:hover img {
  transform: scale(1.01);
}

/* =========================================================
   SOCIAL GRAPHICS MINI-CAROUSEL STAGE & CONTROLS
   ========================================================= */

.carousel-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  user-select: none;
}

.carousel-viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(14, 15, 17, 0.4);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.carousel-viewport:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.carousel-track {
  display: grid;
  grid-template-areas: "slide";
  align-items: center;
  justify-content: center;
  width: 100%;
}

.carousel-slide {
  grid-area: slide;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985);
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 2;
}

.carousel-slide img,
.carousel-slide picture img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: var(--img-max-h, 520px);
  display: block;
  border-radius: 8px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-viewport:hover .carousel-slide.is-active img {
  transform: scale(1.01);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  width: var(--arrow-btn-size, 38px);
  height: var(--arrow-btn-size, 38px);
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  color: var(--text-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.carousel-nav-btn.prev {
  left: 10px;
}

.carousel-nav-btn.next {
  right: 10px;
}

.carousel-nav-btn:hover {
  background: var(--text-bright);
  color: var(--bg);
  border-color: var(--text-bright);
  transform: translateY(-50%) scale(1.08);
}

.carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-counter-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 12;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 15, 17, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.carousel-controls-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  width: 100%;
}

.carousel-dots-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.22s ease, width 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.22s ease;
}

.carousel-dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.65);
}

.carousel-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--text-bright);
}

.carousel-slide-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.projects-list.view-vertical .carousel-slide img,
.projects-list.view-vertical .carousel-slide picture img {
  max-height: 290px;
}

/* =========================================================
   MASCOTS INTERACTIVE STAGE & CONTROLS
   ========================================================= */

.mascot-stage {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  padding: 18px 20px 14px;
  box-sizing: border-box;
}

.mascot-stage:hover {
  border-color: var(--border);
}

.mascot-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 100%;
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.mascot-stage img.mascot-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 380px;
  display: block;
  object-fit: contain;
  transition: opacity 0.2s ease;
  background: transparent;
}

article[data-project-id="pickpocket-pete-character"] .project-img-wrap {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-stage:hover img.mascot-img {
  transform: none;
}

article[data-project-id="chomper-bites-of-the-boro"] .mascot-img-wrap img.mascot-img,
article[data-project-id="chomper-bites-of-the-boro"] .mascot-stage:hover img.mascot-img {
  transform: translateX(14px);
}

.lightbox-img-frame.is-chomper-frame img {
  transform: translateX(14px);
}

.projects-list.view-vertical .mascot-stage img.mascot-img {
  max-height: 290px;
}

.projects-list.view-horizontal .mascot-stage img.mascot-img {
  max-height: var(--mascot-max-h, 360px);
}

.mascot-turn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mascot-turn-btn:hover {
  background: #ffffff;
  color: #0b0b0c;
  border-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.mascot-turn-icon {
  display: block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.mascot-turn-stage.is-front .mascot-turn-icon {
  transform: rotate(180deg);
}

.mascot-pose-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  max-width: 440px;
}

.mascot-pose-pill {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mascot-pose-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.mascot-pose-pill.is-active {
  color: #0b0b0c;
  background: #ffffff;
  border-color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.lightbox-mascot-ctrls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(14, 15, 17, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 14px;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  max-width: 90vw;
  flex-wrap: wrap;
}

.project-caption-block {
  max-width: 680px;
  text-align: center;
  margin-top: 14px;
}

.project-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.project-role-tag {
  font-size: 12.5px;
  color: var(--text-muted);
}

.btn-case-study {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-bright);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12.5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-case-study:hover {
  background: var(--surface-hover);
}

.empty-category-box {
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  max-width: 560px;
  margin: 0 auto;
}

.projects-list.view-horizontal .empty-category-box {
  flex: 0 0 var(--card-w);
  width: 100%;
}

.about-section,
.featured-section,
.formatter-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

.featured-section {
  margin-top: 64px;
  padding-top: 48px;
  padding-bottom: 64px;
  border-top: 1px solid var(--border);
}

.featured-section .section-header {
  margin-bottom: 28px;
}

.featured-press-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1040px;
  margin: 0 auto;
}

.featured-press-item {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  gap: 14px;
}

.featured-press-meta {
  display: flex;
  align-items: center;
}

.featured-pub {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.featured-press-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.featured-article-title {
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.8vw, 1.48rem);
  font-weight: 600;
  color: var(--text-bright);
  margin: 0;
  line-height: 1.35;
}

.featured-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

.featured-subnote {
  margin: 2px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.featured-press-action {
  margin-top: auto;
  padding-top: 8px;
}

.featured-editorial-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-bright);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.featured-editorial-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.special-projects-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.special-projects-section .section-header {
  margin-bottom: 24px;
}

.special-projects-flow {
  display: flex;
  flex-direction: column;
}

.special-project-entry {
  padding: 44px 0 52px;
  border-top: 1px solid var(--border);
}

.special-project-entry:first-child {
  padding-top: 24px;
  border-top: none;
}

.special-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.special-project-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--special-gap, 48px);
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}

.special-project-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 580px;
}

.special-project-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.025em;
  color: var(--text-bright);
  margin: 0;
}

.special-project-title .title-main {
  display: block;
}

.special-project-title .title-sub {
  display: block;
}

.special-project-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  max-width: min(56ch, 540px);
}

.special-project-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.special-project-visual {
  display: flex;
  justify-content: center;
}

.featured-map-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #141414;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  cursor: zoom-in;
  max-width: var(--special-map-max-w, 320px);
  width: 100%;
  margin: 0 auto;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.24s ease,
              box-shadow 0.24s ease;
}

.featured-map-frame:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(162, 89, 255, 0.6);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65);
}

.featured-map-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.map-preview-tag {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(162, 89, 255, 0.45);
  color: var(--text-bright);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
}

.special-formatter-header {
  max-width: min(68ch, 740px);
  margin: 0 auto 32px;
  text-align: center;
}

.special-formatter-desc {
  max-width: min(68ch, 740px);
  margin: 14px auto 0;
  text-align: center;
}

.formatter-screenshots-grid {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 4px 2px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(162, 89, 255, 0.35) rgba(255, 255, 255, 0.04);
}

.formatter-screenshots-grid::-webkit-scrollbar {
  height: 6px;
}

.formatter-screenshots-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.formatter-screenshots-grid::-webkit-scrollbar-thumb {
  background: rgba(162, 89, 255, 0.35);
  border-radius: 999px;
}

.df-shot-card {
  flex: 0 0 var(--df-card-w, min(560px, 82vw));
  scroll-snap-align: start;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.df-shot-img-wrap {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: zoom-in;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.df-shot-img-wrap:hover {
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

.df-shot-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.df-shot-img-wrap:hover img {
  transform: scale(1.012);
}

.df-shot-caption {
  padding: 12px 4px 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.about-contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  flex-shrink: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: var(--modal-max-w, 720px);
  max-height: 88vh;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow-y: auto;
  padding: 28px 32px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.modal-role {
  font-size: 13px;
  color: var(--text-muted);
}

.modal-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-bright);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12.5px;
  cursor: pointer;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.case-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
}

.case-box h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-bright);
  margin: 0 0 8px;
}

.case-box p {
  font-size: 13.5px;
  margin: 0;
  line-height: 1.6;
}

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 72px;
  animation: subtleFadeIn 0.18s ease-out;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 26px;
  z-index: 620;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-bright);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.lightbox-close:hover {
  background: var(--surface-hover);
  border-color: var(--text-bright);
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 620;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.lightbox-arrow.prev {
  left: 22px;
}

.lightbox-arrow.next {
  right: 22px;
}

.lightbox-arrow:hover {
  background: var(--surface-hover);
  border-color: var(--text-bright);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-stage {
  max-width: var(--lightbox-stage-max-w, 1120px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-stage.step-next {
  animation: lightboxStepNext 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox-stage.step-prev {
  animation: lightboxStepPrev 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox-img-frame {
  position: relative;
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #121212;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.lightbox-img-frame img {
  max-height: 78vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-flip-stage {
  perspective: 2000px;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 78vh;
  max-width: 100%;
}

.lightbox-flip-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-flip-stage:hover .lightbox-flip-card:not(.is-flipped) {
  transform: rotateY(4deg) translateY(-2px);
}

.lightbox-flip-stage:hover .lightbox-flip-card.is-flipped {
  transform: rotateY(176deg) translateY(-2px);
}

.lightbox-flip-card.is-flipped {
  transform: rotateY(180deg);
}

.lightbox-flip-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-flip-face img {
  max-height: 76vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.lightbox-flip-face.lightbox-flip-front {
  position: relative;
}

.lightbox-flip-face.lightbox-flip-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotateY(180deg);
}

.lightbox-flip-face.lightbox-flip-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}



.lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 860px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.lightbox-meta-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.lightbox-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(162, 89, 255, 0.16);
  border: 1px solid rgba(162, 89, 255, 0.55);
  color: var(--text-bright);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lightbox-action-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.lightbox-img-frame.is-mascot-frame {
  background: #ffffff;
  padding: 24px;
  box-sizing: border-box;
}

.lightbox-img-frame.is-mascot-frame img#lightboxImg {
  background: #ffffff;
}

.lightbox-caption {
  margin: 0;
  color: var(--text-bright);
}

.lightbox-counter {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.back-to-top-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(31, 31, 31, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  color: var(--text-bright);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease,
              background-color 0.2s ease, border-color 0.2s ease;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top-btn:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.back-to-top-btn:active {
  transform: translateY(0);
}

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

@keyframes lightboxStepNext {
  from {
    opacity: 0.4;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes lightboxStepPrev {
  from {
    opacity: 0.4;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@media (max-width: 780px) {
  :root {
    --card-min-h: auto;
    --video-stage-min-h: 0px;
  }

  .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .projects-list.view-vertical,
  .project-media-grid.cols-2,
  .featured-press-list,
  .special-project-layout,
  .formatter-screenshots-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-backdrop {
    padding: 24px 16px;
  }

  .lightbox-arrow.prev {
    left: 10px;
  }

  .lightbox-arrow.next {
    right: 10px;
  }
}

/* =========================================================
   RESPONSIVE RESOLUTION SCALING (DESKTOP, 2K, ULTRAWIDE, 4K)
   ========================================================= */

@media (min-width: 1300px) {
  :root {
    --site-max-w: 1240px;
    --page-padding-x: 32px;
    --card-w: min(800px, 68vw);
    --card-min-h: 580px;
    --card-padding: 26px 30px;
    --gutter-w: 26px;
    --reel-edge-fade: 70px;
    --video-stage-min-h: 440px;
    --video-max-h: 480px;
    --img-max-h: 460px;
    --mascot-max-h: 420px;
    --flip-wide-max-w: min(740px, 100%);
    --stacked-max-w: 540px;
    --stacked-img-max-h: 220px;
    --section-header-max-w: 700px;
    --bio-box-max-w: 700px;
    --special-map-max-w: 360px;
    --special-gap: 52px;
    --df-card-w: min(620px, 78vw);
    --df-img-max-h: 360px;
    --modal-max-w: 780px;
    --lightbox-stage-max-w: 1260px;
    --arrow-btn-size: 42px;
    --arrow-btn-font: 20px;
  }

  body {
    font-size: 16.5px;
  }

  .site-title {
    font-size: 21px;
  }

  .btn-resume-header {
    font-size: 13px;
    padding: 7px 18px;
  }

  .site-nav {
    gap: 24px;
  }

  .site-nav a {
    font-size: 14.5px;
  }

  .filter-btn {
    font-size: 13.5px;
    padding: 8px 17px;
  }

  .special-project-title {
    font-size: clamp(1.65rem, 2.3vw, 2.15rem);
  }

  .special-project-desc {
    font-size: 16px;
  }
}

@media (min-width: 1600px) {
  :root {
    --site-max-w: 1480px;
    --page-padding-x: 40px;
    --header-padding-y: 24px;
    --card-w: min(980px, 64vw);
    --card-min-h: 680px;
    --card-padding: 28px 36px;
    --gutter-w: 32px;
    --reel-edge-fade: 80px;
    --video-stage-min-h: 530px;
    --video-max-h: 580px;
    --img-max-h: 560px;
    --mascot-max-h: 500px;
    --flip-wide-max-w: min(880px, 100%);
    --stacked-max-w: 640px;
    --stacked-img-max-h: 260px;
    --section-header-max-w: 720px;
    --bio-box-max-w: 720px;
    --special-map-max-w: 420px;
    --special-gap: 60px;
    --df-card-w: min(720px, 72vw);
    --df-img-max-h: 420px;
    --modal-max-w: 860px;
    --lightbox-stage-max-w: 1460px;
    --arrow-btn-size: 48px;
    --arrow-btn-font: 22px;
  }

  body {
    font-size: 17.5px;
  }

  .site-title {
    font-size: 23px;
  }

  .btn-resume-header {
    font-size: 13.5px;
    padding: 7px 20px;
  }

  .site-nav {
    gap: 28px;
  }

  .site-nav a {
    font-size: 15.5px;
  }

  .filter-btn {
    font-size: 14.5px;
    padding: 9px 20px;
  }

  .work-intro-first {
    font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  }

  .work-intro-second {
    font-size: clamp(2.8rem, 3.8vw, 4.2rem);
  }

  .special-project-title {
    font-size: clamp(1.85rem, 2.4vw, 2.4rem);
  }

  .special-project-desc {
    font-size: 17.5px;
  }

  .projects-list.view-vertical {
    gap: 26px;
  }

  .projects-list.view-vertical .project-img-wrap img,
  .projects-list.view-vertical .flip-face img {
    max-height: 340px;
  }

  .projects-list.view-vertical .project-video-wrap {
    max-height: 300px;
  }
}

@media (min-width: 2000px) {
  :root {
    --site-max-w: 1840px;
    --page-padding-x: 52px;
    --header-padding-y: 28px;
    --card-w: min(1180px, 60vw);
    --card-min-h: 800px;
    --card-padding: 32px 42px;
    --gutter-w: 40px;
    --reel-edge-fade: 90px;
    --video-stage-min-h: 630px;
    --video-max-h: 700px;
    --img-max-h: 660px;
    --mascot-max-h: 600px;
    --flip-wide-max-w: min(1040px, 100%);
    --stacked-max-w: 780px;
    --stacked-img-max-h: 310px;
    --section-header-max-w: 750px;
    --bio-box-max-w: 750px;
    --special-map-max-w: 500px;
    --special-gap: 76px;
    --df-card-w: min(840px, 68vw);
    --df-img-max-h: 480px;
    --modal-max-w: 1000px;
    --lightbox-stage-max-w: 1780px;
    --arrow-btn-size: 54px;
    --arrow-btn-font: 25px;
  }

  body {
    font-size: 19px;
  }

  .site-title {
    font-size: 26px;
  }

  .btn-resume-header {
    font-size: 15px;
    padding: 8px 24px;
  }

  .site-nav {
    gap: 34px;
  }

  .site-nav a {
    font-size: 17px;
  }

  .filter-btn {
    font-size: 16px;
    padding: 10px 22px;
  }

  .work-intro-first {
    font-size: clamp(1.5rem, 1.8vw, 2rem);
  }

  .work-intro-second {
    font-size: clamp(3.3rem, 3.8vw, 4.6rem);
  }

  .special-project-title {
    font-size: clamp(2.1rem, 2.5vw, 2.8rem);
  }

  .special-project-desc {
    font-size: 19px;
  }

  .projects-list.view-vertical {
    gap: 32px;
  }

  .projects-list.view-vertical .project-img-wrap img,
  .projects-list.view-vertical .flip-face img {
    max-height: 400px;
  }

  .projects-list.view-vertical .project-video-wrap {
    max-height: 350px;
  }
}

@media (min-width: 2560px) {
  :root {
    --site-max-w: 2280px;
    --page-padding-x: 68px;
    --header-padding-y: 34px;
    --card-w: min(1480px, 56vw);
    --card-min-h: 960px;
    --card-padding: 38px 50px;
    --gutter-w: 48px;
    --reel-edge-fade: 100px;
    --video-stage-min-h: 760px;
    --video-max-h: 840px;
    --img-max-h: 800px;
    --mascot-max-h: 720px;
    --flip-wide-max-w: min(1260px, 100%);
    --stacked-max-w: 940px;
    --stacked-img-max-h: 380px;
    --section-header-max-w: 780px;
    --bio-box-max-w: 780px;
    --special-map-max-w: 620px;
    --special-gap: 96px;
    --df-card-w: min(1020px, 62vw);
    --df-img-max-h: 580px;
    --modal-max-w: 1180px;
    --lightbox-stage-max-w: 2160px;
    --arrow-btn-size: 64px;
    --arrow-btn-font: 28px;
  }

  body {
    font-size: 21.5px;
  }

  .site-title {
    font-size: 30px;
  }

  .btn-resume-header {
    font-size: 17px;
    padding: 10px 28px;
  }

  .site-nav {
    gap: 42px;
  }

  .site-nav a {
    font-size: 19px;
  }

  .filter-btn {
    font-size: 18px;
    padding: 12px 28px;
  }

  .work-intro-first {
    font-size: clamp(1.75rem, 1.8vw, 2.4rem);
  }

  .work-intro-second {
    font-size: clamp(3.9rem, 3.8vw, 5.4rem);
  }

  .special-project-title {
    font-size: clamp(2.4rem, 2.6vw, 3.4rem);
  }

  .special-project-desc {
    font-size: 21.5px;
  }

  .projects-list.view-vertical {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px;
  }

  .projects-list.view-vertical .project-img-wrap img,
  .projects-list.view-vertical .flip-face img {
    max-height: 460px;
  }

  .projects-list.view-vertical .project-video-wrap {
    max-height: 390px;
  }
}
