
  :root {
    --bg: #fdfcf9;
    --ink: #1a1712;
    --muted: #726c62;
    --faint: #a8a194;
    --line: rgba(26,23,18,0.12);
    --accent: #1a1712;
    --accent-deep: #000000;
    --blue: #9a948a;
    --disp: "TT Commons Pro", system-ui, sans-serif;
    --sans: "TT Commons Pro", system-ui, sans-serif;
    --mono: "JetBrains Mono", monospace;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; }
  html { background-color: var(--bg); }
  body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    cursor: none;
  }
  body * { cursor: none; }

  /* Viewport-locked background so every screen (hero AND footer) shares the same
     warm radial — instead of the gradient stretching over the tall mobile page
     and rendering the footer flat white. */
  .bg-layer {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(140% 120% at 50% -8%, #ffffff 0%, var(--bg) 52%, #f4efe5 100%);
  }

  .stage { position: relative; height: 100vh; height: 100dvh; width: 100vw; overflow: hidden; }

  /* ---------- Frank-as-cursor ---------- */
  .cursor-dot {
    position: fixed; top: 0; left: 0; z-index: 95; width: 24px; height: 28px;
    pointer-events: none; transition: opacity .2s ease;
  }
  .cursor-dot img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 2px rgba(60,40,12,0.30)); transition: transform .12s ease; transform-origin: 14% 8%; }
  .cursor-dot.hot img { transform: scale(1.18); }
  .cursor-dot.hide { opacity: 0; }

  .franky {
    position: fixed; top: 0; left: 0; z-index: 90; width: 0; height: 0;
    pointer-events: none; will-change: transform;
  }
  .franky-head { position: absolute; left: 8px; top: 6px; width: 108px; }
  .franky-name {
    position: absolute; left: 62px; top: 135px; transform: translateX(-50%);
    font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
    color: var(--accent); white-space: nowrap; pointer-events: none;
    text-shadow: 0 0 4px var(--bg), 0 0 4px var(--bg), 0 1px 1px var(--bg);
  }
  .franky-head img { display: block; width: 100%; height: auto; image-rendering: pixelated; filter: drop-shadow(0 8px 12px rgba(60,40,12,0.22)); animation: frankbob 4.5s ease-in-out infinite; }
  @keyframes frankbob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-4px) rotate(2deg); } }
  .franky-bubble {
    position: absolute; left: 126px; top: 26px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 9px 14px; box-shadow: 0 10px 24px rgba(60,40,12,0.16);
    font-size: 14.5px; line-height: 1.34; color: var(--ink);
    white-space: normal; width: max-content; max-width: 230px;
    transition: opacity .18s ease;
  }
  .franky.addressing .franky-bubble { box-shadow: 0 12px 28px rgba(26,23,18,0.20); border-color: rgba(26,23,18,0.42); }
  .franky-bubble .msg { font-weight: 500; }
  .franky-bubble::after {
    content: ""; position: absolute; left: -6px; bottom: 13px; width: 12px; height: 12px;
    background: #fff; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
    border-bottom-left-radius: 3px; transform: rotate(45deg);
  }
  .franky.flip .franky-bubble { left: auto; right: 126px; }
  .franky.flip .franky-bubble::after {
    left: auto; right: -6px;
    border: none; border-right: 1px solid var(--line); border-top: 1px solid var(--line);
    border-top-right-radius: 3px; border-bottom-left-radius: 0;
  }
  .franky.parked { transform: none !important; left: 24px; bottom: 24px; top: auto; }
  .franky.parked .franky-head { left: 0; bottom: 8px; top: auto; width: 92px; }
  .franky.parked .franky-name { left: 46px; bottom: 114px; top: auto; }
  .franky.parked .franky-bubble { left: 100px; bottom: 56px; top: auto; }

  /* ---------- nav ---------- */
  nav {
    position: absolute; top: 0; left: 0; right: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 40px;
  }
  nav .signlink {
    font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap; transition: color .2s;
  }
  nav .signlink:hover { color: var(--ink); }
  nav .signlink .arr { transition: transform .2s; }
  nav .signlink:hover .arr { transform: translateX(2px); }
  /* Frank's typing caret */
  .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }

  .status { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .status .dot { width: 7px; height: 7px; border-radius: 50%; background: #2faa5e; box-shadow: 0 0 0 0 rgba(47,170,94,.5); animation: pulse 3s ease-out infinite; }
  @keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(47,170,94,.5);}70%{box-shadow:0 0 0 7px rgba(47,170,94,0);}100%{box-shadow:0 0 0 0 rgba(47,170,94,0);} }

  /* ---------- center content ---------- */
  .center {
    pointer-events: none;
    position: absolute; z-index: 20; top: 47%; left: 50%; transform: translate(-50%, -50%);
    width: min(840px, 92vw); text-align: center; padding: 0 16px;
  }
  .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
  h1 { font-family: var(--disp); font-weight: 800; font-size: clamp(38px, 5vw, 66px); line-height: 1.0; letter-spacing: -.025em; text-wrap: balance; }
  h1 em { font-style: italic; color: var(--ink); }
  .sub { margin: 22px auto 0; max-width: 600px; font-size: clamp(15px, 1.45vw, 17.5px); line-height: 1.62; color: var(--muted); text-wrap: balance; }
  .sub b { color: var(--ink); font-weight: 600; }

  /* ---------- sign in ---------- */
  .signin { pointer-events: auto; margin-top: 30px; height: 130px; display: flex; align-items: flex-start; justify-content: center; }
  .pill { appearance: none; cursor: pointer; white-space: nowrap; background: var(--ink); color: #fffdf8; border: 1.5px solid var(--ink); font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 16px 30px; border-radius: 3px; box-shadow: 4px 5px 0 0 rgba(60,40,12,0.20); transition: transform .14s ease, box-shadow .14s ease, background .2s ease; }
  .pill:hover { transform: translate(-2px,-2px); box-shadow: 6px 7px 0 0 rgba(60,40,12,0.22); }
  .pill:active { transform: translate(2px,2px); box-shadow: 1px 2px 0 0 rgba(60,40,12,0.20); }
  .pill .arr { display: inline-block; margin-left: 9px; transition: transform .2s; }
  .pill:hover .arr { transform: translateX(3px); }
  .signform { position: absolute; width: 320px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(8px) scale(.98); pointer-events: none; transition: transform .35s ease; }
  .signin.open .pill { display: none; }
  .signin.open .signform { opacity: 1; transform: none; pointer-events: auto; position: static; }
  .field { background: #fff; border: 1.5px solid rgba(26,23,18,0.16); border-radius: 3px; padding: 14px 18px; font-family: var(--sans); font-size: 15px; color: var(--ink); transition: border-color .18s, box-shadow .18s; }
  .field::placeholder { color: var(--faint); }
  .field:focus { outline: none; border-color: var(--ink); box-shadow: 3px 3px 0 0 rgba(60,40,12,0.14); }
  .submit { background: var(--ink); color: #fffdf8; border: 1.5px solid var(--ink); cursor: pointer; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 15px; border-radius: 3px; margin-top: 4px; box-shadow: 4px 5px 0 0 rgba(60,40,12,0.20); transition: transform .14s ease, box-shadow .14s ease, background .2s; }
  .submit:hover { transform: translate(-2px,-2px); box-shadow: 6px 7px 0 0 rgba(60,40,12,0.22); }
  .submit:active { transform: translate(2px,2px); box-shadow: 1px 2px 0 0 rgba(60,40,12,0.20); }
  .submit .arr { display: inline-block; margin-left: 6px; transition: transform .2s; }
  .submit:hover .arr { transform: translateX(3px); }
  .formfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
  .forgot { font-size: 12.5px; color: var(--muted); text-decoration: none; transition: color .2s; white-space: nowrap; }
  .forgot:hover { color: var(--ink); }
  .back { background: none; border: none; cursor: pointer; color: var(--faint); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
  .back:hover { color: var(--muted); }

  /* ---------- floating cast ---------- */
  .floats { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
  .float { position: absolute; will-change: transform; }
  .bob { animation: bob var(--dur, 6s) ease-in-out var(--delay, 0s) infinite; transform-origin: center; }
  @keyframes bob {
    0%, 100% { transform: translateY(0) rotate(calc(var(--rot, 3deg) * -1)); }
    50% { transform: translateY(-15px) rotate(var(--rot, 3deg)); }
  }
  .char { position: relative; display: block; }
  .char img { display: block; width: 100%; height: auto; image-rendering: pixelated; position: relative; z-index: 1; filter: drop-shadow(0 12px 16px rgba(60,40,12,0.16)); }
  .char::before {
    content: ""; position: absolute; left: 50%; top: 56%; transform: translate(-50%,-50%);
    width: 96%; height: 78%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(26,23,18,0.08), rgba(26,23,18,0) 72%);
    z-index: 0;
  }
  .float.interactive { pointer-events: auto; cursor: none; }
  /* Enlarged circular hover zone so the bubble triggers near the teammate, not only on top of them */
  .float.interactive::before { content: ""; position: absolute; inset: -30px; border-radius: 50%; z-index: 0; }
  .float.interactive:hover { z-index: 15; }
  /* Teammate nametag, revealed under the illustration when Frank gets close */
  .float.interactive::after {
    content: attr(data-name);
    position: absolute; left: 50%; top: 100%; margin-top: 10px; transform: translate(-50%, 4px);
    font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent); white-space: nowrap; pointer-events: none;
    opacity: 0; transition: opacity .2s ease, transform .2s ease;
  }
  .float.interactive:hover::after { opacity: 1; transform: translate(-50%, 0); }

  /* decorative confetti */
  .deco { position: absolute; will-change: transform; z-index: 9; }
  .deco .spin { width: 100%; height: 100%; animation: bob var(--dur,7s) ease-in-out var(--delay,0s) infinite; }
  .dot { border-radius: 50%; }
  .ring { border-radius: 50%; background: transparent; }
  .sq { border-radius: 5px; }
  .plus { position: relative; }
  .plus::before, .plus::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
  .plus::before { left: 50%; top: 0; width: 22%; height: 100%; transform: translateX(-50%); }
  .plus::after { top: 50%; left: 0; height: 22%; width: 100%; transform: translateY(-50%); }
  .star { color: var(--accent); font-size: 100%; line-height: 1; }

  /* ---------- footer ---------- */
  .footer {
    position: fixed; z-index: 20; bottom: max(26px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
    width: calc(100% - 40px);
    display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center;
  }
  .flinks { display: flex; align-items: center; gap: 11px; flex-wrap: nowrap; white-space: nowrap; justify-content: center; opacity: 0.4; pointer-events: none; }
  .flinks a { font-size: 14px; color: #a6a3ad; text-decoration: none; }
  .flinks .sep { color: #cfccd4; font-size: 13px; }
  .copy { font-size: 13.5px; color: #b4b1bb; white-space: nowrap; }
  .copy a { color: inherit; text-decoration: none; transition: color .18s; }
  .copy a:hover { color: var(--accent); }
  .footrow { display: flex; align-items: center; justify-content: center; gap: 11px; margin-top: 4px; }
  .footrow .signlink { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: color .2s; }
  .footrow .signlink:hover { color: var(--ink); }
  .footrow .signlink .arr { transition: transform .2s; }
  .footrow .signlink:hover .arr { transform: translateX(2px); }
  .footrow .rowsep { color: #cfccd4; font-size: 12px; }

  @media (prefers-reduced-motion: reduce) {
    .bob, .deco .spin, .status .dot, .caret { animation: none !important; }
  }

  /* ---------- responsive ---------- */
  @media (max-width: 980px), (any-hover: none) {
    body, body * { cursor: auto; }
    body { overflow-x: hidden; overflow-y: auto; }
    .cursor-dot { display: none !important; }

    .stage {
      height: auto; min-height: 100vh;
      display: flex; flex-direction: column; align-items: center;
      padding: 48px 20px 34px;
    }

    /* Frank, front and centre at the top */
    .franky {
      position: relative !important; order: 1; z-index: 40;
      left: auto !important; right: auto !important; top: auto !important; bottom: auto !important;
      transform: none !important;
      width: auto; height: auto;
      display: flex; flex-direction: column; align-items: center;
      margin-bottom: 14px;
    }
    .franky-head { position: static !important; left: auto; top: auto; width: 104px !important; }
    .franky-name {
      position: static !important; left: auto; top: auto; bottom: auto;
      transform: none !important; margin-top: 4px; text-align: center;
    }
    .franky-bubble {
      position: static !important; left: auto !important; right: auto !important;
      top: auto !important; bottom: auto !important; transform: none !important;
      margin: 16px auto 0; max-width: min(300px, 82vw);
    }
    .franky-bubble::after {
      left: 50% !important; right: auto !important; top: -6px !important; bottom: auto !important;
      transform: translateX(-50%) rotate(45deg) !important;
      border: none !important;
      border-left: 1px solid var(--line) !important; border-top: 1px solid var(--line) !important;
      border-radius: 0 !important; border-top-left-radius: 3px !important;
    }

    /* Headline + copy + CTA in the middle */
    .center {
      position: relative !important; order: 2;
      top: auto; left: auto; transform: none;
      width: 100%; max-width: 560px; margin: 4px auto 0; padding: 0;
    }
    .signin { height: auto; margin-top: 24px; }

    /* The rest of the team, lined up along the bottom */
    .floats {
      position: relative !important; inset: auto !important; order: 3;
      width: 100%; pointer-events: auto;
      display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end;
      gap: 8px 14px; margin-top: 38px;
    }
    .float, .float.hide-sm {
      display: block !important;
      position: relative !important;
      top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
      transform: none !important;
      width: 70px !important;
    }
    .float.interactive::before { display: none; }
    .float.interactive::after { display: none; }
    .float .char::before { display: none; }
    .deco { display: none !important; }

    .footer {
      position: relative !important; order: 4;
      bottom: auto; left: auto; transform: none; margin-top: 30px; width: 100%;
    }
    .flinks { flex-wrap: wrap; white-space: normal; }
    .copy { white-space: normal; }
  }
  @media (max-width: 600px) {
    nav { padding: 16px 18px; }
    .status { display: none; }
    .float, .float.hide-sm { width: 62px !important; }
    .floats { gap: 6px 12px; }
  }
