/* =====================================================================
   Trenton Michael — styles
   Colors live in :root below. Change them there to re-theme the site.
   ===================================================================== */

:root {
  --bg: #09080f;
  --bg-raise: #110f1b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(167, 139, 250, 0.4);

  --text: #f5f3fb;
  --muted: #b4aec9;
  --faint: #8d87a6;

  --purple: #7c3aed;
  --violet: #a78bfa;
  --violet-soft: #c4b5fd;
  --blue: #5b8cff;
  --blue-soft: #7dd3fc;

  --grad: linear-gradient(120deg, #7c3aed 0%, #4f46e5 55%, #2563eb 100%);
  --grad-text: linear-gradient(100deg, #c4b5fd 0%, #a78bfa 35%, #7dd3fc 100%);
  --glow: 0 0 0 1px rgba(167, 139, 250, 0.25), 0 18px 50px -12px rgba(124, 58, 237, 0.55);

  --radius: 24px;
  --radius-sm: 14px;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 68px;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Purple/blue atmosphere behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(55vmax 55vmax at 90% -10%, rgba(91, 140, 255, 0.16), transparent 60%),
    radial-gradient(60vmax 60vmax at -15% 5%, rgba(124, 58, 237, 0.22), transparent 60%),
    radial-gradient(50vmax 40vmax at 50% 115%, rgba(124, 58, 237, 0.12), transparent 60%);
}

/* Film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--violet-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-soft);
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

/* ---------- Buttons ---------- */
.btn {
  --lift: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transform: translateY(var(--lift));
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s;
}
.btn:hover { --lift: -2px; }
.btn:active { --lift: 0px; }

.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.18), 0 16px 40px -10px rgba(124, 58, 237, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.btn-lg { min-height: 54px; padding: 0.95rem 1.7rem; }
.btn-xl { min-height: 62px; padding: 1.1rem 2.2rem; font-size: 1.125rem; }

.btn-icon { width: 1.15em; height: 1.15em; flex-shrink: 0; display: inline-flex; }
.btn-icon svg { width: 100%; height: 100%; }

.text-link {
  display: inline-block;
  color: var(--violet-soft);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 181, 253, 0.35);
  transition: border-color 0.2s, color 0.2s;
}
.text-link:hover { color: #fff; border-color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(9, 8, 15, 0.78);
  border-bottom-color: var(--border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links .nav-cta {
  color: var(--text);
  border: 1px solid var(--border-strong);
  margin-left: 0.4rem;
}
.nav-links .nav-cta:hover { background: rgba(124, 58, 237, 0.2); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); background: var(--text); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); background: var(--text); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--gutter) 1.5rem;
    background: rgba(9, 8, 15, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .site-header.is-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s, transform 0.25s var(--ease);
  }
  .nav-links a {
    padding: 0.9rem 0.25rem;
    border-radius: 0;
    font-size: 1.1rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .nav-links .nav-cta {
    margin: 1rem 0 0;
    padding: 0.9rem;
    border-radius: 999px;
    text-align: center;
    background: var(--grad);
    border: 0;
  }
}

/* ---------- Social icons ---------- */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.social-icons a {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.social-icons a:hover {
  color: #fff;
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -10px rgba(124, 58, 237, 0.8);
}
.social-icons svg { width: 20px; height: 20px; }
.social-icons-sm a { width: 42px; height: 42px; }
.social-icons-sm svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: calc(100svh - var(--header-h) - 8rem);
}

.hero-title {
  margin-top: 1.25rem;
  font-size: clamp(3.4rem, 10vw, 7.75rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.hero-first, .hero-last { display: block; }
.hero-last {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em; /* keeps descenders from clipping */
}

.hero-tagline {
  margin-top: 1.5rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-tagline em {
  font-style: italic;
  position: relative;
  white-space: nowrap;
  color: var(--violet-soft);
}
.hero-tagline em::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  bottom: -0.18em;
  height: 0.32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.5C22 3 45 2.5 60 6s38 4 58-3' fill='none' stroke='%237dd3fc' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.hero-intro {
  margin-top: 1.25rem;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

#hero-socials { margin-top: 2rem; }

/* Portrait */
.hero-visual { display: flex; flex-direction: column; align-items: center; }

.portrait {
  position: relative;
  width: min(100%, 440px);
}

.portrait-glow {
  position: absolute;
  inset: 6% -8% -6% -8%;
  border-radius: 40%;
  background:
    radial-gradient(closest-side at 30% 35%, rgba(124, 58, 237, 0.8), transparent),
    radial-gradient(closest-side at 75% 70%, rgba(59, 130, 246, 0.6), transparent);
  filter: blur(48px);
  opacity: 0.7;
  z-index: 0;
}

.portrait-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(160deg, #2a1650, #121027 60%, #0f1a3a);
  border: 1px solid rgba(196, 181, 253, 0.28);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 8px rgba(255, 255, 255, 0.02);
  transform: rotate(2deg);
  transition: transform 0.6s var(--ease);
}
.portrait:hover .portrait-frame { transform: rotate(0.5deg) scale(1.01); }

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.portrait-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.7), transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.55), transparent 60%);
}
.portrait-frame.no-photo img { display: none; }
.portrait-frame.no-photo .portrait-fallback { display: grid; }

.portrait-tag {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  right: -0.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: rgba(17, 15, 27, 0.7);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: rotate(4deg);
}

.sticker {
  position: absolute;
  z-index: 2;
  left: -1.5rem;
  bottom: 1.75rem;
  max-width: 78%;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: #f5f3fb;
  color: #17132a;
  text-decoration: none;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.7);
  transform: rotate(-4deg);
  transition: transform 0.3s var(--ease);
}
.sticker:hover { transform: rotate(-2deg) translateY(-3px); }
.sticker-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5b21b6;
}
.sticker-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 2.5rem;
  }
  .hero-visual { order: -1; }
  .portrait { width: min(78%, 340px); }
  .portrait-tag { right: -0.5rem; font-size: 0.72rem; }
  .sticker { left: -1rem; bottom: 1rem; }
}

@media (max-width: 520px) {
  .hero { padding-top: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-grid { gap: 2rem; }
  .portrait { width: min(66%, 260px); }
  .portrait-frame { border-radius: 24px; }
  .sticker { padding: 0.55rem 0.75rem; max-width: 95%; }
  .sticker-text { font-size: 0.9rem; }
}

/* ---------- Interests marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(17, 15, 27, 0.55);
  padding-block: 1.1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
}
.marquee-item::after {
  content: "✦";
  font-size: 0.8em;
  color: var(--violet);
}
.marquee-item:nth-child(3n + 2) { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2,
.idea h2,
.support h2 {
  margin-top: 1rem;
  font-size: clamp(2.3rem, 5.5vw, 4.25rem);
}
.section-intro {
  margin-top: 1rem;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ---------- Latest video ---------- */
.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(140deg, #1b1236, #0d0c18 55%, #0c1630);
  border: 1px solid rgba(196, 181, 253, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 40px 120px -40px rgba(124, 58, 237, 0.65), 0 20px 60px -30px rgba(37, 99, 235, 0.5);
}
.video-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
  color: #fff;
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 0.4s, transform 0.8s var(--ease);
}
.video-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(9, 8, 15, 0.55) 100%);
  pointer-events: none;
}
.video-facade:hover img { opacity: 1; transform: scale(1.02); }
.video-facade.no-thumb {
  background:
    radial-gradient(60% 80% at 25% 30%, rgba(124, 58, 237, 0.45), transparent 70%),
    radial-gradient(60% 80% at 80% 75%, rgba(37, 99, 235, 0.35), transparent 70%),
    #0d0c18;
}

.play-btn {
  position: absolute;
  z-index: 1;
  top: 50%; left: 50%;
  width: clamp(64px, 10vw, 96px);
  height: clamp(64px, 10vw, 96px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 10px rgba(124, 58, 237, 0.2), 0 20px 50px -10px rgba(124, 58, 237, 0.9);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.play-btn svg { width: 40%; height: 40%; margin-left: 8%; }
.video-facade:hover .play-btn,
.video-facade:focus-visible .play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 0 16px rgba(124, 58, 237, 0.18), 0 24px 60px -10px rgba(124, 58, 237, 1);
}
.video-facade:focus-visible { outline-offset: -6px; }

.video-badge {
  position: absolute;
  z-index: 1;
  top: 1rem; left: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(9, 8, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.video-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}
.video-empty-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px dashed rgba(196, 181, 253, 0.5);
  color: var(--violet-soft);
}
.video-empty-icon svg { width: 26px; height: 26px; margin-left: 3px; }
.video-empty strong {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}
.video-empty span { color: var(--muted); max-width: 40ch; }

.latest-info {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
}
.latest-text { flex: 1 1 420px; min-width: 0; }
.latest-video-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.025em;
}
.latest-video-desc {
  margin-top: 0.75rem;
  max-width: 62ch;
  color: var(--muted);
  white-space: pre-line;
}
.latest-text .text-link { margin-top: 1rem; }

@media (max-width: 520px) {
  .latest-info .btn { width: 100%; }
}

/* ---------- The idea ---------- */
.idea-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.idea h2 { max-width: 12ch; }

.idea-body {
  display: grid;
  gap: 1.25rem;
  padding-top: 0.4rem;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.6;
  color: var(--muted);
}
.idea-body p:first-child { color: var(--text); }
.idea-body p.is-punch {
  font-family: var(--font-display);
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.5rem 1.4rem 1.6rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.step:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--violet);
}
.step:last-child::before { content: "??"; color: var(--blue-soft); }
.step span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.step:nth-child(2) { transform: rotate(-0.6deg); }
.step:nth-child(3) { transform: rotate(0.8deg); }
.step:nth-child(2):hover, .step:nth-child(3):hover { transform: translateY(-3px); }

@media (max-width: 860px) {
  .idea-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
  .step::before { margin-bottom: 0.5rem; }
}

/* ---------- Things I've tried ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
}

.project-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raise);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--glow);
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(140deg, #2a1650, #141026 55%, #10204a);
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .project-thumb img { transform: scale(1.04); }
.project-thumb-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.18);
}
.project-play {
  position: absolute;
  right: 0.9rem; bottom: 0.9rem;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(124, 58, 237, 0.9);
}
.project-play svg { width: 16px; height: 16px; margin-left: 2px; }

.project-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.35rem 1.4rem 1.5rem;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--faint);
}
.chip {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet-soft);
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(167, 139, 250, 0.25);
}
.project-title {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.project-title a { text-decoration: none; }
/* Makes the whole card clickable */
.project-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.project-title a:focus-visible { outline: none; }
.project-card:has(.project-title a:focus-visible) { outline: 3px solid var(--violet-soft); outline-offset: 3px; }
.project-desc { color: var(--muted); font-size: 0.98rem; }
.tried-more { margin-top: 2.5rem; }
@media (max-width: 520px) { .tried-more { width: 100%; } }

/* ---------- Support ---------- */
.support-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  border-radius: calc(var(--radius) + 8px);
  text-align: center;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(124, 58, 237, 0.45), transparent 60%),
    radial-gradient(70% 120% at 100% 100%, rgba(37, 99, 235, 0.35), transparent 60%),
    var(--bg-raise);
  border: 1px solid rgba(196, 181, 253, 0.22);
}
.support-panel .eyebrow { justify-content: center; }
.support-panel h2 { max-width: 16ch; margin-inline: auto; }
.support-text {
  max-width: 56ch;
  margin: 1.25rem auto 0;
  color: #d6d1e6;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
}
.support-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
}
.support-items li {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
#support-btn { margin-top: 2.5rem; }
.support-alt { margin-top: 1.25rem; font-size: 0.95rem; }
@media (max-width: 520px) { #support-btn { width: 100%; } }

/* ---------- Social tiles ---------- */
.social-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem;
}
.social-tile {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.social-tile:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: rgba(124, 58, 237, 0.1);
  box-shadow: var(--glow);
}
.social-tile-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.social-tile-icon svg { width: 24px; height: 24px; }
.social-tile strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.social-tile span.verb {
  display: inline-flex;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.social-tile:hover span.verb { color: var(--violet-soft); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(2rem, 6vw, 4rem);
  padding-block: 3rem;
  border-top: 1px solid var(--border);
  background: rgba(9, 8, 15, 0.6);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-line {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.footer-copy { color: var(--faint); font-size: 0.9rem; }
@media (max-width: 720px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Setup hints (only shown when previewing on your computer) ---------- */
.setup-hint {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(125, 211, 252, 0.5);
  background: rgba(56, 189, 248, 0.06);
  color: #bae6fd;
  font-size: 0.9rem;
  line-height: 1.5;
}
.setup-hint code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  color: #fff;
}
.setup-hint b { color: #fff; }
.hero-visual > .setup-hint { margin-top: 2.5rem; max-width: 440px; }

/* ---------- Fade-in on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Respect "reduce motion" settings ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
