/* ==========================================================================
   Base
   ========================================================================== */
html { scroll-behavior: smooth; }
body { margin: 0; }

section[id] { scroll-margin-top: 80px; }

.page {
  position: relative;
  z-index: 0;
  background: #0A0A0C;
  color: var(--text);
  font-family: 'Lato', 'Century Gothic', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==========================================================================
   Homepage-only keyframes
   ========================================================================== */
@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.9; }
}

@keyframes star-sparkle {
  0%, 100% { opacity: 0.15; transform: scale(0.5); }
  50%      { opacity: 1;    transform: scale(1.2); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(50px,-36px) scale(1.12); }
  66%  { transform: translate(-30px,24px) scale(0.94); }
  100% { transform: translate(0,0) scale(1); }
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ==========================================================================
   Star field backdrop
   ========================================================================== */
.star-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.star-dot {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.7;
  animation: twinkle 3s ease-in-out infinite;
}

.star-sparkle {
  position: absolute;
  pointer-events: none;
  background:
    radial-gradient(circle, #ffffff 0%, rgba(255,255,255,0) 65%),
    linear-gradient(90deg, transparent 42%, #ffffff 49%, #ffffff 51%, transparent 58%),
    linear-gradient(0deg, transparent 42%, #ffffff 49%, #ffffff 51%, transparent 58%);
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 3px rgba(255,255,255,0.7));
  animation: star-sparkle 4s ease-in-out infinite;
}

/* ==========================================================================
   Ambient glow orbs + noise overlay placement
   ========================================================================== */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

.ambient-orb--top {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(249,199,0,0.1) 0%, rgba(249,199,0,0) 70%);
}

.ambient-orb--bottom {
  bottom: -15%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle, rgba(83,149,255,0.09) 0%, rgba(83,149,255,0) 70%);
}

/* Applied only when cursor-tracking isn't active (see the hero orbs
   above for the same pattern) — mutually exclusive with the inline
   transform below so they never fight over `transform`. */
.ambient-orb--drift-top    { animation: drift 16s ease-in-out infinite; }
.ambient-orb--drift-bottom { animation: drift 19s ease-in-out infinite reverse; }

.page .noise-overlay { z-index: 5; }

/* Header/nav, mobile dropdown, and the feedback modal now live in
   ../css/shared.css — both pages use the exact same rules for these,
   including the font (Lato, set directly in shared.css now that the
   graph page uses it too — no more per-page override needed here). */

/* ==========================================================================
   Grid measure
   All four sections share one content width, centered on the same axis.
   ========================================================================== */
.hero-card {
  max-width: 820px;
}

.credits-card, .about-me-card, .feature-grid {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Shared card treatment
   One consistent glass recipe across every card tier on this page —
   background tint and border are intentionally uniform; blur/radius/
   shadow still vary by tier below.
   ========================================================================== */
.hero-card, .feature-card, .about-me-card, .credits-card {
  background: rgba(156,194,255,0.08); /* #9CC2FF @ 8% */
  border: 1px solid #ffffff17; /* ~half the previous border alpha */
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 76px clamp(22px, 6vw, 32px) 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
  will-change: transform;
}

.hero-orb--left {
  top: -140px;
  left: 4%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(249,199,0,0.32) 0%, rgba(249,199,0,0) 70%);
}

.hero-orb--right {
  bottom: -170px;
  right: 2%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(83,149,255,0.28) 0%, rgba(83,149,255,0) 70%);
}

/* Applied only when the cursor isn't driving the orbs via inline
   transform — the two are mutually exclusive so they never fight over
   `transform`. */
.hero-orb--drift-left  { animation: drift 7s ease-in-out infinite; }
.hero-orb--drift-right { animation: drift 8.5s ease-in-out infinite reverse; }

.hero-tag {
  position: absolute;
  z-index: 6; /* above .noise-overlay's z-index:5 (shared.css) — it's position:fixed and covers the whole viewport, so without this the tags render underneath it */
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #ffffff;
  font-size: 14px;
  white-space: nowrap;
}

.hero-tag--top-left     { top: 26px; left: 6%; transform: rotate(-12deg); }
.hero-tag--top-right    { top: 26px; right: 6%; transform: rotate(12deg); }
.hero-tag--bottom-left  { bottom: 40px; left: 6%; transform: rotate(12deg); }
.hero-tag--bottom-right { bottom: 40px; right: 6%; transform: rotate(-12deg); }

@media (min-width: 640px) {
  .hero {
    padding-top: 120px;
  }

  .hero-tag {
    font-size: 16px;
  }

  .hero-tag--top-left     { top: 80px; left: 14%; transform: rotate(-18deg); }
  .hero-tag--top-right    { top: 80px; right: 14%; transform: rotate(18deg); }
  .hero-tag--bottom-left  { bottom: 44px; left: 14%; transform: rotate(18deg); }
  .hero-tag--bottom-right { bottom: 44px; right: 14%; transform: rotate(-18deg); }
}

.hero-card {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  text-align: left;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 24px;
  padding: clamp(28px, 6vw, 44px) clamp(24px, 6vw, 48px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  transform: translateZ(0);
}

.hero-title {
  margin: 0 0 20px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(20px, 3.6vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  animation: fade-in-up 0.8s ease-out both;
  animation-delay: 0.1s;
}

.hero-copy-body {
  font-size: 17px;
  line-height: 1.7;
  color: #ffffffcc;
  font-weight: 500;
  animation: fade-in-up 0.8s ease-out both;
  animation-delay: 0.22s;
}

.hero-copy-body p { margin: 0 0 18px; }
.hero-copy-body p:last-child { margin-bottom: 0; }

/* Shared by every accent-colored name across the page (hero copy,
   about-me bio, credits) — these are real links (hrefs pending), so
   underlined rather than just colored to read as clickable. */
.accent-link {
  color: var(--accent);
  text-decoration: underline;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  animation: fade-in-up 0.8s ease-out both;
  animation-delay: 0.34s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  background: #ffffff;
  color: #0F0F0F;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 0 23px;
  border-radius: 28px;
  text-decoration: none;
}

.btn-primary:hover { background: #e4e4e4; }

.btn-primary svg { flex-shrink: 0; }

/* ==========================================================================
   Feature highlights
   ========================================================================== */
.feature-section {
  margin: 44px auto 0;
  padding: 0 clamp(16px, 5vw, 32px);
}

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

@media (max-width: 520px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 26px 24px;
  transform: translateZ(0);
}

.feature-title {
  margin: 0 0 8px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.feature-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #ffffffa6;
  font-weight: 500;
}

/* ==========================================================================
   About me
   ========================================================================== */
.about-me-section {
  padding: 0 clamp(16px, 5vw, 32px);
  margin: 44px auto 0;
}

.section-eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff80;
}

.about-me-card {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  align-items: center;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 22px;
  padding: clamp(24px, 5vw, 36px);
  transform: translateZ(0);
}

.about-me-portrait {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  border-radius: 16px;
  display: block;
}

.about-me-name {
  margin: 0 0 14px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.about-me-bio {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.7;
  color: #ffffffcc;
  font-weight: 500;
}

.about-me-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  color: #ffffffcc;
  font-size: 14px;
  text-decoration: none;
  padding: 0 24px;
  border: 1px solid #ffffff2e;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
}

.pill-link:hover {
  background: rgba(255,255,255,0.1);
  border-color: #ffffff4a;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  padding: 80px 32px;
  text-align: center;
  border-top: 1px solid #ffffff1f;
  border-bottom: 1px solid #ffffff1f;
  background: rgba(255,255,255,0.02);
  display: none;
}

.cta-heading {
  margin: 0 0 24px;
  font-size: 30px;
  font-weight: 200;
}

/* ==========================================================================
   Credits
   ========================================================================== */
.credits-section {
  padding: 0 clamp(16px, 5vw, 32px) 48px;
  margin: 44px auto 0;
  text-align: left;
}

.credits-card {
  box-sizing: border-box;
  margin: 0 auto;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 18px;
  padding: clamp(22px, 5vw, 32px);
  transform: translateZ(0);
}

.credits-heading {
  margin: 0 0 14px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.credits-copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #ffffffb3;
  font-weight: 500;
}

.credits-copy strong {
  color: var(--accent);
  font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 32px clamp(16px, 5vw, 32px) 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(16px);
  border-top: 1px solid #ffffff17;
  text-align: center;
  transform: translateZ(0);
}

.site-footer-copyright {
  margin: 0;
  font-size: 13px;
  color: #ffffff80;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 22px;
}

.footer-link {
  color: #ffffff99;
  font-size: 13px;
  text-decoration: none;
  font-family: 'Lato', sans-serif;
}

/* Feedback modal styles now live in ../css/shared.css. */
