/* --- 7. BUTTONS --- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: #ffffff;
  font-weight: 700;
  font-size: .88rem;
  padding: .7rem 1.6rem;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .15s;
  box-shadow: 0 2px 16px rgba(99, 102, 241, 0.28);
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .15), transparent);
  opacity: 0;
  transition: opacity .2s;
}

.btn-gold:hover {
  background: var(--gold-lt);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.4);
}

.btn-gold:hover::before {
  opacity: 1;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: .88rem;
  padding: .7rem 1.6rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-b);
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.btn-outline:hover {
  border-color: rgba(53, 116, 224, 0.5);
  background: rgba(53, 116, 224, 0.07);
  box-shadow: var(--glow-blue);
}

/* --- 8. CUSTOM CURSOR --- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  padding: clamp(4rem, 10vh, 8rem) clamp(2rem, 6vw, 4rem);
  max-width: var(--max);
  margin: 0 auto;
  min-height: calc(100vh - var(--nav-h) - var(--ticker-h));
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--r-sm); padding: .45rem 1.1rem;
  font-size: .8rem; font-weight: 500; color: var(--emerald);
  margin-bottom: 2.5rem; width: fit-content;
}

.badge-dot {
  width: 7px; height: 7px; background: var(--emerald); border-radius: 50%;
  animation: blink-dot 1.8s ease-in-out infinite;
  box-shadow: 0 0 6px var(--emerald);
}

@keyframes blink-dot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.hero-name { font-size: clamp(2.8rem, 6.5vw, 5rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; margin-bottom: 1.1rem; }

.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.25rem); color: var(--text2); margin-bottom: 1.4rem;
  display: flex; align-items: baseline; flex-wrap: nowrap; white-space: nowrap;
  min-height: 1.6em;
}

.typed-accent { color: var(--gold); font-weight: 600; display: inline-block; min-width: 4ch; }
.typed-cursor { display: none !important; }
.typed-accent::after {
  content: '|'; color: var(--gold); font-weight: 200; margin-left: 2px;
  display: inline-block; vertical-align: baseline; animation: typed-blink 1.1s ease-in-out infinite;
}

@keyframes typed-blink { 0%, 100% { opacity: 1; } 45%, 55% { opacity: 0; } }

.hero-desc {
  font-size: 1.08rem;
  color: var(--text2);
  max-width: 38rem;
  line-height: 1.85;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.4rem;
}

.stat {
  text-align: left;
  padding: 1.1rem 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.62));
  border: 1px solid var(--border);
  border-radius: 16px;
  min-height: 100%;
}

.stat-n { font-size: 1.9rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat-plus { color: var(--gold); font-weight: 700; font-size: 1.2rem; }
.stat-l { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text2); margin-top: .1rem; }
.stat-sep { display: none; }

/* --- 12. HERO BENTO GRID --- */
.hero-right {
  display: flex;
  align-items: stretch;
  justify-content: center;
  perspective: 1000px;
}

.hero-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 620px;
}

.bento-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06), inset 0 0 0 1px rgba(255,255,255,0.4);
  transition: all .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.bento-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }

/* Card: ID CARD */
.bento-id {
  grid-column: span 2;
  padding: 1.75rem 1.9rem;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 1.75rem;
  border-bottom: 4px solid var(--emerald);
}

.id-profile-wrap { position: relative; width: 136px; height: 136px; flex-shrink: 0; }
.id-photo { width: 100%; height: 100%; border-radius: 24px; object-fit: cover; border: 3px solid white; box-shadow: 0 8px 25px rgba(0,0,0,0.12); transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.3s; cursor: pointer; }
.id-profile-wrap:hover .id-photo { transform: scale(1.05); border-color: #10b981; }

.id-profile-wrap::before {
  content: ''; position: absolute; inset: -6px; border: 2px dashed rgba(16, 185, 129, 0.3);
  border-radius: 30px; animation: rotateClockwise 12s linear infinite;
}
@keyframes rotateClockwise { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.id-badge-emerald {
  position: absolute; bottom: -4px; right: -12px; background: #10b981; color: white;
  padding: .35rem .75rem; border-radius: 99px; display: flex; align-items: center; gap: .35rem;
  font-size: .68rem; font-weight: 700; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  white-space: nowrap; border: 2px solid white;
}

.id-details { display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.id-name { font-size: 1.45rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: -0.15rem; }
.id-title { font-size: .92rem; color: var(--text2); font-weight: 500; }
.id-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0.5rem 0; }
.meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.meta-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text2); opacity: 0.7; }
.meta-val { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.id-tags { display: flex; gap: .5rem; justify-content: flex-start; margin-top: 0.2rem; flex-wrap: wrap; }
.id-tags span { font-size: .65rem; font-family: 'JetBrains Mono', monospace; background: rgba(16, 185, 129, 0.1); color: #059669; padding: .2rem .6rem; border-radius: 6px; border: 1px solid rgba(16, 185, 129, 0.2); }

.bento-focus {
  grid-column: span 2;
  padding: 1.5rem 1.6rem;
  background: linear-gradient(135deg, rgba(67,56,202,0.10), rgba(13,148,136,0.10));
  border: 1px solid var(--border-b);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.focus-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.bento-focus h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
}

.focus-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.focus-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.65;
}

.focus-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.focus-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.15rem;
}

.focus-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.focus-links a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* Photo Magnify Overlay */
.photo-magnify {
  position: fixed; width: 300px; height: 300px; border-radius: 20px; object-fit: cover;
  border: 3px solid rgba(16, 185, 129, 0.6); box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.15);
  z-index: 10001; pointer-events: none; opacity: 0; transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.photo-magnify.visible { opacity: 1; transform: scale(1); }

/* Card: Visual Stats */
.bento-stat {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .25rem;
  min-height: 132px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
}

.bs-icon { font-size: 1.15rem; margin-bottom: .25rem; }
.bs-val { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.bs-lab { font-size: .68rem; color: var(--text2); text-transform: uppercase; letter-spacing: .05em; font-weight: 600;}
.bento-stat-impact { border-left: 4px solid #14b8a6; }
.bento-stat-data { border-left: 4px solid #06b6d4; }

/* Theme Exceptions */
[data-theme="dark"] .bento-id { background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.4) 100%); border-bottom: 3px solid var(--emerald); }
[data-theme="dark"] .id-photo { border-color: #1e293b; }
[data-theme="dark"] .id-badge-emerald { border-color: #1e293b; color: #ffffff; }
[data-theme="dark"] .stat { background: linear-gradient(180deg, rgba(15,23,42,0.72), rgba(15,23,42,0.5)); }
[data-theme="dark"] .bento-focus { background: linear-gradient(135deg, rgba(16,185,129,0.14), rgba(15,23,42,0.72)); }
[data-theme="dark"] .bento-stat {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
