/* ============================================================
   Jan Vincent Oclarit — Portfolio
   Creative Engineer & 3D Web Developer
   Dark theme · JetBrains Mono + Orbitron · 4px grid
   ============================================================ */

:root {
  /* Cyberpunk neon scheme */
  --bg:        #06060c;
  --bg-soft:   #0b0c16;
  --text:      #ffffff;
  --muted:     #7c809b;
  --muted-2:   #494c65;
  --accent:    #ff007f;   /* Neon Magenta */
  --accent-soft:#00f3ff;  /* Neon Cyan */
  --accent-2:  #a855f7;   /* Neon Violet */
  --border:    rgba(0, 243, 255, 0.15); /* cyan tinted line */
  --border-magenta: rgba(255, 0, 127, 0.18);
  --blue:      #00f3ff;
  --violet:    #a855f7;
  --yellow:    #ffd700;

  /* Typography */
  --font-sans: "JetBrains Mono", monospace;
  --font-display: "Orbitron", sans-serif;
  --font-serif: "JetBrains Mono", monospace;

  /* Shape */
  --radius:    4px;
  --radius-pill: 0px; /* Sharp technical edges */
  --container: 1366px;
  --gutter:    clamp(20px, 5vw, 64px);

  /* Motion */
  --ease:      cubic-bezier(.25, .8, .25, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-io:   cubic-bezier(.77, 0, .175, 1);
  --ease-wipe: cubic-bezier(.86, 0, .07, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; height: 100vh; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-family: var(--font-serif); font-style: italic; }
::selection { background: var(--accent); color: #fff; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); width: 100%; }

/* ---------- accessibility ---------- */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 10100;
  padding: 10px 18px; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-weight: 600;
  transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translateY(0); outline: none; }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   WEBGL CANVAS  (fixed, behind everything)
   ============================================================ */
.scene-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}
/* readability scrim: sits above the particle canvas, below content,
   so body copy keeps a legible contrast ratio over the moving field */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 30%, transparent 0%, rgba(6,6,15,.35) 70%, rgba(6,6,15,.62) 100%);
}
main, .header, .footer { position: relative; z-index: 1; }

/* ============================================================
   LOADER
   ============================================================ */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.site-loader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.site-loader__inner { width: min(90vw, var(--container)); padding-inline: var(--gutter); }

.site-loader__text { overflow: hidden; }
.site-loader__loading-text { font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); overflow: hidden; }
.site-loader__heading-text {
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  overflow: hidden;
  margin-top: 6px;
  font-family: var(--font-display);
  background-image: linear-gradient(100deg, var(--blue), var(--accent), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.45));
}
.site-loader__loading-text span { display: inline-block; transform: translateY(110%) rotate(6deg); transform-origin: 0 0; }
.site-loader__heading-inner {
  display: inline-block;
  transform: translateY(110%) rotate(6deg);
  transform-origin: 0 0;
  background-image: linear-gradient(100deg, var(--blue), var(--accent), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.site-loader.reveal .site-loader__loading-text span { animation: rotateWipeUpIn 1.1s var(--ease-wipe) forwards; }
.site-loader.reveal .site-loader__heading-inner { animation: rotateWipeUpIn 1.4s var(--ease-wipe) .12s forwards; }

.site-loader__info {
  display: flex; align-items: flex-end; gap: 6px;
  margin-top: 28px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.site-loader__count { font-variant-numeric: tabular-nums; color: var(--text); min-width: 3ch; }
.site-loader__status { margin-left: auto; opacity: 0; transition: opacity .4s var(--ease); }
.site-loader.complete .site-loader__status { opacity: 1; }
.site-loader__ellipsis-wrapper span { opacity: 0; animation: blink 1.2s steps(1) infinite; }
.site-loader__ellipsis-wrapper span:nth-child(2){ animation-delay: .2s; }
.site-loader__ellipsis-wrapper span:nth-child(3){ animation-delay: .4s; }

@keyframes scaleUp   { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes spinner   { 0%{transform:rotate(0)} 25%{transform:rotate(90deg)} 50%{transform:rotate(180deg)} 75%{transform:rotate(270deg)} 100%{transform:rotate(360deg)} }
@keyframes rotateWipeUpIn { to { transform: translateY(0) rotate(0); } }
@keyframes blink { 0%,100%{opacity:0} 50%{opacity:1} }

/* ============================================================
   HEADER + NAV
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-block: 18px;
  transition: padding-block .3s var(--ease);
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,6,15,.92), rgba(6,6,15,.5) 60%, transparent);
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  padding-block: 12px;
}
.header.is-scrolled::before {
  background: rgba(6, 6, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(0, 243, 255, 0.15);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; font-weight: 600; letter-spacing: -.01em; }
.brand__name {
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .08em;
  background-image: linear-gradient(100deg, var(--blue), var(--accent), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(0, 243, 255, 0.4));
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.brand:hover .brand__name {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 20px rgba(0, 243, 255, 0.3));
  opacity: 0.9;
}

.nav__list { display: flex; align-items: center; gap: 8px; }
.nav__item { display: flex; }
.nav__link {
  position: relative; display: inline-flex; padding: 8px 14px; font-size: .95rem; color: var(--muted);
  overflow: hidden; transition: color .5s var(--ease);
}
.nav__link:hover { color: var(--text); }

/* char-wipe (built by JS) for nav + footer links */
.cw { display: inline-block; overflow: hidden; vertical-align: top; }
.cw__inner { position: relative; display: inline-block; transition: transform .42s var(--ease-wipe); will-change: transform; }
.cw__inner > span { display: block; }
.cw__inner > span:last-child { position: absolute; top: 100%; left: 0; }
a:hover .cw__inner, a:focus-visible .cw__inner { transform: translateY(-100%); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: var(--radius-pill);
  background: var(--accent); color: #fff;
  font-size: .95rem; font-weight: 500; letter-spacing: .01em;
  overflow: hidden; isolation: isolate; cursor: pointer; border: 0;
  transition: color .4s var(--ease);
}
.btn__text { position: relative; z-index: 2; pointer-events: none; }
.btn__hover {
  position: absolute; inset: 0; z-index: 1; background: var(--accent-soft);
  transform: translateY(101%); border-radius: var(--radius-pill);
  transition: transform .5s var(--ease-out);
}
.btn:hover .btn__hover { transform: translateY(0); }
.btn:hover { color: #0a0a0a; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding-block: clamp(96px, 16vh, 200px); padding-inline: var(--gutter); max-width: var(--container); margin-inline: auto; width: 100%; }

/* ---------- STAGE (alternating two-column: text | particle) ---------- */
/* the text lives in one column; the reserved media column is the open
   space the pinned particle object morphs + reacts to the cursor in */
.stage { position: relative; min-height: 100vh; display: flex; align-items: center; padding-block: clamp(80px, 12vh, 160px); }
.stage__inner {
  width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center;
}
.stage__col { display: flex; }
.stage__col--text { flex-direction: column; }
.stage__col--media { min-height: 56vh; }            /* reserves the open half */
.stage__particle-zone { width: 100%; }
.stage__content { display: flex; flex-direction: column; gap: 26px; max-width: 540px; width: 100%; }

/* modifier: text on the right, particle on the left */
.stage--text-right .stage__col--text { order: 2; align-items: flex-end; }
.stage--text-right .stage__col--media { order: 1; }
.stage--text-right .stage__content { align-items: flex-end; text-align: right; }

/* ---------- HERO ---------- */
.hero__eyebrow { font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.hero__line { display: block; }
/* gradient accent: the clip must live on the glyph-carrying spans, because
   background-clip:text breaks when the element's text is moved into
   transformed descendants (the per-character reveal). solid fallback first. */
.hero__line--accent { color: var(--accent-soft); }
.hero__line--accent,
.hero__line--accent .cr__inner {
  background-image: linear-gradient(100deg, var(--blue), var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__actions { display: flex; gap: 14px; margin-top: 8px; }
.hero__scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--muted), transparent); animation: scrollPulse 2.4s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100%{transform: scaleY(.4); opacity:.4; transform-origin: top} 50%{transform: scaleY(1); opacity:1; transform-origin: top} }

/* ---------- STATEMENT ---------- */
.statement { text-align: center; }
.statement__heading { font-size: clamp(1.8rem, 4.4vw, 4rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.12; max-width: 18ch; margin-inline: auto; }

/* ---------- FEATURE TYPOGRAPHY (used inside stages) ---------- */
.feature__heading { font-size: clamp(2.2rem, 4.6vw, 3rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.feature__heading .d-block { display: block; overflow: hidden; }
.feature__body { font-size: clamp(1.05rem, 1.5vw, 1.35rem); color: #d6d6da; display: flex; flex-direction: column; gap: 22px; }
.feature__body em { color: var(--text); }
.stage--text-right .feature__body { align-items: flex-end; }
.stage--text-right .link-underline { align-self: flex-end; }

.link-underline { align-self: flex-start; position: relative; color: var(--accent-soft); padding-bottom: 3px; }
.link-underline::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.link-underline:hover::after { transform: scaleX(1); }

/* ---------- MANIFESTO (3 col over particles) ---------- */
.manifesto__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.manifesto__col p { font-size: clamp(1.05rem, 1.4vw, 1.4rem); line-height: 1.4; letter-spacing: -.01em; color: #e6e6ea; }
.manifesto__col p span { display: block; }

/* ---------- WORK ---------- */
.work__intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(48px, 7vw, 96px); flex-wrap: wrap; }
.work__heading { font-size: clamp(2.8rem, 8vw, 7rem); font-weight: 600; letter-spacing: -.035em; line-height: .94; }
.work__heading .d-block { display: block; overflow: hidden; }
.work__lead { max-width: 34ch; color: var(--muted); font-size: 1.05rem; }

.work__list { display: flex; flex-direction: column; }
.project { border-top: 1px solid var(--border); }
.project:last-child { border-bottom: 1px solid var(--border); }
.project__link { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px; padding-block: 30px; transition: padding-inline .5s var(--ease-out), color .4s var(--ease); }
.project__index { font-size: .85rem; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.project__title { font-size: clamp(1.6rem, 3.4vw, 3rem); font-weight: 500; letter-spacing: -.02em; transition: transform .5s var(--ease-out); }
.project__meta { font-size: .9rem; color: var(--muted); }
.project__arrow { font-size: 1.4rem; color: var(--muted); transition: transform .5s var(--ease-out), color .4s var(--ease); }
.project:hover .project__link { padding-inline: 18px; }
.project:hover .project__title { transform: translateX(4px); }
.project:hover .project__arrow { transform: translate(6px, -6px); color: var(--accent-soft); }

.project__thumb {
  height: 0; overflow: hidden; opacity: 0; border-radius: var(--radius);
  background: linear-gradient(135deg, #16161b, #0e0e12);
  border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--muted-2); font-size: .85rem;
  transition: height .6s var(--ease-out), opacity .5s var(--ease), margin .6s var(--ease-out);
}
.project:hover .project__thumb { height: 220px; opacity: 1; margin-bottom: 26px; }

/* ---------- LIVE ACTIVITY (Discord presence + GitHub contributions) ---------- */
.activity__head { margin-bottom: clamp(40px, 6vw, 72px); }
.activity__heading { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 600; letter-spacing: -.03em; }
.activity__heading .d-block { display: block; overflow: hidden; }
.activity__lead { color: var(--muted); margin-top: 14px; font-size: 1.05rem; max-width: 52ch; }
.activity__note { color: var(--muted-2); }

.activity__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: stretch; }

/* shared card */
.presence, .contrib, .nowplaying {
  background: linear-gradient(160deg, #121217, #0b0b0e);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 20px;
  min-width: 0;
}
.nowplaying { gap: 16px; }

/* left column stack: Discord + Spotify */
.connect-col { display: flex; flex-direction: column; gap: clamp(20px, 2.5vw, 28px); min-width: 0; }
.connect-col .presence { flex: 1 1 auto; }

/* --- Discord presence --- */
.presence__top { display: flex; align-items: center; gap: 16px; }
.presence__avatar { position: relative; width: 64px; height: 64px; flex: 0 0 auto; }
.presence__avatar-ph { width: 100%; height: 100%; border-radius: 50%; border: 1px solid var(--border); background: #16161c; display: grid; place-items: center; color: var(--muted-2); font-size: .85rem; letter-spacing: .05em; }
.presence__avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); background: #16161c; display: block; }
.presence__dot { position: absolute; right: -1px; bottom: -1px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--bg-soft); background: var(--muted-2); }
.presence__dot--online { background: #23a55a; animation: pulseDot 2.4s var(--ease) infinite; }
.presence__dot--idle { background: #f0b232; }
.presence__dot--dnd { background: #f04747; }
.presence__dot--offline { background: var(--muted-2); }
@keyframes pulseDot { 0%{box-shadow:0 0 0 0 rgba(35,165,90,.5)} 70%{box-shadow:0 0 0 9px rgba(35,165,90,0)} 100%{box-shadow:0 0 0 0 rgba(35,165,90,0)} }

.presence__id { flex: 1 1 auto; min-width: 0; }
.presence__name { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.presence__state { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 3px; font-size: .9rem; color: var(--muted); }
.presence__handle { color: var(--muted-2); font-size: .82rem; font-family: var(--font-sans); }
.presence__brand { width: 28px; height: 28px; color: #5865f2; }
.presence__brand-link { display: inline-flex; flex: 0 0 auto; transition: transform 0.3s var(--ease); cursor: pointer; text-decoration: none; }
.presence__brand-link:hover { transform: scale(1.18); }

/* custom status */
.presence__custom { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: var(--radius); background: rgba(255,255,255,.02); border: 1px solid var(--border); font-size: .92rem; color: var(--muted); min-width: 0; }
.presence__custom[hidden] { display: none; }
.presence__custom-emoji { flex: 0 0 auto; display: inline-flex; align-items: center; font-size: 1.05rem; line-height: 1; }
.presence__custom-emoji-img { width: 18px; height: 18px; display: block; }
.presence__custom span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.presence__activity { display: flex; gap: 16px; padding: 16px; border-radius: var(--radius); background: rgba(255,255,255,.03); border: 1px solid var(--border); margin-top: auto; }
.presence__art { position: relative; overflow: hidden; width: 64px; height: 64px; border-radius: 8px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; font-size: 1.1rem; background: linear-gradient(135deg, var(--accent), var(--blue)); }
.presence__art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.presence__art-img[hidden] { display: none; }
.presence__act-body { display: flex; flex-direction: column; min-width: 0; justify-content: center; }
.presence__act-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-soft); margin-bottom: 4px; }
.presence__act-title { font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.presence__act-detail, .presence__act-state { font-size: .9rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.presence__act-detail:empty, .presence__act-state:empty, .presence__act-elapsed:empty { display: none; }
.presence__act-elapsed { margin-top: 5px; font-size: .8rem; font-family: var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--accent-soft); }

/* platform footer */
.presence__foot { display: flex; align-items: center; gap: 8px; }
.presence__foot[hidden] { display: none; }
.presence__platform { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-sans); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2); }
.presence__platform::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); box-shadow: 0 0 7px rgba(0,243,255,.6); }

/* --- Spotify: Now Playing --- */
.nowplaying__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nowplaying__label { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-sans); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nowplaying__brand { width: 18px; height: 18px; color: #1db954; flex: 0 0 auto; }
.nowplaying__tag { font-family: var(--font-sans); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }

.nowplaying__body { display: flex; align-items: center; gap: 16px; min-width: 0; text-decoration: none; }
.nowplaying__body[hidden] { display: none; }
.nowplaying__art { position: relative; width: 64px; height: 64px; flex: 0 0 auto; border-radius: 8px; overflow: hidden; background: #16161c; border: 1px solid var(--border); }
.nowplaying__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nowplaying__eq { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 4px; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.nowplaying__eq i { width: 3px; border-radius: 2px; background: #1db954; transform-origin: bottom; animation: eqBar .9s var(--ease) infinite; }
.nowplaying__eq i:nth-child(1) { height: 7px; animation-delay: 0s; }
.nowplaying__eq i:nth-child(2) { height: 13px; animation-delay: .2s; }
.nowplaying__eq i:nth-child(3) { height: 9px; animation-delay: .4s; }
.nowplaying__eq i:nth-child(4) { height: 12px; animation-delay: .1s; }
@keyframes eqBar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

.nowplaying__meta { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.nowplaying__song { font-size: 1rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .25s var(--ease); }
.nowplaying__artist { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nowplaying__album { font-size: .8rem; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nowplaying__body:hover .nowplaying__song { color: #1db954; }

.nowplaying__progress { display: flex; flex-direction: column; gap: 6px; }
.nowplaying__progress[hidden] { display: none; }
.nowplaying__bar { height: 4px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.nowplaying__bar-fill { display: block; height: 100%; width: 0; background: #1db954; border-radius: 3px; transition: width 1s linear; }
.nowplaying__times { display: flex; justify-content: space-between; font-family: var(--font-sans); font-size: .68rem; font-variant-numeric: tabular-nums; color: var(--muted-2); }
.nowplaying__idle { font-family: var(--font-sans); font-size: .85rem; color: var(--muted-2); }
.nowplaying__idle[hidden] { display: none; }

/* --- GitHub Activity: Live Signals panel --- */
.signals__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.signals__title { font-size: .9rem; font-weight: 700; letter-spacing: -.01em; }
.signals__sub { display: block; margin-top: 5px; font-family: var(--font-sans); font-size: .5rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.signals__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex: 0 0 auto; }
.signals__live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans); font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #23a55a; }
.signals__live-dot { width: 7px; height: 7px; border-radius: 50%; background: #23a55a; animation: pulseDot 2.4s var(--ease) infinite; }
.signals__sync { font-family: var(--font-sans); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .3s var(--ease); }
.signals__sync.is-syncing { color: var(--accent-soft); }

.signals__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.signals__stat { background: #090a12; padding: 15px 16px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.signals__stat-label { font-family: var(--font-sans); font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.signals__stat-val { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--text); }
.signals__stat-val small { font-size: .55em; font-weight: 600; color: var(--muted); margin-left: 2px; }
.signals__stat-val--accent { color: var(--accent-soft); text-shadow: 0 0 18px rgba(0, 243, 255, .35); }

.signals__heatmap { display: flex; flex-direction: column; gap: 11px; }
.signals__heatmap-label { font-family: var(--font-sans); font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2); }

.contrib__graph { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; overflow-x: auto; padding-bottom: 8px; min-width: 0; }
.contrib__graph::-webkit-scrollbar { height: 6px; }
.contrib__graph::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.contrib__cell { width: 12px; height: 12px; border-radius: 2px; background: rgba(255,255,255,.045); transition: background .4s var(--ease); }
.contrib__cell[data-level="1"] { background: rgba(45, 212, 255, .22); }
.contrib__cell[data-level="2"] { background: rgba(34, 211, 238, .45); }
.contrib__cell[data-level="3"] { background: rgba(34, 211, 238, .72); }
.contrib__cell[data-level="4"] { background: #25e0f5; box-shadow: 0 0 8px rgba(0, 243, 255, .5); }

.signals__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.signals__foot-note { font-family: var(--font-sans); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.signals__details { font-family: var(--font-sans); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-soft); text-decoration: none; transition: opacity .25s var(--ease); }
.signals__details:hover { opacity: .65; }

/* ---------- LOGOS / STACK ---------- */
.logos__head { text-align: center; margin-bottom: 56px; }
.logos__heading { font-size: clamp(2rem, 5vw, 4rem); font-weight: 600; letter-spacing: -.03em; }
.logos__heading .d-block { display: block; overflow: hidden; }
.logos__lead { color: var(--muted); margin-top: 14px; }
.logos__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.logos__grid li { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 20px; text-align: center; font-size: 1.25rem; color: var(--muted); letter-spacing: -.01em; transition: color .4s var(--ease), background .4s var(--ease); }
.logos__grid li:hover { color: var(--text); background: var(--bg-soft); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta__heading { font-size: clamp(2.8rem, 9vw, 8rem); font-weight: 600; letter-spacing: -.04em; line-height: 3; margin-bottom: 48px; }
.cta__line { display: block; overflow: hidden; }
.cta__line is-in { line-height: 1.3;}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding-block: 40px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  background: rgba(6, 6, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__copy { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); }
.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  background-image: linear-gradient(100deg, var(--blue), var(--accent), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(0, 243, 255, 0.35));
}
.footer__nav { display: flex; gap: 18px; }
.footer__nav a, .footer__social a { position: relative; overflow: hidden; display: inline-flex; font-size: .9rem; color: var(--muted); transition: color .5s var(--ease); }
.footer__nav a:hover, .footer__social a:hover { color: var(--text); }
.footer__social { display: flex; gap: 18px; }

/* ============================================================
   ANIMATION STATES (split text / reveal)  — toggled by JS
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* per-line rotate-in (splitTextRotateIn) */
.sl { display: block; overflow: hidden; }
.sl__inner { display: block; transform: translateY(120%) rotate(7deg); transform-origin: 0 0; transition: transform 1s var(--ease-wipe); }
.is-in .sl__inner { transform: none; }

/* per-char wipe-up reveal (split-line js-chars) */
.crword { display: inline-block; vertical-align: top; white-space: nowrap; }
.cr { display: inline-block; overflow: hidden; vertical-align: top; }
.cr__inner { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease-wipe); }
.is-in .cr__inner { transform: none; }

/* ============================================================
   CUSTOM COMPONENT STYLES (About, Projects, Contact)
   ============================================================ */

/* Profile Picture inside Torus */
.hero-profile-pic {
  position: fixed;
  left: 0;
  top: 0;
  width: min(220px, 30vw);
  height: min(220px, 30vw);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  background: transparent;
  box-shadow: 0 0 30px rgba(109, 93, 252, 0.45), 0 10px 40px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 10;
  transform: translate(-50%, -50%) scale(var(--profile-scale, 1));
  animation: heroFloat 6s ease-in-out infinite;
  transition: opacity 0.8s var(--ease);
}
.hero-profile-pic::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: conic-gradient(from 0deg, var(--blue), var(--accent), var(--violet), var(--blue));
  border-radius: 50%;
  animation: spinProfileRing 6s linear infinite;
}
.hero-profile-pic img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #08080b;
}
@keyframes spinProfileRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes heroFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) scale(var(--profile-scale, 1)); }
  50% { transform: translate(-50%, -50%) translateY(-8px) scale(var(--profile-scale, 1)); }
}

/* About Skills tags */
.about-skills {
  margin-top: 36px;
  width: 100%;
}
.about-skills__title {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}
.about-skills__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-tag {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--accent-soft);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.25s var(--ease);
}
.skill-tag:hover {
  background: var(--border);
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}

/* Projects Sticky Showcase */
.projects-pin-container {
  position: relative;
  height: 200vh; /* 2 projects = 2 pages of scroll */
}
.projects-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: transparent;
}
.projects-inner {
  display: grid;
  grid-template-columns: 4.5fr 7.5fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  height: 100%;
  width: 100%;
}
.projects-content-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  position: relative;
}
.projects-header {
  margin-bottom: 40px;
}
.projects-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.projects-main-title {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 6px;
}
.projects-carousel {
  position: relative;
  height: 280px;
}
.project-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.project-number {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--accent-soft);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.project-name {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.project-description {
  font-size: 1.05rem;
  color: var(--muted);
  max-w-[42ch];
  line-height: 1.55;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.project-tags .tag {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

/* Project Visual mockups */
.projects-visual-side {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.projects-visual-container {
  position: relative;
  width: 100%;
  height: 52vh;
  max-width: 680px;
}
.project-visual {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.92) rotate(-1.5deg);
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.project-visual.active {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  pointer-events: all;
}
/* Browser-frame mockup holding a live full-page screenshot */
.browser-frame {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: #090a12;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 243, 255, 0.05);
}
.browser-frame__bar {
  flex: 0 0 auto;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.browser-frame__dots {
  display: inline-flex;
  gap: 6px;
  flex: 0 0 auto;
}
.browser-frame__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.browser-frame__dots i:nth-child(1) { background: #ff5f56; }
.browser-frame__dots i:nth-child(2) { background: #ffbd2e; }
.browser-frame__dots i:nth-child(3) { background: #27c93f; }
.browser-frame__url {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-frame__screen {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  background: #050508;
  cursor: ns-resize;
}
.browser-frame__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
/* Only the active screenshot auto-pans through the full page */
.project-visual.active .browser-frame__shot {
  animation: shotPan 24s ease-in-out infinite;
}
.browser-frame.is-scrubbing .browser-frame__shot {
  animation-play-state: paused;
}
@keyframes shotPan {
  0%, 6%   { object-position: center top; }
  50%      { object-position: center bottom; }
  94%, 100% { object-position: center top; }
}
@media (prefers-reduced-motion: reduce) {
  .project-visual.active .browser-frame__shot {
    animation: none;
    object-position: center top;
  }
}

/* Contact & Connect Section Consolidation */
.connect-section {
  padding-block: clamp(120px, 20vh, 240px);
}
.contact-section {
  padding-block: clamp(120px, 20vh, 240px);
}
@media (min-width: 1025px) {
  .contact-section,
  .connect-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 90px; /* Offset for fixed navbar */
    padding-bottom: 50px;
    box-sizing: border-box;
  }
}
.contact-section__inner,
.connect-section__inner {
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
}
.contact-section__head,
.connect-section__head {
  text-align: center;
  margin-bottom: 64px;
}
.contact-section__eyebrow,
.connect-section__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-section__heading,
.connect-section__heading {
  font-size: clamp(1.6rem, 8vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-top: 6px;
}
.contact-section__lead,
.connect-section__lead {
  max-width: 58ch;
  color: var(--muted);
  margin-inline: auto;
  margin-top: 18px;
  font-size: 1.1rem;
}
.contact-section__grid {
  display: grid;
  grid-template-columns: 5.5fr 6.5fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}
.connect-section__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact-social-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-details-card {
  background: linear-gradient(160deg, #121217, #0b0b0e);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
}
.contact-details__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-details__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.contact-details__content {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.highlight {
  background-image: linear-gradient(100deg, var(--blue), var(--accent), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.contact-social-links {
  display: flex;
  gap: 24px;
}

/* Contact Form Card styling */
.contact-form-card {
  background: linear-gradient(160deg, #121217, #0b0b0e);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.form-input,
.form-textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #08080b;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 16px 20px;
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.form-textarea {
  min-height: 140px;
  resize: vertical;
}
.form-input:focus,
.form-textarea:focus {
  background: #0b0b0e;
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(109, 93, 252, 0.15);
}
.form-group:focus-within .form-label {
  color: var(--accent-soft);
}
.form-submit-container {
  display: flex;
  justify-content: flex-end;
}
.btn-submit {
  width: 100%;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .stage { min-height: auto; }
  .stage__inner { grid-template-columns: 1fr; }
  .stage__col--media { display: none; }
  .stage__content { max-width: none; }
  .stage--text-right .stage__content { align-items: flex-start; text-align: left; }
  .stage--text-right .feature__body { align-items: flex-start; }
  .stage--text-right .link-underline { align-self: flex-start; }
  .manifesto__grid { grid-template-columns: 1fr; gap: 32px; }
  .activity__grid { grid-template-columns: 1fr; }
  .logos__grid { grid-template-columns: repeat(2, 1fr); }
  
  /* New Projects responsive overrides */
  .projects-pin-container {
    height: auto !important;
  }
  .projects-sticky {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    overflow: visible !important;
    padding-block: 60px;
  }
  .projects-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .projects-carousel {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
  }
  .project-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: all;
  }
  .projects-visual-side {
    display: none; /* Hide visual mockup side on tablet/mobile */
  }
  .contact-section__grid,
  .connect-section__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .scroll-progress {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .nav__list .nav__item:not(:last-child) { display: none; }
  .work__intro { flex-direction: column; align-items: flex-start; }
  .project__link { grid-template-columns: auto 1fr auto; gap: 16px; }
  .project__meta { display: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], .sl__inner, .cr__inner { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   ENHANCED MOTION & INTERACTION (Progress Bar + Underline + Hero Rotate)
   ============================================================ */

/* scroll progress bar (top of viewport) */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10090;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--accent), var(--violet));
  will-change: transform; pointer-events: none;
}

/* scroll-spy: current section highlighted in nav */
.nav__link {
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--accent), var(--violet));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--ease-out);
}
.nav__link.is-current { color: var(--text); }
.nav__link.is-current::after { transform: scaleX(1); }

/* icon buttons / socials */
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); display: inline-grid; place-items: center; color: var(--muted); transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease-out); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }
.icon-btn:active { transform: translateY(-1px) scale(.94); }

/* hero2 content elements */
.hero2__eyebrow { font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 20px; }
.hero2__title { font-size: clamp(2.0rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; }
.hero2__name { color: var(--accent-soft); background-image: linear-gradient(100deg, var(--blue), var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero2__name .cr__inner { background-image: linear-gradient(100deg, var(--blue), var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero2__role { font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 500; margin-top: 16px; }
.hero2__role-rotate { color: var(--accent-soft); display: inline-block; }
.hero2__blurb { color: #c8c8d4; font-size: 1.05rem; max-width: 46ch; margin-top: 16px; line-height: 1.6; }
.hero2__actions { display: flex; align-items: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.hero2__socials { display: flex; gap: 10px; }

/* ============================================================
   CYBERPUNK HUD OVERLAYS & GRIDS
   ============================================================ */

.hud-scanlines {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  opacity: 0.15;
}

body {
  font-family: var(--font-sans) !important;
  background: var(--bg);
  background-image: 
    radial-gradient(rgba(0, 243, 255, 0.04) 1px, transparent 0),
    radial-gradient(rgba(255, 0, 127, 0.02) 1px, transparent 0);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

/* Redesign Headers with Orbitron Display Font */
h1, h2, h3, h4, .hero2__title, .feature__heading, .projects-main-title, .connect-section__heading, .contact-section__heading, .project-name, .site-loader__heading-text {
  font-family: var(--font-display) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em !important;
}

/* Tactical HUD Corner brackets for Cards */
.presence, .contrib, .contact-details-card, .contact-form-card, .nowplaying {
  position: relative;
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  background: #090a12 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  overflow: visible !important;
}

.presence::before, .contrib::before, .contact-details-card::before, .contact-form-card::before, .nowplaying::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px;
  width: 10px; height: 10px;
  border-top: 2px solid var(--accent-soft);
  border-left: 2px solid var(--accent-soft);
  pointer-events: none;
  z-index: 10;
}

.presence::after, .contrib::after, .contact-details-card::after, .contact-form-card::after, .nowplaying::after {
  content: "";
  position: absolute;
  bottom: -2px; right: -2px;
  width: 10px; height: 10px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  pointer-events: none;
  z-index: 10;
}

/* Clipped HUD Buttons */
.btn {
  border-radius: 0px !important;
  border: 1px solid var(--accent-soft) !important;
  background: transparent !important;
  color: var(--accent-soft) !important;
  font-family: var(--font-sans) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
  transition: all 0.3s var(--ease) !important;
}

.btn__hover {
  background: var(--accent-soft) !important;
  transform: translateY(101%);
}

.btn:hover {
  color: #06060c !important;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.4) !important;
}

.btn:active {
  transform: scale(0.97) !important;
}

/* Primary CTA — the one place the full gradient earns its keep.
   Reserved for the single most important action (Contact / Send Message);
   every other button stays on the cyan HUD style to preserve hierarchy. */
.btn--primary {
  border-color: transparent !important;
  color: #06060c !important;
  font-weight: 700 !important;
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 48%, var(--accent-soft) 100%) !important;
  background-size: 220% 100% !important;
  background-position: 0% 0 !important;
  box-shadow: 0 6px 18px -6px rgba(255, 0, 127, .45) !important;
  transition: background-position .6s var(--ease), box-shadow .35s var(--ease), transform .25s var(--ease) !important;
}
.btn--primary .btn__hover { display: none !important; } /* gradient replaces the cyan wipe */
.btn--primary:hover {
  color: #06060c !important;
  background-position: 100% 0 !important;
  box-shadow: 0 0 22px rgba(255, 0, 127, .35), 0 0 34px rgba(0, 243, 255, .28) !important;
  transform: translateY(-2px);
}
.btn--primary:active { transform: translateY(0) scale(.98) !important; }
@media (prefers-reduced-motion: reduce) {
  .btn--primary { transition: box-shadow .2s var(--ease) !important; }
  .btn--primary:hover { transform: none; }
}

/* Profile picture glowing frame update */
.hero-profile-pic {
  border-radius: var(--radius) !important;
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.3) !important;
  overflow: visible !important;
}

.hero-profile-pic::before {
  border-radius: var(--radius) !important;
  background: conic-gradient(from 0deg, var(--accent-soft), var(--accent-2), var(--accent), var(--accent-soft)) !important;
}

.hero-profile-pic img {
  border-radius: var(--radius) !important;
}

/* Skill tags HUD style */
.skill-tag {
  border-radius: 0px !important;
  background: rgba(0, 243, 255, 0.03) !important;
  border: 1px solid var(--border) !important;
  font-family: var(--font-sans) !important;
}

.skill-tag:hover {
  background: rgba(0, 243, 255, 0.08) !important;
  border-color: var(--accent-soft) !important;
  color: var(--accent-soft) !important;
  transform: translateY(-2px);
}

/* Forms: Label and text adjustments */
.form-label {
  font-family: var(--font-sans) !important;
}

.form-input, .form-textarea {
  font-family: var(--font-sans) !important;
  border-radius: var(--radius) !important;
}

/* Caution highlights */
.highlight {
  background-image: linear-gradient(100deg, var(--accent-soft), var(--accent-2), var(--accent)) !important;
}

