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

:root {
  --bg: #020a02;
  --green: #00ff41;
  --green-dim: rgba(0, 255, 65, 0.45);
  --text: #00ff41;
  --text-muted: rgba(0, 255, 65, 0.4);
  --card-bg: #050f05;
  --card-border: rgba(0, 255, 65, 0.14);
  --card-hover-bg: rgba(0, 255, 65, 0.07);
  --card-hover-border: rgba(0, 255, 65, 0.35);
  --card-hover-glow: rgba(0, 255, 65, 0.1);
}

html, body {
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Courier New', Courier, monospace;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Scanlines ── */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 100;
}

/* ── Smoke Layer (green-tinted) ── */

.smoke {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.wisp {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.w1 {
  width: 600px; height: 600px;
  top: -10%; left: -15%;
  background: radial-gradient(ellipse, rgba(0,200,50,0.12) 0%, transparent 70%);
  filter: blur(60px);
  animation: drift1 38s ease-in-out infinite alternate;
}

.w2 {
  width: 500px; height: 500px;
  top: 20%; right: -10%;
  background: radial-gradient(ellipse, rgba(0,180,40,0.09) 0%, transparent 70%);
  filter: blur(80px);
  animation: drift2 45s ease-in-out infinite alternate;
}

.w3 {
  width: 400px; height: 400px;
  bottom: 10%; left: 20%;
  background: radial-gradient(ellipse, rgba(0,220,60,0.10) 0%, transparent 70%);
  filter: blur(70px);
  animation: drift3 32s ease-in-out infinite alternate;
}

.w4 {
  width: 350px; height: 350px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0,160,35,0.07) 0%, transparent 70%);
  filter: blur(90px);
  animation: drift4 50s ease-in-out infinite alternate;
}

.w5 {
  width: 300px; height: 300px;
  top: 5%; right: 30%;
  background: radial-gradient(ellipse, rgba(0,200,50,0.06) 0%, transparent 70%);
  filter: blur(55px);
  animation: drift5 28s ease-in-out infinite alternate;
}

.w6 {
  width: 450px; height: 250px;
  bottom: -5%; right: 5%;
  background: radial-gradient(ellipse, rgba(0,180,40,0.08) 0%, transparent 70%);
  filter: blur(75px);
  animation: drift6 42s ease-in-out infinite alternate;
}

.w7 {
  width: 280px; height: 400px;
  top: 35%; left: 5%;
  background: radial-gradient(ellipse, rgba(0,160,35,0.06) 0%, transparent 70%);
  filter: blur(65px);
  animation: drift7 35s ease-in-out infinite alternate;
}

.w8 {
  width: 500px; height: 300px;
  bottom: 25%; left: 40%;
  background: radial-gradient(ellipse, rgba(0,200,50,0.05) 0%, transparent 70%);
  filter: blur(85px);
  animation: drift8 55s ease-in-out infinite alternate;
}

@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.8; }
  50%  { transform: translate(60px, 40px) scale(1.1); opacity: 1; }
  100% { transform: translate(20px, 80px) scale(0.95); opacity: 0.7; }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50%  { transform: translate(-80px, 60px) scale(1.15); opacity: 0.9; }
  100% { transform: translate(-40px, 100px) scale(1.05); opacity: 0.8; }
}
@keyframes drift3 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.9; }
  50%  { transform: translate(50px, -60px) scale(1.08); opacity: 0.7; }
  100% { transform: translate(80px, -20px) scale(0.92); opacity: 1; }
}
@keyframes drift4 {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50%  { transform: translate(calc(-50% + 70px), calc(-50% - 50px)) scale(1.2); opacity: 0.9; }
  100% { transform: translate(calc(-50% - 30px), calc(-50% + 80px)) scale(1); opacity: 0.7; }
}
@keyframes drift5 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.8; }
  100% { transform: translate(-60px, 50px) scale(1.1); opacity: 0.6; }
}
@keyframes drift6 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(-40px, -70px) scale(1.05); opacity: 0.9; }
}
@keyframes drift7 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.6; }
  100% { transform: translate(60px, -40px) scale(0.9); opacity: 0.8; }
}
@keyframes drift8 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.5; }
  100% { transform: translate(-50px, 60px) scale(1.15); opacity: 0.75; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Layout ── */

main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 80px 20px 60px;
}

/* ── Header ── */

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  text-align: center;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 65, 0.35);
  box-shadow: 0 0 16px rgba(0, 255, 65, 0.2), inset 0 0 16px rgba(0, 255, 65, 0.05);
  overflow: hidden;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  filter: grayscale(30%) brightness(0.85) sepia(20%) hue-rotate(80deg);
}

h1 {
  font-size: 1.6rem; /* name heading */
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green);
  text-shadow: 0 0 12px rgba(0, 255, 65, 0.6), 0 0 30px rgba(0, 255, 65, 0.2);
}


.tagline {
  font-size: 0.85rem; /* subtitle below name */
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tagline::after {
  content: '';
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--green);
  vertical-align: text-bottom;
  margin-left: 3px;
  animation: blink-cursor 0.75s step-end infinite;
}


/* ── Link Cards ── */

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 250px;
}

button.link-card {
  cursor: pointer;
  font-size: inherit;
  text-align: left;
}

button.link-card .icon {
  width: 21px;
  height: 21px;
}

.link-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.link-card::before {
  content: '$ ';
  opacity: 0.35;
  font-size: 0.85rem; /* "$ " prompt prefix on each link card */
}

.link-card:hover {
  background: var(--card-hover-bg);
  border-color: var(--card-hover-border);
  box-shadow: 0 0 20px var(--card-hover-glow), 0 0 40px rgba(0,255,65,0.05);
}

.link-card:active {
  opacity: 0.8;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.6;
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.link-card span {
  font-size: 0.9rem; /* link label text */
  font-weight: 400;
  letter-spacing: 0.03em;
}

.arrow {
  width: 14px;
  height: 14px;
  opacity: 0.25;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.link-card:hover .arrow {
  opacity: 0.7;
  transform: translate(2px, -2px);
}

/* ── Recents ── */

.recents {
  width: 100%;
  max-width: 420px;
  margin-top: 28px;
}

.recents-heading {
  font-size: 0.72rem; /* "// RECENTS" section label */
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-left: 4px;
}

.recents-heading::before {
  content: '# ';
  opacity: 0.5;
}

.recents-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.recent-item:hover {
  background: var(--card-hover-bg);
  border-color: var(--card-hover-border);
}

.recent-label {
  font-size: 0.88rem; /* recent item title — matches link label (~0.9rem) */
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
}

.recent-meta {
  font-size: 0.72rem; /* recent item date/source line */
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── YouTube embed ── */

.embed-item {
  margin-bottom: 4px;
}

.yt-card {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  transition: border-color 0.2s ease;
}

.yt-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: 0 0 20px var(--card-hover-glow);
}

.yt-thumb {
  position: relative;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
  filter: grayscale(40%) brightness(0.7) sepia(30%) hue-rotate(80deg);
}

.yt-thumb:hover img {
  opacity: 0.75;
}

.yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
}

.yt-play svg {
  width: 52px;
  height: 52px;
  fill: var(--green);
  filter: drop-shadow(0 0 12px rgba(0,255,65,0.7));
  transition: transform 0.15s ease, opacity 0.15s ease;
  opacity: 0.9;
}

.yt-thumb:hover .yt-play svg {
  transform: scale(1.1);
  opacity: 1;
}

.yt-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

.yt-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
}

/* ── LinkedIn card ── */

.linkedin-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 4px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.linkedin-card:hover {
  background: var(--card-hover-bg);
  border-color: var(--card-hover-border);
  box-shadow: 0 0 20px var(--card-hover-glow);
}

.li-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.li-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.li-icon svg {
  width: 100%;
  height: 100%;
}

.li-platform {
  flex: 1;
  font-size: 0.72rem; /* "LINKEDIN" label above post title */
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.li-title {
  font-size: 0.88rem; /* LinkedIn post title — matches recent-label and link label */
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}

.li-excerpt {
  font-size: 0.72rem; /* LinkedIn post preview snippet */
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.li-cta {
  font-size: 0.72rem; /* "read on LinkedIn →" call-to-action */
  color: rgba(0, 255, 65, 0.25);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

/* ── Interactive FX ── */


.fx-char {
  position: fixed;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--green);
  pointer-events: none;
  z-index: 999;
  margin: -8px 0 0 -4px;
  animation: char-fly 0.8s ease-out forwards;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.8);
}

.fx-trail {
  position: fixed;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--green);
  pointer-events: none;
  z-index: 999;
  margin: -8px 0 0 -4px;
  animation: trail-fade 0.7s ease-out forwards;
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.7);
}

@keyframes trail-fade {
  0%   { transform: translateY(0);     opacity: 0.8; }
  100% { transform: translateY(-18px); opacity: 0; }
}

.fx-ambient {
  position: fixed;
  font-family: 'Courier New', monospace;
  color: var(--green);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: ambient-float linear forwards;
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.5);
}

@keyframes ambient-float {
  0%   { transform: translateY(0);                    opacity: 0; }
  15%  { opacity: 0.15; }
  80%  { opacity: 0.08; }
  100% { transform: translateY(var(--rise));           opacity: 0; }
}

@keyframes char-fly {
  0%   { transform: translate(0, 0);                       opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy));       opacity: 0; }
}

/* ── Desktop two-column layout ── */

@media (min-width: 481px) {
  main {
    display: grid;
    grid-template-columns: auto 400px;
    grid-template-rows: auto 1fr;
    align-items: start;
    justify-content: center;
    padding: 80px 60px 60px;
  }

  header {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 32px;
    padding-right: 48px;
  }

  .links {
    grid-column: 1;
    grid-row: 2;
    align-items: flex-start;
    padding-right: 48px;
  }

  .recents {
    grid-column: 2;
    grid-row: 1 / span 2;
    border-left: 1px solid var(--card-border);
    padding-left: 48px;
    margin-top: 0;
    max-width: none;
    width: auto;
  }
}

/* ── Footer ── */

.site-footer {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: rgba(0, 255, 65, 0.45);
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

.site-footer::before {
  content: '> ';
  color: var(--green);
  animation: blink 1.1s step-end infinite;
}

/* ── Responsive ── */

@media (max-width: 480px) {
  main {
    padding: 44px 16px 40px;
  }

  /* Scale wisps down and increase blur so they stay soft at small viewport widths */
  .w1 { width: 380px; height: 380px; filter: blur(90px); }
  .w2 { width: 320px; height: 320px; filter: blur(105px); }
  .w3 { width: 260px; height: 260px; filter: blur(90px); }
  .w4 { width: 240px; height: 240px; filter: blur(115px); }
  .w5 { width: 200px; height: 200px; filter: blur(75px); }
  .w6 { width: 280px; height: 160px; filter: blur(95px); }
  .w7 { width: 180px; height: 260px; filter: blur(85px); }
  .w8 { width: 320px; height: 200px; filter: blur(105px); }

  h1 { font-size: 1.1rem; }          /* name heading on mobile */
  .tagline { font-size: 0.72rem; }   /* subtitle on mobile */
  .link-card span { font-size: 0.8rem; }  /* link label on mobile */
  .recents { margin-top: 32px; }
  .recent-item { padding: 9px 12px; }
  .linkedin-card { padding: 10px 12px; }
  .yt-meta { padding: 8px 12px; }
  .recents-heading { font-size: 0.65rem; }  /* section label on mobile */
  .recent-label, .li-title { font-size: 0.8rem; }  /* recent/post titles on mobile — matches link label */
  .recent-meta, .li-platform, .li-excerpt, .li-cta { font-size: 0.65rem; }  /* secondary/meta text on mobile */

  .links {
    max-width: 100%;
  }

  .site-footer { font-size: 0.62rem; }
}
