/* ─────────────────────────────────────────────────────────────
   polish.css — Tier-1+ design polish layer
   Branden K. Soo portfolio
   Loaded after animations.css; gated by prefers-reduced-motion where relevant.
   ───────────────────────────────────────────────────────────── */

/* ============== A. MAGNETIC CTAs ============== */
/* JS adds .magnetic to qualifying buttons/links and animates transform. */
.magnetic {
  display: inline-flex;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}

/* ============== B. HERO CURSOR SPOTLIGHT ============== */
/* Soft gold halo that follows the cursor inside the hero only. */
.hero-spotlight {
  position: absolute;
  pointer-events: none;
  width: 320px; height: 320px;
  left: 0; top: 0;
  border-radius: 50%;
  background: radial-gradient(circle,
              rgba(201,168,76,0.22) 0%,
              rgba(201,168,76,0.08) 35%,
              rgba(201,168,76,0)    70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 2;
  mix-blend-mode: screen;
}
.hero-spotlight.active { opacity: 1; }

/* C. Section progress dots — REMOVED (nav is page-based, dots had nothing to track) */
.nav-dot { display: none !important; }

/* ============== D. DROP CAP IN ABOUT ============== */
/* Targets the first letter of .about-body's first sentence. */
.about-body.has-dropcap::first-letter {
  font-family: 'Caveat', 'Georgia', serif;
  float: left;
  font-size: 3.4em;
  line-height: .85;
  font-weight: 600;
  color: var(--gold, #c9a84c);
  padding: .12em .14em 0 0;
  margin-right: .04em;
}

/* ============== H. LOCATION TICKER MARQUEE ============== */
/* Subtle bottom marquee scrolling cities Branden's available in. */
.location-ticker {
  position: relative;
  overflow: hidden;
  background: rgba(11,31,58,0.97);
  border-top: 1px solid rgba(201,168,76,0.15);
  height: 34px;
  display: flex; align-items: center;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.location-ticker .ticker-track {
  display: inline-flex;
  gap: 60px;
  animation: tickerScroll 60s linear infinite;
  padding-left: 60px;
  padding-right: 60px;        /* matches left so loop is symmetric */
  white-space: nowrap;
}
.location-ticker .ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.location-ticker .ticker-track .ticker-emoji {
  display: inline-block;
  font-size: 1rem;          /* sizes up the emoji vs the small label text */
  line-height: 1;
  vertical-align: -2px;      /* nudge baseline so emoji sits inline with caps */
  filter: saturate(1.05);
  letter-spacing: 0;
}
.location-ticker .ticker-label {
  flex-shrink: 0;
  padding: 0 18px;
  background: rgba(11,31,58,0.97);
  color: var(--gold, #c9a84c);
  z-index: 2;
  font-size: .62rem;
  letter-spacing: .22em;
  border-right: 1px solid rgba(201,168,76,0.15);
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============== I. PAGE TRANSITIONS ============== */
.page-fade {
  position: fixed; inset: 0;
  background: var(--navy, #0b1f3a);
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  transition: opacity .35s ease;
}
.page-fade.show { opacity: 1; pointer-events: auto; }
body.page-leaving { cursor: progress; }

/* J. Duotone hobby photo treatment — REMOVED (looked off) */

/* ============== K. PROJECT CARD PREVIEW ============== */
.proj-card { position: relative; }
.proj-preview {
  position: absolute;
  bottom: 100%; left: 50%;
  transform: translate(-50%, 6px) scale(.96);
  background: #fff;
  border: 1px solid var(--border, #e4e7ed);
  border-radius: 8px;
  box-shadow: 0 18px 38px -12px rgba(11,31,58,.18),
              0 6px 14px rgba(11,31,58,.08);
  padding: 12px 14px;
  min-width: 240px;
  max-width: 320px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.7,.2,1);
  z-index: 50;
  font-family: 'Geist', 'Inter', sans-serif;
}
.proj-preview.show {
  opacity: 1;
  transform: translate(-50%, -6px) scale(1);
}
.proj-preview-header {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted, #6b7a93);
  margin-bottom: 8px;
}
.proj-preview-list {
  display: flex; flex-direction: column;
  gap: 6px;
}
.proj-preview-row {
  display: flex; align-items: center; gap: 8px;
  font-size: .72rem;
  color: var(--navy, #0b1f3a);
}
.proj-preview-row .ext {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .52rem; font-weight: 800; color: #fff;
  width: 22px; height: 22px; border-radius: 4px;
  text-transform: uppercase; flex-shrink: 0;
}
.proj-preview-row .ext.pdf  { background: #dc3545; }
.proj-preview-row .ext.xlsx { background: #198754; }
.proj-preview-row .ext.docx { background: #0d6efd; }
.proj-preview-row .ext.csv  { background: #6f42c1; }
.proj-preview-row .ext.yxmd { background: #14b8a6; }
.proj-preview-row .name {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============== DUOLINGO STREAK ============== */
.duo-streak {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: .82em;
  font-weight: 600;
  color: var(--gold, #c9a84c);
  margin: 0 .25em 0 .15em;
  letter-spacing: 0;
  white-space: nowrap;
}
.duo-streak .duo-count { font-variant-numeric: tabular-nums; }

/* ============== M. KONAMI CODE FLASH ============== */
.konami-flash {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(11,31,58,0.96);
  border: 1px solid rgba(201,168,76,0.4);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: 'Geist', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  opacity: 0;
  z-index: 10000;
  pointer-events: none;
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 12px 24px rgba(11,31,58,.3);
}
.konami-flash.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.konami-confetti {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 8px; height: 8px;
  background: var(--gold, #c9a84c);
  border-radius: 1px;
  will-change: transform, opacity;
}

/* ============== REDUCED-MOTION SAFE FALLBACKS ============== */
@media (prefers-reduced-motion: reduce) {
  .magnetic, .hero-spotlight, .location-ticker .ticker-track,
  .konami-flash, .konami-confetti {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .hero-spotlight { display: none; }
  .location-ticker .ticker-track {
    animation: none !important;
    transform: none !important;
  }
}

/* ============== Mobile tightening ============== */
@media (max-width: 740px) {
  .nav-links a .nav-dot { display: none; } /* avoid nav clutter on mobile */
  .location-ticker { font-size: .58rem; letter-spacing: .2em; }
  .location-ticker .ticker-track { gap: 40px; }
  .proj-preview { display: none; } /* preview pop-ups not useful on touch */
  .about-body.has-dropcap::first-letter { font-size: 2.6em; }
}
