/* ===== Wave Portfolio — Gallery Aesthetic ===== */
/* ref: fuse*, Hirakawa, Ikeda, ENCOR — monochrome, no chrome, art-first */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

/* ===== RESET & VARIABLES ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #000;
  --surface: #0a0a0a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8e8;
  --text-dim: rgba(255, 255, 255, 0.45);
  --text-muted: rgba(255, 255, 255, 0.25);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 6rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--text); text-decoration: none; transition: opacity 0.3s ease; }
a:hover { opacity: 0.6; }

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

/* ===== NAVIGATION — minimal, mix-blend ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 var(--space-md);
  mix-blend-mode: difference;
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-weight: 400; font-size: 13px; color: #fff;
  letter-spacing: 0.5px; text-decoration: none;
  text-transform: uppercase;
}
.nav-logo:hover { opacity: 0.6; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: #fff; text-decoration: none; font-size: 13px; font-weight: 300;
  letter-spacing: 0.3px; transition: opacity 0.3s ease;
  opacity: 0.5;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); width: 100%; }
.section { padding: var(--space-xl) 0; }

/* ===== TYPOGRAPHY ===== */
.section-tag {
  font-size: 11px; font-weight: 400; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: var(--space-sm);
}
.section-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 300; letter-spacing: -0.5px;
  margin-bottom: var(--space-md); line-height: 1.2;
}
/* gradient-text disabled — monochrome only */
.gradient-text { color: var(--text); }

/* ===== HERO — full-viewport, Hirakawa-style zoom ===== */
.hero {
  position: relative; overflow: hidden;
  height: 100vh; min-height: 500px;
  display: flex; align-items: center; justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  animation: hero-zoom 20s ease-out forwards;
  will-change: transform, opacity;
  opacity: 0;
}
.hero-bg:not([style*="background-image"]),
.hero-bg[style*="hero.jpg"] {
  background: var(--bg) !important;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0, 0, 0, 0.4);
}
@keyframes hero-zoom {
  0%   { transform: scale(1.08); opacity: 0; }
  20%  { opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 var(--space-md);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 64px); font-weight: 300; letter-spacing: -1.5px;
  line-height: 1.1; margin-bottom: 16px;
  animation: hero-text-in 1.5s ease-out 0.3s both;
}
.hero .subtitle {
  font-size: 14px; color: rgba(255,255,255,0.5);
  font-weight: 300; margin: 0 auto 8px; letter-spacing: 2px;
  text-transform: uppercase;
  animation: hero-text-in 1.5s ease-out 0.6s both;
}
.hero .subtitle-location {
  font-size: 12px; color: rgba(255,255,255,0.3);
  font-weight: 300; letter-spacing: 1px;
  animation: hero-text-in 1.5s ease-out 0.9s both;
}
@keyframes hero-text-in {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== FEATURED SECTION — tight gallery grid ===== */
.featured-section {
  padding: var(--space-lg) var(--space-md) var(--space-md);
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  max-width: 1400px; width: 100%; margin: 0 auto;
}
.featured-card {
  position: relative; overflow: hidden;
  display: block; text-decoration: none; color: inherit;
  aspect-ratio: 16/10;
}
.featured-card:hover { opacity: 1; }
a.featured-card { cursor: pointer; }

.featured-card-img {
  position: absolute; inset: 0; overflow: hidden;
}
.featured-card-visual {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform 2s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.featured-card:hover .featured-card-visual {
  transform: scale(1.03);
}
.featured-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.featured-card:hover .featured-card-body {
  opacity: 1;
}
.featured-card-body h3 {
  font-size: 15px; font-weight: 400; letter-spacing: 0.3px;
  color: #fff;
}
.featured-card-body p {
  font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 300;
  letter-spacing: 0.5px;
}
.featured-section .view-all {
  text-align: center; padding: var(--space-lg) 0 0;
}
.featured-section .view-all a {
  font-size: 12px; color: var(--text-dim); font-weight: 300;
  letter-spacing: 2px; text-transform: uppercase;
}
.featured-section .view-all a:hover { opacity: 0.6; }

/* ===== PROJECT GRID (legacy, used on some pages) ===== */
.project-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2px;
}
.project-card {
  background: transparent; overflow: hidden;
  transition: opacity 0.3s ease;
  text-decoration: none; color: inherit; display: block;
  position: relative;
}
.project-card:hover { opacity: 0.8; }

.project-card-img { overflow: hidden; position: relative; }
.project-card-gradient {
  aspect-ratio: 16/9; position: relative;
  transition: transform 2s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.project-card:hover .project-card-gradient { transform: scale(1.03); }
.project-card-gradient::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
}

/* Gradient fallbacks */
.gradient-ceing { background: linear-gradient(135deg, #0a1628 0%, #0d2847 30%, #22d3ee 100%); }
.gradient-khwan { background: linear-gradient(135deg, #1a0a1e 0%, #2d1035 30%, #f472b6 100%); }
.gradient-kong { background: linear-gradient(135deg, #1a1008 0%, #2d1d0a 30%, #fb923c 100%); }
.gradient-zer0ne { background: linear-gradient(135deg, #0f0a1e 0%, #1a1035 30%, #a78bfa 100%); }
.gradient-datamask { background: linear-gradient(135deg, #0a1428 0%, #0d2040 30%, #60a5fa 100%); }
.gradient-techbio { background: linear-gradient(135deg, #0a1a10 0%, #0d2d18 30%, #4ade80 100%); }

.project-card-body { padding: 20px 0; }
.project-card h3 { font-size: 16px; font-weight: 400; margin-bottom: 4px; letter-spacing: -0.2px; }
.project-card-type { font-size: 12px; color: var(--text-dim); font-weight: 300; }
.project-card p { font-size: 13px; color: var(--text-dim); line-height: 1.6; font-weight: 300; }

.view-all { text-align: center; margin-top: var(--space-lg); }
.view-all a {
  font-size: 12px; color: var(--text-dim); font-weight: 300;
  letter-spacing: 2px; text-transform: uppercase;
}
.view-all a:hover { opacity: 0.6; }

/* ===== PROJECT DETAIL PAGE ===== */
.project-hero { padding: 140px 0 60px; }
.project-hero .back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-dim); margin-bottom: var(--space-lg);
  text-decoration: none; letter-spacing: 1px; text-transform: uppercase;
}
.project-hero .back-link:hover { opacity: 0.6; }
.project-hero .project-tag {
  font-size: 11px; font-weight: 400; letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 16px; color: var(--text-dim);
}
.project-hero h1 {
  font-size: clamp(32px, 5vw, 56px); font-weight: 300;
  letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 20px;
}
.project-hero .project-intro {
  font-size: 16px; color: var(--text-dim); max-width: 700px;
  line-height: 1.8; margin-bottom: var(--space-lg); font-weight: 300;
}
.project-meta-bar {
  display: flex; flex-wrap: wrap; gap: 32px;
  padding: 24px 0; border-top: 1px solid var(--border);
}
.project-meta-item .meta-label {
  font-size: 10px; font-weight: 400; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px;
}
.project-meta-item .meta-value { font-size: 14px; font-weight: 300; }

.project-visual-hero {
  background: var(--surface); aspect-ratio: 16/9; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin: var(--space-xl) 0; position: relative;
}
.project-visual-hero .placeholder-content {
  text-align: center; padding: 40px; color: var(--text-muted);
}
.project-visual-hero .placeholder-content .icon { font-size: 48px; margin-bottom: 16px; opacity: 0.2; }
.project-visual-hero .placeholder-content .label { font-size: 13px; font-weight: 300; }

.project-body { max-width: 680px; }
.project-body h2 {
  font-size: 18px; font-weight: 400; margin: var(--space-xl) 0 var(--space-sm);
  letter-spacing: -0.2px;
}
.project-body p {
  font-size: 15px; color: var(--text-dim); line-height: 1.9;
  margin-bottom: 16px; font-weight: 300;
}
.project-body ul, .project-body ol { padding-left: 20px; margin-bottom: 16px; }
.project-body li {
  font-size: 15px; color: var(--text-dim); line-height: 1.9;
  margin-bottom: 8px; font-weight: 300;
}
.project-body strong { color: var(--text); font-weight: 400; }

.project-gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  margin: var(--space-xl) 0;
}
.project-gallery-item {
  background: var(--surface); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px; font-weight: 300;
}

.project-tech-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px; margin: var(--space-md) 0;
  background: var(--border);
}
.project-tech-card {
  background: var(--bg); padding: 20px;
}
.project-tech-card h4 { font-size: 13px; font-weight: 400; margin-bottom: 6px; }
.project-tech-card p { font-size: 12px; color: var(--text-dim); font-weight: 300; }

/* ===== ABOUT PAGE ===== */
.about-hero { padding: 140px 0 60px; }
.about-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}
.about-bio h2 {
  font-size: 11px; font-weight: 400; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: var(--space-sm);
}
.about-bio p {
  font-size: 15px; color: var(--text-dim); line-height: 1.9;
  margin-bottom: 20px; font-weight: 300;
}
.about-bio strong { color: var(--text); font-weight: 400; }

.about-sidebar { position: sticky; top: 80px; }

.info-card {
  padding: 0 0 32px; margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.info-card:last-child { border-bottom: none; margin-bottom: 0; }
.info-card h3 {
  font-size: 11px; font-weight: 400;
  margin-bottom: 16px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-dim);
}
.info-card ul { list-style: none; }
.info-card li {
  font-size: 13px; color: var(--text-dim); padding: 8px 0; font-weight: 300;
}
.info-card li strong { color: var(--text); font-weight: 400; }

.exhibition-list { margin-top: var(--space-md); }
.exhibition-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 16px; padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.exhibition-item:last-child { border-bottom: none; }
.exhibition-year { font-size: 13px; font-weight: 400; color: var(--text-dim); }
.exhibition-detail h4 { font-size: 14px; font-weight: 400; margin-bottom: 2px; }
.exhibition-detail p { font-size: 13px; color: var(--text-dim); font-weight: 300; }

/* ===== CONTACT PAGE ===== */
.contact-hero {
  min-height: 80vh; display: flex; align-items: center;
  text-align: center; padding: 140px var(--space-md) 80px;
}
.contact-links {
  display: flex; justify-content: center; gap: 16px;
  flex-wrap: wrap; margin-top: var(--space-lg);
}
.contact-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-size: 13px; font-weight: 300;
  letter-spacing: 0.3px;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}
.contact-link:hover { border-color: rgba(255,255,255,0.3); opacity: 1; }

/* ===== FOOTER ===== */
.footer {
  padding: var(--space-lg) 0; border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.footer p { font-size: 11px; color: var(--text-muted); font-weight: 300; letter-spacing: 0.5px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 11px; color: var(--text-muted); text-decoration: none; font-weight: 300; }
.footer-links a:hover { opacity: 0.6; }
.footer a { color: var(--text-muted); }
.footer a:hover { opacity: 0.6; }

/* ===== CTA BANNER (kept for pages that use it) ===== */
.cta-banner {
  text-align: center; padding: var(--space-xl) var(--space-md);
  border-top: 1px solid var(--border);
}
.cta-banner h2 {
  font-size: clamp(24px, 3vw, 36px); font-weight: 300;
  letter-spacing: -0.5px; margin-bottom: 16px;
}
.cta-banner p { font-size: 14px; color: var(--text-dim); margin-bottom: var(--space-md); font-weight: 300; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border: 1px solid var(--border);
  font-size: 12px; font-weight: 300; letter-spacing: 0.5px;
  color: var(--text); background: transparent;
  text-decoration: none; transition: border-color 0.3s ease, opacity 0.3s ease;
}
.cta-btn:hover { border-color: rgba(255,255,255,0.3); opacity: 1; }

/* ===== PROJECT NAV (prev/next) ===== */
.project-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  margin: var(--space-xl) 0 0; padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
}
.project-nav a {
  display: block; padding: 24px;
  text-decoration: none; color: inherit;
  transition: opacity 0.3s ease;
}
.project-nav a:hover { opacity: 0.6; }
.project-nav .nav-label {
  font-size: 10px; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 6px; font-weight: 300;
}
.project-nav .nav-title { font-size: 15px; font-weight: 300; }
.project-nav .next { text-align: right; }

/* ===== DEMO CONTAINER (CEING) ===== */
.demo-container {
  background: var(--surface); aspect-ratio: 16/9; overflow: hidden;
  margin: var(--space-xl) 0; position: relative;
}
.demo-launcher {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0a1628 0%, #0d2847 40%, #155e75 70%, #22d3ee 100%);
  cursor: pointer; transition: opacity 0.3s ease;
  gap: 16px;
}
.demo-launcher:hover { opacity: 0.85; }
.demo-launcher-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; transition: transform 0.6s ease;
}
.demo-launcher:hover .demo-launcher-icon { transform: scale(1.1); }
.demo-launcher-text { font-size: 14px; font-weight: 300; color: #fff; letter-spacing: 0.5px; }
.demo-launcher-sub { font-size: 11px; color: rgba(255,255,255,0.4); font-weight: 300; }
.demo-iframe { width: 100%; height: 100%; border: none; }
.demo-fullscreen-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px; font-size: 12px; color: var(--text-dim);
}

/* ===== CONTACT EXTRAS ===== */
.contact-extras {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  max-width: 700px; margin: var(--space-lg) auto 0;
  background: var(--border);
}
.contact-card {
  background: var(--bg); padding: 32px; text-align: left;
}
.contact-card h3 {
  font-size: 11px; font-weight: 400; margin-bottom: 16px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim);
}
.contact-card p {
  font-size: 13px; color: var(--text-dim); line-height: 1.7; margin-bottom: 20px; font-weight: 300;
}
.contact-card .contact-link { width: 100%; justify-content: center; box-sizing: border-box; }
.messaging-links { display: flex; flex-direction: column; gap: 12px; }
.messaging-links .contact-link { width: 100%; justify-content: center; box-sizing: border-box; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { padding: 0 var(--space-sm); mix-blend-mode: normal; background: rgba(0,0,0,0.9); }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: var(--space-sm) var(--space-md); gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open a { opacity: 0.7; }
  .nav-toggle { display: block; }

  .container { padding: 0 var(--space-sm); }
  .section { padding: var(--space-lg) 0; }

  .hero { height: 70vh; min-height: 400px; }
  .hero h1 { font-size: clamp(28px, 8vw, 40px); }

  .featured-grid { grid-template-columns: 1fr; gap: 2px; }
  .featured-card { aspect-ratio: 16/9; }
  .featured-card-body { opacity: 1; }

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

  .about-content { grid-template-columns: 1fr; gap: 48px; }
  .about-sidebar { position: static; }

  .project-gallery { grid-template-columns: 1fr; }
  .project-meta-bar { gap: 20px; }
  .project-nav { grid-template-columns: 1fr; }
  .project-tech-grid { grid-template-columns: 1fr; }

  .contact-links { flex-direction: column; align-items: center; }
  .contact-extras { grid-template-columns: 1fr; }
  .demo-container { aspect-ratio: 4/3; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .featured-card { aspect-ratio: 3/2; }
  .featured-card-body h3 { font-size: 13px; }
}

/* ===== ARCHIVE PAGE ===== */
.archive-hero {
  padding: 140px 0 48px;
  text-align: center;
}
.archive-subtitle {
  font-size: 13px; color: var(--text-dim); margin-top: 8px; font-weight: 300;
  letter-spacing: 0.5px;
}

/* Sticky filter bar */
.archive-filters {
  position: sticky; top: 60px; z-index: 90;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.archive-filters-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md);
  display: flex; gap: 6px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.archive-filters-inner::-webkit-scrollbar { display: none; }

.filter-tab {
  flex-shrink: 0; padding: 6px 16px;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-dim);
  font-family: inherit; font-size: 11px; font-weight: 300;
  cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
  letter-spacing: 0.5px;
}
.filter-tab:hover { border-color: rgba(255,255,255,0.25); color: var(--text); }
.filter-tab.active {
  background: #fff; color: #000;
  border-color: #fff; font-weight: 400;
}

/* Archive grid — tight gallery, 3-col */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.archive-card {
  background: transparent; overflow: hidden;
  transition: opacity 0.3s ease;
  text-decoration: none; color: inherit; display: block;
  position: relative;
}
.archive-card:hover { opacity: 1; }
a.archive-card { cursor: pointer; }

.archive-card-visual {
  aspect-ratio: 16/10; position: relative; overflow: hidden;
  background-size: cover; background-position: center;
  transition: transform 2s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.archive-card:hover .archive-card-visual { transform: scale(1.03); }
.archive-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.archive-card-body { padding: 14px 16px; }
.archive-card-year {
  font-size: 10px; color: var(--text-muted); font-weight: 300;
  letter-spacing: 1px; margin-bottom: 4px;
}
.archive-card-title {
  font-size: 14px; font-weight: 400; margin-bottom: 4px;
  letter-spacing: -0.1px; line-height: 1.3;
}
.archive-card-badge {
  display: inline-block; font-size: 9px; font-weight: 300;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 2px 6px; margin-bottom: 4px;
}
.archive-card-meta {
  font-size: 11px; color: var(--text-muted); line-height: 1.5; font-weight: 300;
}
.archive-card-featured {
  display: inline-block; margin-top: 6px;
  font-size: 11px; font-weight: 300; color: var(--text-dim);
  letter-spacing: 0.5px;
}
.archive-card:hover .archive-card-featured { color: var(--text); }

/* Loading & error states */
.archive-loading {
  grid-column: 1 / -1; text-align: center; padding: 80px 24px;
  color: var(--text-dim); font-size: 13px; font-weight: 300;
}
.archive-loading-spinner {
  width: 20px; height: 20px; border: 1px solid var(--border);
  border-top-color: var(--text); border-radius: 50%;
  margin: 0 auto 16px;
  animation: archive-spin 0.8s linear infinite;
}
@keyframes archive-spin { to { transform: rotate(360deg); } }

.archive-error {
  text-align: center; padding: 80px 24px; color: var(--text-dim);
  font-size: 13px; font-weight: 300;
}
.archive-retry {
  display: inline-block; margin-top: 12px;
  font-size: 12px; font-weight: 300; color: var(--text);
  letter-spacing: 0.5px;
}

/* Archive responsive */
@media (max-width: 768px) {
  .archive-hero { padding: 120px 0 36px; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .archive-filters { top: 60px; }
  .archive-filters-inner { padding: 0 var(--space-sm); }
  .archive-card-body { padding: 12px; }
  .archive-card-title { font-size: 13px; }
}
@media (max-width: 480px) {
  .archive-grid { grid-template-columns: 1fr; gap: 2px; }
}

/* ===== WORK TEMPLATE PAGE ===== */
.work-loading {
  text-align: center; padding: 200px 24px 80px;
  color: var(--text-dim); font-size: 13px; font-weight: 300;
}
.work-404 {
  text-align: center; padding: 200px 24px 80px;
  color: var(--text-dim);
}

/* ===== CV PAGE ===== */
.cv-hero {
  padding: 140px 0 48px;
}
.cv-subtitle {
  font-size: 14px; color: var(--text-dim); margin-top: 8px; font-weight: 300;
  letter-spacing: 0.5px;
}
.cv-sections { max-width: 800px; }
.cv-section { margin-bottom: var(--space-xl); }
.cv-section-title {
  font-size: 11px; font-weight: 400; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: var(--space-md);
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.cv-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cv-item:last-child { border-bottom: none; }
.cv-year {
  font-size: 13px; font-weight: 400; color: var(--text-muted);
  padding-top: 2px;
}
.cv-title { font-size: 14px; font-weight: 400; margin-bottom: 2px; }
.cv-meta { font-size: 13px; color: var(--text-dim); font-weight: 300; }
.cv-details { font-size: 12px; color: var(--text-muted); font-weight: 300; margin-top: 4px; }

@media (max-width: 768px) {
  .cv-hero { padding: 120px 0 36px; }
  .cv-item { grid-template-columns: 60px 1fr; gap: 12px; }
}

/* ===== CV PRINT ===== */
@media print {
  .nav, .footer { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .cv-hero { padding: 48px 0 24px; }
  .section-tag { color: #999; }
  .section-title { color: #000; }
  .cv-subtitle { color: #666; }
  .cv-section-title { color: #666; border-color: #ddd; }
  .cv-title { color: #000; }
  .cv-meta { color: #666; }
  .cv-year { color: #999; }
  .cv-details { color: #666; }
  .cv-item { border-color: #eee; }
}

/* ===== 2026-10-01 SITE PASS (one block; replaces 17 incremental patches) =====
   Decisions behind each rule: decisions_settled.md 2026-10-01 + WEB-REVIEW_2026-10-01.md */

/* never wider than the phone */
html, body { overflow-x: hidden; }
.project-body, .work-detail, .project-meta-bar, .exhibition-detail, .cv-details { min-width: 0; overflow-wrap: anywhere; }
.project-meta-item { min-width: 0; max-width: 100%; }
.project-meta-item .meta-value { overflow-wrap: anywhere; }

/* --- Projects page: tight top, kind tabs, small card titles --- */
.archive-hero--tight { padding: 104px 0 20px; }
.section--tight { padding-top: 28px; }
.archive-filters-inner { justify-content: center; }
.filter-tab.active { background: #3a3a3a; color: #fff; border-color: #3a3a3a; }
.kind-group { margin-bottom: 40px; }
.archive-card-body h3 { font-size: 15px; font-weight: 400; line-height: 1.35; margin: 0 0 4px; letter-spacing: 0; }
.archive-card-body p { font-size: 12px; color: var(--text-dim); font-weight: 300; margin: 0; }
.card-visual--whole { background-size: contain !important; background-repeat: no-repeat; background-color: #0b0b0b; }

/* --- Work page: one column, hero / meta / text / details / gallery share its width --- */
:root { --work-col: 720px; }
.project-hero { padding: 104px 0 0; }
.project-hero + .section { padding-top: 28px; }
.work-hero, .gv, .project-body, .work-detail, .project-meta-bar { max-width: var(--work-col); }
.work-hero { margin: 28px 0 0; display: flex; justify-content: center; background: #050505; }
.work-hero img, .gv-main img { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: contain; }
.work-detail h2 { font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); margin: 40px 0 12px; }
.work-detail h2:first-child { margin-top: 32px; }
.work-detail p { font-size: 14px; line-height: 1.8; color: var(--text); font-weight: 300; margin: 0 0 8px; }
.work-detail .exhibition-list { margin-top: 0; }
.work-detail ul.exhibition-list { padding-left: 18px; margin: 0; }
.work-detail ul.exhibition-list li { font-size: 14px; line-height: 1.8; }
.work-detail .exhibition-item { padding: 8px 0; grid-template-columns: 64px 1fr; gap: 12px; }
.work-detail .exhibition-year, .work-detail .exhibition-detail { font-size: 14px; line-height: 1.6; font-weight: 300; }
.work-detail .exhibition-year { color: var(--text-dim); }

/* press: article titles, not URLs */
.press-list { list-style: none; padding: 0; margin: 0; }
.press-list li { margin: 0 0 8px; font-size: 14px; line-height: 1.6; }
.press-list a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.press-list .press-site { color: var(--text-dim); font-size: 13px; margin-left: 8px; }

/* gallery viewer: one large item + thumbnail grid; videos first */
.gv { margin: 56px 0 24px; }
.gv-main { display: flex; justify-content: center; align-items: center; background: #050505; }
.gv-video { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.gv-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gv-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.gv-thumb { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; border: 1px solid transparent; opacity: 0.55; transition: opacity .2s; background: #050505; }
.gv-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gv-thumb:hover { opacity: 0.9; }
.gv-thumb.is-on { opacity: 1; border-color: #bbb; }
.gv-thumb--video::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent rgba(255,255,255,.9); }

/* --- Course page --- */
.course-list { list-style: none; padding: 0; margin: 0; max-width: 820px; }
.course-list li { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; padding: 22px 0; border-bottom: 1px solid var(--border); }
.course-list .course-n { font-size: 13px; color: var(--text-dim); min-width: 28px; }
.course-list .course-t { font-size: 22px; font-weight: 300; color: var(--text); flex: 1; }
.course-list .course-s { font-size: 13px; color: var(--text-dim); }

/* --- Biography: text column + narrow sidebar (was 1fr 1fr, sidebar far too wide) --- */
.about-hero { padding: 104px 0 8px; }
.about-hero + .section { padding-top: 40px; }
.about-content { grid-template-columns: minmax(0, 680px) 280px; justify-content: space-between; gap: 64px; }
.about-bio h2 { margin: 48px 0 8px; }
.about-bio h2:first-child { margin-top: 0; }
.bio-cv { margin-top: 48px; }
.about-bio .cv-item { padding: 10px 0; }
.about-bio .cv-item--noyear { grid-template-columns: 1fr; }
.about-bio .cv-details, .about-bio .cv-details .cv-meta { font-size: 13px; line-height: 1.5; }
.about-bio .cv-details strong { display: block; font-size: 14px; font-weight: 400; color: var(--text); margin-bottom: 2px; }
.about-bio .cv-year { font-size: 13px; padding-top: 1px; }
.bio-portrait { margin: 0 0 32px; }
.bio-portrait img { display: block; width: 100%; height: auto; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; padding: 5px 12px; border: 1px solid var(--border); color: var(--text); border-radius: 999px; font-weight: 300; }

@media (max-width: 768px) {
  .archive-hero--tight { padding: 88px 0 16px; }
  .archive-filters-inner { justify-content: flex-start; }
  .project-hero { padding: 84px 0 0; }
  .project-meta-bar { gap: 16px 24px; }
  .work-detail .exhibition-item { grid-template-columns: 1fr; gap: 2px; }
  .gv-thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .about-hero { padding: 88px 0 8px; }
  .about-content { grid-template-columns: 1fr; }
  .bio-portrait { max-width: 280px; }
}

/* --- Home (2026-10-01): the hero was near-black (20 s fade from 0 under a 40% veil)
       and featured titles only showed on hover, so never on a phone --- */
.hero-bg { animation: hero-zoom-in 12s ease-out both; opacity: 1; }
@keyframes hero-zoom-in { 0% { transform: scale(1.06); opacity: 0; } 8% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.hero-overlay { background: radial-gradient(ellipse at center, rgba(0,0,0,.45) 0%, rgba(0,0,0,.2) 60%, rgba(0,0,0,.35) 100%); }
.hero .subtitle { color: rgba(255,255,255,.75); }
.hero .subtitle-location { color: rgba(255,255,255,.55); }
.featured-section { padding-top: 56px; }
.featured-card-body { opacity: 1; padding: 18px 22px; background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 100%); }
.featured-card-body h3 { margin: 0 0 4px; }
.featured-card-body p { font-size: 12px; color: rgba(255,255,255,.65); margin: 0; }
.hero h1, .hero .subtitle, .hero .subtitle-location { text-shadow: 0 1px 18px rgba(0,0,0,.55); }

/* --- Nav on scroll (Wave 2026-10-04: the clear nav ran into the images when scrolling) ---
   Clear over the top of the page, a solid dark bar once the page has scrolled.
   The class is set by a few lines of script in every page (site-live-build.py, page()). */
.nav { transition: background 0.25s ease, border-color 0.25s ease; border-bottom: 1px solid transparent; }
.nav.is-scrolled {
  mix-blend-mode: normal;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
