  /* ---------- Tokens ---------- */
  /* Premium dark theme is the default identity; a light variant is kept for
     users who explicitly prefer it (data-theme="light") or whose OS says so
     with no dark support signalled. */
  :root {
    color-scheme: dark;
    --bg: #060b0a;
    --bg-1: #0a1512;
    --bg-2: #0d1c17;
    --surface: rgba(20, 34, 29, 0.6);
    --surface-solid: #0e1a16;
    --surface-2: rgba(30, 48, 41, 0.55);
    --text: #eef6f1;
    --muted: #93a8a0;
    --line: rgba(148, 189, 172, 0.16);
    --line-strong: rgba(148, 189, 172, 0.28);
    --accent: #4ee6a8;
    --accent-soft: #a8f5d1;
    --accent-2: #5fd4f0;
    --on-accent: #06120d;
    --spot: rgba(78, 230, 168, 0.14);
    --dot: #16302a;
    --dot-hot: #4ee6a8;
    --glow: rgba(78, 230, 168, 0.35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
    --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
    --body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  }
  /* Dark is the site's fixed identity (not OS-driven) — matches the premium
     SaaS brief. data-theme="light" is kept wired up for a future manual
     toggle in the UI; nothing currently sets it automatically. */
  :root[data-theme="light"] {
    color-scheme: light;
    --bg: #f5f9f6;
    --bg-1: #eef5f0;
    --bg-2: #e7f1ea;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-solid: #ffffff;
    --surface-2: rgba(226, 241, 232, 0.7);
    --text: #0d2a20;
    --muted: #4d6b5d;
    --line: rgba(13, 42, 32, 0.1);
    --line-strong: rgba(13, 42, 32, 0.18);
    --accent: #0e9a5c;
    --accent-soft: #0b7a48;
    --accent-2: #0e7490;
    --on-accent: #ffffff;
    --spot: rgba(14, 154, 92, 0.14);
    --dot: #cfe6da;
    --dot-hot: #0e9a5c;
    --glow: rgba(14, 154, 92, 0.22);
    --shadow-sm: 0 1px 2px rgba(13, 42, 32, 0.06);
    --shadow-md: 0 12px 32px -14px rgba(13, 42, 32, 0.18);
    --shadow-lg: 0 24px 60px -20px rgba(13, 42, 32, 0.22);
  }

  /* ---------- Base ---------- */
  *, *::before, *::after { box-sizing: border-box; }
  :root {
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  html { scroll-behavior: smooth; scroll-padding-top: env(safe-area-inset-top, 0px); }
  body {
    margin: 0;
    background:
      radial-gradient(1100px 620px at 82% -8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
      radial-gradient(900px 560px at -10% 12%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 55%),
      linear-gradient(180deg, var(--bg-1), var(--bg) 32%, var(--bg-2));
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--body);
    font-size: 1.05rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }
  img, svg { max-width: 100%; }
  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
  h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.025em; }

  /* ---------- Hero ---------- */
  .hero { position: relative; overflow: hidden; min-height: min(100svh, 900px); display: flex; }
  .dotgrid {
    position: absolute; inset: 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
  .dotgrid canvas { display: block; width: 100%; height: 100%; }
  .hero-inner { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; padding-top: 1.5rem; padding-bottom: 6rem; }
  .topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1.5rem; }
  .brand { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
  .role { color: var(--muted); font-weight: 500; }
  .hero-main { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 3rem; }
  .hero-title {
    font-size: clamp(2.4rem, 5.8vw, 5rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.035em;
    max-width: 12em;
  }
  .lead { max-width: 34rem; margin: 1.75rem 0 0; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); }
  .cta { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 2.25rem; }
  .rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: .95s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  .btn {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .85rem 1.5rem; border-radius: 999px;
    font-weight: 600; font-size: 1rem; text-decoration: none;
    border: 1px solid var(--line);
    transition: background .2s, border-color .2s, color .2s, box-shadow .25s, transform .2s;
  }
  .btn svg { width: 1.1em; height: 1.1em; }
  .btn-primary {
    background: linear-gradient(135deg, var(--accent-soft), var(--accent));
    color: var(--on-accent); border-color: transparent;
    box-shadow: 0 8px 24px -8px var(--glow), var(--shadow-sm);
  }
  .btn-primary:hover { filter: brightness(1.06); box-shadow: 0 12px 32px -8px var(--glow), var(--shadow-sm); transform: translateY(-1px); }
  .btn-ghost { background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text); }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
  @media (prefers-reduced-motion: reduce) { .btn-primary:hover, .btn-ghost:hover { transform: none; } }
  .btn-lg { font-family: var(--display); font-size: clamp(1.05rem, 3.4vw, 1.5rem); padding: 1rem 1.9rem; letter-spacing: -0.01em; overflow-wrap: anywhere; }

  /* ---------- React Bits-style text effects ---------- */
  .bt-seg { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(-.35em);
    transition: opacity .8s ease, filter .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
  .bt-seg.in { opacity: 1; filter: blur(0); transform: none; }

  .shiny {
    color: transparent;
    background: linear-gradient(110deg, var(--text) 42%, var(--accent) 50%, var(--text) 58%);
    background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text;
    animation: shine 3.6s linear infinite;
  }
  @keyframes shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }

  .gradient {
    color: transparent;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    animation: drift 7s linear infinite;
  }
  @keyframes drift { to { background-position: -200% 0; } }

  .decrypt { position: relative; display: inline-block; }
  .decrypt-sizer { visibility: hidden; }
  .decrypt-live { position: absolute; left: 0; top: 0; white-space: nowrap; }

  /* ---------- Marquee (ScrollVelocity) ---------- */
  .marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 1.15rem 0; white-space: nowrap; }
  .track { display: inline-flex; will-change: transform; }
  .mq-group { display: inline-flex; }
  .mq-item {
    display: inline-flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem;
    font-family: var(--display); font-weight: 600; letter-spacing: -0.02em;
    font-size: clamp(1.4rem, 3vw, 2.1rem); color: var(--muted);
  }
  .mq-item::after { content: ''; width: .5rem; height: .5rem; background: var(--accent); transform: rotate(45deg); flex: none; }
  .marquee.static { white-space: normal; }
  .marquee.static .track { flex-wrap: wrap; }
  .marquee.static .mq-group { flex-wrap: wrap; }

  /* ---------- Sections ---------- */
  .block { padding-top: clamp(4rem, 9vw, 7rem); }
  .block h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; margin-bottom: 2rem; }

  /* ---------- Spotlight / tilt cards ---------- */
  .spot {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 20px; padding: 1.6rem;
    text-decoration: none; color: inherit; display: block;
    box-shadow: var(--shadow-md);
    transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s;
  }
  .spot::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 60%);
    opacity: 0; transition: opacity .3s;
  }
  .spot:hover::before { opacity: 1; }
  .spot.tilt { will-change: transform; }
  .spot.tilt:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
  .spot:not(.tilt):hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
  @media (prefers-reduced-motion: reduce) { .spot:not(.tilt):hover { transform: none; } }

  .services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.25rem; }
  .service h3 { font-size: 1.4rem; font-weight: 650; margin-bottom: .6rem; }
  .service p { margin: 0; color: var(--muted); }
  .service .ico { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface-2)), var(--surface-2)); border: 1px solid var(--line); color: var(--accent); margin-bottom: 1.1rem; }
  .service .ico svg { width: 55%; height: 55%; }

  .projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.25rem; }
  .project { display: flex; flex-direction: column; gap: .75rem; }
  .project h3 { font-size: 1.45rem; font-weight: 650; }
  .project p { margin: 0; color: var(--muted); }
  .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .5rem; }
  .tag { font-size: .82rem; padding: .15rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface-2); }
  .repo { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--accent); }
  .repo svg { width: 1em; height: 1em; }

  /* ---------- Featured: LeadsExpo ---------- */
  .block.lead-block { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(1rem, 3vw, 2rem); }
  .feature {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem clamp(2rem, 5vw, 4rem);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
    border-radius: 26px;
    box-shadow: 0 20px 60px -24px var(--glow), var(--shadow-md);
  }
  .feature-main { display: flex; flex-direction: column; align-items: flex-start; }
  .badge { display: inline-block; padding: .15rem .75rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .8rem; font-weight: 600; margin-bottom: 1rem; }
  .block .feature-title { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1; letter-spacing: -0.035em; margin-bottom: 1.1rem; }
  .feature-tagline { font-size: clamp(1.1rem, 2.2vw, 1.4rem); margin: 0 0 1rem; max-width: 30rem; }
  .feature-note { margin: 0 0 1.25rem; color: var(--muted); max-width: 30rem; }
  .feature .tags { margin-top: 0; padding-top: 0; margin-bottom: 1.75rem; }
  .feature-points { display: flex; flex-direction: column; gap: 1.5rem; justify-content: center; }
  .point { border-left: 2px solid var(--accent); padding-left: 1.1rem; }
  .point h3 { font-size: 1.25rem; font-weight: 650; margin-bottom: .25rem; }
  .point p { margin: 0; color: var(--muted); }
  @media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }

  /* ---------- Blog ---------- */
  .posts { border-top: 1px solid var(--line); }
  .post {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 2rem;
    padding: 1.4rem 0; border-bottom: 1px solid var(--line); text-decoration: none;
  }
  .post-title { font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; max-width: 40rem; transition: color .2s; }
  .post-src { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .95rem; transition: color .2s; }
  .post-src svg { width: 1em; height: 1em; }
  .post:hover .post-title, .post:hover .post-src { color: var(--accent); }

  /* ---------- Contact ---------- */
  .contact h2 { font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 12em; margin-bottom: 2.25rem; }
  .links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; }
  .links a { color: var(--muted); font-weight: 500; text-underline-offset: 4px; }
  .links a:hover { color: var(--accent); }

  footer { padding: 5rem 0 7.5rem; color: var(--muted); font-size: .95rem; }
  .divider { border-top: 1px solid var(--line); padding-top: 1.5rem; }

  /* ---------- Dock ---------- */
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 12px); }
  .dock-panel {
    pointer-events: auto; display: flex; align-items: flex-end; gap: 10px;
    height: 60px; padding: 8px; border-radius: 20px;
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .dock-item {
    position: relative; flex: none; display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 14px;
    background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
    text-decoration: none; transition: width .12s ease-out, height .12s ease-out, color .2s;
  }
  button.dock-item { padding: 0; font: inherit; cursor: pointer; }
  .dock-item:hover { color: var(--accent); }
  .dock-item svg { width: 46%; height: 46%; }
  .dock-label {
    position: absolute; bottom: calc(100% + 10px); left: 50%;
    transform: translateX(-50%) translateY(4px);
    opacity: 0; pointer-events: none; white-space: nowrap;
    background: var(--surface); color: var(--text); border: 1px solid var(--line);
    padding: .2rem .6rem; border-radius: 8px; font-size: .8rem;
    transition: opacity .15s, transform .15s;
  }
  .dock-item:hover .dock-label, .dock-item:focus-visible .dock-label { opacity: 1; transform: translateX(-50%); }

  /* ---------- Fallback ---------- */
  .fallback { padding: 2rem; max-width: 40rem; margin: 0 auto; }

  /* ---------- Motion preferences ---------- */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rise, .shiny, .gradient { animation: none; }
    .bt-seg { transition: none; }
    .spot.tilt, .dock-item { transition: none; }
  }

/* ---------- v4 additions ---------- */
.hero-title { max-width: 14em; }
.hook-old, .hook-new { display: block; }
.hook-old { font-size: .58em; font-weight: 600; letter-spacing: -0.02em; color: var(--muted); position: relative; width: fit-content; max-width: 100%; margin-bottom: .2em;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 56% / 0% .09em; transition: background-size .6s cubic-bezier(.2,.7,.2,1), opacity .6s; }
.hook-old.struck { background-size: 100% .09em; opacity: .7; }
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.glitch::before { color: var(--accent-2); transform: translate(-3px, 0); animation: glA 1.4s infinite steps(1); }
.glitch::after { color: var(--accent); transform: translate(3px, 0); animation: glB 1.1s infinite steps(1); }
.glitch.calm::before, .glitch.calm::after { animation: none; opacity: 0; }
@keyframes glA { 0% { clip-path: inset(0 0 70% 0); transform: translate(-3px,0); } 20% { clip-path: inset(30% 0 40% 0); transform: translate(3px,0); } 40% { clip-path: inset(60% 0 10% 0); transform: translate(-2px,0); } 60% { clip-path: inset(10% 0 60% 0); transform: translate(2px,0); } 80% { clip-path: inset(45% 0 30% 0); transform: translate(-4px,0); } 100% { clip-path: inset(0 0 70% 0); } }
@keyframes glB { 0% { clip-path: inset(65% 0 0 0); transform: translate(3px,0); } 25% { clip-path: inset(20% 0 55% 0); transform: translate(-3px,0); } 50% { clip-path: inset(50% 0 20% 0); transform: translate(4px,0); } 75% { clip-path: inset(0 0 80% 0); transform: translate(-2px,0); } 100% { clip-path: inset(65% 0 0 0); } }

.pipe { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pipe-step { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .9rem; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.pipe-step svg { width: 1em; height: 1em; }
.pipe-step.done { border-color: var(--accent); color: var(--text); }
.pipe-step.now { background: var(--accent); color: var(--on-accent); border-color: transparent; }

.vp { display: inline-block; }
.vp-l { display: inline-block; font-variation-settings: 'wght' 700, 'opsz' 60; }

.spot::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--accent), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .3s; }
.spot:hover::after { opacity: 1; }
.pt { position: absolute; z-index: 2; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: 0; pointer-events: none; animation: pt 1.4s ease-out forwards; }
@keyframes pt { 0% { opacity: 0; transform: translate(0,0); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--dx, 0), -70px); } }
.section-lead { margin: -1rem 0 2rem; max-width: 36rem; color: var(--muted); font-size: 1.15rem; }
.feature .btn { margin-top: .25rem; }

@media (prefers-reduced-motion: reduce) {
  .glitch::before, .glitch::after { animation: none; opacity: 0; }
  .hook-old, .pipe-step { transition: none; }
  .pt { display: none; }
}

/* ---------- Cursor reveal ---------- */
.reveal { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.reveal-layer {
  position: absolute; inset: 0; background: var(--accent);
  -webkit-mask-image: radial-gradient(circle var(--rr, 0px) at var(--rx, -400px) var(--ry, -400px), #000 97%, transparent 100%);
          mask-image: radial-gradient(circle var(--rr, 0px) at var(--rx, -400px) var(--ry, -400px), #000 97%, transparent 100%);
}
.reveal-code {
  margin: 0; padding: 2rem clamp(1.25rem, 4vw, 2.5rem); color: var(--on-accent);
  font: 600 clamp(.85rem, 1.7vw, 1.1rem)/1.7 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  white-space: pre; overflow: hidden; height: 100%;
}
.reveal-ring {
  position: absolute; border-radius: 50%; border: 2px solid var(--accent-2);
  left: calc(var(--rx, -400px) - var(--rr, 0px)); top: calc(var(--ry, -400px) - var(--rr, 0px));
  width: calc(var(--rr, 0px) * 2); height: calc(var(--rr, 0px) * 2);
  opacity: calc(var(--rr, 0px) / 120px);
}
@media (prefers-reduced-motion: reduce) { .reveal { display: none; } }

.more { margin-top: 1.5rem; font-family: inherit; cursor: pointer; }
    

/* ---------- v7: redesign additions ---------- */

/* Scroll progress */
.scroll-progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 2.5px; z-index: 60; pointer-events: none; }
.scroll-progress-bar { height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* Aurora background (hero) */
.aurora { position: absolute; inset: -12% -10% auto -10%; height: 130%; z-index: 0; pointer-events: none; filter: blur(64px) saturate(130%); opacity: .5; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora span:nth-child(1) { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; left: -8vw; top: -6vw; background: var(--accent); animation: auroraA 24s ease-in-out infinite; }
.aurora span:nth-child(2) { width: 34vw; height: 34vw; max-width: 480px; max-height: 480px; right: -8vw; top: 4vw; background: var(--accent-2); animation: auroraB 28s ease-in-out infinite; }
.aurora span:nth-child(3) { width: 26vw; height: 26vw; max-width: 380px; max-height: 380px; left: 32%; bottom: -14vw; background: var(--accent-soft); opacity: .6; animation: auroraC 32s ease-in-out infinite; }
@keyframes auroraA { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4vw, 3vw) scale(1.08); } }
@keyframes auroraB { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-3vw, 4vw) scale(.95); } }
@keyframes auroraC { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(2vw, -3vw) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .aurora span { animation: none; } }

/* Scroll-triggered reveals */
.rise-el { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.rise-el.in { opacity: 1; transform: none; }

.rise-group > * { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.rise-group.in > * { opacity: 1; transform: none; }
.rise-group.in > *:nth-child(1) { transition-delay: .02s; }
.rise-group.in > *:nth-child(2) { transition-delay: .08s; }
.rise-group.in > *:nth-child(3) { transition-delay: .14s; }
.rise-group.in > *:nth-child(4) { transition-delay: .20s; }
.rise-group.in > *:nth-child(5) { transition-delay: .26s; }
.rise-group.in > *:nth-child(6) { transition-delay: .32s; }
.rise-group.in > *:nth-child(7) { transition-delay: .38s; }
.rise-group.in > *:nth-child(8) { transition-delay: .44s; }
.rise-group.in > *:nth-child(n+9) { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  .rise-el, .rise-group > * { opacity: 1; transform: none; transition: none; }
}

/* Marquee edge fade */
.marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* Magnetic wrapper for buttons */
.magnet { display: inline-block; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.magnet:hover, .magnet:focus-within { transition: transform .12s ease-out; }
@media (prefers-reduced-motion: reduce) { .magnet { transition: none !important; transform: none !important; } }
