/* =============================================
   NIV KADRIA — PORTFOLIO
   Aesthetic: Warm Illustrated World-Builder
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Nunito:wght@300;400;500;600;700&family=Bebas+Neue&display=swap');

:root {
  --bg:       #120e0a;
  --bg2:      #1c1510;
  --bg3:      #241c14;
  --warm:     #2e2218;
  --accent:   #d4893a;
  --accent2:  #4ecb8d;
  --accent3:  #c45c2e;
  --blue:     #4a9fe8;
  --yellow:   #e8c84a;
  --text:     #f0e6d3;
  --muted:    #9a8870;
  --border:   rgba(212,137,58,0.15);
  --display:  'Cinzel', serif;
  --body:     'Nunito', sans-serif;
  --bebas:    'Bebas Neue', sans-serif;
  --r:        14px;
  --glow:     0 0 40px rgba(212,137,58,0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 24px;
  line-height: 1.75;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
strong { color: var(--text); font-weight: 700; }
em { color: var(--accent); font-style: normal; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* CURSOR */
.cursor {
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  transition: transform 0.1s, width 0.2s, height 0.2s;
}

/* CONTAINER */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* ---- NAV ---- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  background: rgba(18, 14, 10, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}

.nav-logo {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 100px;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.nav-cta:hover { background: var(--accent); color: var(--bg); }

/* ---- HERO ---- */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.5);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18,14,10,0.3) 0%,
    rgba(18,14,10,0.5) 50%,
    rgba(18,14,10,0.95) 100%
  );
}

/* floating characters */
/* ---- HERO CHARACTERS — uniform size, evenly spread ---- */
.hero-chars {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  z-index: 2;
  pointer-events: none;
  padding: 0 2rem;
}
.hchar {
  width: 9rem;
  filter: drop-shadow(0 0.5rem 1.5rem rgba(0,0,0,0.6));
}
.hchar:nth-child(1) { animation: charFloat 5s ease-in-out infinite 0s; }
.hchar:nth-child(2) { animation: charFloat 6s ease-in-out infinite 0.6s; }
.hchar:nth-child(3) { animation: charFloat 4.5s ease-in-out infinite 1.2s; }
.hchar:nth-child(4) { animation: charFloat 5.5s ease-in-out infinite 0.3s; }
.hchar:nth-child(5) { animation: charFloat 5s ease-in-out infinite 0.9s; }
.hchar:nth-child(6) { animation: charFloat 6s ease-in-out infinite 1.5s; }

/* ---- HERO PHOTO ---- */
.hero-photo-wrap {
  margin-bottom: 1.5rem;
}
.hero-photo {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(212,137,58,0.6);
  box-shadow: 0 0 0 6px rgba(212,137,58,0.1), 0 0.5rem 2rem rgba(0,0,0,0.5);
}


/* ============================================
   PROJECT VISUALS — MASTER SIZE CONTROL
   Change --char-size to resize ALL characters
   across ALL projects at once.
   ============================================ */
:root {
  --char-size: 25%; /* ← CHANGE THIS to resize all characters */
}

/* ---- SHARED POSTER (centered, all projects) ---- */
.pv-poster {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 52%;
  z-index: 2;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 2rem rgba(0,0,0,0.4);
  transition: transform 0.3s;
}
.pv-poster:hover { transform: translate(-50%, -55%) scale(1.04); }

/* ---- SHARED CHARS ROW (bottom center, all projects) ---- */
.pv-chars-row {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 3;
  gap: 0;
}
.pv-chars-row img {
  width: var(--char-size);
  filter: drop-shadow(0 0.4rem 1rem rgba(0,0,0,0.4));
  animation: charFloat 4s ease-in-out infinite;
}
.pv-chars-row img:nth-child(1) { animation-delay: 0s; }
.pv-chars-row img:nth-child(2) { animation-delay: 0.4s; }
.pv-chars-row img:nth-child(3) { animation-delay: 0.8s; }
.pv-chars-row img:nth-child(4) { animation-delay: 1.2s; }
.pv-chars-row img:nth-child(5) { animation-delay: 1.6s; }

/* ---- BAD & BREAKFAST ---- */
.proj-visual--bb { background: #a8d8ea; overflow: hidden; }
.pv-chars-row .bb-bear { mix-blend-mode: multiply; animation: bbBearJump 2.8s ease-in-out infinite; }
.pv-chars-row .bb-bee  { mix-blend-mode: multiply; animation: bbBeeFloat 2s ease-in-out infinite; margin-bottom: 2rem; }
@keyframes bbBearJump {
  0%   { transform: translateY(0) rotate(-2deg); }
  35%  { transform: translateY(-1.5rem) rotate(3deg); }
  65%  { transform: translateY(-0.5rem) rotate(1deg); }
  100% { transform: translateY(0) rotate(-2deg); }
}
@keyframes bbBeeFloat {
  0%   { transform: translateY(0) rotate(-6deg); }
  50%  { transform: translateY(-1.2rem) rotate(6deg); }
  100% { transform: translateY(0) rotate(-6deg); }
}

/* ---- INSECT DICE LABYRINTH ---- */
.proj-visual--forest { background: #0a1a0e; overflow: hidden; }

/* ---- BNEI ADAM ---- */
.proj-visual--bnei { background: #2a1a08; overflow: hidden; }
.pv-screenshot {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
  z-index: 1;
}
.pv-chars-row .bnei-char { mix-blend-mode: multiply; filter: drop-shadow(0 0.25rem 1rem rgba(0,0,0,0.3)); }

/* ---- ALAD ---- */
.proj-visual--plain { background: var(--bg3); overflow: hidden; position: relative; }
.pv-chars-row .alab-soldier {
  mix-blend-mode: screen;
  filter: drop-shadow(0 0.5rem 1.5rem rgba(0,0,0,0.6));
  animation: charFloat 4s ease-in-out infinite;
  width: calc(var(--char-size) * 1.4);
}

/* ---- ALAD ---- */
.proj-visual--plain {
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}
.pv-solo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
}

/* ---- ADOPTION DAY ---- */
.proj-visual--adopt { background: #f0d9a8; position: relative; overflow: hidden; }
.pv-adopt-paws {
  position: absolute;
  inset: 0;
  font-size: 1.4rem;
  opacity: 0.12;
  z-index: 1;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  padding: 1rem;
  align-content: start;
}
.pv-chars-row .adopt-char { mix-blend-mode: multiply; filter: drop-shadow(0 0.4rem 0.8rem rgba(0,0,0,0.1)); }

/* ---- YORU ---- */
.proj-visual--yoru { background: #3d1a08; overflow: hidden; }
.pv-chars-row .yoru-char { mix-blend-mode: screen; filter: drop-shadow(0 0.5rem 2rem rgba(255,150,50,0.4)); animation-duration: 4.5s; }

/* ---- NAVIGATAU ---- */
.proj-visual--blue { background: #081422; overflow: hidden; }
.proj-visual--warm { background: #1e1508; overflow: hidden; }
.proj-visual--warm2 { background: #1a1208; overflow: hidden; }

/* ---- SHARED BG / OVERLAY / LOGO ---- */
.pv-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: saturate(0.6);
}
.pv-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,26,14,0.6), rgba(78,203,141,0.1));
}
.pv-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 13rem;
  z-index: 2;
  filter: drop-shadow(0 0.25rem 1.25rem rgba(78,203,141,0.4));
  transition: transform 0.3s;
}
.pv-logo:hover { transform: translate(-50%, -60%) scale(1.04); }
.pv-duo {
  width: 100%; height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pv-duo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.pv-duo img:first-child { border-right: 1px solid var(--border); }
/* ---- INSECT DICE LABYRINTH chars override ---- */
.proj-visual--forest .pv-chars-row {
  padding: 0;
  gap: 0;
  width: 100%;
  overflow: hidden;
  z-index: 4; /* above logo which is z-index 2 */
}
.proj-visual--forest .pv-chars-row img {
  width: calc(100% / 6);
  flex-shrink: 1;
  flex-grow: 0;
  min-width: 0;
}

/* ============================================
   MUSEUM GALLERY
   ============================================ */

.scroll-hint-text {
  font-family: var(--body);
  font-size: 0.8rem;
  color: var(--accent);
  opacity: 0.7;
  letter-spacing: 0.15em;
}

.museum-wall {
  width: 100%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,137,58,0.08) 0%, transparent 60%),
    linear-gradient(to bottom, #0e0a06 0%, #1a1208 40%, #120e08 100%);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.museum-wall::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0.6rem;
  background: linear-gradient(to right, #2a1e0e, #4a3520, #2a1e0e);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.5);
}

.museum-track {
  display: flex;
  align-items: flex-end;
  gap: 4rem;
  padding: 2rem 6rem 3rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,137,58,0.4) transparent;
  cursor: grab;
}
.museum-track:active { cursor: grabbing; }
.museum-track::-webkit-scrollbar { height: 4px; }
.museum-track::-webkit-scrollbar-track { background: transparent; }
.museum-track::-webkit-scrollbar-thumb { background: rgba(212,137,58,0.4); border-radius: 2px; }

.museum-frame {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.35s ease;
  position: relative;
}
.museum-frame:hover { transform: translateY(-1rem) scale(1.02); }

.frame-artwork { position: relative; }

.spotlight {
  position: absolute;
  top: -5rem; left: 50%;
  transform: translateX(-50%);
  width: 120%; height: 5rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,220,150,0.18) 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.museum-frame:hover .spotlight { opacity: 1; }

.frame-border {
  padding: 0.5rem;
  background: linear-gradient(135deg, #8b6914, #d4a84b, #8b6914, #c9962a, #8b6914);
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 2rem rgba(0,0,0,0.7), inset 0 0 0.5rem rgba(212,168,75,0.3), 0 0 1.5rem rgba(212,137,58,0.1);
  position: relative;
  z-index: 1;
}
.frame-border::before {
  content: '';
  position: absolute;
  inset: 0.35rem;
  border: 1px solid rgba(212,168,75,0.3);
  border-radius: 0.25rem;
  pointer-events: none;
  z-index: 2;
}

.museum-frame .proj-visual {
  width: 28rem;
  height: 22rem;
  border-radius: 0.25rem;
  overflow: hidden;
  display: block;
}

.frame-plaque {
  margin-top: 1.2rem;
  text-align: center;
  background: linear-gradient(135deg, #2a1e0e, #3d2a14, #2a1e0e);
  border: 1px solid rgba(212,168,75,0.25);
  border-radius: 0.4rem;
  padding: 0.8rem 1.4rem;
  box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.4);
  min-width: 14rem;
  max-width: 28rem;
}
.plaque-num { font-family: var(--display); font-size: 0.6rem; color: rgba(212,168,75,0.5); letter-spacing: 0.2em; margin-bottom: 0.3rem; }
.plaque-title { font-family: var(--display); font-size: 1rem; color: #d4a84b; letter-spacing: 0.05em; margin-bottom: 0.3rem; }
.plaque-tags { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.03em; }
.plaque-hint { font-size: 1.1rem; margin-top: 0.4rem; opacity: 0.5; transition: opacity 0.2s; }
.museum-frame:hover .plaque-hint { opacity: 1; }

/* ---- MODAL ---- */
.museum-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.museum-modal.open { opacity: 1; pointer-events: all; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,5,2,0.88);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 2;
  background: var(--bg2);
  border: 1px solid rgba(212,168,75,0.2);
  border-radius: 1rem;
  width: min(90vw, 72rem);
  max-height: 85vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateY(2rem) scale(0.97);
  transition: transform 0.35s ease;
  box-shadow: 0 2rem 6rem rgba(0,0,0,0.8), 0 0 0 1px rgba(212,168,75,0.1);
}
.museum-modal.open .modal-content { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(212,137,58,0.2); border-color: var(--accent); color: var(--accent); }

.modal-visual { border-radius: 1rem 0 0 1rem; overflow: hidden; }
.modal-visual .proj-visual {
  width: 100%;
  height: 100%;
  min-height: 30rem;
  border-radius: 1rem 0 0 1rem;
}

.modal-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  overflow-y: auto;
}
.modal-info h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.modal-info p { font-size: 0.95rem; color: var(--muted); line-height: 1.8; }

/* Mobile modal */
@media (max-width: 700px) {
  .modal-content {
    grid-template-columns: 1fr;
    width: 95vw;
    max-height: 90vh;
    border-radius: 0.8rem;
  }
  .modal-visual { border-radius: 0.8rem 0.8rem 0 0; }
  .modal-visual .proj-visual {
    min-height: 14rem;
    height: 14rem;
    border-radius: 0.8rem 0.8rem 0 0;
  }
  .modal-info { padding: 1.5rem; }
  .modal-info h3 { font-size: 1.2rem; }
  .museum-frame .proj-visual { width: 80vw; height: 60vw; }
}

/* ---- GAME CURSOR ---- */
.game-cursor {
  position: absolute;
  font-family: var(--pixel);
  font-size: 0.75rem;
  color: var(--accent);
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transition: top 0.12s ease, opacity 0.2s;
  text-shadow: 0 0 0.5rem var(--accent);
  animation: blink 0.8s infinite;
}
/* Inline version — sits inside the selected item */
.game-cursor--inline {
  position: relative;
  opacity: 1;
  margin-right: 0.4rem;
  font-size: 0.65rem;
  vertical-align: middle;
  flex-shrink: 0;
}
.ps-item-active {
  background: rgba(212,137,58,0.1) !important;
  border-radius: 0.3rem;
}
.ps-stat-row.ps-item-active .ps-stat-name { color: var(--accent) !important; }
.ps-stat-row.ps-item-active .ps-stat-bar { border-color: rgba(212,137,58,0.6) !important; }
.ps-stat-row.ps-item-active .ps-stat-num { color: var(--accent2) !important; }
.ps-move.ps-item-active { color: var(--accent) !important; padding-left: 1.5rem !important; }
.ps-class-item.ps-item-active .ps-class-text span { color: var(--accent) !important; }
.ps-stat-row, .ps-move, .ps-class-item {
  transition: background 0.15s, padding-left 0.15s, color 0.15s;
  padding: 0.4rem 0.5rem;
  border-radius: 0.3rem;
  margin: 0 -0.5rem;
}

/* Keyboard hint — visible banner below header */
.ps-keyboard-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 0.8rem 2rem;
  background: rgba(212,137,58,0.06);
  border-bottom: 1px solid rgba(212,137,58,0.1);
  font-family: var(--pixel);
  font-size: 0.75rem;
  color: rgba(212,137,58,0.7);
  letter-spacing: 0.12em;
}
.ps-keyboard-hint span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ps-key {
  display: inline-block;
  background: rgba(212,137,58,0.15);
  border: 1px solid rgba(212,137,58,0.4);
  border-radius: 0.25rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.65rem;
  color: var(--accent);
}
/* Remove old ::after hint */
.ps-header::after { display: none; }

@media (max-width: 700px) {
  .ps-keyboard-hint { display: none; }
  .game-cursor { display: none; }
}

.proj-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border-left: 2px solid var(--accent);
}
.proj-meta strong { color: var(--accent); }

/* dark/placeholder visual */
.proj-visual--dark {
  background: #0d0a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pv-placeholder {
  text-align: center;
  color: var(--muted);
}
.pv-ph-icon { font-size: 4rem; margin-bottom: 0.8rem; }
.pv-placeholder p { font-size: 0.85rem; opacity: 0.5; }

/* warm2 */
.proj-visual--warm2 { background: #1a1208; }

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

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 720px;
  padding: 0 2rem;
  padding-top: 5rem;
}

.hero-eyebrow {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 1.2rem;
  opacity: 0.9;
}

.hero-name {
  font-family: var(--bebas);
  font-size: clamp(5rem, 13vw, 10rem);
  line-height: 0.9;
  color: var(--text);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 40px rgba(212,137,58,0.3);
}

.hero-bio {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-main {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 2.2rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 100px;
  letter-spacing: 0.05em;
  transition: all 0.25s;
  display: inline-block;
}
.btn-main:hover { background: #e8a050; transform: translateY(-2px); box-shadow: var(--glow); }

.btn-ghost {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 2.2rem;
  border: 1.5px solid rgba(212,137,58,0.5);
  color: var(--accent);
  border-radius: 100px;
  letter-spacing: 0.05em;
  transition: all 0.25s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(212,137,58,0.1); transform: translateY(-2px); }

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ---- SECTION COMMON ---- */
section { padding: 7rem 0; }

.section-label {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 4rem;
}

.link-accent { color: var(--accent); border-bottom: 1px solid rgba(212,137,58,0.4); transition: border-color 0.2s; }
.link-accent:hover { border-color: var(--accent); }

/* ---- ABOUT ---- */
/* ============================================
   PLAYER SELECT SCREEN
   ============================================ */
#about { background: #000; padding: 0; }

.player-select {
  width: 100%;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(212,137,58,0.06) 0%, transparent 70%),
    linear-gradient(180deg, #0a0806 0%, #12100a 100%);
  border-top: 2px solid rgba(212,137,58,0.3);
  border-bottom: 2px solid rgba(212,137,58,0.3);
  font-family: var(--pixel);
  position: relative;
  overflow: hidden;
}

/* CRT scanline overlay */
.player-select::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.08) 3px, rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 10;
}

/* Header bar */
.ps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  background: rgba(212,137,58,0.08);
  border-bottom: 1px solid rgba(212,137,58,0.2);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.2em;
}
.ps-credit {
  background: var(--accent);
  color: var(--bg);
  padding: 0.3rem 0.8rem;
  border-radius: 0.2rem;
  font-size: 0.65rem;
}
.ps-blink { animation: blink 1s infinite; }

/* Main layout */
.ps-main {
  display: grid;
  grid-template-columns: 26rem 1fr 26rem;
  gap: 0;
  min-height: 38rem;
  border-bottom: 1px solid rgba(212,137,58,0.15);
}

/* Portrait column */
.ps-portrait-col {
  border-right: 1px solid rgba(212,137,58,0.15);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: rgba(0,0,0,0.3);
}

.ps-portrait-frame { text-align: center; }

.ps-portrait-inner {
  position: relative;
  width: 15rem;
  height: 15rem;
  margin: 0 auto 1.2rem;
  border: 3px solid var(--accent);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 6px rgba(212,137,58,0.1), 0 0 2rem rgba(212,137,58,0.25);
}

.ps-portrait-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.ps-portrait-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.15) 2px, rgba(0,0,0,0.15) 4px);
  pointer-events: none; border-radius: 50%;
}

.ps-portrait-label {
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.ps-portrait-sub {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  line-height: 2;
}
.ps-selected-tag {
  font-size: 0.85rem;
  color: var(--accent2);
  letter-spacing: 0.15em;
  animation: blink 1.5s infinite;
}

/* Stats column */
.ps-stats-col {
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-right: 1px solid rgba(212,137,58,0.15);
}

.ps-stats-title {
  font-size: 0.65rem;
  color: rgba(212,137,58,0.6);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
  text-align: center;
}

.ps-stat-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.ps-stat-name {
  font-size: 0.55rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  width: 8rem;
  flex-shrink: 0;
}
.ps-stat-bar {
  flex: 1;
  height: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,137,58,0.2);
  border-radius: 0.15rem;
  overflow: hidden;
}
.ps-stat-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  animation: fillBar 1.5s ease forwards;
  animation-delay: 0.3s;
}
.ps-stat-num {
  font-size: 0.6rem;
  color: var(--accent);
  width: 2.5rem;
  text-align: right;
  flex-shrink: 0;
}

.ps-class-row {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid rgba(212,137,58,0.15);
  padding-top: 1.2rem;
}
.ps-class-item { display: flex; align-items: center; gap: 0.8rem; }
.ps-class-icon { font-size: 1.8rem; }
.ps-class-text { display: flex; flex-direction: column; gap: 0.2rem; }
.ps-class-text strong {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.ps-class-text span {
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--muted);
}

/* Lore column */
.ps-lore-col {
  padding: 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.ps-lore-title {
  font-size: 0.65rem;
  color: rgba(212,137,58,0.6);
  letter-spacing: 0.2em;
  text-align: center;
}

.ps-lore-box {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(212,137,58,0.15);
  border-radius: 0.3rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ps-lore-box p {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
}
.ps-lore-box em { color: var(--accent); font-style: normal; }
.ps-lore-box strong { color: var(--text); }

.ps-special-moves {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(212,137,58,0.15);
  border-radius: 0.3rem;
  padding: 1.2rem;
}
.ps-moves-title {
  font-size: 0.6rem;
  color: rgba(212,137,58,0.6);
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}
.ps-move {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ps-move:last-child { border-bottom: none; }

/* Footer bar */
.ps-footer {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1rem 2rem;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  background: rgba(0,0,0,0.4);
}

/* ---- MENU CURSOR & SELECTION ---- */
.ps-menu-cursor {
  font-family: var(--pixel);
  font-size: 0.6rem;
  color: var(--accent);
  margin-right: 0.5rem;
  animation: blink 0.6s infinite;
  flex-shrink: 0;
}

.ps-item-selected {
  background: rgba(212,137,58,0.08);
  border-radius: 0.3rem;
  color: var(--text) !important;
  padding-left: 0.3rem;
  outline: 1px solid rgba(212,137,58,0.25);
  transition: background 0.15s;
}

.ps-move {
  display: flex;
  align-items: center;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--muted);
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.15s, background 0.15s;
  border-radius: 0.2rem;
}
.ps-move:last-child { border-bottom: none; }
.ps-move.ps-item-selected { color: var(--accent) !important; }

.ps-class-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem;
  border-radius: 0.3rem;
  transition: background 0.15s;
}
.ps-class-item.ps-item-selected { background: rgba(212,137,58,0.08); outline: 1px solid rgba(212,137,58,0.25); }

.ps-footer-hint {
  font-size: 0.55rem;
  color: rgba(212,137,58,0.4);
  letter-spacing: 0.1em;
  text-align: center;
  padding: 0.3rem;
  font-family: var(--pixel);
}

/* Mobile */
@media (max-width: 900px) {
  .ps-main { grid-template-columns: 1fr; }
  .ps-portrait-col { border-right: none; border-bottom: 1px solid rgba(212,137,58,0.15); padding: 2rem 1.5rem; }
  .ps-stats-col { border-right: none; border-bottom: 1px solid rgba(212,137,58,0.15); padding: 1.5rem; }
  .ps-lore-col { padding: 1.5rem; }
  .ps-footer { gap: 1.5rem; flex-wrap: wrap; font-size: 0.55rem; }
  .ps-stat-name { font-size: 0.5rem; width: 7rem; }
}
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
}
.about-lead {
  font-size: 1.2rem !important;
  color: var(--text) !important;
  font-weight: 500;
  margin-bottom: 1.5rem !important;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.25s, transform 0.25s;
}
.about-card:hover { border-color: rgba(212,137,58,0.4); transform: translateY(-4px); }
.ac-icon { font-size: 1.6rem; margin-bottom: 0.3rem; }
.about-card strong { font-size: 0.95rem; color: var(--text); font-weight: 700; }
.about-card span { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ---- PROJECTS ---- */
#projects { background: var(--bg); }

.proj-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 3rem;
  background: var(--bg2);
  transition: border-color 0.3s, transform 0.3s;
}
.proj-block:hover { border-color: rgba(212,137,58,0.3); transform: translateY(-4px); }
.proj-block--rev { direction: rtl; }
.proj-block--rev > * { direction: ltr; }

/* Visual side */
.proj-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

/* Info side */
.proj-info {
  padding: 2.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.proj-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ptag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  color: var(--c);
  border: 1px solid var(--c);
  background: color-mix(in srgb, var(--c) 10%, transparent);
  letter-spacing: 0.05em;
}

.proj-info h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.proj-info p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
}

.proj-steps {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.proj-steps div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.proj-steps span {
  font-family: var(--display);
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 600;
  min-width: 20px;
}

.proj-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(212,137,58,0.3);
  transition: border-color 0.2s;
  width: fit-content;
}
.proj-link:hover { border-color: var(--accent); }

/* ---- INTERESTS ---- */
#interests { background: var(--bg2); }

/* ============================================
   ARCADE TOKENS
   ============================================ */
.tokens-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

/* Each token */
.token {
  width: 14rem;
  height: 14rem;
  perspective: 800px;
  cursor: pointer;
}

.token-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
}

.token:hover .token-inner,
.token.flipped .token-inner {
  transform: rotateY(180deg);
}

/* Both faces */
.token-front, .token-back {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.6rem;
    overflow: hidden;
    text-align: center;
}

/* Front face — coin */
.token-front {
  background: radial-gradient(circle at 35% 35%, #f0c040, #c8922a 50%, #8b5e10 100%);
  box-shadow:
    0 0.4rem 0 #6b3d08,
    0 0.6rem 1.5rem rgba(0,0,0,0.5),
    inset 0 0 1.5rem rgba(255,220,100,0.3);
  border: 3px solid rgba(255,200,50,0.4);
}
.token-front:hover { filter: brightness(1.1); }

.token-ring {
  position: absolute;
  inset: 0.5rem;
  border-radius: 50%;
  border: 2px solid rgba(255,220,80,0.35);
  pointer-events: none;
}

.token-icon {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.token-front-label {
  font-family: var(--pixel);
  font-size: 0.55rem;
  color: rgba(80,40,0,0.9);
  letter-spacing: 0.1em;
  text-shadow: 0 1px 0 rgba(255,220,100,0.5);
}

/* Back face — revealed info */
.token-back {
  background: radial-gradient(circle at 35% 35%, #2a1e0e, #1a1008);
  border: 3px solid rgba(212,137,58,0.4);
  box-shadow:
    0 0.4rem 0 #0a0500,
    0 0.6rem 1.5rem rgba(0,0,0,0.6),
    inset 0 0 1.5rem rgba(212,137,58,0.08);
  transform: rotateY(180deg);
  gap: 0.5rem;
}

.token-back h4 {
  font-family: var(--display);
  font-size: 0.78rem;
  color: var(--accent);
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

.token-back p {
  font-family: var(--body);
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 9.5rem;
  margin: 0 auto;
  overflow-wrap: break-word;
}

/* Wobble animation on scroll in */
@keyframes tokenDrop {
  0%   { opacity: 0; transform: translateY(-2rem) rotate(-15deg); }
  60%  { transform: translateY(0.3rem) rotate(3deg); }
  80%  { transform: translateY(-0.1rem) rotate(-1deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}
.token.token-visible {
  animation: tokenDrop 0.6s ease forwards;
}
.token { opacity: 0; }


  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}


/* ---- CV ---- */
#cv { background: var(--bg); }

.cv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.cv-download-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, var(--bg3), var(--warm));
  border: 1px solid rgba(212,137,58,0.2);
  border-radius: var(--r);
  padding: 2rem 2.5rem;
  margin-bottom: 3.5rem;
}
.cv-download-text {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 34rem;
}
.cv-btn {
  flex-shrink: 0;
  font-size: 0.9rem !important;
  padding: 0.9rem 2rem !important;
}
@media (max-width: 600px) {
  .cv-download-hero { flex-direction: column; text-align: center; }
}

.cv-summary {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 3.5rem;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--accent);
  background: rgba(212,137,58,0.04);
  border-radius: 0 8px 8px 0;
}

.cv-group {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.cv-item {
  margin-bottom: 1.8rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.2s;
}
.cv-item:hover { border-left-color: var(--accent); }

.cv-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.cv-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.cv-place {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.cv-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

.skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.skill {
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  background: rgba(78,203,141,0.07);
  border: 1px solid rgba(78,203,141,0.2);
  color: var(--accent2);
  border-radius: 100px;
  transition: all 0.2s;
  font-weight: 600;
}
.skill:hover { background: rgba(78,203,141,0.15); transform: scale(1.04); }

.traits-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.traits-wrap div {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---- FOOTER ---- */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 5rem 0 3rem;
}
.footer-inner { text-align: center; }

.footer-chars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 3rem;
}
.footer-chars img {
  width: 70px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  animation: charFloat 4s ease-in-out infinite;
}
.footer-chars img:nth-child(2) { animation-delay: 0.5s; width: 60px; }
.footer-chars img:nth-child(3) { animation-delay: 1s; }
.footer-chars img:nth-child(4) { animation-delay: 1.5s; width: 60px; }
.footer-chars img:nth-child(5) { animation-delay: 2s; }

.footer-name {
  font-family: var(--bebas);
  font-size: 3.5rem;
  letter-spacing: 0.2em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.footer-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 0.8rem;
  color: rgba(154,136,112,0.4);
}

/* ---- FADE ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  #navbar { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .container { padding: 0 1.5rem; }
  section { padding: 5rem 0; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-cards { grid-template-columns: 1fr 1fr; }

  .proj-block { grid-template-columns: 1fr; }
  .proj-block--rev { direction: ltr; }
  .proj-visual { min-height: 260px; }
  .proj-info { padding: 2rem; }

  .cv-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .hchar { width: 5rem; }
  .hero-chars { padding: 0 0.5rem; }
  .hero-photo { width: 6rem; height: 6rem; }

  /* Fix 2: extend hero so scroll hint doesn't overlap LinkedIn */
  #hero { min-height: 110vh; }
  .hero-content { padding-top: 7rem; padding-bottom: 5rem; }

  .footer-chars img { width: 50px; }

  /* Fix 3: museum modal on mobile */
  .modal-content {
    grid-template-columns: 1fr;
    width: 95vw;
    max-height: 90vh;
    border-radius: 0.8rem;
  }
  .modal-close {
    top: 0.6rem;
    right: 0.6rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    background: rgba(18,14,10,0.95);
    border-color: var(--accent);
    color: var(--accent);
    z-index: 10;
  }
  .modal-visual { border-radius: 0.8rem 0.8rem 0 0; }
  .modal-visual .proj-visual {
    min-height: 14rem;
    height: 14rem;
    border-radius: 0.8rem 0.8rem 0 0;
  }
  .modal-info { padding: 1.5rem; }
  .modal-info h3 { font-size: 1.2rem; }
}

@media (max-width: 540px) {
  .about-cards { grid-template-columns: 1fr; }
  .pv-duo { grid-template-columns: 1fr; }
  .hero-name { font-size: 4rem; }

  /* Bigger coins on mobile */
  .token { width: 14rem; height: 14rem; }
  .token-back h4 { font-size: 0.85rem; }
  .token-back p { font-size: 0.72rem; line-height: 1.5; }
  .token-icon { font-size: 3rem; }
  .token-front-label { font-size: 0.5rem; }
  .tokens-grid { gap: 1.8rem; }

  /* Hero chars — all 6 visible, smaller and tighter */
  .hero-chars { padding: 0 0.5rem; gap: 0; }
  .hchar { width: calc(100% / 6); max-width: 4.5rem; }
}

/* =============================================
   FIXES + FEATURES — appended only
   ============================================= */

/* --- Perf / bug fixes --- */
.cursor { mix-blend-mode: normal; will-change: transform; }
.museum-frame .proj-visual { isolation: isolate; }
.hchar, .pv-chars-row img, .footer-chars img { will-change: transform; }
.modal-visual * { animation: none !important; animation-play-state: paused !important; }

/* --- Mobile museum --- */
@media (max-width: 700px) {
  .museum-track { align-items: flex-start !important; padding-left: 1.2rem !important; padding-right: 1.2rem !important; gap: 2rem !important; }
  .museum-frame .proj-visual { width: 72vw !important; height: 54vw !important; }
  .frame-plaque { width: 72vw !important; min-width: 0 !important; max-width: 72vw !important; }
  .plaque-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .museum-modal { padding: 3.5rem 0 3rem !important; overflow-y: auto !important; align-items: flex-start !important; }
  .modal-content { width: 92vw !important; max-height: none !important; border-radius: 0.8rem !important; margin: 0 auto !important; }
  .modal-info { padding: 1.5rem 1.2rem 2rem !important; }
  .modal-info .proj-link { order: -1; }
}

/* --- Modal CTA --- */
.modal-cta { margin-top: 0.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(212,137,58,0.15); display: flex; flex-direction: column; gap: 0.8rem; }
.modal-cta-label { font-family: var(--body); font-size: 0.72rem; font-weight: 700; color: var(--accent); letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.8; }
.modal-cta-heading { font-family: var(--display); font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.modal-cta-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.3rem; }
.modal-cta-btns .btn-main { font-size: 0.82rem !important; padding: 0.65rem 1.5rem !important; }
.modal-cta-btns .btn-ghost { font-size: 0.82rem !important; padding: 0.65rem 1.5rem !important; }

/* --- Hire section --- */
#hire { background: radial-gradient(ellipse at 50% 0%, rgba(212,137,58,0.12) 0%, transparent 65%), linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%); border-top: 1px solid rgba(212,137,58,0.12); text-align: center; padding: 7rem 0; }
.hire-inner { max-width: 640px; margin: 0 auto; padding: 0 2rem; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.hire-eyebrow { font-family: var(--body); font-size: 0.75rem; font-weight: 700; color: var(--accent); letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.85; }
.hire-title { font-family: var(--display); font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; color: var(--text); line-height: 1.2; margin: 0; }
.hire-title em { color: var(--accent); font-style: normal; display: block; }
.hire-sub { font-size: 1rem; color: var(--muted); line-height: 1.85; max-width: 480px; margin: 0; }
.hire-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem; }
.hire-divider { width: 3rem; height: 1px; background: linear-gradient(to right, transparent, var(--accent), transparent); opacity: 0.5; }
@media (max-width: 600px) { .hire-btns { flex-direction: column; align-items: center; } .hire-btns a { width: 100%; text-align: center; } }

/* =============================================
   HERO CHARS — interactable
   THE FIX: .hero-chars has pointer-events:none
   which blocks all clicks. Re-enable on children.
   ============================================= */
.hchar {
  pointer-events: all;  /* override parent's none */
  cursor: pointer;
  transition: filter 0.2s;
}
.hchar:hover {
  filter: drop-shadow(0 0.5rem 1.5rem rgba(0,0,0,0.6))
          drop-shadow(0 0 1rem rgba(212,137,58,0.5))
          brightness(1.2);
}

@keyframes hcharBounce {
  0%   { transform: translateY(0)     rotate(0deg)   scale(1);    }
  20%  { transform: translateY(-50px) rotate(-14deg) scale(1.2);  }
  50%  { transform: translateY(-70px) rotate(14deg)  scale(1.25); }
  75%  { transform: translateY(-18px) rotate(-4deg)  scale(1.06); }
  100% { transform: translateY(0)     rotate(0deg)   scale(1);    }
}
.hchar--bounce {
  animation: hcharBounce 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.hero-toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(2rem);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 0.5rem 2rem rgba(212,137,58,0.4);
}
.hero-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =============================================
   FIX: Hero content pushed up so chars (9rem tall,
   bottom:0) don't overlap buttons or scroll hint
   ============================================= */
.hero-content {
  padding-bottom: 11rem;
}

/* Scroll hint sits above chars — lower z keeps it
   behind content but the real fix is the padding above */
.scroll-hint {
  bottom: 10rem;
}

@media (max-width: 900px) {
  .hero-content {
    padding-bottom: 8rem;
  }
  .scroll-hint {
    bottom: 8rem;
  }
}

@media (max-width: 540px) {
  .hero-content {
    padding-bottom: 6rem;
  }
  .scroll-hint {
    bottom: 6rem;
  }
}
