/* ─────────────────────────────────────────────
   base.css — tokens, resets, shared layout
   ───────────────────────────────────────────── */

:root {
  --bg:            #3f3f3f;
  --bg-top:        #1e1e1e;
  --cream:         #f2f0ec;
  --text:          #e9e6df;
  --text-dim:      #c9c7c2;
  --ink:           #141414;

  --font-body:     'Poppins', system-ui, sans-serif;
  --font-mono:     'Special Elite', monospace;

  --border-h:      20px;   /* glitch strip height — image scales to fit (auto 100%), ratio preserved */
  --nav-gap:       120px;
  --stack-width:   58vw;   /* TV stack width (capped at 1151px) */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  overflow-x: hidden;   /* clip decorative bleed (e.g. .about-fx) so it never scrolls sideways */
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 100%);
  font-family: var(--font-body);
  color: var(--text);
}

a { color: var(--cream); text-decoration: none; }
a:hover { color: #fff; }
::selection { background: var(--cream); color: #111; }

img { user-select: none; }

/* ── Borders ────────────────────────────────── */
/* Top: animated glitch strip */
.border-strip {
  height: var(--border-h);
  background: url('../assets/top-glitch.webp') center 0 / auto 100% repeat-x;
}
/* Bottom: animated glitch strip */
.border-strip--bottom {
  position: relative;
  background: url('../assets/bottom-glitch.webp') center 100% / auto 100% repeat-x;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Nav ────────────────────────────────────── */
.nav {
  display: flex;
  justify-content: center;
  gap: var(--nav-gap);
  padding: 74px 20px 0;
  font-family: var(--font-mono);
  color: var(--cream);
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 1px 12px;
  font-size: 20px;
  letter-spacing: 1px;
  cursor: pointer;
}
/* On hover, swap the text label for its stylized header graphic, centered
   in place so neighbouring items don't shift. */
.nav__hover {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 28.0px;   /* nav-text-sized so the hover swap stays subtle */
  width: auto;
  max-width: none;
  opacity: 0;
  pointer-events: none;
}
.nav__link:hover .nav__label { opacity: 0; }
.nav__link:hover .nav__hover { opacity: 1; }

/* ── Hero ───────────────────────────────────── */
.hero { text-align: center; padding: 65px 24px 0px; }
.hero__title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: .2px;
  text-wrap: pretty;
}
.hero__sub {
  margin: 22px auto 0;
  max-width: 760px;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.65;
  text-wrap: pretty;
}

/* ── Footer ─────────────────────────────────── */
.footer { padding: 5px 0 0; }
.footer--about { padding-top: 120px; }

.footer__signal-row {
  display: flex;
  justify-content: center;
  padding: 10px 0 45px;
}
.signal-heading {
  display: block;
}
.signal-heading img {
  display: block;
  height: 26px;
}

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 6vw, 120px);
  padding: 0 4vw 60px;
  white-space: nowrap;
}
.social {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-size: 15.5px;
  font-weight: 600;
}
.social__icon {
  display: block;
  width: 28px;
  height: 28px;
  background-size: cover;
  background-position: center;
}
.social:hover .social__icon { border-radius: 8px; }

/* black default → colorful on hover, one rule per channel */
.social__icon--mail      { background-image: url('../assets/icon-mail-bw.png'); }
.social:hover .social__icon--mail      { background-image: url('../assets/icon-mail-color.png'); }
.social__icon--linkedin  { background-image: url('../assets/icon-linkedin-bw.png'); }
.social:hover .social__icon--linkedin  { background-image: url('../assets/icon-linkedin-color.png'); }
.social__icon--instagram { background-image: url('../assets/icon-instagram-bw.png'); }
.social:hover .social__icon--instagram { background-image: url('../assets/icon-instagram-color.png'); }
.social__icon--web       { background-image: url('../assets/icon-web-bw.png'); }
.social:hover .social__icon--web       { background-image: url('../assets/icon-web-color.png'); }

.copyright {
  padding: 0 28px;
  line-height: var(--border-h);
  font-size: 10px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: .5px;
  text-transform: uppercase;   /* keeps the config name rendering as VIOLA CHEN */
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1100px) {
  :root { --nav-gap: 64px; --stack-width: 78vw; }
}
@media (max-width: 720px) {
  :root { --nav-gap: 28px; --stack-width: 92vw; }
  .nav { padding-top: 48px; }
  .nav__link { font-size: 16px; }
  .hero { padding: 48px 20px 24px; }
  .hero__title { font-size: 24px; }
  .socials { flex-wrap: wrap; gap: 22px 40px; white-space: normal; }
  .copyright { font-size: 11px; padding: 0 14px; }
}
