/* ════════════════════════════════════════════════════════
   Giant Mushroom Studio — portfolio styles.

   Design system in plain CSS custom properties, no build
   step. Three pillars:
     1. Dark forest palette (deep aubergine + spore lavender +
        mushroom red + cream).
     2. Bricolage Grotesque for display, Inter for body, JetBrains
        Mono for the few code-shaped accents.
     3. Animation everywhere — but the heavy lifting is offloaded
        to compositor-only properties (transform / opacity) so
        the scroll stays buttery on phones.
   ════════════════════════════════════════════════════════ */

/* ── Tokens ────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:        #0a0712;
  --bg-2:      #13101e;
  --bg-3:      #1a1428;
  --surface:   rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --hairline:  rgba(255, 255, 255, 0.08);

  /* Spore palette — the funky bit */
  --spore:     #c084fc;       /* lavender */
  --cap:       #f87171;       /* mushroom red */
  --gold:      #fbbf24;       /* cap dot */
  --mint:      #5eead4;       /* glow */
  --indigo:    #6366f1;
  --rose:      #fb7185;

  /* Text */
  --text:      #f5f0ff;
  --text-mid:  #b8aed3;
  --text-dim:  #6f6488;

  /* Display + body fonts */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Easings */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-pop:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Ambient gradient mesh painted via a fixed pseudo-element
   instead of `background-attachment: fixed` on body, which
   iOS Safari does not honour. This now also carries the hero's
   former aurora gradients (stronger, sized to viewport units) —
   previously they lived inside .hero-aurora which was bound to
   the hero's overflow:hidden box, creating a visible horizontal
   seam where the colours abruptly stopped as the user scrolled
   past the hero. Painting them onto the viewport-fixed mesh
   means the colours are consistent everywhere on the page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(60vw 50vh at 20% 25%, rgba(192, 132, 252, 0.28), transparent 60%),
    radial-gradient(55vw 50vh at 85% 40%, rgba(248, 113, 113, 0.20), transparent 60%),
    radial-gradient(50vw 45vh at 50% 85%, rgba(94, 234, 212, 0.16), transparent 60%),
    radial-gradient(70vw 60vh at 0% 100%, rgba(99, 102, 241, 0.14), transparent 60%);
  animation: aurora 18s ease-in-out infinite;
}
@keyframes aurora {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.04); }
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }

/* ── Cursor follower ──────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  top: 0; left: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.22), transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate3d(calc(var(--x, 50vw) - 50%), calc(var(--y, 50vh) - 50%), 0);
  transition: transform 200ms var(--ease-out);
  mix-blend-mode: screen;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ── Spore field ──────────────────────────────────────── */
.spores {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.spores span {
  position: absolute;
  bottom: -30px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold), var(--cap) 60%, transparent 80%);
  filter: blur(0.5px);
  opacity: 0;
  animation: drift var(--d) linear infinite;
  animation-delay: var(--t);
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.6);
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(0.7); opacity: 0; }
  10%  { opacity: 0.9; }
  50%  { transform: translate3d(20px, -50vh, 0) scale(1); opacity: 0.7; }
  100% { transform: translate3d(-20px, -110vh, 0) scale(0.5); opacity: 0; }
}

/* ── Top nav ──────────────────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  background: rgba(10, 7, 18, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 4px 16px rgba(192, 132, 252, 0.5));
  animation: bob 4s var(--ease-out) infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-3px) rotate(1deg); }
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand-name em {
  font-style: italic;
  background: linear-gradient(120deg, var(--spore), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
  padding: 6px 0;
  transition: color 200ms;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cap), var(--spore));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-out);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: linear-gradient(135deg, var(--cap), var(--spore));
  color: #1a0820 !important;
  font-weight: 700;
  padding: 8px 18px !important;
  border-radius: 999px;
  transition: transform 220ms var(--ease-pop), box-shadow 220ms;
  box-shadow: 0 4px 18px rgba(192, 132, 252, 0.3);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(192, 132, 252, 0.5); }

/* Hamburger toggle — desktop hides it, mobile shows it. */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  width: 42px; height: 42px;
  padding: 0;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color 200ms, background 200ms;
  /* Defensive — narrow phone widths can let the wide brand text
     overflow on top of the button and intercept taps. */
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.nav-toggle:hover { border-color: var(--spore); }
.nav-toggle-bar {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 240ms var(--ease-out), opacity 200ms;
  transform-origin: center;
}
.topnav.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topnav.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.topnav.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }

  /* Slide-down panel attached to the bottom of the sticky nav.
     Hidden by default; .topnav.open reveals it. */
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 20px;
    background: rgba(10, 7, 18, 0.92);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 240ms var(--ease-out), opacity 200ms;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--hairline);
  }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta {
    margin-top: 12px;
    text-align: center;
    padding: 12px 18px !important;
  }

  .topnav.open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .topnav { padding: 14px 18px; }
  .brand-name { font-size: 14px; }
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(60px, 10vw, 140px) clamp(20px, 4vw, 48px) clamp(80px, 12vw, 180px);
  z-index: 2;
  overflow: hidden;
}
/* The former in-hero .hero-aurora element has been removed —
   its job (colourful ambient gradients) is now done by
   body::before, which is viewport-fixed and so cannot create
   a visible seam at the bottom of the hero. */

.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 9.5vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  display: flex; flex-wrap: wrap; gap: 0.18em 0.28em;
}
.hero-title .line {
  display: inline-block;
  /* opt-in font-variation slot for the variable-width axis */
  font-variation-settings: 'opsz' 96, 'wght' 700;
}
.word-pop {
  opacity: 0;
  transform: translateY(40px) rotate(-2deg);
  animation: pop 800ms var(--ease-pop) forwards;
}
.word-pop:nth-child(1) { animation-delay: 100ms; }
.word-pop:nth-child(2) { animation-delay: 220ms; }
.word-pop:nth-child(3) { animation-delay: 340ms; }
.word-pop:nth-child(5) { animation-delay: 580ms; }
@keyframes pop {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.rainbow {
  background: linear-gradient(120deg, #f87171 0%, #fbbf24 25%, #5eead4 50%, #c084fc 75%, #f87171 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow-shift 9s linear infinite, pop 800ms var(--ease-pop) 460ms forwards;
  opacity: 0;
  transform: translateY(40px) rotate(-2deg);
}
@keyframes rainbow-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 0 36px;
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-radius: 999px;
  transition: transform 240ms var(--ease-pop), box-shadow 240ms, background 240ms;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cap), var(--spore));
  color: #1a0820;
  box-shadow: 0 6px 28px rgba(192, 132, 252, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 38px rgba(192, 132, 252, 0.55);
}
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}

/* Marquee */
.marquee {
  margin-top: 40px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  -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;
  gap: 36px;
  white-space: nowrap;
  animation: scroll-left 38s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-mid);
}
.marquee-track span { flex-shrink: 0; }
@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Scroll cue at the bottom of the hero */
.scroll-cue {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--text-dim);
  border-radius: 999px;
  display: block;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  border-radius: 999px;
  background: var(--text);
  animation: cue 2s var(--ease-out) infinite;
}
@keyframes cue {
  0%   { transform: translate(-50%, 0); opacity: 1; }
  60%  { transform: translate(-50%, 14px); opacity: 0; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* ── Section frame ────────────────────────────────────── */
section {
  padding: clamp(80px, 10vw, 140px) clamp(20px, 4vw, 48px);
  position: relative;
  z-index: 2;
}
.section-head { max-width: 900px; margin: 0 auto 64px; text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 18px;
  padding: 4px 14px;
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.06);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}
.section-title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--cap), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Reveal-on-scroll baseline ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* ── About section ────────────────────────────────────── */
.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 64px;
  align-items: start;
}
.about-copy p {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.75;
  color: var(--text-mid);
  margin: 0 0 18px;
}
.about-copy em {
  color: var(--text);
  font-style: italic;
}
.about-copy .signoff {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  margin-top: 28px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat-card {
  padding: 24px 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
  transition: transform 320ms var(--ease-pop), border-color 320ms;
}
.stat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 320ms;
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(192, 132, 252, 0.3); }
.stat-card:hover::before { opacity: 1; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex; align-items: baseline; gap: 4px;
}
.stat-num .suffix {
  font-size: 0.5em;
  color: var(--mint);
  font-weight: 600;
}
.stat-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-mid);
  letter-spacing: 0.02em;
}

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { grid-template-columns: 1fr 1fr; max-width: 480px; }
}

/* ── Apps showcase cards ─────────────────────────────── */
.apps {
  max-width: 1200px;
  margin: 0 auto;
}
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 60px 0;
  border-top: 1px solid var(--hairline);
}
.showcase:first-of-type { border-top: 0; padding-top: 0; }
.showcase.reverse { direction: rtl; }
.showcase.reverse > * { direction: ltr; }

.showcase-num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.showcase-num::before {
  content: '';
  position: absolute;
  top: 50%; left: -18px;
  width: 12px; height: 1px;
  background: var(--accent);
}
.showcase-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 18px;
}
.showcase-pitch {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: var(--text-mid);
  margin: 0 0 22px;
  max-width: 480px;
}
.showcase-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.showcase-tags li {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-mid);
}
.showcase-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  padding: 6px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: gap 240ms var(--ease-out);
}
.showcase-cta:hover { gap: 14px; }

/* Showcase art tiles. Each has a glow blob, a giant glyph in the
   middle, and a flavour-specific deco layer. */
.showcase-art {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 28px;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--accent) 22%, transparent) 0%,
    color-mix(in srgb, var(--accent-2) 80%, transparent) 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transform-style: preserve-3d;
  transition: transform 400ms var(--ease-out);
}
.showcase-art:hover { transform: scale(1.02) rotateX(2deg) rotateY(-2deg); }
.art-glow {
  position: absolute;
  width: 70%; height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 60%, transparent), transparent 70%);
  filter: blur(40px);
  animation: blob 14s ease-in-out infinite;
}
@keyframes blob {
  0%, 100% { transform: translate(-10%, -5%) scale(1); }
  50%      { transform: translate(10%,  5%) scale(1.15); }
}
.art-symbol {
  font-size: clamp(120px, 18vw, 220px);
  line-height: 1;
  color: var(--text);
  text-shadow:
    0 0 30px color-mix(in srgb, var(--accent) 80%, transparent),
    0 0 60px color-mix(in srgb, var(--accent) 40%, transparent);
  position: relative; z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  animation: spin-slow 60s linear infinite;
}
.showcase.reverse .art-symbol { animation-direction: reverse; }
@keyframes spin-slow {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(2deg); }
}

/* TableTop Forge: light grid lines */
.art-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 70%);
}

/* Cronos: orbital rings */
.art-rings {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.art-rings::before, .art-rings::after {
  content: '';
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 50%;
  animation: ring-spin 30s linear infinite;
}
.art-rings::before { width: 70%; height: 70%; }
.art-rings::after  { width: 90%; height: 90%; animation-direction: reverse; animation-duration: 40s; }
@keyframes ring-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* RuneScribe: floating glyphs */
.art-runes {
  position: absolute; inset: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12% 8%;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 32px);
  color: color-mix(in srgb, var(--accent) 55%, transparent);
  padding: 12%;
  pointer-events: none;
}
.art-runes span {
  animation: rune-float 6s ease-in-out infinite;
}
.art-runes span:nth-child(2n)   { animation-delay: -1s; }
.art-runes span:nth-child(3n)   { animation-delay: -2.5s; }
.art-runes span:nth-child(4n+1) { animation-delay: -4s; }
@keyframes rune-float {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(-8px); opacity: 1; }
}

/* WhiteHole: equaliser bars */
.art-bars {
  position: absolute;
  bottom: 8%; left: 8%; right: 8%;
  display: flex; gap: 4%;
  align-items: flex-end;
  height: 35%;
  pointer-events: none;
}
.art-bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent));
  border-radius: 4px 4px 0 0;
  animation: eq 1.4s var(--ease-out) infinite;
}
.art-bars span:nth-child(1)  { animation-delay: -0.0s; --h: 60%; }
.art-bars span:nth-child(2)  { animation-delay: -0.1s; --h: 80%; }
.art-bars span:nth-child(3)  { animation-delay: -0.2s; --h: 50%; }
.art-bars span:nth-child(4)  { animation-delay: -0.3s; --h: 90%; }
.art-bars span:nth-child(5)  { animation-delay: -0.4s; --h: 70%; }
.art-bars span:nth-child(6)  { animation-delay: -0.5s; --h: 100%; }
.art-bars span:nth-child(7)  { animation-delay: -0.6s; --h: 65%; }
.art-bars span:nth-child(8)  { animation-delay: -0.7s; --h: 85%; }
.art-bars span:nth-child(9)  { animation-delay: -0.8s; --h: 55%; }
.art-bars span:nth-child(10) { animation-delay: -0.9s; --h: 75%; }
.art-bars span:nth-child(11) { animation-delay: -1.0s; --h: 45%; }
.art-bars span:nth-child(12) { animation-delay: -1.1s; --h: 95%; }
@keyframes eq {
  0%, 100% { height: 30%; }
  50%      { height: var(--h, 80%); }
}

/* Inkus: ink ripples spreading outward, big enough to sweep past the nib */
.art-ripple {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.art-ripple span {
  position: absolute;
  width: 42%; aspect-ratio: 1;
  border: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 50%;
  animation: ink-ripple 5.2s ease-out infinite;
}
.art-ripple span:nth-child(2) { animation-delay: -1.3s; }
.art-ripple span:nth-child(3) { animation-delay: -2.6s; }
.art-ripple span:nth-child(4) { animation-delay: -3.9s; }
@keyframes ink-ripple {
  0%   { transform: scale(0.35); opacity: 0; }
  12%  { opacity: 0.75; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ChoreMe: a checklist ticking itself off */
.art-checks {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: 9%;
  padding: 26%;
  pointer-events: none;
}
.art-checks span { display: flex; align-items: center; gap: 12px; }
.art-checks span::before {
  content: '';
  width: 16px; height: 16px;
  flex: none;
  border-radius: 5px;
  border: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  animation: check-tick 5s ease-in-out infinite;
}
.art-checks span::after {
  content: '';
  flex: 1; height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 32%, transparent);
}
.art-checks span:nth-child(2)::before { animation-delay: -1.25s; }
.art-checks span:nth-child(3)::before { animation-delay: -2.5s; }
.art-checks span:nth-child(4)::before { animation-delay: -3.75s; }
@keyframes check-tick {
  0%, 35%  { background: transparent; box-shadow: none; }
  50%, 90% { background: color-mix(in srgb, var(--accent) 75%, transparent);
             box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 50%, transparent); }
  100%     { background: transparent; box-shadow: none; }
}

@media (max-width: 880px) {
  .showcase { grid-template-columns: 1fr; gap: 40px; padding: 50px 0; }
  .showcase.reverse { direction: ltr; }
  .showcase-art { order: -1; }
}

/* ── Manifesto ───────────────────────────────────────── */
.manifesto-list {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.manifesto-list li {
  padding: 28px 32px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
  transition: transform 320ms var(--ease-pop), border-color 320ms;
}
.manifesto-list li::before {
  content: '✕';
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--cap);
  opacity: 0.5;
  transition: opacity 320ms, transform 320ms;
}
.manifesto-list li:hover {
  transform: translateX(4px);
  border-color: rgba(248, 113, 113, 0.4);
}
.manifesto-list li:hover::before {
  opacity: 1;
  transform: translateY(-50%) rotate(90deg);
}
.manifesto-coda {
  max-width: 720px;
  margin: 64px auto 0;
  font-size: clamp(18px, 2vw, 24px);
  font-family: var(--font-display);
  text-align: center;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ── Contact / footer ────────────────────────────────── */
.contact {
  text-align: center;
  border-top: 1px solid var(--hairline);
  padding-bottom: 80px;
}
.contact-inner { max-width: 800px; margin: 0 auto; }
.contact-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 16px 0 36px;
}
.contact-title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--cap), var(--spore));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-mail {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 36px);
  padding: 18px 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cap), var(--spore));
  color: #1a0820;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 50px rgba(192, 132, 252, 0.4);
  transition: transform 280ms var(--ease-pop), box-shadow 280ms;
  word-break: break-word;
}
.contact-mail:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 60px rgba(192, 132, 252, 0.6);
}

.contact-row {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.link-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text);
  transition: transform 220ms var(--ease-pop), background 220ms, border-color 220ms;
}
.link-pill:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: rgba(192, 132, 252, 0.4);
}
.contact-foot {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Reduced motion — respect the setting ───────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .word-pop, .rainbow { opacity: 1 !important; transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── App group dividers ──────────────────────────────────
   Splits the Apps section into "For the table" (tabletop
   tools) and "For everyday life" (utility apps). */
.apps-group {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 0 8px;
}
.apps-group .line {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.apps-group .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
/* A showcase right after a group label needs no extra top rule. */
.apps-group + .showcase { border-top: 0; padding-top: 28px; }
@media (max-width: 760px) {
  .apps-group { padding: 36px 0 4px; gap: 14px; }
}
