/* ==========================================================================
   王泽萌 2026 个人作品展示 · Editorial Gallery Motion & Design System
   美术馆灰白基底 × 锐利黑体 × Blacksword 花体 × 物理阻尼微交互
   ========================================================================== */

@font-face {
  font-family: "Blacksword";
  src: url("assets/fonts/Blacksword.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Swiss721";
  src: url("assets/fonts/Swiss721BT-Roman.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f2f2f2;
  --bg-subtle: #e9e9eb;
  --surface: #ffffff;
  --surface-dark: #111113;
  --ink: #111111;
  --ink-secondary: #555558;
  --ink-muted: #86868b;
  --accent: #174be0;
  --accent-soft: rgba(23, 75, 224, 0.08);
  --line: rgba(17, 17, 17, 0.11);
  --line-strong: rgba(17, 17, 17, 0.24);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.03), 0 12px 30px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 18px 44px rgba(17, 17, 17, 0.11), 0 4px 12px rgba(17, 17, 17, 0.05);
  --font-sans: "Swiss721", "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: "Blacksword", Georgia, serif;
  --container: 1320px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Sticky Minimal Navbar
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 90;
  background: rgba(242, 242, 242, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 26px rgba(17, 17, 17, 0.045);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.35s var(--ease-spring), background 0.25s;
}

.brand-mark:hover .brand-dot {
  transform: scale(1.45);
  background: var(--accent);
}

.brand-year {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  color: var(--ink-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  position: relative;
  font-size: 13.5px;
  color: var(--ink-secondary);
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  transition: color 0.22s, background 0.22s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: rgba(17, 17, 17, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  transition: transform 0.3s var(--ease-expo), background 0.24s, border-color 0.24s, color 0.24s, box-shadow 0.28s;
  white-space: nowrap;
  will-change: transform;
}

.btn-pill:active {
  transform: scale(0.96) !important;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
  border: 1px solid var(--ink);
}

.btn-primary:hover {
  background: #232327;
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.18);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.08);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--ink) 0%, var(--accent) 100%);
  transition: width 0.08s linear;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 16px 24px 24px;
  z-index: 89;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu.open {
  display: flex;
  animation: slideDownFade 0.28s var(--ease-expo);
}

.mobile-menu a {
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.mobile-menu a:hover {
  background: var(--bg);
}

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

/* --------------------------------------------------------------------------
   Hero Section & Choreographed Opening Entrance
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 46px);
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-ambient {
  position: absolute;
  inset: -120px -10% auto;
  height: 520px;
  pointer-events: none;
  background:
    radial-gradient(640px 320px at 78% 36%, rgba(23, 75, 224, 0.065), transparent 72%),
    radial-gradient(520px 260px at 18% 24%, rgba(17, 17, 17, 0.035), transparent 70%);
  animation: ambientBreath 12s ease-in-out infinite alternate;
}

@keyframes ambientBreath {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
  100% {
    transform: translate3d(-18px, 12px, 0) scale(1.04);
    opacity: 1;
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero-line-mask {
  display: block;
  overflow: hidden;
  padding: 4px 0;
  margin: -4px 0;
}

/* Hero Opening Choreography */
.hero-enter {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.85s var(--ease-expo), transform 0.95s var(--ease-expo);
  transition-delay: var(--delay, 0ms);
}

.hero-enter-stage {
  opacity: 0;
  transform: translate3d(0, 32px, 0) scale(0.965);
  transition: opacity 0.95s var(--ease-expo), transform 1.05s var(--ease-expo);
  transition-delay: var(--delay, 0ms);
}

body.is-ready .hero-enter,
body.is-ready .hero-enter-stage {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--ink-secondary);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(23, 75, 224, 0.35);
  animation: pulseRing 2.6s ease-out infinite;
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(23, 75, 224, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(23, 75, 224, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(23, 75, 224, 0);
  }
}

.hero-title {
  margin: 0 0 22px;
  color: var(--ink);
  line-height: 1.08;
}

.hero-title-line1 {
  display: block;
  font-size: clamp(46px, 5.4vw, 76px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.hero-title-line1 .script {
  font-size: 1.18em;
  margin-right: 4px;
}

.hero-title-line2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.hero-title-badge {
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 600;
  color: var(--ink-secondary);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 3px 13px;
  letter-spacing: 0.04em;
  transform: translateY(-4px);
}

.hero-title-line3 {
  display: block;
  margin-top: 10px;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 500;
  color: var(--ink-secondary);
  letter-spacing: -0.01em;
}

.hero-title-line3 .script {
  font-size: 1.35em;
  color: var(--ink);
  margin: 0 8px 0 4px;
}

.hero-desc {
  margin: 0 0 28px;
  max-width: 560px;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ink-secondary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-cta .btn-pill {
  padding: 12px 24px;
  font-size: 14.5px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 540px;
}

.stat-item strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.stat-item > span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.stat-item .count-up {
  display: inline;
  font-size: inherit;
  color: inherit;
  margin: 0;
}

/* Featured Interactive Stage (Right Hero Column) */
.hero-stage {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-card);
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease-expo), box-shadow 0.45s var(--ease-expo), border-color 0.3s;
}

.hero-stage:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}

.stage-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #e8e8ea;
  cursor: pointer;
}

.stage-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.72s var(--ease-expo), transform 1.1s var(--ease-expo);
  transform: scale(1.055);
}

.stage-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.stage-slide.active img {
  animation: kenBurnsSubtle 6.2s ease-out forwards;
}

@keyframes kenBurnsSubtle {
  from {
    transform: scale(1.035);
  }
  to {
    transform: scale(1);
  }
}

.stage-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-sheen {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.24), transparent 65%);
  transition: opacity 0.35s;
}

.stage-viewport:hover .stage-sheen {
  opacity: 1;
}

.stage-hover-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  background: rgba(17, 17, 17, 0.78);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  opacity: 0.92;
  transition: transform 0.28s var(--ease-expo), background 0.22s;
}

.stage-viewport:hover .stage-hover-hint {
  background: var(--ink);
  transform: translateY(-2px);
}

.stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 6px 4px;
}

.stage-caption {
  min-width: 0;
  transition: opacity 0.28s var(--ease), transform 0.32s var(--ease-expo);
}

.stage-caption.switching {
  opacity: 0;
  transform: translateY(6px);
}

.stage-meta-cat {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}

.stage-meta-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.stage-dot {
  position: relative;
  width: 9px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(17, 17, 17, 0.14);
  overflow: hidden;
  transition: width 0.36s var(--ease-expo), background 0.25s;
}

.stage-dot.active {
  width: 30px;
  background: rgba(17, 17, 17, 0.16);
}

.stage-dot .dot-fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left center;
  transform: scaleX(0);
}

.stage-dot.active .dot-fill {
  animation: dotProgress 4.8s linear forwards;
}

.hero-stage.paused .stage-dot.active .dot-fill {
  animation-play-state: paused;
}

@keyframes dotProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* --------------------------------------------------------------------------
   Editorial Kinetic Marquee Strip
   -------------------------------------------------------------------------- */
.marquee-strip {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  padding: 13px 0;
  user-select: none;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  animation: marqueeSlide 32s linear infinite;
}

.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track i {
  font-style: normal;
  color: rgba(17, 17, 17, 0.25);
  font-size: 10px;
}

@keyframes marqueeSlide {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* --------------------------------------------------------------------------
   Scroll-Reveal Choreography
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 0.72s var(--ease-expo),
    transform 0.82s var(--ease-expo);
  transition-delay: calc(var(--stagger, 0) * 65ms);
}

.reveal.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}

.section-white {
  background: var(--surface);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-label-script {
  display: block;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 4px;
}

.section-label-script .script,
.thanks-heading .script {
  display: inline-block;
  margin-right: 0.1em;
}

.section-label-script .plain {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8em;
  letter-spacing: -0.02em;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-sub {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--ink-secondary);
  max-width: 620px;
}

.section-index {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 300;
  line-height: 1;
  color: rgba(17, 17, 17, 0.22);
  letter-spacing: -0.04em;
}

.arrow-bob {
  animation: arrowBob 3.2s ease-in-out infinite;
}

@keyframes arrowBob {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-5px, 6px);
  }
}

/* --------------------------------------------------------------------------
   Chapter Overview Strip (4 Pillars)
   -------------------------------------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 42px;
}

.pillar-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 20px 18px;
  text-align: left;
  transition: transform 0.35s var(--ease-expo), border-color 0.25s, box-shadow 0.35s var(--ease-expo);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
}

.pillar-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.38s var(--ease-expo);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.pillar-card:hover::after,
.pillar-card.active::after {
  transform: scaleX(1);
}

.pillar-card.active {
  border-color: var(--ink);
  box-shadow: var(--shadow-card);
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pillar-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.pillar-count {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--ink-secondary);
  transition: background 0.25s, color 0.25s;
}

.pillar-card.active .pillar-count {
  background: var(--ink);
  color: #ffffff;
}

.pillar-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.pillar-en {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.pillar-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Sliding Liquid Filter Bar + 24-Project Gallery Grid
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.filter-tabs {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.025);
}

.filter-slider {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  border-radius: var(--radius-pill);
  background: var(--ink);
  z-index: 1;
  transition: transform 0.42s var(--ease-expo), width 0.42s var(--ease-expo), height 0.35s var(--ease-expo), opacity 0.2s;
  will-change: transform, width;
}

.filter-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 0.28s var(--ease);
}

.filter-btn:hover {
  color: var(--ink);
}

.filter-btn.active {
  color: #ffffff;
}

.filter-btn .cnt {
  font-size: 11.5px;
  opacity: 0.72;
}

.gallery-hint {
  font-size: 13px;
  color: var(--ink-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  transition: opacity 0.22s var(--ease), transform 0.24s var(--ease);
}

.gallery-grid.is-switching {
  opacity: 0;
  transform: translateY(10px);
}

.work-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transform-style: preserve-3d;
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 0.62s var(--ease-expo),
    transform 0.48s var(--ease-expo),
    box-shadow 0.42s var(--ease-expo),
    border-color 0.25s;
  transition-delay: var(--card-delay, 0ms);
  will-change: transform;
}

.work-card.card-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.work-card.tilting {
  transition:
    opacity 0.62s var(--ease-expo),
    transform 0.12s ease-out,
    box-shadow 0.35s var(--ease-expo),
    border-color 0.25s;
}

.work-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}

.work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eaeaea;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease-expo), filter 0.45s;
}

.work-card:hover .work-thumb img {
  transform: scale(1.055);
}

/* Subtle diagonal glass sheen sweeping across cover on hover */
.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.22) 48%,
    transparent 74%
  );
  transform: translateX(-115%);
  transition: transform 0.78s var(--ease-expo);
  pointer-events: none;
}

.work-card:hover .work-thumb::after {
  transform: translateX(115%);
}

.work-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.work-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--ink);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.work-cat-pill {
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg);
  color: var(--ink-secondary);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

.work-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.work-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.22s;
}

.work-card:hover .work-title {
  color: #000000;
}

.work-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
}

.work-open-label {
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.3s var(--ease-expo), color 0.22s;
}

.work-card:hover .work-open-label {
  color: var(--accent);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Method & Vibe Coding Highlights (With Mouse Spotlight Glow)
   -------------------------------------------------------------------------- */
.methodology-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 36px;
}

.methodology-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.methodology-head h3 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 700;
}

.methodology-head p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
  max-width: 680px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.flow-step {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  transition: transform 0.35s var(--ease-expo), background 0.25s, border-color 0.25s, box-shadow 0.35s;
}

.flow-step:hover {
  transform: translateY(-4px);
  background: #ffffff;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.flow-num {
  font-family: var(--font-script);
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

.flow-step h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.flow-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* Spotlight Radial Glow on Vibe Cards & Thanks Card */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(23, 75, 224, 0.085),
    transparent 68%
  );
  transition: opacity 0.35s var(--ease);
}

.spotlight-card:hover::before {
  opacity: 1;
}

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

.vibe-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.38s var(--ease-expo), box-shadow 0.38s var(--ease-expo), border-color 0.25s;
}

.vibe-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--ink);
}

.vibe-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.vibe-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: contain;
  background: var(--bg);
  padding: 6px;
  border: 1px solid var(--line);
  transition: transform 0.42s var(--ease-spring), box-shadow 0.35s;
}

.vibe-card:hover .vibe-icon {
  transform: translateY(-3px) rotate(-4deg) scale(1.06);
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.1);
}

.vibe-metric {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}

.vibe-card:hover .vibe-metric {
  background: var(--accent);
  color: #ffffff;
}

.vibe-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.vibe-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--ink-secondary);
}

.vibe-compare {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  font-size: 12.5px;
}

.vibe-compare div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.vibe-compare .tag-old {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--bg);
  padding: 1px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.vibe-compare .tag-new {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  background: var(--ink);
  padding: 1px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.vibe-more-bar {
  margin-top: 18px;
  background: var(--surface-dark);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.vibe-more-bar h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.vibe-more-bar p {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
}

.btn-white {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid #ffffff;
}

.btn-white:hover {
  background: #e9e9eb;
}

/* --------------------------------------------------------------------------
   Swiss-Grid Resume Section + Animated Vertical Timeline
   -------------------------------------------------------------------------- */
.resume-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: 40px;
}

.resume-col-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-bottom: 10px;
  margin: 0 0 18px;
  border-bottom: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.resume-kv {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
}

.resume-kv-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  font-size: 14px;
}

.resume-kv-row dt {
  color: var(--ink-muted);
}

.resume-kv-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.exp-list {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0 0 28px;
  padding-left: 18px;
}

.exp-list::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  bottom: 12px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(17, 17, 17, 0.14) 100%);
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 1.1s var(--ease-expo);
}

.exp-list.timeline-grown::before {
  transform: scaleY(1);
}

.exp-item {
  position: relative;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.exp-item::before {
  content: "";
  position: absolute;
  left: -17.5px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink);
  transition: background 0.3s, transform 0.3s var(--ease-spring), border-color 0.3s;
}

.exp-item:first-child::before {
  background: var(--accent);
  border-color: var(--accent);
}

.exp-item:hover::before {
  transform: scale(1.35);
  background: var(--ink);
}

.exp-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.exp-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.exp-company {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.exp-role {
  font-size: 13px;
  color: var(--ink-secondary);
  margin-top: 2px;
}

.skill-group {
  margin-bottom: 16px;
}

.skill-tier {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-chip {
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  transition: transform 0.25s var(--ease-spring), background 0.22s, color 0.22s;
}

.skill-chip:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: #ffffff;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag-pill {
  font-size: 13px;
  padding: 4px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
  transition: transform 0.25s var(--ease-spring), background 0.22s, color 0.22s, border-color 0.22s;
}

.tag-pill:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.resume-quote {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-secondary);
  border-left: 3px solid var(--ink);
}

/* --------------------------------------------------------------------------
   Contact / Thanks & Compliant ICP Footer
   -------------------------------------------------------------------------- */
.thanks-section {
  padding: 72px 0 48px;
  background: var(--bg);
}

.thanks-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

.thanks-heading {
  font-size: clamp(44px, 5vw, 66px);
  line-height: 1.05;
  margin: 0 0 12px;
}

.thanks-heading .plain {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.85em;
}

.thanks-sub {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--ink-secondary);
  max-width: 520px;
}

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

.qr-box {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: transform 0.35s var(--ease-expo), box-shadow 0.35s;
}

.qr-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.qr-box img {
  width: 108px;
  height: 108px;
  border-radius: 8px;
  background: #ffffff;
  padding: 4px;
  border: 1px solid var(--line);
}

.qr-text strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 4px;
}

.qr-text span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.site-footer {
  padding: 26px 0 46px;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-right: 64px;
  border-top: 1px solid var(--line);
}

.footer-filing {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.icp-link {
  color: var(--ink-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

.icp-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Case Study Reader Modal (Smooth Animated Drawer + Reading Progress + Zoom)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 12, 14, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.34s var(--ease-expo), visibility 0.34s;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.reader-shell {
  width: 100%;
  max-width: 1180px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.44);
  transform: translate3d(0, 34px, 0) scale(0.97);
  transition: transform 0.42s var(--ease-expo);
}

.modal-backdrop.open .reader-shell {
  transform: translate3d(0, 0, 0) scale(1);
}

.reader-bar {
  position: relative;
  height: 62px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.reader-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--ink) 0%, var(--accent) 100%);
  transition: width 0.08s linear;
}

.reader-bar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.reader-bar-title .work-num {
  flex-shrink: 0;
}

.reader-bar-title strong {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reader-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.2s;
}

.icon-btn:hover {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

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

.reader-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.reader-content {
  transition: opacity 0.24s var(--ease), transform 0.3s var(--ease-expo);
}

.reader-content.slide-out-left {
  opacity: 0;
  transform: translateX(-22px);
}

.reader-content.slide-out-right {
  opacity: 0;
  transform: translateX(22px);
}

.reader-intro {
  background: var(--surface);
  padding: 32px 40px;
  border-bottom: 1px solid var(--line);
}

.reader-intro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.reader-cat-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.reader-zoom-tip {
  font-size: 12px;
  color: var(--ink-muted);
}

.reader-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.25;
}

.reader-notes {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-secondary);
  max-width: 820px;
}

.reader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.reader-tags span {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--ink-secondary);
}

.reader-boards {
  background: #f2f2f2;
  padding: 24px 28px 36px;
}

.board-stack {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #ffffff;
}

.board-stack img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.board-stack img.loaded {
  opacity: 1;
}

.reader-next-bar {
  max-width: 1040px;
  margin: 28px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.reader-next-label {
  font-size: 12px;
  color: var(--ink-muted);
}

.reader-next-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

/* Single Board HD Zoom Lightbox */
.zoom-lightbox {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-expo), visibility 0.28s;
}

.zoom-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.zoom-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 265;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: background 0.2s, color 0.2s;
}

.zoom-close:hover {
  background: #ffffff;
  color: var(--ink);
}

.zoom-scroll {
  flex: 1;
  overflow: auto;
  padding: 68px 24px 36px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  cursor: zoom-out;
}

.zoom-scroll img {
  width: min(1440px, 96vw);
  max-width: none;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.36s var(--ease-expo);
}

.zoom-lightbox.open .zoom-scroll img {
  transform: scale(1);
}

/* Video Showreel Modal */
.video-shell {
  width: 100%;
  max-width: 1080px;
  margin: auto;
  background: #111113;
  color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  transform: translate3d(0, 28px, 0) scale(0.96);
  transition: transform 0.42s var(--ease-expo);
}

.modal-backdrop.open .video-shell {
  transform: translate3d(0, 0, 0) scale(1);
}

.video-bar {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.video-bar strong {
  font-size: 15px;
}

.video-close {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.video-close:hover {
  background: #ffffff;
  color: #111111;
}

.video-wrap {
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Copy Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px) scale(0.96);
  background: var(--ink);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  z-index: 300;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: opacity 0.28s var(--ease-expo), transform 0.32s var(--ease-spring);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Back to Top Floating Button */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 78px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.28s var(--ease), transform 0.34s var(--ease-spring), background 0.22s, color 0.22s, border-color 0.22s;
}

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

.back-top:hover {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

/* --------------------------------------------------------------------------
   Accessibility: Reduced Motion Respect
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-enter,
  .hero-enter-stage,
  .reveal,
  .work-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

  .vibe-grid {
    grid-template-columns: 1fr;
  }

  .resume-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-actions .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .thanks-card {
    padding: 28px 24px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 28px);
    padding-bottom: 44px;
  }

  .section {
    padding: 52px 0;
  }

  .pillars-grid,
  .flow-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    border-radius: var(--radius-md);
    width: 100%;
  }

  .hero-stats {
    gap: 10px;
  }

  .stat-item strong {
    font-size: 19px;
  }

  .modal-backdrop {
    padding: 0;
  }

  .reader-shell,
  .video-shell {
    border-radius: 0;
  }

  .reader-bar {
    padding: 0 14px;
  }

  .reader-intro {
    padding: 22px 18px;
  }

  .reader-boards {
    padding: 14px 12px 28px;
  }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .qr-box {
    width: 100%;
  }

  .footer-inner {
    padding-right: 0;
  }
}
