/* === TOKENS === */
:root {
  --bg:           #0c1810;
  --bg-surface:   #101d15;
  --bg-card:      #141f18;
  --bg-nav:       rgba(10, 22, 14, 0.85);
  --accent:       #7ec5ab;
  --accent-hover: #9dd4be;
  --accent-dim:   rgba(126, 197, 171, 0.12);
  --accent-glow:  rgba(126, 197, 171, 0.22);
  --text:         #e6ede9;
  --text-muted:   #8aab9b;
  --text-dim:     #3d5a4a;
  --border:       rgba(126, 197, 171, 0.1);
  --border-hover: rgba(126, 197, 171, 0.28);
  --brewise:      #ff6524;
  --radius:       16px;
  --radius-sm:    10px;
  --nav-h:        64px;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease:         0.18s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; overflow: hidden; }

/* === BASE === */
body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#pageContent {
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

#pageContent.locked { overflow: hidden; }

a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: #fff; }
img { display: block; max-width: 100%; }

/* Subtle ambient gradient behind hero */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60vh;
  background: radial-gradient(ellipse at 75% -10%, rgba(126, 197, 171, 0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}

.nav.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo:hover { color: #fff; }

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link-brewise:hover { color: var(--brewise) !important; }
.nav-dropdown-btn-brewise:hover { color: var(--brewise) !important; }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
}

.nav-dropdown-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.dropdown-chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.nav-dropdown.open .dropdown-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #182b1f;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  min-width: 190px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease), background var(--ease);
}

.nav-dropdown-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background var(--ease);
}

.hamburger:hover { background: rgba(255, 255, 255, 0.06); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === DRAWER === */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(340px, 90vw);
  height: 100dvh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform;
}
.drawer.active { transform: translateX(0); }

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

.drawer-logo {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  flex-shrink: 0;
}
.drawer-close svg { width: 14px; height: 14px; }
.drawer-close:hover { background: rgba(255,255,255,0.07); color: var(--text); border-color: var(--border-hover); }

.drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 16px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-item {
  display: flex;
  align-items: center;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.drawer-item:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.drawer-item:active { background: rgba(255,255,255,0.08); }

.drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0 4px;
}

.drawer-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  padding: 6px 14px 10px;
}

.drawer-app-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}
.drawer-app-card:hover { border-color: var(--border-hover); }
.drawer-app-card:last-child { margin-bottom: 0; }

.drawer-app-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.drawer-app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.drawer-app-links a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.drawer-app-links a:hover {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--border-hover);
}

/* === HERO === */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 28px 96px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 72px;
}

.hero-text { flex: 1; min-width: 0; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  padding: 5px 13px;
  border-radius: 100px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 26px;
}

.hero-title .accent { color: var(--accent); }

.hero-bio {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-bio a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.hero-bio a:hover { color: var(--accent); }

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  background: var(--accent);
  color: #0a1a0f;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #0a1a0f;
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(126, 197, 171, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border: 1px solid var(--border-hover);
  color: var(--text-muted);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--ease), border-color var(--ease), background var(--ease), transform var(--ease);
}

.btn-outline:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* Photo */
.hero-photo {
  flex-shrink: 0;
  width: clamp(260px, 28vw, 400px);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px var(--border), 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* === ACTIVITIES === */
.activities {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.activities-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 88px 28px;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-sub {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.section-sub strong {
  color: var(--text);
  font-weight: 600;
}

#contentWord {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--ease);
}

#contentWord:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

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

.activity-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}

.activity-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.activity-card-label {
  padding: 18px 18px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.activity-card-media { overflow: hidden; }

.activity-card-media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.activity-card:hover .activity-card-media img { transform: scale(1.02); }

.chess-frame-wrapper {
  display: flex;
  justify-content: center;
  overflow: hidden;
  height: 400px;
  background: #000;
}

.chess-frame-wrapper iframe {
  flex-shrink: 0;
  width: 290px;
  height: 320px;
  border: none;
  margin-left: 7px;
  transform: scale(1.25);
  transform-origin: top center;
}

.activity-card-footer {
  padding: 12px 18px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.activity-card-footer a { color: var(--text-muted); }
.activity-card-footer a:hover { color: var(--accent); }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ff4444;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #ff4444;
  border-radius: 50%;
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

/* === RESUME MODAL === */
.resume-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.resume-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.resume-modal {
  background: #111f16;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 860px;
  height: 90dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(12px);
  transition: transform 0.25s;
  overflow: hidden;
}

.resume-overlay.active .resume-modal {
  transform: translateY(0);
}

.resume-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 12px;
}

.resume-modal-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resume-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.resume-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.resume-download svg { width: 14px; height: 14px; }

.resume-download:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.resume-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), color var(--ease);
  flex-shrink: 0;
}

.resume-modal-close svg { width: 12px; height: 12px; }
.resume-modal-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.resume-iframe {
  flex: 1;
  width: 100%;
  border: none;
  display: block;
  background: #fff;
}

/* === GAME MODAL === */
.game-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.game-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.game-modal {
  background: #111f16;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(12px);
  transition: transform 0.25s;
  overflow: hidden;
}

.game-overlay.active .game-modal {
  transform: translateY(0);
}

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

.game-modal-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.game-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), color var(--ease);
  flex-shrink: 0;
}

.game-modal-close svg { width: 12px; height: 12px; }
.game-modal-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.game-modal-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.game-meta strong { color: var(--text); }

#canvas {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0a160e;
  display: block;
  margin: 0 auto;
}

.game-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
  flex-wrap: wrap;
}

.btn-game {
  padding: 11px 26px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  font-family: var(--font);
  transition: all var(--ease);
}

.btn-game-play {
  background: var(--accent);
  color: #0a1a0f;
  border-color: var(--accent);
}

.btn-game-play:hover { background: var(--accent-hover); }

.btn-game-quit {
  background: none;
  color: var(--text-muted);
}

.btn-game-quit:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

#restartGame { display: none; }

/* === ABOUT PAGE === */
.about-bio {
  position: relative;
  z-index: 1;
}

.about-bio-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 28px 64px;
}

.about-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 20px;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.about-text a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.about-text a:hover { color: var(--accent); }

/* === CAROUSEL === */
.carousel-section {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.carousel-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 28px 40px;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel-slide img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 22, 14, 0.75);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--ease), border-color var(--ease);
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(10, 22, 14, 0.95);
  border-color: var(--border-hover);
}

.carousel-btn-prev { left: 14px; }
.carousel-btn-next { right: 14px; }
.carousel-btn svg { width: 20px; height: 20px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.35);
}

/* === CURRENTLY === */
.currently-section {
  position: relative;
  z-index: 1;
}

.currently-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 88px 28px;
}

.currently-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.currently-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--ease);
}

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

.currently-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 72px;
}

.currently-value {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.currently-value strong {
  color: var(--text);
  font-weight: 600;
}

/* === APPS PAGE === */
.nav-link-active {
  color: var(--accent) !important;
  background: var(--accent-dim);
}

.drawer-item-active {
  color: var(--accent) !important;
}

.apps-hero {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
}

.apps-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 28px 36px;
}

.apps-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 12px;
}

.apps-hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
}

.apps-hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.apps-section {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding-bottom: 96px;
}

.apps-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 28px 0;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.app-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}

.app-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.app-card-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg);
}

.app-card-info { flex: 1; min-width: 0; }

.app-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.app-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.app-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.app-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  border-radius: 100px;
  align-self: flex-start;
}

.app-status-live {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.6rem;
  padding: 3px 7px;
  background: rgba(126, 197, 171, 0.12);
  color: var(--accent);
  border: 1px solid rgba(126, 197, 171, 0.28);
}

.app-card:has(.app-status-live) {
  padding-top: 46px;
}

.app-status-live::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  animation: live-pulse 1.6s ease-in-out infinite;
}

.app-status-soon {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.app-card-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.app-links-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-links-meta::before {
  content: '';
  width: 1px;
  height: 14px;
  background: var(--border-hover);
  flex-shrink: 0;
}

.app-link-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--ease);
}

.app-link-meta:hover { color: var(--accent); }

.app-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border-hover);
  color: var(--text-muted);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
  white-space: nowrap;
}

.app-pill:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: #fff;
  color: #000;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  align-self: flex-start;
  transition: opacity 0.15s, transform 0.15s;
}

.app-store-btn:hover {
  opacity: 0.88;
  color: #000;
  transform: translateY(-1px);
}

.app-store-btn svg { flex-shrink: 0; }

.app-coming-soon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(251, 191, 36, 0.08);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  align-self: flex-start;
  cursor: default;
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .chess-frame-wrapper iframe {
    transform: scale(1.0);
  }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .chess-frame-wrapper iframe {
    transform: scale(0.9);
  }
}

@media (max-width: 768px) {
  .about-bio-inner { padding: 52px 20px 48px; }
  .about-text { font-size: 1rem; }

  .carousel-wrap { padding: 32px 20px 28px; }
  .carousel-slide img { height: 300px; }
  .carousel-btn { width: 38px; height: 38px; }
  .carousel-btn svg { width: 17px; height: 17px; }

  .currently-inner { padding: 64px 20px; }
  .currently-item { gap: 14px; padding: 16px 18px; }
  .currently-label { min-width: 64px; }

  .hero-inner {
    flex-direction: column-reverse;
    padding: 40px 20px 72px;
    gap: 32px;
    text-align: center;
    align-items: center;
  }

  .hero-eyebrow { font-size: 0.72rem; }

  .hero-bio { margin-left: auto; margin-right: auto; }

  .hero-photo {
    width: clamp(160px, 50vw, 280px);
  }

  .hero-cta { justify-content: center; }

  .activities-inner { padding: 64px 20px; }

  .activities-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .activity-card-media img {
    height: 300px;
  }

  .chess-frame-wrapper {
    height: 320px;
  }

  .chess-frame-wrapper iframe {
    transform: scale(1.0);
  }
}

@media (max-width: 640px) {
  .apps-grid { grid-template-columns: 1fr; }
  .apps-hero-inner { padding: 48px 20px 40px; }
  .apps-inner { padding: 40px 20px 0; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }

  .btn-primary,
  .btn-outline {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
}
