/* ==========================================================================
   STYLE v3 — eremtapa.net/artist
   Design: Yellow Hero (#f5c400), Brutalist Archivo Typography, Horizontal Timeline (2026 -> 1999)
   Fonts: Archivo (display), Inter Tight (body), JetBrains Mono (mono/labels),
          Noto Sans JP (motto only).
   Palette: #0b0b0c (dark bg), #f2efe8 (text), #8a877f (muted), #f5c400 (yellow hero / accent)
   ========================================================================== */

:root {
  --bg-color: #0b0b0c;
  --bg-card: #131316;
  --bg-card-hover: #18181d;
  --text-main: #f2efe8;
  --text-muted: #8a877f;
  --text-dim: #5c5a54;
  --accent-yellow: #f5c400;
  --accent-yellow-glow: rgba(245, 196, 0, 0.22);
  --accent-cyan: #00ffff;
  --accent-magenta: #ff0077;
  --border-subtle: #232328;
  --border-hover: #3a3a44;

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter Tight', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-jp: 'Noto Sans JP', sans-serif;

  --container-max: 1240px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grain overlay */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Custom Cursor (Desktop pointer:fine only)
   ========================================================================== */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--accent-yellow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.05s linear;
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(245, 196, 0, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.22s ease-out, height 0.22s ease-out, background-color 0.22s ease-out, border-color 0.22s ease-out;
}

.cursor-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #0b0b0c;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  user-select: none;
}

.custom-cursor-ring.cursor-active {
  width: 68px;
  height: 68px;
  background-color: var(--accent-yellow);
  border-color: var(--accent-yellow);
  box-shadow: 0 0 20px rgba(245, 196, 0, 0.4);
}

.custom-cursor-ring.cursor-active .cursor-label {
  opacity: 1;
}

@media (pointer: coarse), (max-width: 899px) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }
}

/* ==========================================================================
   Layout Containers & Headers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-fluid {
  width: 100%;
  padding: 0 4vw;
}

.section {
  padding: 100px 0;
  position: relative;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

#intro, #cv, #art-performance, #galleries, #tributes, #platforms, #teaching, #closing {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

/* Fixed Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background-color: rgba(245, 196, 0, 0.92); /* fallback */
  background-image: radial-gradient(circle at 20% 50%, rgba(245, 196, 0, 0.60), rgba(204, 150, 0, 0.48));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

@supports ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  .site-header {
    background-color: rgba(245, 196, 0, 0.55);
    background-image: radial-gradient(circle at 20% 50%, rgba(245, 196, 0, 0.55), rgba(204, 150, 0, 0.45));
  }
}

.brand-mini {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-variation-settings: 'wdth' 115;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0b0b0c;
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.brand-mini .accent-slash {
  color: #705200;
}

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

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a1917;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #000000;
  border-bottom-color: #000000;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.20);
  border-radius: 20px;
  padding: 3px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #1a1917;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: #0b0b0c;
  color: #f5c400;
}

/* Header on Yellow Hero (#intro) */
.site-header.header-on-hero {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.site-header.header-on-hero .brand-mini {
  color: #0b0b0c;
}

.site-header.header-on-hero .brand-mini .accent-slash {
  color: #705200;
}

.site-header.header-on-hero .site-nav a {
  color: #1a1917;
}

.site-header.header-on-hero .site-nav a:hover,
.site-header.header-on-hero .site-nav a.active {
  color: #000000;
  border-bottom-color: #000000;
}

.site-header.header-on-hero .lang-toggle {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.20);
}

.site-header.header-on-hero .lang-btn {
  color: #1a1917;
}

.site-header.header-on-hero .lang-btn.active {
  background: #0b0b0c;
  color: #f5c400;
}

.site-header.header-on-hero .hamburger-btn span {
  background-color: #0b0b0c;
}

/* Mobile Hamburger Button (< 768px) */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}

.hamburger-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* Mobile Full-screen Overlay Menu */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 11, 12, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-inner {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 40px 24px;
  text-align: center;
}

.mobile-menu-close {
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 2.8rem;
  line-height: 1;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  transition: color 0.2s ease;
}

.mobile-menu-close:hover {
  color: var(--accent-yellow);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-variation-settings: 'wdth' 115;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-yellow);
}

@media (max-width: 860px) {
  .site-header {
    padding: 0 16px;
  }
  .brand-mini {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
  }
  .header-right {
    gap: 8px;
  }
  .lang-btn {
    padding: 3px 8px;
    font-size: 0.7rem;
  }
  .site-nav {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
}

/* ==========================================================================
   Brutalist Typography & Glitch
   ========================================================================== */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-yellow);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.brutalist-title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  font-size: clamp(1.9rem, 7.2vw, 5.8rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 12px 0 32px;
  word-break: normal;
  overflow-wrap: break-word;
}

.fill-text {
  color: var(--text-main);
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-main);
}

.timeline-years-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-yellow);
  vertical-align: middle;
  margin-left: 16px;
  padding: 4px 12px;
  border: 1px solid rgba(245, 196, 0, 0.4);
  border-radius: 4px;
}

/* RGB Channel Shift + Shake Keyframes */
@keyframes rgbGlitch {
  0% {
    text-shadow: -2px 0 var(--accent-cyan), 2px 0 var(--accent-magenta);
    transform: translate(0);
  }
  20% {
    text-shadow: 3px 0 var(--accent-cyan), -3px 0 var(--accent-magenta);
    transform: translate(-3px, 1px);
  }
  40% {
    text-shadow: -3px 0 var(--accent-cyan), 3px 0 var(--accent-magenta);
    transform: translate(3px, -1px);
  }
  60% {
    text-shadow: 2px 0 var(--accent-cyan), -2px 0 var(--accent-magenta);
    transform: translate(-1px, 0);
  }
  80% {
    text-shadow: -1px 0 var(--accent-cyan), 1px 0 var(--accent-magenta);
    transform: translate(1px, 0);
  }
  100% {
    text-shadow: none;
    transform: translate(0);
  }
}

.glitch-active {
  animation: rgbGlitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* ==========================================================================
   Section 1: Intro (Yellow Hero #f5c400 + Aurora Gradient)
   ========================================================================== */
#intro {
  position: relative;
  width: 100%;
  min-height: max(100vh, 740px);   /* full screen again; the second min-height used to override 100vh */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f5c400;
}

/* Aurora colour clouds drifting in yellow/amber tones only */
.hero-aurora-bg {
  position: absolute;
  inset: -15%;
  width: 130%;
  height: 130%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  filter: blur(55px);
  opacity: 0.92;
  contain: strict;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.aurora-blob-1 {
  width: 65vw;
  height: 65vw;
  max-width: 850px;
  max-height: 850px;
  top: -10%;
  left: 5%;
  background: radial-gradient(circle, #ffd84a 0%, #f5c400 45%, transparent 75%);
  animation: auroraDrift1 24s ease-in-out infinite alternate;
}

.aurora-blob-2 {
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  bottom: -5%;
  right: 5%;
  background: radial-gradient(circle, #e3ac00 0%, #cc9600 55%, transparent 75%);
  animation: auroraDrift2 28s ease-in-out infinite alternate;
}

.aurora-blob-3 {
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  top: 30%;
  left: 35%;
  background: radial-gradient(circle, #ffd84a 0%, #e3ac00 50%, transparent 70%);
  animation: auroraDrift3 22s ease-in-out infinite alternate;
}

@keyframes auroraDrift1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(8%, 10%, 0) scale(1.08); }
  100% { transform: translate3d(-6%, 5%, 0) scale(0.95); }
}

@keyframes auroraDrift2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-10%, -8%, 0) scale(1.05); }
  100% { transform: translate3d(6%, -12%, 0) scale(0.92); }
}

@keyframes auroraDrift3 {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-8%, 8%, 0) rotate(15deg); }
  100% { transform: translate3d(10%, -6%, 0) rotate(-10deg); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-blob {
    animation: none !important;
  }
}

.intro-backdrop {
  position: absolute;
  top: 14%;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.intro-name-marquee {
  width: 100%;
  overflow-x: clip;     /* clip only sideways: the dot of İ and the cedilla of Ç must not be cut */
  overflow-y: visible;
  padding-block: 0.12em;
  white-space: nowrap;
}

.intro-name-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  white-space: nowrap;
  animation: marqueeScroll 40s linear infinite;   /* directions swapped with the tagline band (Kaiff) */
  will-change: transform;
}

.intro-name-track.alias-glitch-active .intro-name-item {
  animation: nameRgbGlitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes nameRgbGlitch {
  0% {
    text-shadow: -4px 0 #00ffff, 4px 0 #ff00ff;
    transform: translate(0);
  }
  20% {
    text-shadow: 5px 0 #00ffff, -5px 0 #ff00ff;
    transform: translate(-3px, 1px);
  }
  40% {
    text-shadow: -5px 0 #00ffff, 5px 0 #ff00ff;
    transform: translate(3px, -1px);
  }
  60% {
    text-shadow: 3px 0 #00ffff, -3px 0 #ff00ff;
    transform: translate(-1px, 0);
  }
  80% {
    text-shadow: -2px 0 #00ffff, 2px 0 #ff00ff;
    transform: translate(1px, 0);
  }
  100% {
    text-shadow: none;
    transform: translate(0);
  }
}

/* "KAIFF vs BADBWAI": continuous, harder glitch while the alias is on screen */
.intro-name-track.alias-glitch-hold .intro-name-item {
  animation: nameGlitchHold 0.42s steps(1, end) infinite;
}

@keyframes nameGlitchHold {
  0%   { text-shadow: -7px 0 #00ffff, 7px 0 #ff00ff; transform: translate(0) skewX(0); clip-path: inset(0 0 0 0); }
  12%  { text-shadow: 9px 0 #00ffff, -9px 0 #ff00ff; transform: translate(-6px, 2px) skewX(-8deg); clip-path: inset(10% 0 55% 0); }
  25%  { text-shadow: -4px 2px #00ffff, 4px -2px #ff00ff; transform: translate(5px, -2px); clip-path: inset(60% 0 8% 0); }
  37%  { text-shadow: 12px 0 #ff00ff, -12px 0 #00ffff; transform: translate(-2px, 0) skewX(6deg); clip-path: inset(0 0 0 0); opacity: .85; }
  50%  { text-shadow: -3px 0 #00ffff, 3px 0 #ff00ff; transform: translate(8px, 1px); clip-path: inset(35% 0 30% 0); opacity: 1; }
  62%  { text-shadow: 6px -1px #00ffff, -6px 1px #ff00ff; transform: translate(-4px, -1px) skewX(-4deg); clip-path: inset(0 0 0 0); }
  75%  { text-shadow: -10px 0 #ff00ff, 10px 0 #00ffff; transform: translate(3px, 2px); clip-path: inset(70% 0 0 0); }
  87%  { text-shadow: 2px 0 #00ffff, -2px 0 #ff00ff; transform: translate(0) skewX(10deg); clip-path: inset(0 0 0 0); opacity: .9; }
}

@keyframes marqueeScrollReverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.intro-name-item {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  font-weight: 900;
  font-size: clamp(2.1rem, 9.2vw, 9.2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #0b0b0c;
  opacity: 0.92;
  user-select: none;
}

.intro-name-sep {
  font-size: clamp(1.4rem, 4.5vw, 4rem);
  color: #0b0b0c;
  opacity: 0.45;
  user-select: none;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: grab;
}

/* museum label beside the statuette */
.hero-caption {
  position: absolute;
  z-index: 5;
  top: 50%;
  right: max(6vw, 32px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  border-left: 2px solid #0b0b0c;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #0b0b0c;
  pointer-events: none;
}
.hero-caption-title { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0; }
.hero-caption-year { opacity: 0.7; }
@media (max-width: 768px) {
  .hero-caption { top: auto; bottom: 170px; right: 16px; transform: none; font-size: 0.68rem; }
  .hero-caption-title { font-size: 0.95rem; }
}

#canvas-container:active {
  cursor: grabbing;
}

#model-loader {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.loader-spinner {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(11, 11, 12, 0.25);
  border-top-color: #0b0b0c;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #0b0b0c;
  letter-spacing: 0.05em;
}

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

#fallback-image {
  position: absolute;
  z-index: 2;
  max-width: 80%;
  max-height: 70vh;
  object-fit: contain;
  display: none;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* Autodéclaré Title directly under Priapos in the Hero */
.hero-autodeclare-wrap {
  position: absolute;
  bottom: 144px;
  left: 0;
  width: 100%;
  z-index: 6;
  display: flex;
  justify-content: center;
  padding: 0 24px;
  pointer-events: none;
}

.hero-autodeclare-title {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  color: #0b0b0c;
  max-width: 820px;
  text-align: center;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* Tagline Marquee Band under model */
.hero-marquee-band {
  position: absolute;
  bottom: 74px;
  left: 0;
  width: 100%;
  z-index: 4;
  background: #0b0b0c;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  overflow: hidden;
  padding: 7px 0;
  pointer-events: none;
}

.marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
}

#hero-marquee-track {
  animation-name: marqueeScrollReverse;   /* hero tagline band runs opposite to the big name */
  animation-duration: 150s;               /* long alias list: keeps the old reading speed */
}

.hero-marquee-band .marquee-track {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f2efe8;
}

.hero-marquee-band .marquee-highlight {
  color: var(--accent-yellow);
  font-weight: 700;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.intro-overlay {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  z-index: 5;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #0b0b0c;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  animation: bounceCue 2s infinite ease-in-out;
}

.scroll-cue svg {
  width: 14px;
  height: 14px;
  stroke: #0b0b0c;
}

@keyframes bounceCue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (max-width: 768px) {
  #intro {
    min-height: max(100vh, 640px);
  }
  .hero-autodeclare-wrap {
    bottom: 116px;
    padding: 0 16px;
  }
  .hero-autodeclare-title {
    font-size: clamp(0.72rem, 3.2vw, 0.88rem);
    line-height: 1.35;
  }
  .hero-marquee-band {
    bottom: 56px;
    padding: 5px 0;
  }
  .intro-overlay {
    bottom: 8px;
  }
}

/* ==========================================================================
   Section 2: CV
   ========================================================================== */
/* CV sits below the statement with a clear gap; it takes the statement's former
   italic, muted type (font styles swapped by Kaiff, 2026-10-24) */
.cv-label {
  margin-top: 72px;
}

.cv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 40px;
  transition: border-color 0.3s;
}

.cv-card:hover {
  border-color: var(--border-hover);
}

.cv-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.cv-paragraphs .cv-pdf-btn {
  font-style: normal;
}

.cv-actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
}

.cv-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #0b0b0c;
  background: var(--accent-yellow);
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.cv-pdf-btn:hover {
  transform: translateY(-2px);
  background: #ffd83d;
}

/* Artist Statement Card: opens the section and takes the CV's former upright,
   full-contrast type (font styles swapped by Kaiff, 2026-10-24) */
.statement-card {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: 12px;
  padding: 32px 40px;
  transition: border-color 0.3s;
}

.statement-card:hover {
  border-color: var(--accent-yellow);
}

.statement-text {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-top: 0;
  white-space: pre-line;   /* keeps the "Peace and Love and Business..." line apart */
}

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

/* ==========================================================================
   Section 3: Works Timeline (Horizontal Desktop ≥ 900px, Vertical Mobile)
   ========================================================================== */
.works-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 900px) {
  .works-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0 40px;
  }

  .works-header-pinned {
    width: 100%;
    margin-bottom: 24px;
    padding-top: 16px;
  }

  /* horizontal strip: drag to slide or use the scrollbar (Kaiff) */
  .timeline-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 18px;
    cursor: grab;
  }
  .timeline-viewport.is-dragging { cursor: grabbing; user-select: none; }
  .timeline-viewport.is-dragging a, .timeline-viewport.is-dragging img { pointer-events: none; }

  .timeline-track {
    display: flex;
    flex-direction: row;
    gap: 36px;
    padding: 0 4vw 30px;
    width: max-content;
    will-change: transform;
  }

  .work-card {
    width: 440px;
    flex-shrink: 0;
    min-height: 540px;
  }
}

@media (max-width: 899px) {
  .works-section {
    padding: 60px 0;
  }

  .works-header-pinned {
    padding: 0 24px;
    margin-bottom: 24px;
    padding-top: 16px;
  }

  .timeline-viewport {
    padding: 0 24px;
  }

  .timeline-track {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    transform: none !important;
  }

  .work-card {
    width: 100%;
  }
}

/* Work Card Styling */
.work-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  border-color: rgba(245, 196, 0, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

/* Giant background year numeral */
.giant-year-num {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  font-size: clamp(6.5rem, 14vw, 13rem);
  font-weight: 900;
  -webkit-text-stroke: 1.5px rgba(242, 239, 232, 0.08);
  color: transparent;
  position: absolute;
  top: -20px;
  right: 0;
  line-height: 0.85;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  max-width: 100%;
  overflow: hidden;
}

.work-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.work-year {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-yellow);
  font-weight: 600;
}

.work-year > span:first-child {
  white-space: nowrap;
  flex-shrink: 0;
}

.work-type-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.work-title {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-variation-settings: 'wdth' 115;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 12px;
}

.work-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.work-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-yellow);
  text-decoration: none;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.work-link:hover {
  text-decoration: underline;
}

/* Media Column & Hover Flip-book / Zoom */
.work-media-col {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  margin-top: auto;
  border: 1px solid var(--border-subtle);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.work-media-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
}

.work-card[data-media-type="image"] .work-media-col:hover img {
  transform: scale(1.06);
  filter: contrast(1.06) saturate(1.12);
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(11, 11, 12, 0.85);
  border: 1.5px solid var(--accent-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-yellow);
  transition: all 0.25s ease;
  pointer-events: none;
}

.work-media-col:hover .play-badge {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--accent-yellow);
  color: #000;
  box-shadow: 0 0 18px rgba(245, 196, 0, 0.5);
}

.gallery-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 4px 10px;
  background: rgba(11, 11, 12, 0.85);
  border: 1px solid var(--accent-yellow);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-yellow);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  transition: all 0.25s ease;
}

.work-media-col:hover .gallery-badge {
  background: var(--accent-yellow);
  color: #0b0b0c;
}

/* NSFW Gate Overlay */
.nsfw-card .work-media-col img {
  filter: blur(28px) grayscale(0.5);
  transition: filter 0.4s ease;
}

.nsfw-gate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.nsfw-card.nsfw-unlocked .nsfw-gate-overlay {
  opacity: 0;
  pointer-events: none;
}

.nsfw-card.nsfw-unlocked .work-media-col img {
  filter: none;
}

.nsfw-gate-btn {
  background: var(--accent-yellow);
  color: #000;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.nsfw-gate-btn:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   Section 4: Work Titles Marquee Band
   ========================================================================== */
.works-titles-marquee {
  width: 100%;
  overflow: hidden;
  background: #111114;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 0;
  margin: 30px 0 60px;
}

.works-titles-marquee .marquee-track {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-variation-settings: 'wdth' 115;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
  animation: marqueeScroll 120s linear infinite;   /* was 45s; slowed so titles are readable (Kaiff, 2026-10-24) */
}

.works-titles-marquee:hover .marquee-track,
.works-titles-marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

/* Titles link to their work card */
.marquee-work-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.marquee-work-link:hover,
.marquee-work-link:focus-visible {
  color: var(--accent-yellow);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.work-card-flash {
  animation: workCardFlash 1.6s ease-out;
}

@keyframes workCardFlash {
  0%, 30% { box-shadow: 0 0 0 2px var(--accent-yellow); }
  100%    { box-shadow: 0 0 0 2px transparent; }
}

.marquee-star {
  color: var(--accent-yellow);
  margin: 0 8px;
}

/* ==========================================================================
   Section 5: Galleries Grid
   ========================================================================== */
.galleries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-card:hover {
  border-color: rgba(245, 196, 0, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.gallery-cover-wrap {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #000;
}

.gallery-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-cover-wrap img {
  transform: scale(1.05);
}

.gallery-card-body {
  padding: 24px;
}

.gallery-years {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-yellow);
  font-weight: 600;
}

.gallery-title {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-variation-settings: 'wdth' 115;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 6px 0 10px;
  color: var(--text-main);
}

.gallery-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.gallery-open-cue {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-yellow);
}

/* ==========================================================================
   Section 6: Tributes Grid (İthaflar / Tributes)
   ========================================================================== */
.tributes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.tribute-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.tribute-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.tribute-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.tribute-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tribute-card:hover .tribute-thumb-wrap img {
  transform: scale(1.04);
}

.tribute-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tribute-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.tribute-name {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-variation-settings: 'wdth' 115;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.tribute-years {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.tribute-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-yellow);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tribute-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tribute-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-yellow);
  text-decoration: none;
}

.tribute-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Section 7: Süregelen Projeler (Ongoing Projects) Grid
   ========================================================================== */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  display: block;
}

.platform-card:hover {
  border-color: var(--accent-yellow);
  transform: translateY(-2px);
}

.platform-name {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-stretch: 115%;
  font-variation-settings: 'wdth' 115;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.platform-years {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-yellow);
}

.platform-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.platform-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ==========================================================================
   Section 8: Teaching List
   ========================================================================== */
.teaching-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.teaching-item {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: border-color 0.25s;
}

.teaching-item:hover {
  border-color: var(--border-hover);
}

.teaching-years {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-yellow);
  font-weight: 600;
  min-width: 110px;
}

.teaching-info h4 {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-variation-settings: 'wdth' 115;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.teaching-dept {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.teaching-courses {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.45;
}

.course-highlight {
  color: var(--accent-yellow);
  font-weight: 700;
}

.workshop-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-yellow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 2px;
}

@media (max-width: 600px) {
  .teaching-item {
    flex-direction: column;
    gap: 8px;
  }
}

/* ==========================================================================
   Section 8b: Awards (Ödüller / Awards)
   ========================================================================== */
.awards-section {
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.award-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.award-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 196, 0, 0.4);
}

.award-year {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-yellow);
  letter-spacing: 0.05em;
}

.award-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

/* ==========================================================================
   Section 9: Closing Section
   ========================================================================== */
#closing {
  padding: 120px 0 80px;
  text-align: center;
  background: radial-gradient(circle at center, #17171d 0%, #0b0b0c 80%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.closing-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.closing-motto {
  font-family: var(--font-jp);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--accent-yellow);
  letter-spacing: 0.15em;
  text-shadow: 0 0 25px rgba(245, 196, 0, 0.3);
}

.closing-contact-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: #000;
  background: var(--accent-yellow);
  padding: 16px 36px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
}

.closing-contact-btn:hover {
  background: #ffd633;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 196, 0, 0.4);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 30px;
}

/* ==========================================================================
   Modal / Lightbox
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  background: #141418;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-main);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--accent-yellow);
  color: #000;
}

.video-responsive-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.video-responsive-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.gallery-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-modal-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-item-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.gallery-item-thumb img:hover {
  transform: scale(1.05);
}

.gallery-item-placeholder {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  padding: 16px;
}

.gallery-item-meta {
  padding: 14px;
}

.gallery-item-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-yellow);
}

.gallery-item-title {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-variation-settings: 'wdth' 115;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 4px 0;
}

.gallery-item-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Multi-image Gallery Lightbox */
.gallery-lightbox-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.gallery-lightbox-title {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-variation-settings: 'wdth' 115;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.gallery-lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-yellow);
}

.gallery-lightbox-stage {
  position: relative;
  width: 100%;
  max-height: 60vh;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #08080a;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.gallery-lightbox-stage img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.gallery-lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(11, 11, 12, 0.75);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 5;
}

.gallery-lightbox-nav-btn:hover {
  background: var(--accent-yellow);
  color: #0b0b0c;
  border-color: var(--accent-yellow);
}

.gallery-lightbox-prev {
  left: 12px;
}

.gallery-lightbox-next {
  right: 12px;
}

.gallery-lightbox-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.gallery-lightbox-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 2px;
}

.gallery-lightbox-strip-item {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: all 0.2s ease;
}

.gallery-lightbox-strip-item.active {
  border-color: var(--accent-yellow);
  opacity: 1;
}

.gallery-lightbox-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Prefers-Reduced-Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track {
    animation: none !important;
  }
  .glitch-active {
    animation: none !important;
  }
  .work-card {
    transform: none !important;
  }
}

/* Detail overlay: every work, tribute and TYPZ card opens it */
.work-card, .tribute-card { cursor: pointer; }

.gallery-lightbox-stage video {
  max-width: 100%;
  max-height: 60vh;
  background: #000;
}

.detail-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-yellow);
  margin-top: 6px;
}

.detail-link {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-yellow);
  text-decoration: none;
}

.detail-link:hover { text-decoration: underline; }

.detail-gate {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gallery-lightbox-header { gap: 16px; }

.gallery-lightbox-counter {
  flex-shrink: 0;
  white-space: nowrap;
  margin-right: 44px;   /* clear of the close button */
}

/* TYPZ posters: thumbnails show the top-left of the text */
.thumbs-top-left img { object-position: left top; }

/* Scrollbars, everywhere: dark grey track, grey thumb (Kaiff, 2026-10-30) */
:root {
  --scrollbar-track: #2b2b2f;
  --scrollbar-thumb: #77777d;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 5px;
  border: 2px solid var(--scrollbar-track);
}
::-webkit-scrollbar-thumb:hover { background: #96969c; }
::-webkit-scrollbar-corner { background: var(--scrollbar-track); }

@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); }
}

/* 3D model slide in the detail overlay */
.detail-model {
  position: relative;
  z-index: 0;
  width: 100%;
  height: min(60vh, 560px);
  background: #f5c400;
  cursor: grab;
}

.detail-model canvas { display: block; }

.detail-model-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #0b0b0c;
}

.gallery-lightbox-nav-btn { z-index: 2; }

.detail-model-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #f5c400;
}

/* Phones: the longest title words (PHOTOGRAPHY, PERFORMANCE) stay on one line */
@media (max-width: 600px) {
  .brutalist-title { font-size: 6.8vw; }
}
