/* ===== Grant Arundell — basementheroes.net ===== */
:root {
  --bg:        #0c0d14;
  --bg-soft:   #14161f;
  --bg-card:   #181a26;
  --border:    #262a3b;
  --text:      #e7e9f0;
  --text-dim:  #9aa0b5;
  --accent:    #b14eff;   /* electric purple */
  --accent-2:  #21e6c1;   /* cyan */
  --gold:      #ffcc33;
  --max-w:     1040px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: "Space Grotesk", sans-serif; line-height: 1.15; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(12,13,20,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { color: var(--text); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); margin-right: 6px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ===== Layout ===== */
.section { max-width: var(--max-w); margin: 0 auto; padding: 72px 24px; }
.section-kicker { font-family: "Press Start 2P", monospace; font-size: 0.6rem; color: var(--accent); letter-spacing: 1px; margin-bottom: 14px; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 20px; }
.section-intro { color: var(--text-dim); max-width: 70ch; margin-bottom: 32px; }

/* ===== Hero ===== */
.hero {
  max-width: var(--max-w); margin: 0 auto;
  padding: clamp(72px, 14vw, 150px) 24px 64px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 48px;
}
.hero-text { flex: 1; min-width: 0; }
.hero-avatar { flex-shrink: 0; }
.hero-avatar img {
  width: clamp(200px, 30vw, 340px); height: auto; border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(177,78,255,.25), 0 18px 50px rgba(33,230,193,.18);
}
.kicker {
  font-family: "Press Start 2P", monospace; font-size: 0.62rem;
  color: var(--accent-2); letter-spacing: 1px; margin-bottom: 22px;
}
h1 {
  font-size: clamp(2.6rem, 8vw, 4.6rem); font-weight: 700; letter-spacing: -1px;
  background: linear-gradient(100deg, var(--text) 30%, var(--accent) 70%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-tagline { font-size: clamp(1.05rem, 2.5vw, 1.35rem); color: var(--text); margin-top: 18px; font-weight: 500; }
.hero-sub { color: var(--text-dim); max-width: 60ch; margin-top: 14px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 24px rgba(177,78,255,.35); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(177,78,255,.5); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: var(--bg-soft); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* ===== About ===== */
.about-top { display: grid; grid-template-columns: 1.7fr 1fr; gap: 44px; align-items: start; margin-bottom: 28px; }
.about-bio p { color: var(--text-dim); margin-bottom: 16px; }
.about-bio strong { color: var(--text); }
.portrait { width: 100%; max-width: 300px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); justify-self: end; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.facts li { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; color: var(--text-dim); font-size: 0.9rem; }
.facts-num { display: block; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.7rem; color: var(--accent-2); margin-bottom: 4px; }
.facts-label { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }

/* ===== Cards (code portfolio) ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
  display: block; padding: 24px; border-radius: 14px;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { text-decoration: none; transform: translateY(-4px); border-color: var(--accent); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text); }
.card h3::before { content: "▶ "; color: var(--accent); font-size: 0.7em; }
.card p { color: var(--text-dim); font-size: 0.92rem; }

/* ===== Timeline / experience ===== */
.timeline { display: flex; flex-direction: column; gap: 14px; }
.job { padding: 24px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--border); border-left: 3px solid var(--accent); }
.job-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.job-head h3 { font-size: 1.2rem; }
.job-date { font-family: "Space Grotesk", sans-serif; color: var(--accent-2); font-size: 0.85rem; white-space: nowrap; }
.job-co { color: var(--text); font-weight: 600; margin: 4px 0 12px; }
.job-meta { color: var(--text-dim); font-weight: 400; font-size: 0.9rem; }
.job ul { padding-left: 20px; color: var(--text-dim); }
.job li { margin-bottom: 6px; }
.job em { color: var(--gold); font-style: normal; font-weight: 600; }

/* ===== Games ===== */
.games-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.games-grid li {
  padding: 14px 18px; border-radius: 10px; background: var(--bg-card);
  border: 1px solid var(--border); color: var(--text); font-weight: 500; font-size: 0.95rem;
}
.games-grid li::before { content: "🎮 "; }

/* ===== Skills ===== */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.skill-group { padding: 22px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--border); }
.skill-group h3 { font-size: 1rem; color: var(--accent-2); margin-bottom: 8px; }
.skill-group p { color: var(--text-dim); font-size: 0.95rem; }

/* ===== Recommendations ===== */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.quote {
  position: relative; padding: 26px 24px 22px; border-radius: 14px;
  background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid var(--accent-2);
}
.quote::before {
  content: "\201C"; position: absolute; top: 2px; left: 14px;
  font-family: "Space Grotesk", sans-serif; font-size: 3rem; color: var(--accent-2); opacity: .35; line-height: 1;
}
.quote p { color: var(--text); font-size: 1rem; margin-bottom: 16px; }
.quote cite { display: block; color: var(--text-dim); font-size: 0.82rem; font-style: normal; border-top: 1px solid var(--border); padding-top: 12px; }

/* ===== Contact ===== */
.section-contact { text-align: center; }
.section-contact .section-kicker, .section-contact .section-intro { margin-left: auto; margin-right: auto; }
.section-contact .hero-cta { justify-content: center; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 30px 24px; text-align: center; color: var(--text-dim); font-size: 0.85rem; }

/* ===== Highlight reel (home) ===== */
.reel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 30px; }
.reel-cap { margin-top: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 600; color: var(--text); }
.reel-cap span { display: block; font-family: "Inter", sans-serif; font-weight: 400; font-size: 0.85rem; color: var(--text-dim); margin-top: 2px; }

/* ===== Games page ===== */
.games-hero { display: block; }
.games-list { padding-top: 16px; padding-bottom: 16px; }
.studio-divider { margin: 48px 0 6px; padding-top: 22px; border-top: 2px solid var(--accent); }
.studio-divider:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.studio-divider h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.studio-meta { color: var(--accent-2); font-family: "Space Grotesk", sans-serif; font-size: 0.85rem; margin-top: 4px; }
.studio-note { color: var(--text-dim); font-size: 0.92rem; max-width: 78ch; margin: 12px 0 4px; }
.game { padding: 28px 0; border-bottom: 1px solid var(--border); }
.game:last-child { border-bottom: 0; }
.game-head h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
.game-meta { color: var(--accent-2); font-family: "Space Grotesk", sans-serif; font-size: 0.9rem; margin-top: 6px; }
.game-work { color: var(--text-dim); margin: 16px 0 24px; max-width: 78ch; }
.game-work em { color: var(--gold); font-style: normal; font-weight: 600; }
.game-work ul { padding-left: 20px; margin-top: 10px; }
.game-work li { margin-bottom: 6px; }
.game-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.video-label { font-family: "Press Start 2P", monospace; font-size: 0.52rem; color: var(--accent); letter-spacing: 1px; margin-bottom: 8px; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-soft); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed.placeholder { display: flex; align-items: center; justify-content: center; border-style: dashed; color: var(--text-dim); font-size: 0.82rem; text-align: center; padding: 12px; }

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 60px; right: 0; left: 0;
    flex-direction: column; gap: 0; background: var(--bg-soft);
    border-bottom: 1px solid var(--border); padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; }
  .about-top { grid-template-columns: 1fr; }
  .reel { grid-template-columns: 1fr; }
  .hero { flex-direction: column-reverse; gap: 28px; text-align: center; }
  .hero-cta { justify-content: center; }
  .portrait { max-width: 240px; justify-self: center; }
}
