  :root {
    --bg: #07070a;
    --surface: #0f0f12;
    --surface-2: #16161a;
    --ink: #f5f5f7;
    --muted: #a8a8ad;
    --muted-2: #8a8a90;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --accent: #0a84ff;
    --glass-tint: rgba(255, 255, 255, 0.06);
    --radius: 22px;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.011em;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
    .bg-dots, .bg-drift { animation: none !important; }
    .logo::after,
    .logo-mark-wrap::after,
    .logo-text::after { animation: none !important; }
    .logo::after,
    .logo-mark-wrap::after,
    .logo-text::after { display: none !important; }
  }
  @media (prefers-reduced-transparency: reduce) {
    .glass-liquid {
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      background: var(--surface-2);
    }
    header {
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      background: var(--bg);
    }
  }
  @media (prefers-contrast: more) {
    :root {
      --muted: #d4d4d8;
      --muted-2: #b0b0b5;
      --line: rgba(255, 255, 255, 0.18);
      --line-strong: rgba(255, 255, 255, 0.28);
      --glass-tint: rgba(255, 255, 255, 0.12);
    }
  }

  a:focus-visible,
  button:focus-visible,
  select:focus-visible,
  input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
  }

  /* =========================================================
     CUSTOM CURSOR: instant, no delay
     ========================================================= */
  @media (hover: hover) and (pointer: fine) {
    html.has-custom-cursor,
    html.has-custom-cursor a,
    html.has-custom-cursor button,
    html.has-custom-cursor select,
    html.has-custom-cursor input { cursor: none; }

    .cursor-dot,
    .cursor-ring {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      pointer-events: none;
      z-index: 9999;
      will-change: transform;
      box-sizing: border-box;
    }
    .cursor-dot {
      width: 7px;
      height: 7px;
      margin: -3.5px 0 0 -3.5px;
      background: var(--accent);
      border-radius: 50%;
      transition: opacity 0.12s;
    }
    .cursor-ring {
      width: 30px;
      height: 30px;
      margin: -15px 0 0 -15px;
      border: 1.5px solid rgba(10, 132, 255, 0.6);
      border-radius: 50%;
      background: transparent;
      transition: opacity 0.12s;
    }
    html.has-custom-cursor .cursor-dot,
    html.has-custom-cursor .cursor-ring { display: block; }
  }
  @media (prefers-reduced-motion: reduce) {
    .cursor-dot, .cursor-ring { display: none !important; }
    body, a, button, select, input { cursor: auto !important; }
  }

  /* =========================================================
     PIERCE EFFECT: local dent + water ripple on clickables
     ========================================================= */
  .pierce-dent {
    position: fixed;
    z-index: 9997;
    pointer-events: none;
    opacity: 0;
    transition: opacity 200ms ease;
    background:
      radial-gradient(
        circle calc(var(--r, 70px) * 1.25) at var(--dx, 50%) var(--dy, 50%),
        transparent 52%,
        rgba(255, 255, 255, 0.05) 68%,
        transparent 82%
      ),
      radial-gradient(
        circle var(--r, 70px) at var(--dx, 50%) var(--dy, 50%),
        rgba(0, 0, 0, 0.24) 0%,
        rgba(0, 0, 0, 0.1) 42%,
        transparent 70%
      );
  }

  .pierce-ripple {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    pointer-events: none;
    border-radius: 50%;
    border: 1px solid rgba(10, 132, 255, 0.38);
    background: radial-gradient(
      circle,
      rgba(10, 132, 255, 0.2) 0%,
      rgba(10, 132, 255, 0.08) 45%,
      transparent 72%
    );
    transform: translate3d(var(--x), var(--y), 0) scale(0.12);
    animation: pierce-ripple 900ms cubic-bezier(0.16, 0.7, 0.3, 1) forwards;
  }
  @keyframes pierce-ripple {
    0%   { transform: translate3d(var(--x), var(--y), 0) scale(0.12); opacity: 0; }
    16%  { opacity: 1; }
    100% { transform: translate3d(var(--x), var(--y), 0) scale(1.1); opacity: 0; }
  }

  /* =========================================================
     BACKGROUND
     ========================================================= */
  .bg-dots {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
    background-size: 22px 22px;
    background-position: 0 0;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, rgba(0, 0, 0, 0.85) 45%, transparent 85%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, rgba(0, 0, 0, 0.85) 45%, transparent 85%);
    animation: dots-drift 24s linear infinite;
  }
  @keyframes dots-drift {
    0%   { background-position: 0 0; }
    50%  { background-position: 11px 11px; }
    100% { background-position: 22px 22px; }
  }

  .bg-drift {
    position: fixed;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background:
      radial-gradient(45% 35% at 30% 25%, rgba(10, 132, 255, 0.10), transparent 70%),
      radial-gradient(35% 30% at 75% 70%, rgba(94, 92, 230, 0.08), transparent 70%);
    filter: blur(30px);
    animation: bg-breathe 18s ease-in-out infinite alternate;
  }
  @keyframes bg-breathe {
    0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.8; }
    100% { transform: translate3d(2%, -2%, 0) scale(1.08); opacity: 1; }
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.12;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='250' height='250'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  }

  .wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
  }

  /* ---------- HEADER ---------- */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 7, 10, 0.72);
    backdrop-filter: saturate(160%) blur(20px);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    border-bottom: 1px solid var(--line);
  }
  .header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logo {
    position: relative;
    isolation: isolate;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px;
    margin: -6px -14px;
  }
  .logo::after {
    content: "";
    position: absolute;
    top: -25%;
    left: -6%;
    width: 112%;
    height: 150%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
      100deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.015) 20%,
      rgba(255, 255, 255, 0.06) 36%,
      rgba(255, 255, 255, 0.17) 50%,
      rgba(255, 255, 255, 0.06) 64%,
      rgba(255, 255, 255, 0.015) 80%,
      rgba(255, 255, 255, 0) 100%
    );
    filter: blur(4px);
    mix-blend-mode: screen;
    opacity: 0;
    transform: translateX(-100%) skewX(-14deg);
  }
  /* The sweep is triggered from script.js at random intervals (>= 35s). */
  .logo.is-flaring::after {
    animation:
      logo-flare-move 9s ease-in-out,
      logo-flare-fade 9s ease-in-out;
  }
  .logo-mark-wrap {
    position: relative;
    display: block;
    flex: none;
    width: 25px;
    height: 25px;
    border-radius: 7px;
    overflow: hidden;
  }
  .logo-mark-wrap::after {
    content: "";
    position: absolute;
    inset: -40% -70%;
    pointer-events: none;
    background: linear-gradient(
      100deg,
      rgba(255, 255, 255, 0) 38%,
      rgba(255, 255, 255, 0.55) 50%,
      rgba(255, 255, 255, 0) 62%
    );
    mix-blend-mode: screen;
    opacity: 0;
    transform: translateX(-130%) skewX(-14deg);
  }
  .logo.is-flaring .logo-mark-wrap::after {
    animation:
      logo-shine-move 9s ease-in-out,
      logo-shine-mark-fade 9s ease-in-out;
  }
  .logo-mark {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .logo-text {
    position: relative;
    display: inline-block;
  }
  .logo-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    bottom: 0;
    /* span the whole .logo box so this sweep moves in lockstep with the flare */
    left: -55px;
    right: -21px;
    padding-left: 55px;
    pointer-events: none;
    background-image: linear-gradient(
      100deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.8) 50%,
      rgba(255, 255, 255, 0) 70%
    );
    background-origin: border-box;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    mix-blend-mode: screen;
    filter: blur(1.6px);
    opacity: 0;
    transform: translateX(-100%) skewX(-14deg);
  }
  .logo.is-flaring .logo-text::after {
    animation:
      logo-flare-move 9s ease-in-out,
      logo-text-fade 9s ease-in-out;
  }
  @keyframes logo-flare-move {
    0% { transform: translateX(-100%) skewX(-14deg); }
    60%, 100% { transform: translateX(100%) skewX(-14deg); }
  }
  @keyframes logo-flare-fade {
    0%, 5% { opacity: 0; }
    20% { opacity: 0.16; }
    35% { opacity: 0.38; }
    50% { opacity: 0.24; }
    62%, 100% { opacity: 0; }
  }
  @keyframes logo-shine-move {
    0%, 14% { transform: translateX(-75%) skewX(-14deg); }
    34%, 100% { transform: translateX(75%) skewX(-14deg); }
  }
  @keyframes logo-shine-mark-fade {
    0%, 14% { opacity: 0; }
    24% { opacity: 0.9; }
    34%, 100% { opacity: 0; }
  }
  @keyframes logo-text-fade {
    0%, 5% { opacity: 0; }
    20% { opacity: 0.22; }
    35% { opacity: 0.6; }
    50% { opacity: 0.4; }
    62%, 100% { opacity: 0; }
  }
  nav { display: flex; gap: 24px; align-items: center; }
  nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.22s;
  }
  nav a:hover { color: var(--accent); }
  /* Every nav link shares one hover treatment: a tinted pill that draws
     itself around the link. The pill keeps its final shape from the first
     frame and is only revealed, so the corners never morph from square to
     round, and the tint is part of the same reveal instead of a separate
     fade. Contact keeps its permanent border underneath; the drawn pill
     simply paints over it. */
  nav a { position: relative; }
  nav a::before {
    content: "";
    position: absolute;
    inset: -5px -9px;
    border: 1px solid var(--accent);
    border-radius: 100px;
    background: rgba(10, 132, 255, 0.12);
    opacity: 0;
    pointer-events: none;
    clip-path: inset(0 100% 100% 0 round 100px);
    /* Opacity only fades out once the pill has retracted. */
    transition:
      clip-path 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.12s linear 0.3s;
  }
  nav a:hover::before {
    opacity: 1;
    clip-path: inset(0 round 100px);
    transition:
      clip-path 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0s;
  }
  nav a.pill {
    color: var(--ink);
    padding: 6px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    transition: color 0.22s;
  }
  /* Absolute insets are measured from the padding box, so -1px puts the
     drawn pill exactly on top of the permanent border. */
  nav a.pill::before { inset: -1px; }
  nav a.pill:hover { color: var(--accent); }

  /* ---------- GLASS ---------- */
  .glass-liquid {
    position: relative;
    background: var(--glass-tint);
    border-radius: var(--radius);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow:
      inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 0 rgba(255, 255, 255, 0.02),
      0 20px 40px -20px rgba(0, 0, 0, 0.5);
  }
  .glass-solid {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow:
      inset 0 1px 0 0 rgba(255, 255, 255, 0.05),
      0 1px 0 0 rgba(0, 0, 0, 0.3);
  }
  .glass-liquid::before,
  .glass-solid::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(120, 180, 255, 0.12) 25%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 130, 200, 0.1) 75%, rgba(255, 255, 255, 0.2) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
  }
  .glass-liquid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    pointer-events: none;
  }

  /* ---------- HERO ---------- */
  .hero { padding: 140px 0 100px; text-align: center; position: relative; }
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 32px;
  }
  .badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(10, 132, 255, 0.5);
  }
  .hero h1 {
    font-size: clamp(64px, 11vw, 140px);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.92;
    color: #ffffff;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
  }
  .hero p {
    font-size: clamp(19px, 2.2vw, 24px);
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: -0.018em;
    line-height: 1.35;
    position: relative;
    z-index: 1;
  }
  .hero p strong { color: var(--ink); font-weight: 500; }

  /* ---------- FEATURED ---------- */
  .featured {
    padding: 56px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 32px;
    transition: box-shadow 0.3s ease;
    border-radius: var(--radius);
  }
  .featured::before { transition: opacity 0.3s ease; }

  .featured-content { position: relative; z-index: 1; }
  .featured-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 18px;
  }
  .featured h2 {
    font-size: clamp(40px, 5.5vw, 64px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 18px;
    color: #ffffff;
  }
  .featured-desc {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 28px;
    max-width: 380px;
  }
  .featured-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
  .btn-primary,
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .btn-primary { background: #ffffff; color: #000000; }
  .btn-primary:hover { background: var(--accent); color: #ffffff; }
  .btn-secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line-strong);
  }
  .btn-secondary:hover {
    background: rgba(10, 132, 255, 0.12);
    border-color: var(--accent);
    color: var(--accent);
  }
  .btn-label,
  .btn-arrow {
    display: inline-block;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  }
  /* The pull only fires when the pointer actually rests on the button. */
  .btn-primary:hover .btn-label,
  .btn-primary:hover .btn-arrow,
  .btn-secondary:hover .btn-label,
  .btn-secondary:hover .btn-arrow {
    transition-delay: 1.5s;
  }
  .btn-primary:hover .btn-label,
  .btn-secondary:hover .btn-label { transform: translateX(-2px); }
  .btn-primary:hover .btn-arrow,
  .btn-secondary:hover .btn-arrow { transform: translate(5px, -2px) rotate(-18deg); }

  /* ---------- DEVICE SWITCHER ---------- */
  .device-switch {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-top: 8px;
  }
  .device-switch button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }
  .device-switch button:hover { color: var(--ink); }
  .device-switch button.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  }
  .device-switch svg { width: 14px; height: 14px; }
  /* Single-platform apps render no switch at all. */
  .device-switch[hidden] { display: none; }
  .featured-actions[hidden] { display: none; }

  /* ---------- DEVICE STAGE (centered) ---------- */
  .device-stage {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .device-stage > * {
    transition: opacity 0.3s, transform 0.3s;
  }
  .device-stage[data-device="iphone"] .macbook-frame { opacity: 0; pointer-events: none; transform: scale(0.96); position: absolute; }
  .device-stage[data-device="macbook"] .iphone-frame { opacity: 0; pointer-events: none; transform: scale(0.96); position: absolute; }
  .device-stage.is-link { cursor: pointer; }

  /* iPhone */
  .iphone-frame {
    width: 190px;
    height: 380px;
    background: linear-gradient(160deg, #2a2a30, #16161a);
    border-radius: 36px;
    padding: 10px;
    position: relative;
    box-shadow:
      0 40px 80px -20px rgba(0, 0, 0, 0.7),
      0 20px 40px -15px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.15),
      inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    overflow: hidden;
  }
  .iphone-frame::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 18px;
    background: #0a0a0c;
    border-radius: 100px;
    z-index: 3;
  }
  .iphone-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--orbit-angle, 0deg), transparent 0deg 300deg, rgba(10, 132, 255, 0.9) 330deg, rgba(10, 132, 255, 0.2) 350deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: orbit 6s linear infinite;
    pointer-events: none;
  }
  @property --orbit-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
  @keyframes orbit { to { --orbit-angle: 360deg; } }

  .device-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  /* Optional screenshot from data.json replaces the mock UI. */
  .device-shot {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }
  .device-screen.is-shot > .iphone-lock,
  .device-screen.is-shot > .iphone-home { display: none; }

  /* iPhone lock screen: icon only */
  .iphone-lock {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(180deg, #0a0a0c 0%, #15151a 100%);
    z-index: 2;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .iphone-lock .app-icon-large {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(160deg, #3da3ff, #0a6ae0);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 20px -8px rgba(0, 0, 0, 0.6);
  }
  .iphone-lock .app-name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
  }
  .iphone-lock .unlock-hint {
    font-size: 9px;
    color: var(--muted-2);
    letter-spacing: 0.04em;
    margin-top: 8px;
  }

  /* iPhone home screen */
  .iphone-home {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 32px 14px 14px;
    background:
      radial-gradient(circle at 30% 20%, rgba(10, 132, 255, 0.18), transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(94, 92, 230, 0.12), transparent 50%),
      #0a0a0c;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
  }
  .iphone-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--ink);
  }
  .iphone-app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 10px -4px rgba(0, 0, 0, 0.6);
  }
  .iphone-app-icon.blue { background: linear-gradient(160deg, #3da3ff, #0a6ae0); }
  .iphone-app-icon.purple { background: linear-gradient(160deg, #a878ff, #6e3ad6); }
  .iphone-app-icon.teal { background: linear-gradient(160deg, #4fd1c5, #0e9f8e); }
  .iphone-app-icon.orange { background: linear-gradient(160deg, #ffb86b, #e07a1f); }
  .iphone-app-icon.gray { background: linear-gradient(160deg, #6b6b73, #3a3a40); }
  .iphone-app span {
    font-size: 8px;
    color: var(--muted);
    text-align: center;
    line-height: 1.2;
  }

  /* iPhone unlocked state */
  .device-screen.is-unlocked .iphone-lock {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
  }
  .device-screen.is-unlocked .iphone-home {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* MacBook: a real CSS 3D box (base + lid with thickness) */
  .macbook-frame {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lap-scene {
    position: absolute;
    inset: 0;
    perspective: 1500px;
    perspective-origin: 50% 42%;
  }
  .lap-world {
    --lw: 320px;
    --ld: 202px;
    --lt: 11px;
    --llt: 6px;
    position: absolute;
    left: 50%;
    top: 71%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    transform: rotateX(-18deg) rotateY(-24deg);
  }
  .lap-world * { transform-style: preserve-3d; }
  .lap-face { position: absolute; backface-visibility: hidden; }

  .lap-shadow {
    width: calc(var(--lw) * 1.1);
    height: calc(var(--ld) * 1.1);
    left: calc(var(--lw) * -0.55);
    top: calc(var(--ld) * -0.55);
    transform: translateY(calc(var(--lt) + 1px)) rotateX(90deg);
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.16) 70%, transparent);
    filter: blur(12px);
  }

  /* Base */
  .lap-base-top {
    width: var(--lw);
    height: var(--ld);
    left: calc(var(--lw) / -2);
    top: calc(var(--ld) / -2);
    transform: rotateX(90deg);
    border-radius: 9px;
    padding: 16px 20px 0;
    background: linear-gradient(180deg, #2b2b33 0%, #212128 55%, #1a1a20 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 -2px 0 rgba(0, 0, 0, 0.35);
  }
  .lap-hinge {
    position: absolute;
    left: 15%;
    right: 15%;
    top: 0;
    height: 6px;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(180deg, #07070a, #22222a);
  }
  .lap-keys {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    gap: 3px;
    padding: 5px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.32);
  }
  .lap-keys i {
    height: 15px;
    border-radius: 2.5px;
    background: linear-gradient(180deg, #33333c, #1b1b21);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  }
  .lap-keys .fn { height: 9px; }
  .lap-keys .w2 { grid-column: span 2; }
  .lap-keys .sp { grid-column: span 6; }
  .lap-trackpad {
    width: 40%;
    height: 24%;
    margin: 10px auto 0;
    border-radius: 6px;
    background: linear-gradient(180deg, #26262d, #1b1b21);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  }
  .lap-base-bottom {
    width: var(--lw);
    height: var(--ld);
    left: calc(var(--lw) / -2);
    top: calc(var(--ld) / -2);
    transform: translateY(var(--lt)) rotateX(-90deg);
    border-radius: 9px;
    background: #0c0c10;
  }
  .lap-base-front {
    width: var(--lw);
    height: var(--lt);
    left: calc(var(--lw) / -2);
    top: calc(var(--lt) / -2);
    transform: translate3d(0, calc(var(--lt) / 2), calc(var(--ld) / 2));
    border-radius: 0 0 7px 7px;
    background: linear-gradient(180deg, #35353e, #131318);
  }
  .lap-base-back {
    width: var(--lw);
    height: var(--lt);
    left: calc(var(--lw) / -2);
    top: calc(var(--lt) / -2);
    transform: translate3d(0, calc(var(--lt) / 2), calc(var(--ld) / -2)) rotateY(180deg);
    background: linear-gradient(180deg, #2d2d35, #16161b);
  }
  .lap-base-left,
  .lap-base-right {
    width: var(--ld);
    height: var(--lt);
    left: calc(var(--ld) / -2);
    top: calc(var(--lt) / -2);
    background: linear-gradient(180deg, #2a2a32, #141419);
  }
  .lap-base-left { transform: translate3d(calc(var(--lw) / -2), calc(var(--lt) / 2), 0) rotateY(-90deg); }
  .lap-base-right { transform: translate3d(calc(var(--lw) / 2), calc(var(--lt) / 2), 0) rotateY(90deg); }

  /* Lid */
  .macbook-lid {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    transform: translate3d(0, -1px, calc(var(--ld) / -2 + 3px)) rotateX(-90deg);
    animation: lid-open 1.7s cubic-bezier(0.45, 0.05, 0.25, 1) 1s both;
  }
  @keyframes lid-open {
    0% { transform: translate3d(0, -1px, calc(var(--ld) / -2 + 3px)) rotateX(-90deg); }
    8% { transform: translate3d(0, -1px, calc(var(--ld) / -2 + 3px)) rotateX(-84deg); }
    72% { transform: translate3d(0, -1px, calc(var(--ld) / -2 + 3px)) rotateX(24deg); }
    86% { transform: translate3d(0, -1px, calc(var(--ld) / -2 + 3px)) rotateX(17deg); }
    100% { transform: translate3d(0, -1px, calc(var(--ld) / -2 + 3px)) rotateX(20deg); }
  }
  .lap-lid-back {
    width: var(--lw);
    height: var(--ld);
    left: calc(var(--lw) / -2);
    top: calc(var(--ld) / -2);
    transform: translate3d(0, calc(var(--ld) / -2), calc(var(--llt) * -1)) rotateY(180deg);
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, #2c2c35, #1d1d24 70%, #17171c);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lap-mark { width: 32px; height: 32px; opacity: 0.95; }
  .lap-lid-top {
    width: var(--lw);
    height: var(--llt);
    left: calc(var(--lw) / -2);
    top: calc(var(--llt) / -2);
    transform: translate3d(0, calc(var(--ld) * -1), calc(var(--llt) / -2)) rotateX(90deg);
    background: linear-gradient(90deg, #1c1c22, #2f2f38 50%, #1c1c22);
  }
  .lap-lid-bottom {
    width: var(--lw);
    height: var(--llt);
    left: calc(var(--lw) / -2);
    top: calc(var(--llt) / -2);
    transform: translate3d(0, 0, calc(var(--llt) / -2)) rotateX(-90deg);
    background: #0f0f13;
  }
  .lap-lid-left,
  .lap-lid-right {
    width: var(--llt);
    height: var(--ld);
    left: calc(var(--llt) / -2);
    top: calc(var(--ld) / -2);
    background: linear-gradient(180deg, #2b2b33, #16161b);
  }
  .lap-lid-left { transform: translate3d(calc(var(--lw) / -2), calc(var(--ld) / -2), calc(var(--llt) / -2)) rotateY(-90deg); }
  .lap-lid-right { transform: translate3d(calc(var(--lw) / 2), calc(var(--ld) / -2), calc(var(--llt) / -2)) rotateY(90deg); }

  /* Screen */
  .lap-screen {
    display: block;
    overflow: hidden;
    width: var(--lw);
    height: var(--ld);
    left: calc(var(--lw) / -2);
    top: calc(var(--ld) / -2);
    transform: translate3d(0, calc(var(--ld) / -2), 0);
    border-radius: 8px 8px 3px 3px;
    padding: 9px 9px 15px;
    background: #0a0a0c;
    outline: none;
  }
  .lap-cam {
    position: absolute;
    top: 3px;
    left: 50%;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: #2c3036;
    box-shadow: inset 0 0 0 1px #3d434b;
  }
  .lap-display {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    overflow: hidden;
    background:
      radial-gradient(120% 90% at 8% 100%, rgba(10, 132, 255, 0.28), transparent 62%),
      radial-gradient(100% 80% at 92% 0%, rgba(110, 90, 255, 0.22), transparent 60%),
      linear-gradient(160deg, #0b0d14, #11141d 60%, #0a0b10);
    opacity: 0;
    animation: lap-screen-on 0.6s ease 2.35s both;
  }
  @keyframes lap-screen-on { to { opacity: 1; } }
  .lap-glare {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, transparent 38%, transparent 62%, rgba(255, 255, 255, 0.03) 100%);
  }
  .lap-display .device-shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
  }
  .lap-display video.device-shot {
    object-fit: contain;
    transform: translateY(5%) scale(1.27);
    transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  }
  /* The closing caption has to fit, so the clip pulls back before it lands. */
  .lap-display video.device-shot.is-wide {
    transform: translateY(0) scale(1);
  }
  .lap-chin {
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    text-align: center;
    font: 600 6px/1 ui-monospace, "SF Mono", monospace;
    letter-spacing: 0.28em;
    color: rgba(245, 245, 247, 0.22);
  }
  @media (prefers-reduced-motion: reduce) {
    .macbook-lid { animation: none; }
    .lap-display { animation: none; opacity: 1; }
  }

  /* ---------- APPS GRID ---------- */
  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 60px 8px 20px;
  }
  .section-head h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  .section-head .count { font-size: 13px; color: var(--muted-2); }
  .apps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 80px;
  }
  /* A lone app should not sit in a half empty row. */
  .apps[data-count="1"] { grid-template-columns: 1fr; }
  .app {
    padding: 32px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    transition: background 0.2s;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
  }
  .app::before { transition: opacity 0.3s ease; }
  .app:hover { background: var(--surface-2); }
  .app:hover::before { opacity: 1; }

  .app-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(10, 132, 255, 0.12), transparent 60%);
    border-radius: inherit;
  }
  .app:hover .app-spotlight { opacity: 1; }

  .app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: auto;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 16px -6px rgba(0, 0, 0, 0.6);
    z-index: 1;
  }
  .app-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 55%);
    pointer-events: none;
  }
  .app-icon svg { position: relative; z-index: 1; width: 22px; height: 22px; }
  .app-icon img,
  .iphone-app-icon img,
  .iphone-lock .app-icon-large img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
  }
  .app-icon.blue { background: linear-gradient(160deg, #3da3ff, #0a6ae0); }
  .app-icon.purple { background: linear-gradient(160deg, #a878ff, #6e3ad6); }
  .app-icon.teal { background: linear-gradient(160deg, #4fd1c5, #0e9f8e); }
  .app-icon.orange { background: linear-gradient(160deg, #ffb86b, #e07a1f); }
  .app h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 32px 0 6px;
    position: relative;
    z-index: 1;
  }
  .app p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1;
    position: relative;
    z-index: 1;
  }
  .app-meta {
    font-size: 11px;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 20px;
    font-weight: 500;
    position: relative;
    z-index: 1;
  }
  .app-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    position: relative;
    z-index: 1;
  }
  .app-actions .btn-primary,
  .app-actions .btn-secondary {
    padding: 10px 16px;
    font-size: 13px;
  }

  /* ---------- ABOUT ---------- */
  .about { padding: 80px 0 40px; text-align: center; }
  .about h2 {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
    max-width: 780px;
    margin: 0 auto 22px;
    color: #ffffff;
  }
  .about p {
    color: var(--muted);
    font-size: 17px;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.55;
  }

  /* ---------- STATS ---------- */
  .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 60px 0 100px;
    padding: 8px;
  }
  .stat {
    padding: 28px 24px;
    border-right: 1px solid var(--line);
    text-align: left;
  }
  .stat:last-child { border-right: 0; }
  .stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-2);
    margin-bottom: 10px;
    font-weight: 500;
  }
  .stat-val {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
  }
  .stat-note {
    max-width: 290px;
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--muted);
  }
  .stat-emoji {
    display: inline-block;
    margin-left: 2px;
    font-size: 1.15em;
    line-height: 1;
    vertical-align: -0.15em;
  }
  .stat-val small {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
    margin-left: 6px;
    letter-spacing: 0;
  }

  /* ---------- CTA ---------- */
  .cta-section { padding: 20px 0 120px; }
  .cta-card { padding: 72px 40px; text-align: center; }
  .cta-card h2 {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 28px;
    color: #ffffff;
  }
  .cta-card p {
    color: var(--muted);
    font-size: 16px;
    max-width: 440px;
    margin: 0 auto 32px;
    line-height: 1.5;
  }

  /* ---------- FOOTER ---------- */
  footer {
    padding: 32px 0;
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 2;
  }
  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted-2);
  }
  footer a {
    color: var(--muted-2);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.15s;
  }
  footer a:hover { color: var(--accent); }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 860px) {
    .featured { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
    .device-stage { height: 340px; }
    .iphone-frame { width: 160px; height: 320px; }
    .lap-world { --lw: 250px; --ld: 160px; --lt: 9px; --llt: 5px; }
  }
  @media (max-width: 720px) {
    .wrap { padding: 0 20px; }
    .header-inner { padding: 12px 20px; }
    nav { gap: 16px; }
    nav a.pill { display: none; }
    .hero { padding: 80px 0 60px; }
    .featured { padding: 32px 24px; }
    .apps { grid-template-columns: 1fr; margin-bottom: 60px; }
    .app { padding: 28px; min-height: auto; }
    .about { padding: 50px 0 30px; }
    .stats { grid-template-columns: 1fr; margin: 40px 0 60px; }
    .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 20px; }
    .stat:last-child { border-bottom: 0; }
    .cta-section { padding: 20px 0 80px; }
    .cta-card { padding: 48px 24px; }
    .footer-inner { flex-direction: column; gap: 12px; }
    footer a { margin: 0 10px; }
  }

  /* ---------- BUY ME A COFFEE (custom button) ---------- */
  .bmc-wrap {
    position: fixed;
    right: 26px;
    bottom: 34px;
    z-index: 80;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(14px) scale(0.94);
    animation:
      bmc-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.5s both,
      bmc-glow 3.8s ease-in-out 2.4s infinite;
  }

  .bmc-fab {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px 9px 12px;
    border-radius: 999px;
    background: #5f7fff;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease,
      padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), gap 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .bmc-label {
    display: inline-block;
    max-width: 140px;
    overflow: hidden;
    white-space: nowrap;
    opacity: 1;
    transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  }

  .bmc-fab.is-collapsed {
    gap: 0;
    padding: 9px 11px;
  }

  .bmc-fab.is-collapsed .bmc-label {
    max-width: 0;
    opacity: 0;
  }

  .bmc-fab.is-collapsed:hover,
  .bmc-fab.is-collapsed:focus-visible {
    gap: 8px;
    padding: 9px 15px 9px 12px;
  }

  .bmc-fab.is-collapsed:hover .bmc-label,
  .bmc-fab.is-collapsed:focus-visible .bmc-label {
    max-width: 140px;
    opacity: 1;
  }

  .bmc-fab:hover { background: #7390ff; transform: translateY(-2px) scale(1.02); }
  .bmc-fab:active { transform: scale(0.96); }
  .bmc-fab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

  .bmc-fab svg { width: 16px; height: 16px; flex: none; }
  .bmc-cup { animation: bmc-bob 3.8s ease-in-out 2.4s infinite; }

  /* Bubble burst adapted from https://uiverse.io/zjssun/curly-seahorse-76 */
  .bmc-fab::before,
  .bmc-fab::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 130%;
    height: 100%;
    transform: translateX(-50%);
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
  }

  .bmc-fab:hover::before {
    top: -70%;
    opacity: 1;
    background-image: radial-gradient(circle, #7c9bff 20%, transparent 20%),
      radial-gradient(circle, transparent 20%, #7c9bff 20%, transparent 30%),
      radial-gradient(circle, #7c9bff 20%, transparent 20%),
      radial-gradient(circle, #7c9bff 20%, transparent 20%),
      radial-gradient(circle, transparent 10%, #7c9bff 15%, transparent 20%),
      radial-gradient(circle, #7c9bff 20%, transparent 20%),
      radial-gradient(circle, #7c9bff 20%, transparent 20%),
      radial-gradient(circle, #7c9bff 20%, transparent 20%),
      radial-gradient(circle, #7c9bff 20%, transparent 20%);
    background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%, 10% 10%, 18% 18%;
    background-position: 50% 120%;
    animation: bmc-top-bubbles 0.6s ease forwards;
  }

  .bmc-fab:hover::after {
    bottom: -70%;
    opacity: 1;
    background-image: radial-gradient(circle, #7c9bff 20%, transparent 20%),
      radial-gradient(circle, #7c9bff 20%, transparent 20%),
      radial-gradient(circle, transparent 10%, #7c9bff 15%, transparent 20%),
      radial-gradient(circle, #7c9bff 20%, transparent 20%),
      radial-gradient(circle, #7c9bff 20%, transparent 20%),
      radial-gradient(circle, #7c9bff 20%, transparent 20%),
      radial-gradient(circle, #7c9bff 20%, transparent 20%);
    background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 20% 20%, 18% 18%;
    background-position: 50% 0%;
    animation: bmc-bottom-bubbles 0.6s ease forwards;
  }

  .bmc-tip {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: max-content;
    max-width: min(240px, calc(100vw - 44px));
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.97);
    transform-origin: bottom right;
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
  }

  /* Transparent hover bridge between the button and the tooltip. */
  .bmc-bridge {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 24px;
  }

  .bmc-tip::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 100%;
    width: 8px;
    height: 8px;
    background: var(--surface-2);
    border-right: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    transform: translateY(-4px) rotate(45deg);
  }

  .bmc-fab:hover .bmc-tip,
  .bmc-fab:focus-visible .bmc-tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  @keyframes bmc-in {
    from { opacity: 0; transform: translateY(14px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  @keyframes bmc-glow {
    0%, 100% { box-shadow: 0 8px 24px rgba(95, 127, 255, 0.28), 0 2px 6px rgba(0, 0, 0, 0.25); }
    50% { box-shadow: 0 10px 34px rgba(95, 127, 255, 0.55), 0 2px 6px rgba(0, 0, 0, 0.25); }
  }

  @keyframes bmc-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
  }

  @keyframes bmc-top-bubbles {
    0% {
      background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%, 40% 90%, 55% 90%, 70% 90%;
    }
    50% {
      background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%, 50% 50%, 65% 20%, 90% 30%;
    }
    100% {
      background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%, 50% 40%, 65% 10%, 90% 20%;
      background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
  }

  @keyframes bmc-bottom-bubbles {
    0% {
      background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%, 70% -10%, 70% 0%;
    }
    50% {
      background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%, 105% 0%;
    }
    100% {
      background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%, 110% 10%;
      background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .bmc-wrap { opacity: 1; transform: none; animation: none; }
    .bmc-cup { animation: none; }
    .bmc-fab, .bmc-label { transition: none; }
    .bmc-fab::before,
    .bmc-fab::after { animation: none; }
  }

  /* =========================================================
     EASTER EGG: type "yes" anywhere outside a form field
     ========================================================= */
  .ee {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 4, 8, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .ee.is-open { display: flex; animation: ee-fade 0.25s ease-out; }
  .ee-confetti {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .ee-confetti i {
    position: absolute;
    top: -14vh;
    left: var(--x);
    width: var(--w);
    height: var(--h);
    background: var(--c);
    border-radius: 2px;
    opacity: 0;
    animation: ee-fall var(--dur) cubic-bezier(0.25, 0.55, 0.35, 1) var(--delay) forwards;
  }
  .ee-card {
    width: min(400px, 100%);
    padding: 34px 32px 30px;
    text-align: center;
    animation: ee-pop 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  }
  .ee-kicker {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .ee-count {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--muted-2);
  }
  .ee-count::before {
    content: "\00B7";
    margin-right: 8px;
    opacity: 0.6;
  }
  .ee-title {
    margin-bottom: 12px;
    font-size: clamp(24px, 3.2vw, 30px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #ffffff;
  }
  .ee-text {
    max-width: 290px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
  }
  .ee-sign {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 26px 0 0;
    color: var(--ink);
  }
  .ee-sign-name {
    font-family: "Snell Roundhand", "Apple Chancery", "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
    font-size: 34px;
    line-height: 1;
    transform: rotate(-5deg);
    /* Written left to right, like a pen moving across the card. */
    clip-path: inset(0 100% 0 0);
    animation: ee-write 0.85s cubic-bezier(0.45, 0.1, 0.35, 1) 1.25s forwards;
  }
  .ee-sign-line {
    width: 120px;
    height: 12px;
    opacity: 0.35;
    transform: rotate(-2deg);
  }
  .ee-sign-line path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: ee-draw 0.5s ease-out 2.1s forwards;
  }
  .ee-btn {
    margin-top: 28px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
  }
  .ee-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    /* the global focus rule squares off buttons; keep the pill shape here */
    border-radius: 100px;
  }

  @keyframes ee-write {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 -8% 0 0); }
  }
  @keyframes ee-draw {
    to { stroke-dashoffset: 0; }
  }
  @keyframes ee-fall {
    0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
    10% { opacity: 1; }
    100% { opacity: 0; transform: translate3d(var(--drift), 118vh, 0) rotate(var(--rot)); }
  }

  @media (prefers-reduced-motion: reduce) {
    .ee.is-open,
    .ee-card { animation: none; }
    .ee-confetti { display: none; }
    .ee-sign-name { clip-path: none; animation: none; }
    .ee-sign-line path { stroke-dashoffset: 0; animation: none; }
  }
