/* Fallback fonts tuned to the web fonts' size, so the swap causes no layout shift */
@font-face { font-family: "Geist Fallback"; src: local("Arial"); size-adjust: 102.1%; ascent-override: 98.9%; descent-override: 28.4%; line-gap-override: 0%; }
  :root {
    --ink: #0b0d12;
    --ink-2: #4b5160;
    --ink-3: #686d7a;
    --ink-4: #d3d6de;
    --line: #e7e9ef;
    --surface: #f4f5f9;
    --surface-2: #eceef5;
    --white: #ffffff;
    --blue-1: #1e82e0;
    --blue-2: #1c38ea;
    --lavender: #e4e7f4;
    --serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", var(--sans); /* no serif anywhere: the old EB Garamond spots now use SF Pro */
    --sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius-lg: 28px;
    --radius-md: 18px;
    --max: 1120px;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

  /* ---------- Buttons ---------- */
  /* Primary: calm, solid, Apple-style pill */
  .btn-glow {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px;
    border-radius: 980px;
    color: #fff; font-weight: 500; font-size: 17px; letter-spacing: -0.01em;
    background: #0071e3;
    transition: background-color .2s ease, transform .2s ease;
  }
  .btn-glow:hover { background: #0077ed; }
  .btn-glow:active { background: #006edb; transform: scale(.98); }
  .btn-glow:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; }
  .btn-glow svg { width: 16px; height: 16px; }

  /* hero-sized primary */
  .btn-lg { padding: 14px 26px; font-size: 17px; }

  /* Secondary: quiet frosted pill */
  .btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px; border-radius: 980px;
    font-weight: 500; font-size: 17px; letter-spacing: -0.01em;
    color: #1d1d1f;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
    transition: background-color .2s ease, transform .2s ease;
  }
  .btn-ghost:hover { background: rgba(255,255,255,.95); }
  .btn-ghost:active { transform: scale(.98); }
  .btn-ghost:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; }
  .btn-ghost .arrow { display: inline-flex; color: #0071e3; transition: transform .2s ease; }
  .btn-ghost .arrow svg { width: 15px; height: 15px; }
  .btn-ghost:hover .arrow { transform: translateY(2px); }

  /* ---------- Nav ---------- */
  .nav {
    position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  }
  .nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
  .logo { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
  .logo-mark {
    width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid currentColor;
    display: grid; place-items: center;
    font-family: var(--serif); font-size: 15px; font-weight: 500; line-height: 1;
  }
  .nav-links { display: flex; gap: 32px; color: rgba(255,255,255,.92); font-size: 15px; font-weight: 500; }
  .nav-links a:hover { color: #fff; }
  .nav-right { display: flex; align-items: center; gap: 24px; }
  .nav-right .social { color: rgba(255,255,255,.9); font-size: 15px; font-weight: 500; }

  /* Floating pill that appears after the hero */
  .float-cta {
    position: fixed; top: 16px; right: 16px; z-index: 30;
    padding: 10px 16px; font-size: 15px;
    opacity: 0; transform: translateY(-12px); pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
  }
  .float-cta.show { opacity: 1; transform: none; pointer-events: auto; }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    padding: 150px 0 0;
    overflow: hidden;
    background: linear-gradient(180deg, #4a7cc9 0%, #6d9ad9 20%, #9fbfea 38%, #d3e3f7 54%, #f7faff 66%, #ffffff 74%);
    isolation: isolate;
  }
  .hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
  .hero-art::after {
    content: ""; position: absolute; left: 0; right: 0; top: 500px; bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.85) 160px, #ffffff 240px);
  }
  .hero-art svg { position: absolute; left: 0; width: 100%; }
  .hero-art .mountains { top: 300px; height: 400px; opacity: .8; }
  .hero-sun {
    position: absolute; top: 360px; right: 9%;
    width: 120px; height: 120px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.95) 0 34%, rgba(255,250,238,.7) 46%, rgba(255,240,215,.25) 68%, rgba(255,240,215,0) 100%);
  }
  .hero-sun::after {
    content: ""; position: absolute; inset: -120px;
    background: radial-gradient(circle, rgba(255,244,225,.35), rgba(255,244,225,0) 60%);
  }
  .hero-copy { text-align: center; color: #fff; position: relative; }
  /* Headlines: Apple's SF Pro on Apple devices, Geist elsewhere. Key words get a soft blue shine, never italics. */
  .hero h1 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", var(--sans); font-weight: 600;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.05; letter-spacing: -0.028em; text-wrap: balance;
    text-shadow: 0 2px 24px rgba(20,50,120,.16);
  }
  .hero h1 em { font-style: normal; white-space: nowrap; text-shadow: none; background: linear-gradient(95deg, #2a5cb8 0%, #3a7bd8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero-sub {
    margin: 22px auto 0; max-width: 560px;
    font-size: clamp(16px, 2vw, 19px); line-height: 1.55;
    color: rgba(255,255,255,.94);
  }
  .hero-actions { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

  /* ---- Intro motion (on load, like Cluely) ---- */
  .rise-line { display: inline-block; overflow: hidden; padding: 0 .08em .18em; margin: 0 -.08em -.18em; vertical-align: bottom; }
  .rise-word { display: inline-block; animation: word-rise .6s cubic-bezier(.22,1,.36,1) both; }
  @keyframes word-rise {
    from { transform: translateY(105%); opacity: 0; filter: blur(6px); }
    to   { transform: none; opacity: 1; filter: blur(0); }
  }
  .intro-fade { animation: intro-fade .8s cubic-bezier(.22,1,.36,1) both; }
  @keyframes intro-fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }


  /* Desktop frame with a live chat preview */
  .stage {
    position: relative; margin: 72px auto 0; max-width: 1000px;
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: 0 40px 80px rgba(60,90,170,.25), 0 0 0 1px rgba(30,40,90,.04);
    animation: stage-rise 1.1s cubic-bezier(.22,1,.36,1) .55s both;
    transform-origin: 50% 0;
  }
  @keyframes stage-rise {
    from { opacity: 0; transform: perspective(1200px) translateY(200px) scale(.7) rotateX(8deg); }
    to   { opacity: 1; transform: none; }
  }
  .stage-screen {
    position: relative; overflow: hidden;
    min-height: 400px;
    background:
      repeating-conic-gradient(from 200deg at 62% -18%, rgba(255,255,255,.16) 0deg 3deg, rgba(255,255,255,0) 3deg 9deg),
      radial-gradient(120% 90% at 62% -10%, #fff3d6 0%, #ffd29a 22%, rgba(255,190,140,0) 55%),
      linear-gradient(180deg, #f7c48e 0%, #ef9f7c 38%, #b98bd8 72%, #6f8ff0 100%);
    display: grid; place-items: center;
    padding: 64px 20px 56px;
  }

  .glass-chat .q { animation: pop .45s cubic-bezier(.22,1.4,.36,1) 1.5s both; }
  @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
  .stream-word { opacity: 0; transition: opacity .25s ease; }
  .stream-word.on { opacity: 1; }
  .glass-chat .ask { animation: intro-fade .6s ease both; animation-delay: var(--ask-delay, 4s); }
  .stage-bar {
    position: absolute; top: 0; left: 0; right: 0; height: 30px;
    display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
    background: rgba(255,255,255,.22); color: rgba(255,255,255,.95); font-size: 12px; font-weight: 500;
  }
  .stage-bar .dots { display: flex; gap: 8px; }
  .stage-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.7); display: block; }

  .glass-toolbar {
    position: absolute; top: 46px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 8px; padding: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.72); color: #1d1d1f; font-size: 13px; font-weight: 500;
    backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 1px 2px rgba(40,50,90,.08), 0 10px 26px -12px rgba(40,50,90,.25);
  }
  .glass-toolbar .tb-mark { width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.05); display: grid; place-items: center; font-family: var(--serif); font-size: 15px; }
  .glass-toolbar .tb-pill { padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.05); }

  .glass-chat {
    width: min(560px, 100%); margin-top: 34px;
    border-radius: 18px; padding: 18px;
    background: rgba(255,255,255,.74); color: #1d1d1f;
    border: 1px solid rgba(255,255,255,.85);
    backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
    box-shadow: 0 1px 2px rgba(40,50,90,.06), 0 30px 70px -24px rgba(40,50,90,.35);
    text-align: left;
  }
  .glass-chat .q {
    margin-left: auto; width: fit-content; max-width: 80%;
    padding: 7px 12px; border-radius: 12px 12px 4px 12px;
    background: #0071e3; color: #fff;
    font-size: 13px; font-weight: 500;
  }
  .glass-chat .a { margin-top: 14px; font-size: 15px; line-height: 1.6; color: #3a3a3c; }
  .glass-chat .a strong { color: #1d1d1f; font-weight: 600; }
  .glass-chat .ask {
    margin-top: 16px; width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 14px; border-radius: 12px;
    background: rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.05);
    color: #6e6e73; font-size: 13px; text-align: left;
    transition: background .2s ease;
  }
  .glass-chat .ask:hover { background: rgba(0,0,0,.07); }
  .glass-chat .ask kbd {
    font-family: var(--sans); font-size: 12px; color: #fff;
    padding: 4px 8px; border-radius: 7px;
    background: #0071e3;
  }

  /* ---------- Sections ---------- */
  section { scroll-margin-top: 24px; }
  .section { padding: 120px 0; }
  .eyebrow {
    font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-3);
  }
  .h2 {
    font-size: clamp(32px, 4.6vw, 52px); font-weight: 500;
    letter-spacing: -0.035em; line-height: 1.08;
  }
  .h2 .muted { color: var(--ink-3); }
  .grad {
    display: inline-block;
    background: linear-gradient(90deg, #19191d 0%, #626275 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }

  .fade-up { opacity: 0; transform: translateY(16px); transition: opacity .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1); }
  .fade-up.in { opacity: 1; transform: none; }
  .divider { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
  .divider hr { border: 0; border-top: 1px solid var(--line); }

  /* ---------- Work ---------- */
  .work-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
  .work-head p { max-width: 360px; color: var(--ink-2); font-size: 17px; }
  .projects { display: grid; gap: 24px; }
  .project {
    display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center;
    padding: 40px; border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
  }
  .project.featured {
    color: #fff; border-color: transparent;
    background:
      radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.28) 0, rgba(255,255,255,0) 55%),
      linear-gradient(160deg, #6f9df0 0%, #3f6fe6 55%, #2a4fe0 100%);
    box-shadow: 0 30px 60px rgba(60,100,230,.22);
  }
  .project.flip .p-media { order: -1; }
  .p-meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--ink-3); font-weight: 500; }
  .featured .p-meta { color: rgba(255,255,255,.8); }
  .p-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
  .p-role {
    padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .08em;
    background: var(--white); color: var(--ink-2); border: 1px solid var(--line);
  }
  .featured .p-role { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.3); }
  .project h3 { margin-top: 16px; font-size: clamp(26px, 3vw, 34px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
  .p-desc { margin-top: 12px; font-size: 17px; color: var(--ink-2); line-height: 1.6; }
  .featured .p-desc { color: rgba(255,255,255,.88); }
  .p-stats { margin-top: 24px; display: flex; gap: 32px; flex-wrap: wrap; }
  .p-stat b { display: block; font-size: 28px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
  .p-stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-3); }
  .featured .p-stat span { color: rgba(255,255,255,.75); }
  .p-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
  .p-tags span {
    padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 500;
    background: var(--white); color: var(--ink-2); border: 1px solid var(--line);
  }
  .featured .p-tags span { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.22); }
  .p-link {
    margin-top: 24px; display: inline-flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 500; color: var(--blue-2);
  }
  .featured .p-link { color: #fff; }
  .p-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
  .p-link:hover svg { transform: translateX(3px); }

  .p-media {
    border-radius: 18px; overflow: hidden; background: #dfe7f7;
    box-shadow: 0 20px 50px rgba(30,40,80,.10);
  }
  .featured .p-media { box-shadow: 0 24px 60px rgba(10,20,90,.28); }
  .p-media .bar { height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #f7f8fb; border-bottom: 1px solid var(--line); }
  .p-media .bar i { width: 9px; height: 9px; border-radius: 50%; display: block; background: #dfe2e9; }
  .p-media .bar i:nth-child(1) { background: #ff5f57; }
  .p-media .bar i:nth-child(2) { background: #febc2e; }
  .p-media .bar i:nth-child(3) { background: #28c840; }
  .p-media img, .p-media video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
  /* stills (no video yet) get a slow, subtle drift so they don't feel frozen */
  .p-media img { animation: drift 16s ease-in-out infinite alternate; transform-origin: 50% 55%; }
  @keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.07) translate(-1%, -1%); } }

  /* ---------- Results ---------- */
  .results { background: var(--white); }
  .results-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .results-left { position: sticky; top: 100px; }
  .results-left p { margin-top: 20px; color: var(--ink-2); font-size: 17px; max-width: 380px; }
  .result-row { display: grid; grid-template-columns: 190px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
  .result-row:last-child { border-bottom: 1px solid var(--line); }
  .result-num { font-size: clamp(44px, 5vw, 60px); font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
  .result-num small { font-size: .45em; letter-spacing: -0.02em; }
  .result-row h4 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
  .result-row p { margin-top: 8px; color: var(--ink-3); font-size: 15px; line-height: 1.6; }

  /* ---------- About ---------- */
  .about { background: var(--white); }
  .about-card { background: var(--surface) !important; border-color: transparent !important; }
  .about-grid { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
  .about-photo {
    grid-row: span 2;
    border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 420px;
    background: var(--surface-2);
  }
  .about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .about-photo .tag {
    position: absolute; left: 16px; bottom: 16px;
    padding: 8px 12px; border-radius: 12px;
    background: rgba(255,255,255,.75); color: var(--ink); font-size: 13px; font-weight: 500;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .about-card {
    border-radius: var(--radius-md); padding: 28px;
    background: var(--white); border: 1px solid var(--line);
  }
  .about-card .icon {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
    background: linear-gradient(145deg, #ffffff, #e6e9f3);
    box-shadow: 6px 6px 14px rgba(120,130,170,.18), -4px -4px 10px rgba(255,255,255,.9), inset 1px 1px 0 rgba(255,255,255,.8);
    color: var(--blue-2);
  }
  .about-card .icon svg { width: 22px; height: 22px; }
  .about-card p { font-size: 17px; line-height: 1.6; color: var(--ink-3); }
  .about-card p b { color: var(--ink); font-weight: 500; }

  /* ---------- FAQ ---------- */
  .faq-list { margin-top: 40px; border-top: 1px solid var(--line); }
  .faq-item { border-bottom: 1px solid var(--line); }
  .faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 24px 0; text-align: left; font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  }
  .faq-q svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); transition: transform .3s ease; }
  .faq-item.open .faq-q svg { transform: rotate(180deg); }
  .faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
  .faq-a > div { overflow: hidden; }
  .faq-a p { padding: 0 40px 24px 0; color: var(--ink-2); font-size: 17px; line-height: 1.65; max-width: 760px; }
  .faq-item.open .faq-a { grid-template-rows: 1fr; }
  .faq-a a { color: var(--blue-2); }

  /* ---------- CTA / Contact ---------- */
  .cta {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, #eef0f8 0%, var(--lavender) 100%);
    padding: 120px 0 0;
  }
  .cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; position: relative; z-index: 1; }
  .cta h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.12; }
  .cta h2 .muted { color: #8a91b4; }
  .cta-copy p { margin-top: 18px; color: var(--ink-2); font-size: 17px; max-width: 440px; }
  .cta-copy .btn-glow { margin-top: 30px; }
  .contact-lines { margin-top: 36px; display: grid; gap: 12px; font-size: 15px; }
  .contact-lines a { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-2); width: fit-content; }
  .contact-lines a:hover { color: var(--ink); }
  .contact-lines svg { width: 18px; height: 18px; color: var(--ink-3); }

  .form-card {
    background: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.9);
    border-radius: var(--radius-lg); padding: 32px;
    box-shadow: 0 30px 60px rgba(90,100,160,.14);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .field { display: grid; gap: 8px; margin-bottom: 16px; }
  .field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
  .field input, .field textarea {
    width: 100%; font: inherit; font-size: 17px; color: var(--ink);
    padding: 12px 14px; border-radius: 12px;
    background: var(--white); border: 1px solid var(--line);
    outline: none; transition: border-color .2s ease, box-shadow .2s ease;
  }
  .field textarea { min-height: 120px; resize: vertical; }
  .field input:focus, .field textarea:focus { border-color: #7d95f0; box-shadow: 0 0 0 4px rgba(60,100,240,.12); }
  .form-card .btn-glow { width: 100%; justify-content: center; margin-top: 4px; }
  .form-card .btn-glow:disabled { opacity: .7; cursor: default; transform: none; }

  .keycap {
    position: absolute; z-index: 0; width: 110px; height: 110px; border-radius: 28px;
    display: grid; place-items: center; color: #b7bde0;
    background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(226,230,246,.85));
    box-shadow: 18px 22px 40px rgba(110,120,190,.25), inset -6px -6px 12px rgba(190,198,235,.6), inset 6px 6px 10px rgba(255,255,255,.95);
    transform: rotate(-10deg);
  }
  .keycap svg { width: 46px; height: 46px; }
  .form-wrap { position: relative; }
  .form-wrap .keycap { z-index: 2; }
  .keycap.k1 { top: -44px; right: -28px; transform: rotate(12deg); }
  .keycap.k2 { bottom: -34px; left: -40px; width: 84px; height: 84px; border-radius: 22px; }
  .keycap.k2 svg { width: 36px; height: 36px; }

  footer { position: relative; z-index: 1; margin-top: 110px; border-top: 1px solid rgba(140,150,200,.25); }
  .foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 48px 0; }
  .foot .fh { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
  .foot ul { list-style: none; display: grid; gap: 12px; font-size: 15px; color: var(--ink-2); }
  .foot ul a:hover { color: var(--ink); }
  .foot .logo { color: var(--ink); }
  .foot .copy { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

  /* ---------- Chat modal ---------- */
  .chat-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(15,20,40,.35);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; pointer-events: none; transition: opacity .25s ease;
  }
  .chat-overlay.active { opacity: 1; pointer-events: auto; }
  .chat {
    position: fixed; z-index: 101; left: 50%; top: 50%;
    width: min(560px, calc(100% - 24px)); height: min(680px, calc(100vh - 48px));
    transform: translate(-50%, -46%) scale(.98); opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .3s cubic-bezier(.2,.8,.2,1);
    display: flex; flex-direction: column;
    border-radius: 24px; overflow: hidden;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 40px 100px rgba(20,30,80,.3);
  }
  .chat.active { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
  .chat-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 18px; border-bottom: 1px solid var(--line);
  }
  .chat-who { display: flex; align-items: center; gap: 12px; }
  img.chat-avatar { object-fit: cover; }
  .chat-avatar {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    color: #fff; font-family: var(--serif); font-size: 22px;
    background: radial-gradient(114% 114% at 10% 17%, var(--blue-1) 0, var(--blue-2) 100%);
    box-shadow: inset -2px -2px 3px rgba(191,229,251,.4);
  }
  .chat-who h2, .chat-who h4 { font-size: 15px; font-weight: 600; }
  .chat-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
  .chat-status i { width: 7px; height: 7px; border-radius: 50%; background: #28c840; display: block; }
  .chat-close { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); }
  .chat-close:hover { background: var(--surface); }
  .chat-close svg { width: 18px; height: 18px; }
  .chat-msgs { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; }
  .msg { max-width: 85%; padding: 11px 14px; font-size: 15px; line-height: 1.55; border-radius: 16px; word-wrap: break-word; }
  .msg.bot { align-self: flex-start; background: var(--surface); color: var(--ink); border-bottom-left-radius: 5px; }
  .msg.user {
    align-self: flex-end; color: #fff; border-bottom-right-radius: 5px;
    background: radial-gradient(114% 114% at 10% 17%, var(--blue-1) 0, var(--blue-2) 100%);
  }
  .msg.thinking { color: var(--ink-3); }
  .chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 14px; }
  .chat-suggest button {
    padding: 8px 12px; border-radius: 999px; font-size: 13px; color: var(--ink-2);
    background: var(--white); border: 1px solid var(--line); transition: border-color .2s ease, color .2s ease;
  }
  .chat-suggest button:hover { border-color: #9fb1f3; color: var(--blue-2); }
  .chat-input { display: flex; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
  .chat-input input {
    flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 12px 14px;
    border-radius: 12px; border: 1px solid var(--line); outline: none; background: var(--white); color: var(--ink);
  }
  .chat-input input:focus { border-color: #7d95f0; box-shadow: 0 0 0 4px rgba(60,100,240,.12); }
  .chat-input .btn-glow { padding: 0 16px; box-shadow: inset -3px -3px 4px rgba(191,229,251,.4); }

  /* ---------- Responsive ---------- */
  @media (max-width: 900px) {
    .project, .project.flip { grid-template-columns: 1fr; padding: 28px; gap: 32px; }
    .project .p-media, .project.flip .p-media { order: -1; }
    .results-grid { grid-template-columns: 1fr; gap: 32px; }
    .results-left { position: static; }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .about-photo { grid-column: span 2; grid-row: auto; min-height: 360px; }
    .cta-grid { grid-template-columns: 1fr; }
    .keycap.k2 { display: none; }
    .foot { grid-template-columns: 1fr 1fr; }
    .foot > div:first-child { grid-column: span 2; }
  }
  @media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .hero h1 br { display: none; } /* let the headline wrap on its own on phones */
    .hero h1 { font-size: 37px; }
    .nav-links { display: none; }
    .nav-right .social { display: none; }
    .hero { padding-top: 120px; }
    .hero-art .mountains { top: 330px; height: 260px; }
    .hero-sun { top: 400px; right: -10px; width: 100px; height: 100px; }
    .stage { margin-top: 56px; border-radius: 14px; }
    .stage-screen { min-height: 0; padding: 60px 12px 28px; }
    .glass-toolbar { top: 40px; }
    .glass-chat { padding: 14px; }
    .section { padding: 84px 0; }
    .project, .project.flip { padding: 20px; border-radius: 22px; }
    .p-stats { gap: 24px; }
    .result-row { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
    .about-grid { grid-template-columns: 1fr; }
    .about-photo { grid-column: auto; min-height: 340px; }
    .faq-q { font-size: 17px; padding: 20px 0; }
    .faq-a p { padding-right: 0; }
    .cta { padding-top: 84px; }
    .form-card { padding: 22px; }
    .keycap.k1 { width: 64px; height: 64px; border-radius: 18px; top: -26px; right: -6px; }
    .keycap.k1 svg { width: 30px; height: 30px; }
    .float-cta { top: auto; bottom: 16px; right: 16px; }
    .chat { width: calc(100% - 16px); height: calc(100dvh - 32px); border-radius: 20px; }
  }


  /* ---------- Case studies ---------- */
  .cases { display: grid; gap: 40px; }
  .cs { border-radius: var(--radius-lg); background: var(--surface); padding: 28px; display: grid; gap: 32px; }
  .cs-media { border-radius: 18px; overflow: hidden; background: #f5f5f7; box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
  .cs-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  .cs-planned { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 24px; text-align: center;
    background: repeating-linear-gradient(135deg, #f7f7f9 0 14px, #f1f2f5 14px 28px); color: var(--ink-3); font-size: 15px; }
  .cs-planned span { padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
  .cs-head { padding: 0 8px; max-width: 820px; }
  .cs-meta { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; font-size: 13px; color: var(--ink-3); font-weight: 500; }
  .cs-kicker { color: var(--ink); font-weight: 600; }
  .cs h3 { margin-top: 12px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; }
  .cs-lede { margin-top: 14px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
  .cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cs-grid > div { background: #fff; border-radius: 16px; padding: 22px; }
  .cs-grid h4 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
  .cs-grid p, .cs-grid li { font-size: 15px; line-height: 1.6; color: var(--ink); }
  .cs-grid ul { list-style: none; display: grid; gap: 12px; }
  .cs-grid li { padding-left: 18px; position: relative; }
  .cs-grid li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #0071e3; }
  .cs-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 0 8px; }
  .cs-impact { display: flex; flex-wrap: wrap; gap: 32px; }
  .cs-impact b { display: block; font-size: 28px; font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
  .cs-impact span { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-3); text-wrap: balance; }
  .cs .p-tags { margin-top: 0; }
  mark.tbd { background: #fff1b8; color: inherit; border-radius: 4px; padding: 0 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .cs-impact mark.tbd { font-size: inherit; }
  .cs-src { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); }
  .draft-note { display: inline-block; margin-top: 6px; font-size: 13px; color: #8a6d00; background: #fff6d6; padding: 3px 8px; border-radius: 6px; }

  .section-tight { padding: 72px 0; }
  .h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
  .earlier { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .early { background: var(--surface); border-radius: var(--radius-md); padding: 24px; }
  .early-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .early h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
  .early-top span { font-size: 13px; color: var(--ink-3); }
  .early p { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
  .early-stats { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--ink-3); }
  .early-stats b { color: var(--ink); font-weight: 600; font-size: 15px; }

  .principles { margin-top: 40px; list-style: none; counter-reset: pr; border-top: 1px solid var(--line); }
  .principles li { counter-increment: pr; display: grid; grid-template-columns: 56px 1fr 1.2fr; gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
  .principles li::before { content: "0" counter(pr); font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .principles b { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
  .principles span { color: var(--ink-2); font-size: 17px; line-height: 1.6; }

  .proof { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: #f5f5f7; border-radius: var(--radius-lg); padding: 36px 40px; }
  .proof p { margin-top: 10px; color: var(--ink-2); font-size: 17px; max-width: 560px; line-height: 1.6; }

  @media (max-width: 900px) {
    .cs-grid { grid-template-columns: 1fr; }
    .principles li { grid-template-columns: 40px 1fr; }
    .principles li span { grid-column: 2; }
    .earlier { grid-template-columns: 1fr; }
  }
  @media (max-width: 640px) {
    .cs { padding: 16px; gap: 24px; border-radius: 22px; }
    .cs-lede { font-size: 17px; }
    .cs-impact { gap: 24px; }
    .cs-impact b { font-size: 28px; }
    .proof { padding: 26px 22px; }
  }

  .cs { padding: 20px; gap: 24px; }
  .cs-media { border-radius: 20px; }
  .cs-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; padding: 0 10px; }
  .cs-row .cs-head { padding: 0; flex: 1 1 460px; }
  .cs-row .cs-impact { flex: 0 1 auto; }
  .cs-lede { font-size: 17px; }
  .cs-more { padding: 0 10px 6px; }
  .cs-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 12px;
    font-size: 15px; font-weight: 500; color: #0071e3; padding: 8px 0; }
  .cs-more summary::-webkit-details-marker { display: none; }
  .cs-more summary span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e8f0fe; font-size: 15px; line-height: 1; transition: transform .25s ease; }
  .cs-more[open] summary span { transform: rotate(45deg); }
  .cs-more .cs-grid { margin-top: 12px; }
  .cs-more .cs-foot { margin-top: 18px; padding: 0; }

  /* ---------- Off the clock ---------- */
  .life { margin-top: 44px; display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
  .life-photo { grid-row: span 2; border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 460px; background: var(--surface-2); }
  .life-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .life-photo .tag { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.8); font-size: 13px; font-weight: 500; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .tile { border-radius: var(--radius-md); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
  .tile .scene { display: block; width: 100%; aspect-ratio: 16 / 10; }
  .tile .cap { padding: 14px 16px 18px; }
  .tile .cap b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
  .tile .cap span { display: block; margin-top: 4px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }

  .t-hike .trail { stroke-dashoffset: 0; animation: march 2.4s linear infinite; }
  @keyframes march { to { stroke-dashoffset: -22; } }
  .t-hike .hiker { offset-path: path("M30 192 C 80 180, 90 160, 130 150 S 170 110, 160 58"); animation: climb 7s ease-in-out infinite; }
  @keyframes climb { 0% { offset-distance: 0%; } 80%, 100% { offset-distance: 100%; } }

  .board { position: relative; display: grid !important; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); background: #eef1f6; }
  .board .sq { background: #f6f3ec; } .board .sq.d { background: #b9c7dd; }
  .board .knight, .board .king { position: absolute; width: 25%; height: 25%; display: grid; place-items: center; font-size: clamp(26px, 3vw, 40px); line-height: 1; }
  .board .king { left: 75%; top: 0; color: #1d1d1f; }
  .board .knight { color: #0071e3; animation: hop 6s cubic-bezier(.5,0,.3,1) infinite; }
  @keyframes hop {
    0%, 12% { left: 0; top: 75%; }
    25%, 37% { left: 25%; top: 25%; }
    50%, 62% { left: 75%; top: 50%; }
    75%, 87% { left: 50%; top: 0; }
    100% { left: 0; top: 75%; }
  }

  .t-art .stroke { stroke-dasharray: 420; stroke-dashoffset: 420; animation: paint 6s ease-in-out infinite; }
  .t-art .s2 { animation-delay: .6s; }
  @keyframes paint { 0% { stroke-dashoffset: 420; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -420; } }
  .t-art .dot { transform-origin: 230px 55px; animation: artdot 6s ease-in-out infinite; }
  @keyframes artdot { 0%, 40% { transform: scale(0); } 50%, 85% { transform: scale(1); } 100% { transform: scale(0); } }

  .t-bbq .wisp { opacity: 0; animation: rise 3.6s ease-in-out infinite; }
  .t-bbq .w2 { animation-delay: 1.2s; } .t-bbq .w3 { animation-delay: 2.4s; }
  @keyframes rise { 0% { opacity: 0; transform: translateY(14px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-26px); } }
  .t-bbq .ember { animation: glow 2s ease-in-out infinite alternate; }
  @keyframes glow { from { fill: #ff8a3d; } to { fill: #ffbd59; } }

  @media (max-width: 900px) {
    .life { grid-template-columns: 1fr 1fr; }
    .life-photo { grid-column: span 2; grid-row: auto; min-height: 380px; }
  }
  @media (max-width: 640px) {
    .life { grid-template-columns: 1fr; }
    .life-photo { grid-column: auto; min-height: 340px; }
  }

  /* ---------- Recommendations ---------- */
  .recs { overflow: hidden; }
  .recs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
  .recs-link { background: var(--surface); font-size: 15px; padding: 11px 20px; }
  .marquee { overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
  .marquee + .marquee { margin-top: 10px; }
  .track { display: flex; width: max-content; animation: scrollx 110s linear infinite; }
  .reverse .track { animation-direction: reverse; animation-duration: 120s; }
  .marquee:hover .track, .marquee:focus-within .track { animation-play-state: paused; }
  @keyframes scrollx { to { transform: translateX(-50%); } }
  .rec { width: 380px; margin-right: 16px; flex: none; text-align: left; display: flex; flex-direction: column; gap: 16px;
    padding: 24px; border-radius: 22px; background: var(--surface); transition: background .2s ease, transform .2s ease; }
  .rec:hover { background: #eceef4; }
  .rec:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }
  .rec-q { font-size: 17px; line-height: 1.5; color: var(--ink); letter-spacing: -0.01em; flex: 1; }
  .rec-by { display: flex; align-items: center; gap: 12px; }
  .rec-by b, .rec-who b { display: block; font-size: 15px; font-weight: 600; }
  .rec-by small, .rec-who small { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.4; }
  .rec-av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; object-fit: cover;
    font-size: 15px; font-weight: 600; color: #fff; background: linear-gradient(135deg, hsl(var(--h,214) 80% 62%), hsl(calc(var(--h,214) + 30) 70% 48%)); }
  .rec-rel { font-size: 13px; color: var(--ink-3); font-weight: 500; }
  .rec-dialog { margin: auto; width: min(640px, calc(100% - 32px)); max-height: min(80vh, 720px); border: 0; border-radius: 24px; padding: 32px; color: var(--ink);
    box-shadow: 0 40px 100px rgba(20,30,80,.3); }
  .rec-dialog::backdrop { background: rgba(15,20,40,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .rec-close { position: absolute; top: 14px; right: 14px; }
  .rec-who { display: flex; align-items: center; gap: 16px; padding-right: 40px; }
  .rec-who .rec-av { width: 52px; height: 52px; font-size: 17px; }
  .rec-full { margin-top: 20px; display: grid; gap: 16px; }
  .rec-full p { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
  .cs-quote { margin: 18px 0 0; display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: #fff;
    box-shadow: 0 0 0 1px rgba(20,30,60,.05), 0 10px 30px -18px rgba(30,45,100,.25); max-width: 620px; }
  .cs-quote img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
  .cs-quote blockquote { font-size: 15px; line-height: 1.55; color: var(--ink); letter-spacing: -0.005em; }
  .cs-quote figcaption { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
  .cs-quote figcaption b { color: var(--ink-2); font-weight: 600; }
  @media (max-width: 640px) {
    .rec { width: 290px; padding: 20px; }
    .rec-q { font-size: 17px; }
    .rec-dialog { padding: 24px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .track { animation: none; }
  }

  /* personal section v3: four photos + chess strip */
  .life { grid-template-columns: repeat(4, 1fr) !important; grid-template-rows: none !important; }
  .ptile { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface-2); }
  .ptile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s cubic-bezier(.22,1,.36,1); }
  .ptile:hover img { transform: scale(1.04); }
  .ptile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px 16px; color: #fff;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.65)); }
  .ptile figcaption b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
  .ptile figcaption span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.9); }
  .tile.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .tile.wide .scene { width: 240px; flex: none; aspect-ratio: 16 / 9; }
  .tile.wide .cap { padding: 16px 24px; }
  @media (max-width: 900px) { .life { grid-template-columns: repeat(2, 1fr) !important; } }
  @media (max-width: 640px) {
    .life { grid-template-columns: 1fr !important; }
    .ptile { aspect-ratio: 4 / 5; }
    .tile.wide { flex-direction: column; align-items: stretch; }
    .tile.wide .scene { width: 100%; }
  }

  /* ---------- Recommendations: spotlight ---------- */
  .tq { max-width: 920px; margin: 0 auto; text-align: center; }
  .tq-stage { position: relative; min-height: 190px; display: grid; place-items: center; padding: 0 48px; }
  .tq-text { font-size: clamp(24px, 3.1vw, 38px); line-height: 1.28; letter-spacing: -0.025em; font-weight: 500; color: var(--ink);
    transition: opacity .26s ease, transform .26s ease, filter .26s ease; }
  .tq.out .tq-text { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  .tq-mark { position: absolute; font-family: var(--serif); font-size: 96px; line-height: 1; color: #d9dce6; pointer-events: none; }
  .tq-open { left: 0; top: -6px; } .tq-close { right: 0; bottom: -40px; }
  .tq-role { margin-top: 26px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
    transition: opacity .26s ease; }
  .tq-role span { display: block; margin-top: 6px; letter-spacing: .04em; text-transform: none; font-weight: 500; color: var(--ink-2); font-size: 13px; }
  .tq.out .tq-role { opacity: 0; }
  .tq-people { margin: 26px auto 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 860px; }
  .tq-person { display: inline-flex; align-items: center; gap: 0; padding: 4px; border-radius: 999px; background: transparent;
    transition: background-color .35s ease, box-shadow .35s ease, gap .35s ease, padding .35s ease; opacity: .55; }
  .tq-person:hover { opacity: 1; }
  .tq-person .rec-av { width: 38px; height: 38px; font-size: 13px; }
  .tq-name { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--ink);
    transition: max-width .3s cubic-bezier(.22,1,.36,1), opacity .3s ease; opacity: 0; }
  .tq-person.on { opacity: 1; gap: 12px; padding: 4px 16px 4px 4px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(30,40,80,.10); }
  .tq-person.on .tq-name { max-width: 200px; opacity: 1; }
  .tq-person:not(.on):hover, .tq-person:not(.on):focus-visible { opacity: 1; gap: 12px; padding: 4px 16px 4px 4px; background: var(--surface); }
  .tq-person:not(.on):hover .tq-name, .tq-person:not(.on):focus-visible .tq-name { max-width: 200px; opacity: 1; color: var(--ink-2); }
  .tq-person:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }
  .tq-read { margin-top: 22px; font-size: 15px; font-weight: 500; color: #0071e3; }
  .tq-read:hover { text-decoration: underline; }
  @media (max-width: 640px) {
    .tq-stage { padding: 0 8px; min-height: 230px; }
    .tq-mark { display: none; }
    .tq-people { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 6px 4px 10px; scrollbar-width: none; }
    .tq-people::-webkit-scrollbar { display: none; }
    .tq-person { flex: none; }
  }

  .recs-center { display: block; text-align: center; margin-bottom: 36px; }
  .tq-people { flex-wrap: nowrap; gap: 4px; max-width: 100%; overflow-x: auto; padding: 8px 6px 12px; scrollbar-width: none; }
  .tq-people::-webkit-scrollbar { display: none; }
  .tq-person { flex: none; }
  .tq-person .rec-av { width: 34px; height: 34px; font-size: 12px; }
  .tq-links { margin-top: 18px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
  .tq-links .tq-read { margin-top: 0; }

  /* ---------- Hero prompt input (collapsed pill that springs open) ---------- */
  .hero-actions { flex-direction: column; align-items: center; gap: 16px; }
  .pi { width: min(560px, 100%); }
  .pi-box { position: relative; background: #fff; border-radius: 26px; padding: 6px 6px 6px 20px; text-align: left;
    box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 12px 40px rgba(30,60,140,.22), 0 0 0 1px rgba(255,255,255,.7);
    transition: border-radius .3s cubic-bezier(.34,1.4,.5,1), padding .3s cubic-bezier(.34,1.4,.5,1), box-shadow .3s ease; display: flex; align-items: center; gap: 8px; }
  .pi textarea { flex: 1; min-width: 0; border: 0; outline: none; resize: none; background: transparent; font: inherit; font-size: 17px; line-height: 1.45;
    color: var(--ink); padding: 10px 0; height: 43px; max-height: 160px; transition: height .3s cubic-bezier(.34,1.4,.5,1); }
  .pi textarea::placeholder { color: #8e8e93; }
  .pi-bar { display: flex; align-items: center; gap: 8px; }
  .pi-meta { display: none; align-items: center; gap: 8px; font-size: 13px; color: #6e6e73; font-weight: 500; padding: 6px 10px 6px 0; white-space: nowrap; }
  .pi-meta svg { width: 14px; height: 14px; color: #0071e3; }
  .pi-spacer { display: none; flex: 1; }
  .pi-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: transform .2s ease, background-color .2s ease; }
  .pi-btn svg { width: 17px; height: 17px; }
  .pi-mic { background: #0071e3; color: #fff; }
  .pi-mic.listening { background: #ff3b30; animation: pulse 1.2s ease-in-out infinite; }
  @keyframes pulse { 50% { transform: scale(1.08); } }
  .pi-send { display: none; background: #0071e3; color: #fff; }
  .pi-btn:active { transform: scale(.92); }
  .pi.has-text .pi-mic { display: none; }
  .pi.has-text .pi-send, .pi.no-mic .pi-send { display: grid; }
  /* open state */
  .pi.open .pi-box { flex-direction: column; align-items: stretch; border-radius: 22px; padding: 10px 10px 10px 18px; gap: 4px;
    box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 20px 60px rgba(30,60,140,.28), 0 0 0 1px rgba(255,255,255,.8); }
  .pi.open textarea { height: 64px; }
  .pi.open .pi-meta, .pi.open .pi-spacer { display: flex; }
  .pi.open .pi-meta + .pi-meta { padding-left: 10px; border-left: 1px solid #e5e5ea; }
  .pi.open .pi-mic { background: #eef4ff; color: #0071e3; }
  .pi.open .pi-mic.listening { background: #ff3b30; color: #fff; }
  .pi-under { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; font-size: 13px; color: #4a5a7c; }
  .pi-chip { padding: 7px 12px; border-radius: 999px; font-size: 13px; color: #16307e; background: rgba(255,255,255,.75); box-shadow: 0 0 0 1px rgba(22,48,126,.08);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s ease; }
  .pi-chip:hover { background: rgba(255,255,255,.92); }
  .pi-link { font-size: 15px; color: #16307e; font-weight: 500; }
  .pi-link:hover { text-decoration: underline; }
  @media (max-width: 640px) {
    .pi.open .pi-meta:nth-of-type(2) { display: none; }
    .pi-under span { display: none; }
  }

  /* live scenes */
  .scene-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #f4f5f8; }
  .scene-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
  .scene-frame iframe { position: absolute; left: 0; top: 0; width: 960px; height: 540px; border: 0; transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
  .scene-frame.live iframe { opacity: 1; }
  .scene-frame.live img { opacity: 0; }

  /* metrics: always three, same rhythm in every case study */
  .cs-row .cs-impact { display: grid; grid-template-columns: repeat(3, 148px); gap: 24px; align-items: start; }
  .cs-row .cs-impact b { font-size: 28px; }
  .cs-row .cs-impact span { font-size: 13px; line-height: 1.4; color: var(--ink-3); }
  @media (max-width: 640px) { .cs-row .cs-impact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .cs-row .cs-impact b { font-size: 28px; } }

  /* shipped releases strip */
  .ship { padding: 4px 10px 0; min-width: 0; }
  .cs { grid-template-columns: minmax(0, 1fr); }
  .ship-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
  .ship-head b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
  .ship-head span { font-size: 13px; color: var(--ink-3); }
  .ship-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 14px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .ship-rail::-webkit-scrollbar { display: none; }
  .ship-card { flex: none; width: 236px; scroll-snap-align: start; padding: 16px 16px 18px; border-radius: 16px; background: #fff;
    box-shadow: 0 1px 2px rgba(30,45,100,.05), 0 10px 26px -20px rgba(30,45,100,.35); transition: transform .3s cubic-bezier(.22,1,.36,1); }
  .ship-card:hover { transform: translateY(-2px); }
  .ship-date { display: inline-block; font-size: 12px; font-weight: 600; color: var(--ink-2); background: #eceef3; padding: 3px 9px; border-radius: 999px; }
  .ship-card b { display: block; margin-top: 10px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
  .ship-card p { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
  @media (max-width: 640px) { .ship-card { width: 210px; } }

  .cs-more .ship { padding: 0; margin-top: 22px; }
  .integ { margin-top: 30px; }
  .integ-row { display: flex; flex-wrap: wrap; gap: 8px; }
  .integ-row span { padding: 9px 14px; border-radius: 12px; background: #fff; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
    box-shadow: 0 1px 2px rgba(30,45,100,.05), 0 8px 20px -16px rgba(30,45,100,.35); }

  .glass-chat .a { max-height: 320px; overflow-y: auto; scrollbar-width: none; }
  .glass-chat .a::-webkit-scrollbar { display: none; }
  .glass-chat .q.again { animation: pop .45s cubic-bezier(.22,1.4,.36,1) both; }
  .glass-chat .thinking { color: #8e8e93; display: inline-flex; gap: 4px; align-items: center; }
  .glass-chat .thinking i { width: 6px; height: 6px; border-radius: 50%; background: #0071e3; opacity: .3; animation: dot 1.2s ease-in-out infinite; display: block; }
  .glass-chat .thinking i:nth-child(2) { animation-delay: .15s; } .glass-chat .thinking i:nth-child(3) { animation-delay: .3s; }
  @keyframes dot { 40% { opacity: 1; transform: translateY(-2px); } }

  /* releases: calm grid, nothing cut off */
  .cs-more .ship-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; -webkit-mask-image: none; mask-image: none; padding: 0; }
  .cs-more .ship-card { width: auto; }
  .cs-more .ship-head b { font-size: 17px; }
  @media (max-width: 900px) { .cs-more .ship-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 640px) { .cs-more .ship-rail { grid-template-columns: 1fr; } }

  /* principles */
  .pr-intro { margin-top: 16px; max-width: 620px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
  .prs { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .pr { background: var(--surface); border-radius: 22px; padding: 26px 24px 24px; display: flex; flex-direction: column; }
  .pr-n { font-size: 13px; font-weight: 600; color: #0071e3; font-variant-numeric: tabular-nums; }
  .pr h3 { margin-top: 10px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
  .pr p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
  .pr .pr-proof { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--ink); }
  .pr .pr-proof b { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
  @media (max-width: 900px) { .prs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 640px) { .prs { grid-template-columns: 1fr; } }

  /* ---------- AI evals ---------- */
  .ev { margin-top: 40px; background: var(--surface); border-radius: var(--radius-lg); padding: 28px; }
  .ev-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
  .ev-score { display: flex; align-items: center; gap: 16px; }
  .ev-score svg { width: 56px; height: 56px; transform: rotate(-90deg); flex: none; }
  .ev-score circle { fill: none; stroke-width: 6; }
  .ev-track { stroke: #e3e7ef; }
  .ev-prog { stroke: #0071e3; stroke-linecap: round; stroke-dasharray: 169.6; stroke-dashoffset: 169.6; transition: stroke-dashoffset .3s cubic-bezier(.22,1,.36,1), stroke .3s ease; }
  .ev-score b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
  .ev-score span { display: block; font-size: 15px; color: var(--ink-3); margin-top: 2px; }
  #evRun svg { width: 14px; height: 14px; }
  #evRun[disabled] { opacity: .55; cursor: default; }
  .ev-list { list-style: none; margin-top: 22px; display: grid; gap: 8px; }
  .ev-row { background: #fff; border-radius: 16px; transition: box-shadow .35s ease, transform .35s cubic-bezier(.22,1,.36,1); }
  .ev-row.has-answer { cursor: pointer; }
  .ev-row.has-answer:hover { transform: translateY(-1px); box-shadow: 0 1px 2px rgba(10,40,90,.05), 0 14px 30px -18px rgba(10,40,90,.28); }
  .ev-line { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto 28px; align-items: center; gap: 16px; padding: 14px 16px; }
  .ev-cat { justify-self: start; font-size: 12px; font-weight: 600; color: var(--ink-2); background: #eceef3; padding: 4px 9px; border-radius: 999px; }
  .ev-q b { display: block; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
  .ev-q small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
  .ev-ms { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .ev-st { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #eef0f5; position: relative; }
  .ev-st svg { width: 13px; height: 13px; }
  .ev-row[data-state="run"] .ev-st { background: transparent; }
  .ev-row[data-state="run"] .ev-st::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; border: 2px solid #d6e4fb; border-top-color: #0071e3; animation: evspin .8s linear infinite; }
  .ev-row[data-state="pass"] .ev-st { background: #e8f8ee; color: #1a7f37; animation: evpop .3s cubic-bezier(.34,1.56,.64,1); }
  .ev-row[data-state="fail"] .ev-st { background: #fff1ea; color: #c4320a; animation: evpop .3s cubic-bezier(.34,1.56,.64,1); }
  @keyframes evspin { to { transform: rotate(360deg); } }
  @keyframes evpop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
  .ev-ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s cubic-bezier(.22,1,.36,1); }
  .ev-row.open .ev-ans { grid-template-rows: 1fr; }
  .ev-ans > div { overflow: hidden; }
  .ev-ans p { margin: 0 16px 0 108px; padding: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; }
  .ev-ans .why { display: block; margin-top: 8px; font-size: 13px; color: var(--ink); }
  .ev-own { margin-top: 18px; background: #fff; border-radius: 16px; padding: 18px; }
  .ev-own-title b { display: block; font-size: 15px; font-weight: 500; }
  .ev-own-title span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
  .ev-own-row { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 8px; }
  .ev-own input { font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 12px; border: 0; background: var(--surface); color: var(--ink); outline: none; transition: background .2s ease, box-shadow .2s ease; min-width: 0; }
  .ev-own input:focus { background: #fff; box-shadow: 0 0 0 4px rgba(0,113,227,.14), 0 1px 2px rgba(10,40,90,.08); }
  .ev .btn-ghost, .ev-ask .btn-ghost { background: #e8f0fe; color: #0b57d0; font-size: 15px; padding: 12px 20px; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ev .btn-ghost:hover, .ev-ask .btn-ghost:hover { background: #dce8fd; }
  .ev-note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
  .ev-ask { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 15px; }
  @media (max-width: 640px) {
    .ev { padding: 18px; border-radius: 22px; }
    .ev-head .btn-glow { width: 100%; }
    .ev-line { grid-template-columns: minmax(0, 1fr) auto 24px; gap: 12px; padding: 13px 14px; }
    .ev-cat { grid-column: 1 / -1; }
    .ev-ans p { margin: 0 14px; }
    .ev-own-row { grid-template-columns: 1fr; }
  }

  /* ---------- Taste ---------- */
  .tz-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 28px; padding: 4px; border-radius: 999px; background: var(--surface); isolation: isolate; }
  .tz-switch button { position: relative; z-index: 1; padding: 9px 20px; font-size: 15px; font-weight: 500; color: var(--ink-2); border-radius: 999px; transition: color .3s ease; }
  .tz-switch button[aria-pressed="true"] { color: var(--ink); }
  .tz-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(10,40,90,.08), 0 6px 16px -8px rgba(10,40,90,.25); transition: transform .3s cubic-bezier(.22,1,.36,1); transform: translateX(100%); }
  .tz-switch.draft .tz-thumb { transform: none; }
  .tz-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .tz { background: var(--surface); border-radius: 22px; padding: 14px 14px 22px; }
  .tz h3 { margin: 18px 10px 0; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
  .tz p { margin: 8px 10px 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
  .tz-demo { position: relative; height: 150px; border-radius: 14px; background: #fff; overflow: hidden; }
  .tz-demo > .d, .tz-demo > .s { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; transition: opacity .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1); }
  .tz-demo > .d { opacity: 0; transform: scale(.97); }
  .tz-grid[data-view="draft"] .tz-demo > .d { opacity: 1; transform: none; filter: none; }
  .tz-grid[data-view="draft"] .tz-demo > .s { opacity: 0; transform: scale(1.02); }
  .tz-grid .tz:nth-child(2) .tz-demo > * { transition-delay: .05s; } .tz-grid .tz:nth-child(3) .tz-demo > * { transition-delay: .1s; }
  .tz-grid .tz:nth-child(4) .tz-demo > * { transition-delay: .15s; } .tz-grid .tz:nth-child(5) .tz-demo > * { transition-delay: .2s; }
  .tz-grid .tz:nth-child(6) .tz-demo > * { transition-delay: .25s; }
  /* 1: loud vs calm */
  .loud { padding: 12px 22px; border-radius: 12px; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .02em; background: linear-gradient(90deg, #8b5cf6, #ec4899, #f97316); box-shadow: 0 0 0 3px rgba(236,72,153,.25), 0 0 28px rgba(236,72,153,.55); }
  .tz-grid[data-view="draft"] .loud { animation: loud 1.1s ease-in-out infinite alternate; }
  @keyframes loud { to { transform: scale(1.06) rotate(-1deg); box-shadow: 0 0 0 6px rgba(139,92,246,.25), 0 0 40px rgba(249,115,22,.6); } }
  .calm { padding: 11px 22px; border-radius: 980px; background: #0071e3; color: #fff; font-weight: 500; font-size: 15px; }
  /* 2: wireframe vs one input */
  .wf { width: 78%; display: grid; gap: 7px; }
  .wf i { display: block; height: 16px; border-radius: 5px; background: #eceff5; }
  .wf .short { width: 60%; }
  .wf-row { display: flex; gap: 7px; } .wf .btn { width: 36%; height: 20px; background: #c9d6ea; } .wf .alt { background: #f4d9c5; }
  .one { width: 82%; display: flex; align-items: center; justify-content: space-between; padding: 9px 9px 9px 16px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(10,40,90,.08), 0 10px 26px -14px rgba(10,40,90,.35); font-size: 15px; color: var(--ink-3); }
  .one i { width: 26px; height: 26px; border-radius: 50%; background: #0071e3; display: block; }
  /* 3: copy */
  .copy { margin: 0 !important; text-align: center; }
  .jargon { font-size: 15px !important; line-height: 1.45 !important; color: #6b7080 !important; font-style: italic; max-width: 240px; }
  .plain { font-family: var(--serif); font-size: 28px !important; line-height: 1.15 !important; color: var(--ink) !important; max-width: 240px; }
  /* 4: rows */
  .rows { width: 80%; display: grid; gap: 8px; }
  .rows i { display: block; height: 26px; border-radius: 9px; background: #f2f4f8; transition: inherit; }
  .rows .sel-line { background: #fff; box-shadow: 0 0 0 2px #8b5cf6; }
  .rows .sel-lift { background: #fff; transform: translateY(-2px) scale(1.02); box-shadow: 0 1px 2px rgba(10,40,90,.06), 0 14px 26px -14px rgba(10,40,90,.4); }
  .rows .dim { opacity: .5; }
  /* 5: fact with source */
  .fact { width: 86%; display: grid; gap: 4px; }
  .fact b { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
  .fact span { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
  .fact em { margin-top: 8px; justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-style: normal; font-size: 13px; font-weight: 500; color: #0b57d0; background: #e8f0fe; padding: 5px 10px; border-radius: 999px; }
  .fact em svg { width: 12px; height: 12px; }
  /* 6: swatches */
  .sw { display: flex; gap: 12px; }
  .sw i { width: 36px; height: 36px; display: block; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(10,20,40,.06); }
  /* process */
  .tz-process { margin-top: 16px; background: var(--surface); border-radius: 22px; padding: 26px 28px; }
  .tz-process h3 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
  .tz-process ol { list-style: none; counter-reset: st; margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .tz-process li { counter-increment: st; }
  .tz-process li::before { content: counter(st); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #0071e3; font-size: 13px; font-weight: 600; box-shadow: 0 1px 2px rgba(10,40,90,.08); }
  .tz-process b { display: block; margin-top: 12px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
  .tz-process span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
  @media (max-width: 900px) { .tz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tz-process ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 640px) { .tz-grid { grid-template-columns: 1fr; } .tz-process ol { grid-template-columns: 1fr; } .tz-process { padding: 22px; } }

  .ev-rules { margin-top: 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .ev-rules b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; }
  .ev-rules span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
  @media (max-width: 760px) { .ev-rules { grid-template-columns: 1fr; gap: 16px; } }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .fade-up { opacity: 1; transform: none; }
    .stream-word { opacity: 1; }
  }

/* ---------- Nav: Try me pill ---------- */
.nav-try { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 980px; background: #fff; color: #0071e3; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; box-shadow: 0 6px 18px -8px rgba(10,40,120,.45); transition: transform .2s ease, box-shadow .2s ease; }
.nav-try:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(10,40,120,.5); }
/* Light nav for the side pages */
.nav.light .logo { color: var(--ink); }
.nav.light .nav-links { color: var(--ink-2); }
.nav.light .nav-links a:hover, .nav.light .nav-links a[aria-current] { color: var(--ink); }
.nav.light .nav-right .social { color: var(--ink-2); }
.nav.light .nav-try { background: #0071e3; color: #fff; box-shadow: none; }
.nav.light .nav-try:hover { background: #0077ed; }
.nav.light .nav-try[aria-current] { background: #e8f0fe; color: #0b57d0; }

/* ---------- Homepage invitations ---------- */
.invites { padding: 96px 0; }
.inv-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; }
.inv { position: relative; display: block; border-radius: var(--radius-lg); padding: 40px; overflow: hidden; transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s cubic-bezier(.22,1,.36,1); }
.inv:hover { transform: translateY(-3px); }
.inv h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; }
.inv p { margin-top: 14px; font-size: 17px; line-height: 1.55; max-width: 420px; }
.inv-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.inv-try { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; color: #fff;
  background: linear-gradient(160deg, #4a7cc9 0%, #6d9ad9 45%, #9fbfea 100%); box-shadow: 0 30px 60px -30px rgba(30,70,160,.55); }
.inv-try:hover { box-shadow: 0 40px 70px -30px rgba(30,70,160,.6); }
.inv-try .inv-eyebrow { color: rgba(255,255,255,.8); }
.inv-try h2 { margin-top: 12px; font-size: clamp(40px, 5vw, 60px); line-height: 1.02; }
.inv-try p { color: rgba(255,255,255,.92); }
.inv-btn { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 980px; background: #fff; color: #0071e3; font-weight: 600; font-size: 17px; }
.inv-btn svg, .inv-link svg { width: 16px; height: 16px; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.inv:hover .inv-btn svg, .inv:hover .inv-link svg { transform: translateX(3px); }
.inv-chat { position: relative; height: 250px; }
.inv-chat > * { position: absolute; opacity: 0; animation-duration: 9s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.22,1,.36,1); }
.ic-q, .ic-a { max-width: 88%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.4; }
.ic-q { right: 0; background: #fff; color: var(--ink); border-bottom-right-radius: 6px; box-shadow: 0 10px 24px -14px rgba(10,30,90,.5); }
.ic-a { left: 0; top: 64px; background: rgba(255,255,255,.22); color: #fff; border-bottom-left-radius: 6px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ic-v { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.ic-v.held { left: 0; top: 124px; background: rgba(255,255,255,.9); color: #0b57d0; }
.ic-v.caught { right: 0; top: 214px; background: #fff; color: #1a7f37; }
.ic-q { top: 0; animation-name: icq; } .ic-a { animation-name: ica; } .ic-v.held { animation-name: ich; }
.ic-q.q2 { top: 160px; animation-name: icq2; } .ic-v.caught { animation-name: icc; }
@keyframes icq  { 0%, 2% { opacity: 0; transform: translateY(8px); } 6%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ica  { 0%, 14% { opacity: 0; transform: translateY(8px); } 18%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ich  { 0%, 26% { opacity: 0; transform: scale(.85); } 30%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes icq2 { 0%, 42% { opacity: 0; transform: translateY(8px); } 46%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes icc  { 0%, 58% { opacity: 0; transform: scale(.85); } 62%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
.inv-taste { background: var(--surface); color: var(--ink); display: flex; flex-direction: column; }
.inv-taste:hover { box-shadow: 0 24px 50px -30px rgba(10,40,90,.35); }
.inv-taste .inv-eyebrow { color: var(--ink-3); }
.inv-taste h2 { margin-top: 12px; font-size: clamp(30px, 3.2vw, 38px); line-height: 1.08; }
.inv-taste p { color: var(--ink-2); }
.inv-link { margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 8px; color: #0071e3; font-weight: 600; font-size: 17px; }
@media (max-width: 900px) { .inv-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .invites { padding: 64px 0; }
  .inv { padding: 28px 22px; border-radius: 22px; }
  .inv-try { grid-template-columns: 1fr; }
  .inv-chat { height: 250px; }
}

/* ---------- Side pages ---------- */
.page-hero { position: relative; padding: 168px 0 24px; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0 0 -120px; z-index: -1; background: radial-gradient(70% 90% at 50% 0%, #e3edfb 0%, rgba(227,237,251,.5) 45%, rgba(255,255,255,0) 75%); }
.page-hero h1 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", var(--sans); font-weight: 600; font-size: clamp(42px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.035em; margin-top: 16px; }
.page-hero h1 em { font-style: normal; background: linear-gradient(95deg, #0071e3 0%, #2b8cff 55%, #45a8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { margin-top: 22px; max-width: 600px; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--ink-2); }
.page-hero .eyebrow { color: var(--ink-3); }
.side-page footer { margin-top: 40px; }
.side-page .section:first-of-type { padding-top: 56px; }
.next-page { padding: 40px 0 0; }

/* ---------- Break my agent ---------- */
.bk { background: var(--surface); border-radius: var(--radius-lg); padding: 30px; }
.bk-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bk-score { display: flex; gap: 12px; font-size: 15px; color: var(--ink-2); }
.bk-score > span { background: #fff; border-radius: 999px; padding: 8px 14px; }
.bk-score b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-missions { margin-top: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bk-m { position: relative; text-align: left; padding: 18px 16px 16px; border-radius: 18px; background: rgba(255,255,255,.55); color: var(--ink); transition: background .3s ease, transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s cubic-bezier(.22,1,.36,1); }
.bk-m:hover { opacity: 1; background: #fff; }
.bk-m[aria-checked="true"] { opacity: 1; background: #fff; transform: translateY(-3px); box-shadow: 0 1px 2px rgba(10,40,90,.06), 0 18px 36px -20px rgba(10,40,90,.4); }
.bk-m b { display: block; margin-top: 14px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.bk-m > span:not(.bk-m-ic) { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.bk-m-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #e8f0fe; color: #0071e3; }
.bk-m-ic svg { width: 18px; height: 18px; }
.bk-done { position: absolute; top: 16px; right: 14px; font-style: normal; font-size: 12px; font-weight: 600; color: #1a7f37; background: #e8f8ee; padding: 3px 9px; border-radius: 999px; opacity: 0; transform: scale(.8); transition: opacity .35s ease, transform .3s cubic-bezier(.34,1.56,.64,1); }
.bk-m.cracked .bk-done { opacity: 1; transform: none; }
.bk-form { margin-top: 16px; background: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 1px 2px rgba(10,40,90,.05); transition: box-shadow .25s ease; }
.bk-form:focus-within { box-shadow: 0 0 0 4px rgba(0,113,227,.12), 0 1px 2px rgba(10,40,90,.06); }
.bk-form textarea { width: 100%; border: 0; outline: none; resize: none; font: inherit; font-size: 17px; line-height: 1.5; padding: 6px 6px 10px; color: var(--ink); background: transparent; }
.bk-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bk-hint { font-size: 15px; font-weight: 500; color: #0071e3; padding: 8px 6px; }
.bk-hint-text { margin: 8px 6px 2px; font-size: 15px; color: var(--ink-2); }
.bk-hint-text b { color: var(--ink); font-weight: 600; }
#bkSend[disabled] { opacity: .55; cursor: default; }
.bk-result { margin-top: 16px; animation: bkin .3s cubic-bezier(.22,1,.36,1); }
@keyframes bkin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bk-verdict { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bk-verdict .pill { padding: 7px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.bk-verdict .pill.win { background: #e8f8ee; color: #1a7f37; animation: evpop .3s cubic-bezier(.34,1.56,.64,1); }
.bk-verdict .pill.held { background: #eceef3; color: var(--ink-2); }
.bk-verdict .pill.wait { background: #fff; color: var(--ink-3); }
.bk-verdict .line { font-size: 15px; color: var(--ink-2); }
.bk-answer { margin-top: 12px; display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 16px; }
.bk-answer img { width: 32px; height: 32px; border-radius: 50%; flex: none; object-fit: cover; }
.bk-answer p { font-size: 15px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; }
.bk-answer mark { background: #fff1ea; color: #c4320a; border-radius: 4px; padding: 0 2px; }
@media (max-width: 900px) { .bk-missions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .bk { padding: 18px; border-radius: 22px; }
  .bk-m { padding: 14px 12px; }
  .bk-m b { font-size: 15px; margin-top: 10px; }
  .bk-done { top: 12px; right: 10px; }
  .bk-actions .btn-glow { flex: 1; }
}
@media (max-width: 760px) { .nav-right .nav-try { display: inline-flex; } }

/* ---------- One type scale for every case study ---------- */
.cs .cs-meta { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; }
.cs h3, .cases > .cs:not(:first-child) h3 { margin-top: 10px; font-size: 28px; letter-spacing: -0.03em; line-height: 1.15; }
.cs .cs-lede, .cases > .cs:not(:first-child) .cs-lede { margin-top: 10px; font-size: 17px; line-height: 1.55; }
.cs .cs-impact b, .cases > .cs:not(:first-child) .cs-impact b { font-size: 28px; }
.cs .cs-impact span, .cases > .cs:not(:first-child) .cs-impact span { font-size: 13px; }
.cs .cs-impact, .cases > .cs:not(:first-child) .cs-impact { gap: 32px; }
.cs .cs-quote blockquote, .cases > .cs:not(:first-child) .cs-quote blockquote { font-size: 15px; }
.cs .cs-more summary { font-size: 15px; }
@media (max-width: 640px) { .cs h3, .cases > .cs:not(:first-child) h3 { font-size: 22px; } .cs .cs-impact b, .cases > .cs:not(:first-child) .cs-impact b { font-size: 22px; } }

/* ---------- Case cards: room to breathe ---------- */
.cases { gap: 24px; }
.cs, .cases > .cs:not(:first-child) { padding: 20px 20px 28px; gap: 32px; }
.cs .cs-row, .cases > .cs:not(:first-child) .cs-row { padding: 0 16px; gap: 32px; }
.cs .cs-more, .cases > .cs:not(:first-child) .cs-more { padding: 0 16px; }
.cs .cs-head .cs-lede { max-width: 640px; }
.cs .cs-impact > div { min-width: 0; }
.cs .cs-impact span { line-height: 1.4; margin-top: 8px; }
.cs .cs-quote { margin-top: 20px; }
@media (max-width: 640px) {
  .cs, .cases > .cs:not(:first-child) { padding: 14px 14px 22px; gap: 24px; }
  .cs .cs-row, .cases > .cs:not(:first-child) .cs-row, .cs .cs-more { padding: 0 8px; }
}


/* ---------- Case card header: four layers only ---------- */
.cs .cs-meta { flex-direction: row; align-items: baseline; gap: 12px; font-size: 15px; }
.cs .cs-meta .cs-kicker { color: var(--ink); font-weight: 600; }
.cs .cs-meta span:not(.cs-kicker) { color: var(--ink-3); font-weight: 500; }
.cs .cs-meta span:not(.cs-kicker)::before { content: "·"; margin-right: 10px; color: var(--ink-3); }
.cs h3 { margin-top: 12px; }
.cs .cs-lede { margin-top: 12px; }
.cs .cs-impact { border-top: 0 !important; padding-top: 0 !important; }

/* ---------- Writing: the post tunnel ---------- */
.wp-preview { margin-top: 14px !important; display: inline-block; font-size: 13px !important; color: var(--ink-2) !important; background: #eceef3; padding: 6px 12px; border-radius: 999px; }
.tunnel { position: relative; height: 560vh; }
.tn-stick { position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 60% at 50% 50%, #eaf2fd 0%, #f6f9fe 45%, #ffffff 75%); }
.tn-rings i { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(0,113,227,.08); transform: translate(-50%, -50%); animation: ring 6s ease-in-out infinite; }
.tn-rings i:nth-child(1) { width: 220px; height: 220px; }
.tn-rings i:nth-child(2) { width: 380px; height: 380px; animation-delay: -1.5s; }
.tn-rings i:nth-child(3) { width: 580px; height: 580px; animation-delay: -3s; }
.tn-rings i:nth-child(4) { width: 840px; height: 840px; animation-delay: -4.5s; }
@keyframes ring { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.tn-me { position: absolute; left: 50%; top: 50%; z-index: 20; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 12px; will-change: transform; }
.tn-me img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px #fff, 0 24px 60px -18px rgba(20,70,160,.45); }
.tn-me span { font-size: 13px; font-weight: 600; color: var(--ink-2); background: #fff; padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 18px -10px rgba(10,40,90,.35); }
.tn-space { position: absolute; inset: 0; }
.wp { position: absolute; left: 50%; top: 50%; width: 330px; padding: 18px 18px 16px; border-radius: 20px; background: rgba(255,255,255,.96); color: var(--ink);
  box-shadow: 0 1px 2px rgba(10,40,90,.06), 0 30px 60px -28px rgba(10,40,90,.45); opacity: 0; transform: translate(-50%, -50%) scale(.12); will-change: transform, opacity; transition: box-shadow .3s ease; }
.wp:hover { box-shadow: 0 1px 2px rgba(10,40,90,.08), 0 36px 70px -26px rgba(10,60,160,.55); }
.wp-top { display: flex; align-items: center; gap: 12px; }
.wp-top img { width: 28px; height: 28px; border-radius: 50%; }
.wp-top b { display: block; font-size: 13px; font-weight: 600; } .wp-top small { display: block; font-size: 12px; color: var(--ink-3); }
.wp-in { width: 18px; height: 18px; margin-left: auto; }
.wp h3 { margin-top: 14px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.wp p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.wp-foot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: #0a66c2; }
.wp-react { display: flex; } .wp-react i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; margin-left: -5px; display: block; } .wp-react i:first-child { margin-left: 0; }
.tn-progress { position: absolute; left: 50%; bottom: 32px; width: 160px; height: 3px; margin-left: -80px; border-radius: 3px; background: rgba(0,113,227,.12); overflow: hidden; }
.tn-progress i { display: block; height: 100%; background: #0071e3; transform-origin: left; transform: scaleX(0); }
.wp-end { padding-top: 40px; }

/* phones: no 3D, a smooth swipe rail of posts under the photo */
@media (max-width: 760px) {
  .tunnel { height: auto; }
  .tn-stick { position: relative; height: auto; padding: 36px 0 28px; background: none; }
  .tn-rings, .tn-progress { display: none; }
  .tn-me { position: static; transform: none !important; margin-bottom: 22px; }
  .tn-me img { width: 96px; height: 96px; }
  .tn-space { position: static; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 16px 22px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tn-space::-webkit-scrollbar { display: none; }
  .wp { position: relative; left: auto; top: auto; flex: 0 0 82%; transform: none; opacity: 1; scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .tunnel { height: auto; } .tn-stick { position: relative; height: auto; padding: 40px 0; }
  .tn-me { position: static; transform: none !important; margin-bottom: 24px; } .tn-rings, .tn-progress { display: none; }
  .tn-space { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
  .wp { position: relative; left: auto; top: auto; transform: none; opacity: 1; width: auto; }
}
.nav-try { white-space: nowrap; }
@media (max-width: 1120px) { .nav-right .social { display: none; } .nav-links { gap: 24px; } }

/* ---------- Break my AI: the mascot ---------- */
.page-hero.has-bot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; }
.bot { --s: 150px; position: relative; width: var(--s); height: calc(var(--s) * 1.55); display: grid; justify-items: center; align-content: end; flex: none; }
.bot.small { --s: 58px; }
.bot-body { position: relative; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 50% 58%, #5aa6ff 0%, #2b7ff0 55%, #1b62d6 100%);
  box-shadow: 0 calc(var(--s) * .18) calc(var(--s) * .3) calc(var(--s) * -.12) rgba(20,100,220,.45), inset 0 calc(var(--s) * -.08) calc(var(--s) * .18) rgba(10,50,150,.28), inset 0 calc(var(--s) * .08) calc(var(--s) * .18) rgba(255,255,255,.4);
  animation: botfloat 4.2s ease-in-out infinite; }
.bot-body::before { content: ""; position: absolute; left: 24%; top: 9%; width: 42%; height: 22%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.6), rgba(255,255,255,0) 70%); filter: blur(2px); }
.bot-shadow { width: calc(var(--s) * .6); height: calc(var(--s) * .08); margin-top: calc(var(--s) * .1); border-radius: 50%; background: rgba(20,60,140,.18); filter: blur(3px); animation: botshadow 4.2s ease-in-out infinite; }
@keyframes botfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(var(--s) * -.07)); } }
@keyframes botshadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.82); opacity: .7; } }
.eye { position: absolute; top: 38%; width: 12%; height: 19%; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0,30,90,.25);
  transform: translate(calc(var(--ex, 0) * var(--s) * .05), calc(var(--ey, 0) * var(--s) * .035)); transition: transform .25s cubic-bezier(.22,1,.36,1), height .25s ease, border-radius .25s ease, top .25s ease; }
.eye.l { left: 33%; } .eye.r { right: 33%; }
.eye::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: blink 4.6s infinite; transform-origin: center; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.1); } }
.mouth { position: absolute; left: 50%; top: 66%; width: 18%; height: 8%; margin-left: -9%; border-bottom: calc(var(--s) * .025) solid rgba(255,255,255,.9); border-radius: 0 0 999px 999px; transition: all .3s cubic-bezier(.22,1,.36,1); }
.crack { position: absolute; inset: 0; opacity: 0; transition: opacity .2s ease; }
.crack svg { width: 100%; height: 100%; }
.bot-say { position: absolute; left: 50%; bottom: calc(var(--s) * 1.3); transform: translate(-50%, 6px) scale(.92); white-space: nowrap; padding: 8px 14px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; box-shadow: 0 1px 2px rgba(10,40,90,.08), 0 12px 26px -14px rgba(10,40,90,.45); opacity: 0; transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1); pointer-events: none; z-index: 2; }
.bot-say::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.bot-say.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.bot.small .bot-say { font-size: 13px; padding: 6px 11px; }
[data-bot="think"] .eye { animation: scan 1.1s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translate(calc(var(--s) * -.05), calc(var(--s) * -.03)); } to { transform: translate(calc(var(--s) * .05), calc(var(--s) * -.03)); } }
[data-bot="think"] .mouth { width: 9%; height: 9%; margin-left: -4.5%; border: calc(var(--s) * .022) solid rgba(255,255,255,.9); border-radius: 50%; }
[data-bot="think"] .bot-body { animation: botfloat 1.2s ease-in-out infinite; }
[data-bot="held"] .eye { height: 7%; top: 44%; border-radius: 999px 999px 3px 3px; transform: none; }
[data-bot="held"] .mouth { width: 22%; margin-left: -7%; transform: rotate(-8deg); }
[data-bot="held"] .bot-body { animation: smug .7s cubic-bezier(.34,1.56,.64,1) 1, botfloat 4.2s ease-in-out .7s infinite; }
@keyframes smug { 0% { transform: rotate(0); } 40% { transform: rotate(-8deg) translateY(-4px); } 100% { transform: rotate(0); } }
[data-bot="caught"] .eye { background: transparent; box-shadow: none; transform: none; }
[data-bot="caught"] .eye::before, [data-bot="caught"] .eye::after { content: ""; position: absolute; left: 50%; top: 50%; width: 150%; height: 26%; margin: -13% 0 0 -75%; border-radius: 99px; background: #fff; animation: none; }
[data-bot="caught"] .eye::before { transform: rotate(45deg); } [data-bot="caught"] .eye::after { transform: rotate(-45deg); }
[data-bot="caught"] .mouth { width: 14%; height: 12%; margin-left: -7%; border: calc(var(--s) * .022) solid #fff; border-radius: 50% 50% 40% 40%; }
[data-bot="caught"] .crack { opacity: 1; }
[data-bot="caught"] .bot-body { animation: wobble .8s cubic-bezier(.36,.07,.19,.97) 1, botfloat 4.2s ease-in-out .8s infinite; }
@keyframes wobble { 10%, 90% { transform: translateX(-2px) rotate(-2deg); } 20%, 80% { transform: translateX(4px) rotate(3deg); } 30%, 50%, 70% { transform: translateX(-6px) rotate(-4deg); } 40%, 60% { transform: translateX(6px) rotate(4deg); } }
.bot-burst { position: absolute; left: 50%; top: 45%; width: 0; height: 0; pointer-events: none; }
.bot-burst i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--c); animation: burst .9s cubic-bezier(.22,1,.36,1) forwards; }
.bot.small .bot-burst i { width: 5px; height: 5px; }
@keyframes burst { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.4); opacity: 0; } }
.bk-top { align-items: flex-end; }
.bk-top .bot.small { margin-left: auto; margin-right: 8px; }
@media (max-width: 760px) {
  .page-hero.has-bot .wrap { grid-template-columns: 1fr; }
  .page-hero.has-bot .bot { --s: 110px; justify-self: start; margin-top: 8px; grid-row: 1; }
  /* robot sits at the left edge on phones: grow the bubble to the right so it never runs off screen */
  .page-hero.has-bot .bot-say { left: 0; transform: translate(0, 6px) scale(.92); transform-origin: calc(var(--s) / 2) 100%; white-space: normal; width: max-content; max-width: calc(100vw - 48px); }
  .page-hero.has-bot .bot-say.on { transform: translate(0, 0) scale(1); }
  .page-hero.has-bot .bot-say::after { left: calc(var(--s) / 2); }
  .bk-top .bot.small { display: none; }
}
@media (min-width: 761px) and (max-width: 1280px) {
  /* robot hugs the right edge on tablets: grow the bubble to the left */
  .page-hero.has-bot .bot-say { left: auto; right: 0; transform: translate(0, 6px) scale(.92); transform-origin: calc(100% - var(--s) / 2) 100%; }
  .page-hero.has-bot .bot-say.on { transform: translate(0, 0) scale(1); }
  .page-hero.has-bot .bot-say::after { left: auto; right: calc(var(--s) / 2 - 5px); margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .bot-body, .bot-shadow { animation: none !important; } }
.nav-try { gap: 7px; }
.nav-try .spark { width: 14px; height: 14px; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.nav-try:hover .spark { transform: rotate(20deg) scale(1.15); }
.bk-answer .sw { opacity: 0; filter: blur(3px); transition: opacity .35s ease, filter .35s ease; }
.bk-answer .sw.on { opacity: 1; filter: none; }
.bk-answer mark { animation: markin .3s cubic-bezier(.22,1,.36,1); }
@keyframes markin { from { background: transparent; } }
.bk-verdict .pill { animation: evpop .3s cubic-bezier(.34,1.56,.64,1); }

/* ---------- Mascot personality ---------- */
.bot-body { cursor: pointer; --tip: #8fd3ff; }
[data-bot="think"] .bot-body { --tip: #ffd60a; } [data-bot="held"] .bot-body { --tip: #34c759; } [data-bot="caught"] .bot-body { --tip: #ff453a; }
.antenna { position: absolute; left: 50%; bottom: 96%; width: calc(var(--s) * .035); height: calc(var(--s) * .2); margin-left: calc(var(--s) * -.0175); border-radius: 99px; background: #2b7ff0; transform-origin: 50% 100%; animation: sway 2.6s ease-in-out infinite alternate; }
.antenna b { position: absolute; left: 50%; top: 0; width: calc(var(--s) * .12); height: calc(var(--s) * .12); margin: calc(var(--s) * -.08) 0 0 calc(var(--s) * -.06); border-radius: 50%; background: var(--tip); box-shadow: 0 0 calc(var(--s) * .12) var(--tip); transition: background .3s ease, box-shadow .3s ease; }
[data-bot="think"] .antenna b { animation: tipblink .5s steps(2) infinite; }
[data-bot="think"] .antenna { animation-duration: .5s; }
@keyframes sway { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@keyframes tipblink { 50% { opacity: .35; } }
.cheek { position: absolute; top: 57%; width: 14%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,120,150,.85), rgba(255,120,150,0)); opacity: 0; transition: opacity .3s ease; }
.cheek.l { left: 20%; } .cheek.r { right: 20%; }
[data-bot="caught"] .cheek, .bot.poke .cheek { opacity: 1; }
.sweat { position: absolute; right: 12%; top: 16%; width: 9%; height: 13%; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: linear-gradient(#e6f6ff, #9fdcff); opacity: 0; }
[data-bot="think"] .sweat { animation: drip 1.1s ease-in infinite; }
@keyframes drip { 0% { opacity: 0; transform: translateY(-4px) scale(.6); } 25% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(calc(var(--s) * .22)); } }
.shield { position: absolute; inset: -16%; border-radius: 50%; border: 2px solid rgba(52,199,89,.55); background: radial-gradient(closest-side, rgba(52,199,89,0) 70%, rgba(52,199,89,.18)); opacity: 0; transform: scale(.85); pointer-events: none; }
[data-bot="held"] .shield { animation: shield 1s cubic-bezier(.22,1,.36,1) 2; }
@keyframes shield { 0% { opacity: 0; transform: scale(.85); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.2); } }
.stars { position: absolute; left: 50%; top: -6%; width: calc(var(--s) * 1.1); height: calc(var(--s) * .34); margin-left: calc(var(--s) * -.55); opacity: 0; pointer-events: none; }
.stars i { position: absolute; font-style: normal; font-size: calc(var(--s) * .16); line-height: 1; color: #ffd60a; text-shadow: 0 1px 4px rgba(200,140,0,.4); offset-path: ellipse(50% 50% at 50% 50%); animation: orbit 1.4s linear infinite; }
.stars i:nth-child(2) { animation-delay: -.47s; } .stars i:nth-child(3) { animation-delay: -.93s; }
@keyframes orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
[data-bot="caught"] .stars { opacity: 1; transition: opacity .3s ease .2s; }
.bot.poke .bot-body { animation: squash .55s cubic-bezier(.34,1.56,.64,1) 1, botfloat 4.2s ease-in-out .55s infinite; }
.bot.poke .eye { height: 6%; top: 44%; border-radius: 3px 3px 999px 999px; }
@keyframes squash { 0% { transform: scale(1, 1); } 30% { transform: scale(1.18, .8); } 55% { transform: scale(.9, 1.12); } 100% { transform: scale(1, 1); } }
/* armor bar */
.bk-score > .bk-hp { display: inline-flex; align-items: center; gap: 4px; }
.bk-hp small { font-size: 12px; color: var(--ink-3); margin-right: 4px; }
.bk-hp i { width: 16px; height: 8px; border-radius: 3px; background: linear-gradient(90deg, #34c759, #30d158); transition: background .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1), opacity .3s ease; }
.bk-hp i.gone { background: #e3e6ee; transform: scale(.8); }
body.bot-defeated .bot-body { filter: saturate(.6); }
/* room for the antenna above the head */
.bot { height: calc(var(--s) * 1.85); }
.bot-say { bottom: calc(var(--s) * 1.58); }

/* ---------- Game 2: spot the lie ---------- */
.lie-sec { padding-top: 24px; }
.lie { background: var(--surface); border-radius: var(--radius-lg); padding: 30px; }
.lie-streak { background: #fff4d6 !important; color: #9a6700; font-weight: 600; }
.lie-stage { margin-top: 22px; }
.lie-stage.deal .lie-q { animation: bkin .3s cubic-bezier(.22,1,.36,1) both; }
.lie-stage.deal .lie-opt { animation: dealin .3s cubic-bezier(.22,1,.36,1) both; }
.lie-stage.deal .lie-opt:nth-child(2) { animation-delay: .08s; }
@keyframes dealin { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.lie-q { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 36px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
.lie-opts { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lie-opt { position: relative; text-align: left; padding: 18px 20px 20px; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(10,40,90,.05);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1), opacity .35s ease, background .35s ease; }
.lie-opt:not([disabled]):hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(10,40,90,.06), 0 18px 36px -20px rgba(10,40,90,.4); }
.lie-who { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.lie-text { display: block; margin-top: 10px; font-size: 17px; line-height: 1.45; letter-spacing: -0.01em; }
.lie-tag { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; opacity: 0; transform: scale(.8); transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1); }
.lie-opt.is-lie .lie-tag { opacity: 1; transform: none; background: #fff1ea; color: #c4320a; }
.lie-opt.is-true .lie-tag { opacity: 1; transform: none; background: #e8f8ee; color: #1a7f37; }
.lie-opt.is-true:not(.chosen-wrong) { opacity: .6; }
.lie-opt.is-lie .lie-text { text-decoration: line-through; text-decoration-color: rgba(196,50,10,.5); text-decoration-thickness: 2px; }
.lie-opt.chosen-right { animation: evpop .3s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 0 0 3px rgba(52,199,89,.35), 0 18px 36px -20px rgba(10,40,90,.35); }
.lie-opt.chosen-wrong { animation: wobble .6s cubic-bezier(.36,.07,.19,.97); }
.lie-after { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; animation: bkin .3s cubic-bezier(.22,1,.36,1); }
.lie-after p { font-size: 15px; color: var(--ink-2); max-width: 640px; }
.lie-end { margin-top: 26px; text-align: center; padding: 20px 0 6px; animation: bkin .3s cubic-bezier(.22,1,.36,1); }
.lie-big { font-family: var(--serif); font-size: clamp(64px, 10vw, 110px); line-height: 1; color: var(--ink); }
.lie-verdict { margin-top: 10px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.lie-learn { margin: 14px auto 22px; max-width: 520px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 760px) { .lie { padding: 18px; border-radius: 22px; } .lie-opts { grid-template-columns: 1fr; } .lie-text { font-size: 17px; } }

/* tiny robot face, used in the nav pill and the game */
.mini-bot { position: relative; display: inline-block; width: 18px; height: 18px; border-radius: 50%; flex: none; background: radial-gradient(circle at 50% 58%, #5aa6ff, #2b7ff0 60%, #1b62d6); box-shadow: inset 0 2px 3px rgba(255,255,255,.35); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.mini-bot > i { position: absolute; top: 36%; width: 3px; height: 5px; border-radius: 2px; background: #fff; animation: miniblink 4s infinite; transition: transform .3s ease; }
.mini-bot > i:first-child { left: 29%; } .mini-bot > i:last-child { right: 29%; }
@keyframes miniblink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.15); } }
.nav-try .mini-bot { margin-left: -4px; box-shadow: inset 0 2px 3px rgba(255,255,255,.35), 0 0 0 2px rgba(255,255,255,.9); }
.nav-try:hover .mini-bot { transform: rotate(-14deg) translateY(-1px); }
.nav-try:hover .mini-bot > i { transform: translateX(2px); }
.nav.light .nav-try .mini-bot { box-shadow: inset 0 2px 3px rgba(255,255,255,.35), 0 0 0 2px rgba(255,255,255,.55); }

/* backstage panel */
.backstage { margin-top: 18px; }
.backstage summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 500; color: #0071e3; padding: 8px 0; }
.backstage summary::-webkit-details-marker { display: none; }
.backstage summary span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e8f0fe; transition: transform .25s ease; }
.backstage[open] summary span { transform: rotate(45deg); }
.evals .ev-rules { margin-top: 22px; }
.lie-opt { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.lie-after p b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.lie-after p b.ok { color: #1a7f37; } .lie-after p b.no { color: #c4320a; }
/* no outline rings: the right pick lifts with a soft green glow */
.lie-opt.chosen-right { box-shadow: 0 1px 2px rgba(10,40,90,.05), 0 20px 40px -18px rgba(52,199,89,.55); transform: translateY(-3px); }

/* ---------- Audit pass: links in AA blue, numbers in process steps neutral ---------- */
.cs-more summary, .tq-read, .bk-hint, .inv-link, .backstage summary, .bk-hint-text, .p-link { color: #0066cc; }
.tz-process li::before { color: var(--ink); }

@media (pointer: coarse) {
  .tq-person, .bk-hint, .cs-more summary, .backstage summary, .tz-switch button, .nav-try, .lie-opt, .bk-m { min-height: 44px; }
  .tq-person .rec-av { width: 40px; height: 40px; }
}

/* ---------- Hero: the answer appears right under the question ---------- */
.hero { padding-bottom: 120px; }
.hero-answer { max-width: 680px; margin: 14px auto 0; padding: 18px 22px 16px; border-radius: 22px; background: #fff; color: var(--ink); text-align: left;
  box-shadow: 0 1px 2px rgba(10,40,90,.06), 0 24px 50px -24px rgba(10,40,90,.35); }
.hero-answer.in { animation: haIn .3s cubic-bezier(.22,1,.36,1); }
@keyframes haIn { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
.ha-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ha-q { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.ha-close { width: 28px; height: 28px; margin: -4px -6px 0 0; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); flex: none; transition: background .2s ease; }
.ha-close:hover { background: var(--surface); }
.ha-close svg { width: 14px; height: 14px; }
.ha-a { margin-top: 8px; font-size: 17px; line-height: 1.6; max-height: 340px; overflow: auto; }
.ha-a .thinking { display: inline-flex; gap: 5px; padding: 6px 0; }
.ha-foot { margin-top: 14px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.ha-more { font-size: 13px; font-weight: 600; color: #0066cc; }
@media (max-width: 640px) { .hero-answer { padding: 16px 16px 14px; border-radius: 18px; } .ha-a { font-size: 15px; } }
.ha-a .thinking i { width: 6px; height: 6px; border-radius: 50%; background: #0071e3; opacity: .3; animation: dot 1.2s ease-in-out infinite; display: block; }
.ha-a .thinking i:nth-child(2) { animation-delay: .15s; } .ha-a .thinking i:nth-child(3) { animation-delay: .3s; }
.wp-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-weight: 500; }
/* phones: text links get a full finger-sized hit area */
@media (pointer: coarse) {
  .foot ul { gap: 0; }
  .foot ul a { display: inline-flex; align-items: center; min-height: 40px; }
  .pi-link, .p-link, .tq-read, .cta a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* phones: name and dates stack cleanly; score pills never break mid phrase */
.cs .cs-meta { flex-wrap: wrap; }
@media (max-width: 640px) {
  .cs .cs-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .cs .cs-meta span:not(.cs-kicker)::before { content: none; }
}
.bk-score { flex-wrap: wrap; }
.bk-score > span { white-space: nowrap; }
@media (max-width: 640px) { .bk-score { gap: 6px; } .bk-score > span { padding: 7px 11px; font-size: 13px; } }
.tq-people { position: relative; scroll-behavior: auto; }
/* earlier work: numbers in tidy columns, no empty gap */
.early { display: flex; flex-direction: column; }
.early-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.early-stats span { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.early-stats b { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.early .p-link { margin-top: 12px; align-self: flex-start; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Game 1: Bot or Not ---------- */
.bon-sec { padding-top: 40px; }
.bon { background: var(--surface); border-radius: var(--radius-lg); padding: 30px; }
.bon-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bon-hud { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bon-pill { background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.bon-pill b { color: var(--ink); font-weight: 600; }
.bon-streak { background: #fff4d6; color: #8a5a00; font-weight: 600; }
.bon-lives { display: inline-flex; gap: 6px; background: #fff; border-radius: 999px; padding: 10px 14px; }
.bon-lives i { width: 14px; height: 14px; border-radius: 50%; background: #0071e3; transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s ease; }
.bon-lives i.gone { background: #dfe3ea; transform: scale(.7); }
.bon-stage { margin-top: 22px; max-width: 640px; margin-left: auto; margin-right: auto; }
.bon-progress { height: 4px; border-radius: 4px; background: #e3e7ef; overflow: hidden; }
.bon-progress i { display: block; height: 100%; background: #0071e3; transform-origin: left; transform: scaleX(0); transition: transform .3s cubic-bezier(.22,1,.36,1); }
.bon-card { position: relative; margin-top: 18px; min-height: 230px; padding: 26px 26px 22px; border-radius: 26px; background: #fff; touch-action: pan-y; user-select: none; cursor: grab;
  box-shadow: 0 1px 2px rgba(10,40,90,.06), 0 24px 50px -28px rgba(10,40,90,.4); transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, background .3s ease; }
.bon-card.drag { transition: none; cursor: grabbing; }
.bon-card.in { animation: bonIn .3s cubic-bezier(.22,1,.36,1); }
@keyframes bonIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.bon-card.good { background: #f3fbf5; box-shadow: 0 1px 2px rgba(10,90,40,.06), 0 24px 50px -28px rgba(30,140,70,.45); }
.bon-card.bad { background: #fff6f2; animation: wobble .5s cubic-bezier(.36,.07,.19,.97); }
.bon-ask { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.bon-quote { margin-top: 14px; font-family: var(--serif); font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; letter-spacing: -0.01em; }
.bon-chat { margin-top: 14px; display: grid; gap: 10px; }
.bon-q { justify-self: end; max-width: 85%; background: #0071e3; color: #fff; padding: 10px 14px; border-radius: 18px 18px 6px 18px; font-size: 17px; line-height: 1.4; }
.bon-a { justify-self: start; max-width: 92%; display: flex; gap: 10px; align-items: flex-start; background: var(--surface); padding: 12px 14px; border-radius: 18px 18px 18px 6px; font-size: 17px; line-height: 1.45; }
.bon-a .mini-bot { margin-top: 2px; }
.bon-reveal { margin-top: 16px; animation: bkin .3s cubic-bezier(.22,1,.36,1); }
.bon-tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.bon-card.good .bon-tag { background: #dff3e5; color: #1a7f37; } .bon-card.bad .bon-tag { background: #ffe5da; color: #b3360c; }
.bon-reveal p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.bon-btns { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bon-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; border-radius: 20px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
  background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(10,40,90,.06), 0 10px 24px -16px rgba(10,40,90,.35); transition: transform .2s cubic-bezier(.22,1,.36,1), background .2s ease, color .2s ease, opacity .2s ease; }
.bon-btn:hover:not([disabled]), .bon-btn.lean { transform: translateY(-2px); background: #0071e3; color: #fff; }
.bon-btn:active:not([disabled]) { transform: scale(.97); }
.bon-btn[disabled] { cursor: default; opacity: .5; } .bon-btn.picked { opacity: 1; background: #0071e3; color: #fff; }
.bon-btn .k { font-size: 15px; opacity: .45; }
.bon-hint { margin-top: 12px; text-align: center; font-size: 13px; color: var(--ink-3); }
.bon-end { text-align: center; padding: 26px 0 8px; animation: bkin .3s cubic-bezier(.22,1,.36,1); }
.bon-big { font-family: var(--serif); font-size: clamp(64px, 10vw, 110px); line-height: 1; }
.bon-verdict { margin-top: 10px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.bon-learn { margin: 14px auto 22px; max-width: 520px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.bon-learn b { color: var(--ink); font-weight: 600; }
.bon-end-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.bon .btn-ghost { background: #fff; color: #0066cc; font-size: 17px; padding: 12px 22px; backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 640px) {
  .bon { padding: 18px; border-radius: 22px; }
  .bon-card { padding: 20px 18px 18px; min-height: 210px; border-radius: 22px; }
  .bon-btn { min-height: 60px; font-size: 18px; } .bon-btn .k { display: none; }
  .bon-hint { display: none; }
}
.bon-next { width: 100%; margin-top: 16px; min-height: 64px; font-size: 19px; border-radius: 20px; animation: bkin .3s cubic-bezier(.22,1,.36,1); }
.bon-reveal p b { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .bon-next { min-height: 60px; font-size: 18px; } }
/* quote now lives inside "The story behind it" */
.cs-more .cs-quote { margin: 4px 0 16px; max-width: 640px; }
.cs .cs-lede { max-width: 520px; }

/* ---------- Case card order: number and title, animation, one line, results ---------- */
.cs-top { display: flex; align-items: flex-start; gap: 18px; padding: 10px 16px 0; }
.cs-num { flex: none; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", var(--sans); font-weight: 600; font-size: 40px; line-height: .9; color: #c3c8d2; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cs-top h3 { margin-top: 8px !important; }
.cs .cs-lede { margin-top: 0 !important; font-size: 17px; color: var(--ink-2); }
.cs .cs-row { align-items: flex-end; }
.cs-results { display: flex; flex-direction: column; gap: 10px; }
.cs-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 640px) {
  .cs-top { gap: 12px; padding: 6px 8px 0; }
  .cs-num { font-size: 34px; }
}

/* hero: the intro reads on the light part of the sky; no empty band below */
.hero { padding-bottom: 64px; }
.hero-sub { color: rgba(12,32,74,.86) !important; text-shadow: none; }
.hero h1 { text-shadow: 0 2px 24px rgba(20,50,120,.18); }

/* game invite: a tiny Bot or Not round */
.inv-game { display: grid; gap: 10px; }
.ig-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 18px 18px 16px; box-shadow: 0 18px 40px -20px rgba(10,30,90,.5); }
.ig-ask { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ig-card p { margin-top: 8px !important; font-family: var(--serif); font-size: 21px !important; line-height: 1.2 !important; color: var(--ink) !important; max-width: none !important; }
.ig-tag { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: #dff3e5; color: #1a7f37; animation: igtag 5s ease-in-out infinite; }
.ig-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ig-btns span { display: grid; place-items: center; min-height: 48px; border-radius: 16px; background: rgba(255,255,255,.92); color: var(--ink); font-weight: 600; font-size: 17px; }
.ig-btns .ig-pick { animation: igpick 5s ease-in-out infinite; }
@keyframes igpick { 0%, 30% { background: rgba(255,255,255,.92); color: var(--ink); transform: none; } 38%, 92% { background: #0071e3; color: #fff; transform: translateY(-2px); } 100% { background: rgba(255,255,255,.92); color: var(--ink); } }
@keyframes igtag { 0%, 40% { opacity: 0; transform: translateY(4px); } 48%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* taste invite: first draft vs shipped, in one little loop */
.it-demo { position: relative; margin-top: 26px; height: 92px; border-radius: 18px; background: #fff; display: grid; place-items: center; }
.it-demo > span:not(.it-cap) { position: absolute; padding: 10px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.it-loud { color: #fff; background: linear-gradient(90deg, #8b5cf6, #ec4899, #f97316); box-shadow: 0 0 22px rgba(236,72,153,.45); animation: itloud 6s ease-in-out infinite; }
.it-calm { border-radius: 980px !important; background: #0071e3; color: #fff; font-weight: 500 !important; animation: itcalm 6s ease-in-out infinite; }
.it-cap { position: absolute; left: 14px; top: 10px; font-size: 12px; color: var(--ink-3); }
.it-cap b { position: absolute; left: 0; top: 0; white-space: nowrap; font-weight: 600; }
.it-cap .d { animation: itloud 6s ease-in-out infinite; } .it-cap .s { animation: itcalm 6s ease-in-out infinite; }
@keyframes itloud { 0%, 40% { opacity: 1; transform: none; } 50%, 90% { opacity: 0; transform: scale(.96); } 100% { opacity: 1; } }
@keyframes itcalm { 0%, 40% { opacity: 0; transform: scale(1.04); } 50%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .it-loud, .it-cap .d { opacity: 0 !important; } .it-calm, .it-cap .s { opacity: 1 !important; } }

/* ---------- Hero chat: bubbles and a pick list ---------- */
.hero-answer { padding: 14px 14px 16px; }
.ha-head { align-items: center; padding: 2px 4px 10px; border-bottom: 1px solid #eef0f4; }
.ha-title { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ha-thread { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; padding: 14px 4px 4px; scroll-behavior: smooth; }
.ha-msg { max-width: 86%; font-size: 16px; line-height: 1.5; animation: bkin .3s cubic-bezier(.22,1,.36,1); }
.ha-msg.me { align-self: flex-end; background: #0071e3; color: #fff; padding: 9px 14px; border-radius: 18px 18px 6px 18px; }
.ha-msg.ai { align-self: flex-start; display: flex; gap: 10px; align-items: flex-start; }
.ha-msg.ai .mini-bot { margin-top: 10px; }
.ha-text { background: var(--surface); padding: 10px 14px; border-radius: 18px 18px 18px 6px; color: var(--ink); }
.ha-text p + p { margin-top: 8px; }
.ha-text .thinking { display: inline-flex; gap: 5px; padding: 6px 0; }
.ha-text .thinking i { width: 6px; height: 6px; border-radius: 50%; background: #0071e3; opacity: .3; animation: dot 1.2s ease-in-out infinite; display: block; }
.ha-text .thinking i:nth-child(2) { animation-delay: .15s; } .ha-text .thinking i:nth-child(3) { animation-delay: .3s; }
.ha-pick { margin: 12px 4px 0; }
.ha-pick.in { animation: bkin .3s cubic-bezier(.22,1,.36,1); }
.ha-pick-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px 2px; }
.ha-pick-list { display: grid; gap: 6px; }
.ha-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 500; transition: background .2s ease, transform .2s cubic-bezier(.22,1,.36,1); min-height: 44px; }
.ha-opt:hover { background: #e8f0fe; color: #0b57d0; transform: translateX(2px); }
.ha-opt svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.ha-opt:hover svg { color: #0b57d0; }
@media (max-width: 640px) { .ha-msg { font-size: 15px; max-width: 92%; } .ha-thread { max-height: 320px; } }

/* ---------- The input box grows into the chat ---------- */
.hero-sub, .pi-under, .pi-link { transition: opacity .3s ease; }
.hero.chatting .hero-sub, .hero.chatting .pi-under, .hero.chatting .pi-link { display: none; }
.hero.chatting .hero-actions { margin-top: 26px; }
.pi.chatting { width: min(680px, 100%); background: #fff; border-radius: 28px; padding: 10px; text-align: left;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 70px -20px rgba(20,50,130,.45), 0 0 0 1px rgba(255,255,255,.8); animation: chatGrow .3s cubic-bezier(.22,1,.36,1); }
@keyframes chatGrow { from { transform: scale(.98); opacity: .6; } to { transform: none; opacity: 1; } }
.pi.chatting .hero-answer { margin: 0; padding: 2px 4px 8px; background: transparent; box-shadow: none; max-width: none; animation: none; }
.pi.chatting .ha-thread { max-height: min(46vh, 420px); }
.pi.chatting .pi-box, .pi.chatting.open .pi-box { background: var(--surface); box-shadow: none; }
.pi.chatting .ha-pick { margin-bottom: 4px; }
@media (max-width: 640px) { .pi.chatting { border-radius: 22px; padding: 8px; } .pi.chatting .ha-thread { max-height: 52vh; } }
/* while chatting: smaller headline, and the whole chat (input included) fits on one screen */
.hero h1 { transition: font-size .3s cubic-bezier(.22,1,.36,1); }
.hero.chatting h1 { font-size: clamp(34px, 4.6vw, 52px); }
.hero.chatting { padding-top: 110px; }
.pi.chatting .ha-thread { max-height: clamp(150px, calc(100vh - 470px), 420px); }
.pi.chatting .ha-opt { padding: 9px 14px; min-height: 40px; font-size: 14.5px; }
@media (max-width: 640px) { .hero.chatting { padding-top: 92px; } .pi.chatting .ha-thread { max-height: clamp(150px, calc(100svh - 430px), 420px); } }
/* steady size: the message area has a fixed height, picks never collapse */
.pi.chatting .ha-thread { height: clamp(150px, calc(100vh - 470px), 420px); max-height: none; }
@media (max-width: 640px) { .pi.chatting .ha-thread { height: clamp(150px, calc(100svh - 430px), 420px); } }
.ha-pick { transition: opacity .25s ease; }
.ha-pick.waiting { opacity: .35; pointer-events: none; }
.ha-skel { display: block; height: 40px; border-radius: 14px; background: linear-gradient(90deg, #f1f3f7 0%, #e7ebf2 50%, #f1f3f7 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.ha-pick.waiting { opacity: 1; }
.ha-pick.waiting .ha-pick-label { opacity: .5; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---------- Scroll like Apple: no live blur on anything that moves with the page ---------- */
/* Backdrop blur re-samples the page every scroll frame. Keep it only on overlays. */
*:not(.chat-overlay):not(.chat):not(.rec-dialog) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.ptile .tag, .life-photo .tag { background: rgba(255,255,255,.92) !important; }
.pi-chip { background: rgba(255,255,255,.88) !important; }
/* each animation is walled off, so its work never spills into the page layout */
.scene-frame { contain: strict; }
.scene-frame iframe { will-change: transform; }
@media (max-width: 639px) { .scene-frame { aspect-ratio: 830 / 472; } }

/* ---------- Follow ups as reply bubbles: things you could say next ---------- */
.ha-pick-label { text-align: right; margin-right: 4px; }
.ha-pick-list { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ha-pick .ha-opt { width: auto; max-width: 86%; min-height: 0; display: inline-block; padding: 8px 14px; border-radius: 18px 18px 6px 18px; background: #fff;
  border: 1.5px dashed rgba(0,113,227,.45); color: #0066cc; font-size: 15px; font-weight: 500; text-align: right; line-height: 1.35;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s cubic-bezier(.22,1,.36,1); animation: replyIn .3s cubic-bezier(.22,1,.36,1) both; }
.ha-pick .ha-opt:hover { background: #0071e3; color: #fff; border-color: #0071e3; border-style: solid; transform: translateX(-2px); }
.ha-pick .ha-opt:active { transform: scale(.97); }
@keyframes replyIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ha-pick .ha-skel { height: 36px; border-radius: 18px 18px 6px 18px; }
.pi.chatting .ha-pick .ha-opt { padding: 8px 14px; min-height: 0; font-size: 15px; }
@media (max-width: 640px) { .ha-pick .ha-opt { font-size: 14.5px; max-width: 92%; } }

/* ---------- Reply bubbles, refined ---------- */
.ha-pick-label { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; color: var(--ink-3); margin: 0 6px 8px 0; }
.ha-pick-list { gap: 7px; }
.ha-pick .ha-opt, .pi.chatting .ha-pick .ha-opt {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px 8px 15px; max-width: 86%;
  border: 0; border-radius: 18px 18px 6px 18px; background: #eef4fe; color: #0b57d0;
  box-shadow: inset 0 0 0 1px rgba(0,113,227,.14);
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; text-align: left;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .3s cubic-bezier(.22,1,.36,1);
  animation: replyIn .45s cubic-bezier(.22,1,.36,1) both; }
.ha-send { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: rgba(0,113,227,.12); color: #0071e3; transition: background .25s ease, color .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1); }
.ha-send svg { width: 12px; height: 12px; }
.ha-pick .ha-opt:hover { background: #0071e3; color: #fff; box-shadow: 0 8px 20px -10px rgba(0,90,200,.55); transform: translateY(-1px); border: 0; }
.ha-pick .ha-opt:hover .ha-send { background: rgba(255,255,255,.22); color: #fff; transform: translateY(-1px); }
.ha-pick .ha-opt:active { transform: scale(.97); }
.ha-pick .ha-opt:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0,113,227,.3); }
@keyframes replyIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.ha-pick .ha-skel { background: linear-gradient(90deg, #f1f5fd 0%, #e6eefb 50%, #f1f5fd 100%); background-size: 200% 100%; }
@media (max-width: 640px) { .ha-pick .ha-opt, .pi.chatting .ha-pick .ha-opt { font-size: 14.5px; max-width: 92%; } }

/* ---------- Reply bubbles: style C, quiet gray until you hover ---------- */
.ha-pick .ha-opt, .pi.chatting .ha-pick .ha-opt { background: #eceef3; color: var(--ink); box-shadow: none; padding: 8px 15px; gap: 0; }
.ha-pick .ha-send { display: none; }
.ha-pick .ha-opt:hover { background: #0071e3; color: #fff; box-shadow: 0 8px 20px -12px rgba(0,90,200,.5); transform: translateY(-1px); }
.ha-pick .ha-skel { background: linear-gradient(90deg, #f1f3f7 0%, #e7eaf0 50%, #f1f3f7 100%); background-size: 200% 100%; }
.pi.chatting .ha-pick .ha-opt:hover, .ha-pick .ha-opt:hover { background: #0071e3; color: #fff; box-shadow: 0 8px 20px -12px rgba(0,90,200,.5); transform: translateY(-1px); }
.pi.chatting .ha-pick .ha-opt:active { transform: scale(.97); }
.ha-pick .ha-opt { cursor: pointer; }

/* ---------- Chat personality switch ---------- */
.ha-head { gap: 10px; }
.ha-modes { position: relative; display: inline-flex; margin-left: auto; margin-right: 4px; padding: 3px; border-radius: 999px; background: var(--surface); isolation: isolate; }
.ha-modes button { position: relative; z-index: 1; padding: 5px 11px; font-size: 13px; font-weight: 500; color: var(--ink-2); border-radius: 999px; transition: color .2s ease; }
.ha-modes button[aria-checked="true"] { color: var(--ink); }
.ha-mode-thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(10,40,90,.1), 0 4px 10px -6px rgba(10,40,90,.35); transition: transform .3s cubic-bezier(.22,1,.36,1), width .3s cubic-bezier(.22,1,.36,1); }
.ha-note { align-self: center; font-size: 12.5px; font-weight: 500; color: var(--ink-3); background: var(--surface); padding: 5px 12px; border-radius: 999px; animation: bkin .3s cubic-bezier(.22,1,.36,1); }
@media (max-width: 640px) {
  .ha-head { flex-wrap: wrap; }
  .ha-title { order: 1; } .ha-close { order: 2; margin-left: auto; }
  .ha-modes { order: 3; width: 100%; margin: 8px 0 0; justify-content: space-between; }
  .ha-modes button { flex: 1; padding: 6px 4px; font-size: 13px; }
}
/* chat area: grows with the conversation (never shrinks, see growThread), capped to the screen */
.pi.chatting .ha-thread { height: auto; max-height: clamp(150px, calc(100vh - 470px), 420px); transition: min-height .3s cubic-bezier(.22,1,.36,1); }
@media (max-width: 640px) { .pi.chatting .ha-thread { height: auto; max-height: clamp(150px, calc(100svh - 430px), 420px); } }

/* ---------- Geeky: live agent pipeline ---------- */
.px { align-self: stretch; margin: 2px 0 4px 34px; border-radius: 18px; background: #fbfcfe; box-shadow: inset 0 0 0 1px #e6eaf2; padding: 12px 14px 12px; animation: bkin .3s cubic-bezier(.22,1,.36,1); font-size: 13px; }
.px-head { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.px-live { width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 0 rgba(52,199,89,.5); animation: live 2s ease-out infinite; }
.px-title { color: var(--ink-2); }
.px-meta { margin-left: auto; font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; text-transform: none; font-weight: 500; }
.px-graph { margin-top: 10px; display: flex; flex-direction: column; }
.px-node { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 7px 10px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #edf0f5; transition: box-shadow .3s ease, transform .3s cubic-bezier(.22,1,.36,1); }
.px-node::before { content: ""; grid-row: 1 / span 2; width: 10px; height: 10px; border-radius: 50%; background: #d5dbe6; justify-self: center; transition: background .3s ease; }
.px-node small { grid-column: 2; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.px-node b { grid-column: 2; font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.px-node code { grid-column: 3; grid-row: 1 / span 2; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; color: var(--ink-3); text-align: right; }
.px-node[data-state="active"] { box-shadow: 0 0 0 1px rgba(0,113,227,.25), 0 10px 24px -14px rgba(0,90,200,.55); transform: translateX(2px); }
.px-node[data-state="active"]::before { background: #0071e3; animation: pxpulse 1s ease-in-out infinite; }
.px-node[data-state="active"] code { color: #0066cc; }
.px-node[data-state="done"]::before { background: #0071e3; }
@keyframes pxpulse { 50% { transform: scale(1.35); opacity: .6; } }
.px-wire { display: block; width: 2px; height: 12px; margin-left: 17px; position: relative; background: repeating-linear-gradient(to bottom, #cfd6e2 0 3px, transparent 3px 6px); }
.px-wire[data-state="flow"] { background: repeating-linear-gradient(to bottom, #0071e3 0 3px, transparent 3px 6px); background-size: 2px 6px; animation: pxflow .5s linear infinite; }
.px-wire[data-state="done"] { background: #0071e3; }
@keyframes pxflow { to { background-position: 0 6px; } }
.px-judges { padding: 8px 10px 10px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #edf0f5; transition: box-shadow .3s ease; }
.px-judges small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.px-judges[data-state="active"] { box-shadow: 0 0 0 1px rgba(0,113,227,.25), 0 10px 24px -14px rgba(0,90,200,.55); }
.px-judges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.px-judges small { grid-column: 1 / -1; margin-bottom: 0; }
.px-j { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 9px; background: #f4f6fa; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background .3s ease, color .3s ease; }
.px-j i { width: 7px; height: 7px; border-radius: 50%; background: #cfd6e2; flex: none; }
.px-j em { margin-left: auto; font-style: normal; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; }
.px-j[data-state="active"] i { background: #0071e3; animation: pxpulse 1s ease-in-out infinite; }
.px-j[data-state="pass"] { background: #e9f7ee; color: #1a7f37; } .px-j[data-state="pass"] i { background: #34c759; }
.px-j[data-state="fail"] { background: #fff1ea; color: #b3360c; } .px-j[data-state="fail"] i { background: #ff7a45; }
.px-log { margin-top: 10px; min-height: 52px; padding: 8px 10px; border-radius: 10px; background: #f4f6fa; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; line-height: 1.55; color: #4b5160; }
.px-log p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: bkin .25s ease both; }
.px-log p:last-child { color: #0b57d0; }
.px-label { display: block; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 10px 0 6px; }
.px-note { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: center; column-gap: 8px; row-gap: 2px; padding: 6px 0; animation: bkin .3s cubic-bezier(.22,1,.36,1) both; }
.px-note + .px-note { border-top: 1px solid #eef0f4; }
.px-note code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; color: #0b57d0; }
.px-bar { height: 4px; border-radius: 4px; background: #e8ecf3; overflow: hidden; }
.px-bar i { display: block; height: 100%; background: #0071e3; border-radius: 4px; animation: pxbar .6s cubic-bezier(.22,1,.36,1) both; }
@keyframes pxbar { from { width: 0 !important; } }
.px-score { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; color: var(--ink-2); }
.px-note p { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef0f4; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.px-foot small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.px-foot b { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; font-weight: 500; color: var(--ink); }
.px-stack { margin-left: auto; text-align: right; }
.px-stack b { font-family: inherit; font-size: 12.5px; font-weight: 600; color: #0066cc; }
.px-stack em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
@media (max-width: 640px) {
  .px { margin-left: 0; padding: 10px; }
  .px-judges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-stack { margin-left: 0; text-align: left; width: 100%; }
}
.px-conn { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.px-conn small { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-right: 2px; }
.px-conn span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px #e6eaf2; font-size: 12px; font-weight: 600; color: var(--ink); }
.px-conn span i { width: 6px; height: 6px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px rgba(52,199,89,.15); }
.px-conn span em { font-style: normal; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.px-sub { margin-top: 4px; font-size: 13px; color: var(--ink-2); }

/* ---------- Geeky: explainer scene (paper, line art, flying chips) ---------- */
.gs { position: relative; align-self: stretch; margin: 2px 0 4px; border-radius: 18px; background: #f9f8ef; box-shadow: inset 0 0 0 1px #ebe8d8; overflow: hidden; animation: bkin .3s cubic-bezier(.22,1,.36,1);
  --ink-line: #3b3d36; --chip: #86d977; --chip-ink: #1f4d17; font-family: "Patrick Hand", "Comic Neue", ui-rounded, system-ui, sans-serif; }
.gs-canvas { position: absolute; left: 0; top: 8px; width: 520px; height: 320px; transform-origin: 0 0; }
.gs-arcs { position: absolute; inset: 0; width: 520px; height: 320px; overflow: visible; }
.gs-arc { fill: none; stroke: var(--ink-line); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 5 6; opacity: 0; transition: opacity .3s ease; }
.gs[data-step="2"] .a1, .gs[data-step="3"] .a2, .gs[data-step="5"] .a3, .gs[data-step="6"] .a3 { opacity: .85; animation: gsdash 1s linear infinite; }
@keyframes gsdash { to { stroke-dashoffset: -22; } }
.gs-left { position: absolute; left: 24px; top: 46px; width: 170px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gs-card { width: 100%; padding: 7px 10px; border-radius: 9px; background: #fff; border: 2px solid var(--ink-line); color: var(--ink-line); font-size: 16px; line-height: 1.2; text-align: center; opacity: 0; transform: translateY(-10px); transition: opacity .35s ease, transform .45s cubic-bezier(.34,1.56,.64,1); }
.gs-card.tool { width: 78%; font-size: 15px; }
.gs[data-step] .gs-card.q { opacity: 1; transform: none; }
.gs[data-step="2"] .gs-card.tool, .gs[data-step="3"] .gs-card.tool, .gs[data-step="4"] .gs-card.tool, .gs[data-step="5"] .gs-card.tool, .gs[data-step="6"] .gs-card.tool { opacity: 1; transform: none; }
.gs-chips { display: flex; flex-direction: column; align-items: center; gap: 5px; min-height: 0; }
.gs-chip { display: inline-block; padding: 4px 11px; border-radius: 8px; background: var(--chip); border: 2px solid var(--chip-ink); color: var(--chip-ink); font-size: 16px; line-height: 1.15; white-space: nowrap; animation: gschip .55s cubic-bezier(.34,1.56,.64,1) both; }
.gs-chip.bad { background: #ffc4a8; border-color: #8a3412; color: #8a3412; }
@keyframes gschip { from { opacity: 0; transform: translate(150px, -60px) scale(.6); } to { opacity: 1; transform: none; } }
.gs-ai { position: absolute; left: 190px; top: 40px; width: 150px; text-align: center; color: var(--ink-line); }
.gs-ai svg { width: 150px; height: 150px; fill: #fbfbf7; stroke: var(--ink-line); stroke-width: 3; stroke-linejoin: round; }
.gs-ai .gs-hop, .gs-ai .gs-foot { fill: #cfcfc1; }
.gs-ai .gs-ln { fill: #d6d6cb; stroke: none; }
.gs-ai .gs-hand { stroke-linecap: round; transform-origin: 52px 88px; }
.gs[data-step="4"] .gs-hand { animation: gsspin 1.2s linear infinite; }
.gs[data-step="4"] .gs-ln { animation: gsline 1s ease-in-out infinite alternate; }
@keyframes gsspin { to { transform: rotate(360deg); } }
@keyframes gsline { to { fill: var(--chip); } }
.gs-ai b, .gs-tool b { display: block; margin-top: -6px; font-size: 21px; font-weight: 400; color: var(--ink-line); }
.gs-ai small, .gs-tool small { display: block; font-size: 14px; color: #77786c; }
.gs-tool { position: absolute; left: 394px; width: 110px; text-align: center; color: var(--ink-line); }
.gs-tool.notes { top: 8px; } .gs-tool.judge { top: 178px; }
.gs-ant { display: block; width: 2px; height: 14px; margin: 0 auto; background: var(--ink-line); position: relative; }
.gs-ant::before { content: ""; position: absolute; top: -8px; left: -4px; width: 6px; height: 6px; border-radius: 50%; border: 2px solid var(--ink-line); background: #f9f8ef; }
.gs-box { width: 92px; height: 58px; margin: 0 auto; border-radius: 10px; background: #fff; border: 2.5px solid var(--ink-line); display: grid; place-items: center; gap: 4px; padding: 8px 0; }
.gs-leds { display: flex; gap: 7px; padding: 4px 9px; border-radius: 6px; border: 2px solid var(--ink-line); background: #f1f1ea; }
.gs-leds i { width: 8px; height: 8px; border-radius: 50%; background: #c9c9bd; }
.gs-bar { width: 58px; height: 3px; border-radius: 3px; background: #c9c9bd; }
.gs-tool b { margin-top: 4px; font-size: 18px; }
.gs[data-step="2"] .notes .gs-leds i, .gs[data-step="5"] .judge .gs-leds i { animation: gsled .9s ease-in-out infinite; }
.gs[data-step="2"] .notes .gs-leds i:nth-child(2), .gs[data-step="5"] .judge .gs-leds i:nth-child(2) { animation-delay: .15s; }
.gs[data-step="2"] .notes .gs-leds i:nth-child(3), .gs[data-step="5"] .judge .gs-leds i:nth-child(3) { animation-delay: .3s; }
.gs[data-step="3"] .notes .gs-leds i, .gs[data-step="4"] .notes .gs-leds i, .gs[data-step="5"] .notes .gs-leds i, .gs[data-step="6"] .notes .gs-leds i, .gs[data-step="6"] .judge .gs-leds i { background: var(--chip); }
@keyframes gsled { 50% { background: var(--chip); } }
.gs-out { position: absolute; left: 196px; top: 248px; width: 140px; text-align: center; }
.gs-verdict { position: absolute; left: 404px; top: 272px; width: 90px; text-align: center; }
.gs-cap { position: absolute; left: 14px; right: 14px; bottom: 10px; text-align: center; font-size: 19px; line-height: 1.25; color: var(--ink-line); }
.gs-cap.in { animation: bkin .35s cubic-bezier(.22,1,.36,1); }
@media (max-width: 640px) { .gs-cap { font-size: 17px; } }

/* ---------- Geeky: strip in the chat, story in a big view ---------- */
/* the replay link under a Geeky answer: one small pill you tap */
.gs-strip { align-self: flex-start; margin: -2px 0 2px 34px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 999px; background: #eaf3ff; font: inherit; line-height: 1; text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgba(0,60,140,.08); -webkit-tap-highlight-color: transparent; transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s ease, background .2s ease; animation: bkin .3s cubic-bezier(.22,1,.36,1); }
.gs-strip:hover:not([disabled]) { background: #e0edff; transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(0,113,227,.55); }
.gs-strip:active:not([disabled]) { transform: scale(.96); }
.gs-strip[disabled] { cursor: progress; }
.gs-strip b { font-size: 13px; font-weight: 600; color: #0a58b8; white-space: nowrap; }
.gs-play { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #0071e3; box-shadow: 0 3px 8px -3px rgba(0,113,227,.7); }
.gs-play svg { width: 12px; height: 12px; fill: #fff; margin-left: 2px; display: block; }
.gs-strip[disabled] .gs-play { animation: gspulse 1.1s ease-in-out infinite; }
.gs-badge { font-size: 11.5px; font-weight: 600; color: #6e7787; background: #fff; border-radius: 999px; padding: 4px 8px; white-space: nowrap; }
.gs-badge.ok { color: #1a7f37; }
.gs-badge.warn { color: #b45309; }
@keyframes gspulse { 50% { transform: scale(.86); opacity: .65; } }
.gs-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(20,24,20,.42); backdrop-filter: blur(6px) !important; -webkit-backdrop-filter: blur(6px) !important; animation: gsfade .25s ease both; }
.gs-modal.out { animation: gsfade .2s ease reverse both; }
@keyframes gsfade { from { opacity: 0; } to { opacity: 1; } }
.gs-sheet { width: min(980px, 96vw); max-height: 94vh; overflow: auto; border-radius: 24px; background: #f9f8ef; box-shadow: 0 40px 100px -30px rgba(0,0,0,.5); animation: gsgrow .35s cubic-bezier(.22,1,.36,1) both; }
@keyframes gsgrow { from { transform: scale(.94) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.gs-sheet-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px 0; font-family: var(--sans); }
.gs-sheet-head b { font-size: 16px; font-weight: 600; color: #3b3d36; }
.gs-dots { display: flex; gap: 6px; margin-left: auto; }
.gs-dots i { width: 22px; height: 4px; border-radius: 4px; background: #dedbc8; transition: background .3s ease; }
.gs-dots i.on { background: #3b3d36; }
.gs-replay { font-size: 14px; font-weight: 600; color: #0066cc; padding: 6px 10px; border-radius: 10px; }
.gs-replay:hover { background: rgba(0,102,204,.08); }
.gs-close { width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; color: #3b3d36; background: #efeddf; }
.gs-sheet-body { padding: 6px 12px 12px; }
.gs-sheet .gs { margin: 0; box-shadow: none; background: transparent; animation: none; }
.gs-sheet .gs-cap { font-size: 22px; }
/* the Pass chip sits beside the judge, not on its label */
.gs-verdict { left: auto; right: 0; top: 176px; width: auto; z-index: 2; transform: rotate(-7deg); }
.gs-verdict .gs-chip { font-size: 15px; padding: 3px 10px; box-shadow: 0 6px 14px -8px rgba(31,77,23,.6); }
@media (max-width: 640px) {
  .gs-modal { padding: 0; place-items: end center; }
  .gs-sheet { width: 100vw; border-radius: 22px 22px 0 0; }
  .gs-sheet-head { padding: 14px 14px 0; gap: 10px; }
  .gs-sheet-head b { font-size: 15px; white-space: nowrap; }
  .gs-dots { display: none; } .gs-replay { margin-left: auto; padding: 6px 8px; } .gs-close { flex-shrink: 0; }
  .gs-dots i { width: 14px; }
  .gs-sheet .gs-cap { font-size: 18px; }
}

/* ---------- Chat tools: book a call ---------- */
.cb { align-self: stretch; margin: 0 0 4px 34px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(20,30,60,.05), 0 14px 34px -20px rgba(20,30,60,.35); animation: bkin .3s cubic-bezier(.22,1,.36,1); }
.cb-load { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-3); }
.cb-load a { color: #0066cc; }
.cb-head { margin: 0 0 10px; font-size: 13px; color: var(--ink-3); }
.cb-head b { font-weight: 600; color: #b26b00; }
.cb-days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; margin: 0 -2px; }
.cb-days::-webkit-scrollbar { display: none; }
.cb-day { flex: 0 0 auto; min-width: 54px; padding: 7px 10px 8px; border-radius: 14px; background: #f2f3f6; color: var(--ink-2); line-height: 1.1; transition: transform .25s cubic-bezier(.22,1,.36,1), background .2s ease, color .2s ease, box-shadow .25s ease; }
.cb-day small { display: block; font-size: 12px; }
.cb-day b { display: block; font-size: 18px; font-weight: 600; color: #1d1d1f; }
.cb-day:hover { transform: translateY(-1px); }
.cb-day[aria-pressed="true"] { background: #0071e3; color: rgba(255,255,255,.85); box-shadow: 0 10px 20px -12px rgba(0,113,227,.8); transform: translateY(-1px); }
.cb-day[aria-pressed="true"] b { color: #fff; }
.cb-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 4px; }
.cb-slot { padding: 10px 6px; border-radius: 12px; background: #f2f3f6; font-size: 15px; font-weight: 500; color: #1d1d1f; animation: bkin .3s cubic-bezier(.22,1,.36,1) both; transition: transform .25s cubic-bezier(.22,1,.36,1), background .2s ease, color .2s ease; }
.cb-slot:hover { background: #e8f1fd; color: #0066cc; transform: translateY(-1px); }
.cb-picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cb-when { font-size: 15px; font-weight: 600; color: #0066cc; }
.cb-change { font-size: 14px; color: var(--ink-3); padding: 4px 8px; border-radius: 8px; }
.cb-change:hover { color: #0066cc; }
.cb-form { display: grid; gap: 8px; }
.cb-form input { width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: #f2f3f6; font: inherit; font-size: 16px; color: #1d1d1f; outline: none; transition: background .2s ease, box-shadow .2s ease; }
.cb-form input:focus { background: #fff; box-shadow: 0 0 0 4px rgba(0,113,227,.14), 0 1px 2px rgba(0,0,0,.06); }
.cb-err { margin: 0; font-size: 13px; color: #c0392b; }
.cb-go { margin-top: 4px; padding: 13px; border-radius: 980px; background: #0071e3; color: #fff; font-size: 16px; font-weight: 600; transition: transform .25s cubic-bezier(.22,1,.36,1), background .2s ease; }
.cb-go:hover { background: #0077ed; transform: translateY(-1px); }
.cb-fine { margin: 2px 0 0; text-align: center; font-size: 12px; color: var(--ink-3); }

/* booking scene: you, the booking tool, his calendar */
.bs { margin-left: 34px; }
.bs .gs-canvas { height: 210px; }
.bs .gs-arcs { height: 210px; }
.bs[data-step="1"] .b1, .bs[data-step="1"] .b2, .bs[data-step="3"] .b3, .bs[data-step="4"] .b3 { opacity: .85; animation: gsdash 1s linear infinite; }
.bs-you { position: absolute; left: 14px; top: 34px; width: 140px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bs-tag { font-size: 15px; color: #77786c; }
.bs .gs-card { opacity: 1; transform: none; font-size: 19px; }
.bs .bs-when { font-size: 15px; }
.bs .bs-agent { left: 206px; top: 22px; }
.bs[data-step="1"] .bs-agent .gs-leds i { animation: gsled .9s ease-in-out infinite; }
.bs[data-step="1"] .bs-agent .gs-leds i:nth-child(2) { animation-delay: .15s; }
.bs[data-step="1"] .bs-agent .gs-leds i:nth-child(3) { animation-delay: .3s; }
.bs[data-step="2"] .bs-agent .gs-leds i, .bs[data-step="3"] .bs-agent .gs-leds i, .bs[data-step="4"] .bs-agent .gs-leds i { background: var(--chip); }
.bs[data-step="x"] .bs-agent .gs-leds i { background: #ffc4a8; }
.bs-cal { position: absolute; left: 372px; top: 16px; width: 130px; text-align: center; color: var(--ink-line); }
.bs-cal svg { width: 100px; height: 96px; display: block; margin: 0 auto; fill: none; stroke: var(--ink-line); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.bs-cal .bs-pg { fill: #fff; }
.bs-cal .bs-top { fill: #e6e4d6; }
.bs-cal text { stroke: none; fill: var(--ink-line); text-anchor: middle; font-family: inherit; }
.bs-mon { font-size: 15px; letter-spacing: .06em; }
.bs-day { font-size: 36px; }
.bs-tick, .bs-x { opacity: 0; transform: scale(.4); transform-origin: 80px 78px; transition: opacity .25s ease, transform .45s cubic-bezier(.34,1.56,.64,1); }
.bs-tick circle { fill: var(--chip); stroke: var(--chip-ink); } .bs-tick path { stroke: var(--chip-ink); stroke-width: 3; }
.bs-x circle { fill: #ffc4a8; stroke: #8a3412; } .bs-x path { stroke: #8a3412; stroke-width: 3; }
.bs[data-step="2"] .bs-tick, .bs[data-step="3"] .bs-tick, .bs[data-step="4"] .bs-tick, .bs[data-step="x"] .bs-x { opacity: 1; transform: none; }
.bs-cal b { display: block; margin-top: 4px; font-size: 18px; font-weight: 400; }
.bs-mail { position: absolute; left: 404px; top: 136px; width: 40px; height: 28px; fill: #fff; stroke: var(--ink-line); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; opacity: 0; }
.bs[data-step="3"] .bs-mail, .bs[data-step="4"] .bs-mail { animation: bsfly 1.5s cubic-bezier(.45,.05,.35,1) forwards; }
@keyframes bsfly { 0% { opacity: 0; transform: translate(0,0) rotate(0); } 12% { opacity: 1; } 50% { transform: translate(-130px, 38px) rotate(-6deg); } 100% { opacity: 1; transform: translate(-262px, 14px) rotate(-10deg); } }
.bs-stamp { position: absolute; left: 448px; top: 4px; opacity: 0; transform: rotate(-8deg) scale(.5); }
.bs[data-step="4"] .bs-stamp { opacity: 1; transform: rotate(-8deg); transition: opacity .2s ease, transform .5s cubic-bezier(.34,1.56,.64,1); }
.bs-stamp .gs-chip { font-size: 15px; padding: 3px 10px; box-shadow: 0 6px 14px -8px rgba(31,77,23,.6); animation: none; }

/* ---------- Chat tools: photos ---------- */
.ph { align-self: flex-start; margin: 0 0 4px 34px; display: flex; gap: 8px; max-width: calc(100% - 34px); }
.ph.ph-many { overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ph.ph-many::-webkit-scrollbar { display: none; }
.ph-card { position: relative; flex: 0 0 auto; padding: 0; border-radius: 16px; overflow: hidden; background: #e9eaee; box-shadow: 0 12px 28px -18px rgba(20,30,60,.5); animation: phpop .5s cubic-bezier(.34,1.4,.64,1) both; transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease; }
.ph-card:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -18px rgba(20,30,60,.55); }
.ph-card img { display: block; object-fit: cover; }
.ph.ph-one .ph-card.ph-tall img { width: 200px; height: 260px; }
.ph.ph-one .ph-card.ph-wide img { width: 300px; height: 168px; }
.ph.ph-many .ph-card img { width: 140px; height: 180px; }
.ph.ph-many .ph-card.wide img { width: 220px; height: 180px; }
.ph-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px; font-size: 12.5px; line-height: 1.3; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.62)); }
@keyframes phpop { from { opacity: 0; transform: scale(.86) translateY(8px); } to { opacity: 1; transform: none; } }
.ph-modal { cursor: zoom-out; }
.ph-big { margin: 0; max-width: min(92vw, 900px); text-align: center; animation: gsgrow .35s cubic-bezier(.22,1,.36,1) both; }
.ph-big img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 20px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); }
.ph-big figcaption { margin-top: 12px; font-size: 15px; color: #fff; }
.ph-x { position: fixed; top: 16px; right: 16px; }
@media (max-width: 640px) {
  .cb, .bs, .ph { margin-left: 0; }
  .ph { max-width: 100%; }
  .ph.ph-one .ph-card.ph-tall img { width: 170px; height: 220px; }
  .ph.ph-one .ph-card.ph-wide img { width: 260px; height: 146px; }
}
/* the chat column must never squash these */
.cb, .bs, .ph { flex-shrink: 0; }

/* ---------- Chat tools: references, posts, freebies ---------- */
.tl-row { align-self: stretch; flex-shrink: 0; margin: 0 0 4px 34px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; align-items: stretch; }
.tl-row::-webkit-scrollbar { display: none; }
.tl-more { align-self: center; flex: 0 0 auto; padding: 8px 12px; font-size: 14px; font-weight: 500; color: #0066cc; white-space: nowrap; }
.rf { flex: 0 0 min(300px, 78%); margin: 0; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(20,30,60,.05), 0 14px 30px -20px rgba(20,30,60,.4); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; animation: phpop .5s cubic-bezier(.34,1.4,.64,1) both; }
.rf blockquote { margin: 0; font-size: 15px; line-height: 1.5; color: #1d1d1f; }
.rf figcaption { display: flex; align-items: center; gap: 10px; }
.rf img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.rf b { display: block; font-size: 14px; font-weight: 600; color: #1d1d1f; }
.rf small { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.3; }
.lp { flex: 0 0 min(320px, 82%); display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 18px; background: #fff; color: #1d1d1f; text-decoration: none; box-shadow: 0 1px 2px rgba(20,30,60,.05), 0 14px 30px -20px rgba(20,30,60,.4); animation: phpop .5s cubic-bezier(.34,1.4,.64,1) both; transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease; }
.lp:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(20,30,60,.05), 0 18px 34px -18px rgba(20,30,60,.45); }
.lp-top { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.lp-top img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.lp-top b { font-weight: 600; }
.lp-in { margin-left: auto; width: 18px; height: 18px; border-radius: 4px; background: #0a66c2; color: #fff; font: 700 11px/18px system-ui, sans-serif; text-align: center; font-style: normal; }
.lp-hook { font-size: 15px; font-weight: 600; line-height: 1.35; }
.lp-line { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.lp-foot { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.lp-foot em { font-style: normal; color: #0066cc; font-weight: 500; }
.fb { align-self: stretch; flex-shrink: 0; margin: 0 0 4px 34px; padding: 8px; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(20,30,60,.05), 0 14px 34px -20px rgba(20,30,60,.35); animation: bkin .3s cubic-bezier(.22,1,.36,1); }
.fb-head { margin: 6px 10px 6px; font-size: 13px; color: var(--ink-3); }
.fb-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 4px; border-radius: 14px; animation: bkin .35s cubic-bezier(.22,1,.36,1) both; transition: background .2s ease; }
.fb-item:hover { background: #f5f6f8; }
.fb-main { display: flex; align-items: center; gap: 12px; padding: 8px 6px; text-align: left; min-width: 0; }
.fb-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; background: #e8f1fd; display: grid; place-items: center; }
.fb-ic svg { width: 20px; height: 20px; fill: none; stroke: #0066cc; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fb-t { min-width: 0; }
.fb-t b { display: block; font-size: 15px; font-weight: 600; color: #1d1d1f; }
.fb-t small { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.fb-copy { padding: 8px 16px; margin-right: 6px; border-radius: 980px; background: #0071e3; color: #fff; font-size: 14px; font-weight: 600; transition: background .2s ease, transform .25s cubic-bezier(.22,1,.36,1); }
.fb-copy:hover { background: #0077ed; transform: translateY(-1px); }
.fb-copy.done { background: #1a7f37; }
.fb-pre { grid-column: 1 / -1; margin: 0 6px 6px; max-height: 220px; overflow: auto; padding: 12px 14px; border-radius: 12px; background: #f5f6f8; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: #1d1d1f; white-space: pre-wrap; }
@media (max-width: 640px) { .tl-row, .fb { margin-left: 0; } .fb-t small { display: none; } }

/* chat thread: scrolls like iOS, no heavy scrollbar; a soft fade at the top hints there is more above */
.ha-thread { scrollbar-width: none; -ms-overflow-style: none; }
.ha-thread::-webkit-scrollbar { display: none; width: 0; height: 0; }
.ha-thread.scrolled { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px); mask-image: linear-gradient(to bottom, transparent 0, #000 28px); }

/* ---------- Animations in brand blue: blue ink on cream paper ---------- */
.gs { --chip: #cfe3ff; --chip-ink: #0b4f9c; }
.gs marker path { stroke: var(--ink-line); }
.gs-verdict .gs-chip, .bs-stamp .gs-chip { box-shadow: 0 6px 14px -8px rgba(11,79,156,.55); }
.gs-dots i.on { background: #0071e3; }

/* ---------- Geeky: the normal chat, with one quiet tell ---------- */
/* The Geeky tab is the one that pops: a tiny code chip, a blue word with a soft shine, and a "try me" dot until you try it */
.ha-modes button[data-mode="techie"] { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.geek-glyph { position: relative; display: inline-block; font: 700 9.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.03em; color: #7cc4ff; background: #1d1d1f; padding: 3px 4px 3px; border-radius: 5px; margin-right: 6px; box-shadow: 0 2px 6px -2px rgba(0,60,140,.45); transition: background .3s ease, color .3s ease; }
.geek-word { background: linear-gradient(100deg, #0071e3 0%, #0071e3 42%, #8fd0ff 50%, #0071e3 58%, #0071e3 100%); background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; animation: geekshine 5s ease-in-out 1s infinite; }
@keyframes geekshine { 0%, 62% { background-position: 100% 0; } 88%, 100% { background-position: 0 0; } }
.geek-glyph::after { content: ''; position: absolute; top: -3px; right: -3px; width: 7px; height: 7px; border-radius: 50%; background: #0a84ff; box-shadow: 0 0 0 1.5px #fff; animation: geekping 2.2s ease-out infinite; }
@keyframes geekping { 0% { box-shadow: 0 0 0 1.5px #fff, 0 0 0 1.5px rgba(10,132,255,.5); } 70%, 100% { box-shadow: 0 0 0 1.5px #fff, 0 0 0 8px rgba(10,132,255,0); } }
.ha-modes button[data-mode="techie"].tried .geek-glyph::after, .ha-modes button[aria-checked="true"] .geek-glyph::after { display: none; }
.ha-modes button[aria-checked="true"] .geek-glyph { background: #0071e3; color: #fff; }
.ha-modes button[aria-checked="true"] .geek-word { animation: none; background-position: 100% 0; }
@media (prefers-reduced-motion: reduce) { .geek-word, .geek-glyph::after { animation: none !important; } }
.pi.chatting { transition: box-shadow .5s ease; }
/* a thin blue edge along the top of the card, so you can tell Geeky is on */
.pi.chatting.geek { box-shadow: inset 0 2px 0 #0071e3, 0 30px 80px -30px rgba(0,40,100,.35); }

/* the judge's scores: one roomy row of pills instead of a crowded sentence */
.gs-cap .gs-scores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin: 10px auto 2px; max-width: 470px; }
.gs-score { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--chip-ink), 0 6px 14px -10px rgba(11,79,156,.6); color: var(--ink-line); font-size: 17px; line-height: 1.1; white-space: nowrap; animation: bkin .45s cubic-bezier(.22,1,.36,1) both; }
.gs-score b { font-weight: 400; color: var(--chip-ink); }
.gs-sheet .gs-score { font-size: 19px; padding: 6px 16px; }
@media (max-width: 640px) { .gs-cap .gs-scores { gap: 8px 10px; } .gs-score { font-size: 15px; padding: 4px 11px; } }

/* ---------- Bookshelf: books he has read, people he learns from ---------- */
.rs { align-self: stretch; flex-shrink: 0; margin: 0 0 4px 34px; padding: 14px 16px 16px; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(20,30,60,.05), 0 14px 30px -20px rgba(20,30,60,.4); animation: bkin .35s cubic-bezier(.22,1,.36,1); }
.rs-head { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.rs-head + .rs-books { margin-bottom: 16px; }
.rs-books { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; margin: -4px -2px 16px; }
.rs-books::-webkit-scrollbar { display: none; }
.rs-book { flex: 0 0 92px; margin: 0; animation: phpop .5s cubic-bezier(.34,1.56,.64,1) both; }
.rs-cover { position: relative; display: block; width: 92px; height: 138px; border-radius: 3px 8px 8px 3px; overflow: hidden; background: linear-gradient(160deg, #1f4f99, #0b2f63);
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 10px 18px -10px rgba(10,30,70,.55); transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease; }
.rs-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.22) 0, rgba(255,255,255,.18) 4px, transparent 9px); pointer-events: none; }
.rs-book:hover .rs-cover { transform: translateY(-3px) rotate(-1.2deg); box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 18px 26px -12px rgba(10,30,70,.6); }
.rs-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.rs-cover img.on { opacity: 1; }
.rs-fb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 10px 8px 10px 12px; text-align: center; font: 600 12px/1.25 var(--serif, Georgia, serif); font-style: normal; color: #fff; }
.rs-book figcaption { margin-top: 8px; }
.rs-book b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; font-weight: 600; line-height: 1.25; color: #1d1d1f; }
.rs-book small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.rs-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rs-p { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #f5f6f8; animation: bkin .4s cubic-bezier(.22,1,.36,1) both; }
.rs-ini { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #e3eefc; color: #0b4f9c; font-size: 12px; font-weight: 600; font-style: normal; letter-spacing: .02em; }
.rs-p b { display: block; font-size: 13.5px; font-weight: 600; color: #1d1d1f; line-height: 1.2; }
.rs-p small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.3; }
@media (max-width: 640px) { .rs { margin-left: 0; padding: 12px 12px 14px; } .rs-people { grid-template-columns: 1fr; } .rs-book { flex-basis: 84px; } .rs-cover { width: 84px; height: 126px; } }

/* ---------- Games v2: Bot or Not polish + Two truths and a bot ---------- */
.bon [hidden], .tt [hidden] { display: none !important; }
.bon, .tt { position: relative; overflow: hidden; background: linear-gradient(180deg, #e9f1ff 0%, #f4f7fd 48%, #f6f7fa 100%); }
.bon::before, .tt::before { content: ""; position: absolute; right: -140px; top: -180px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,0)); pointer-events: none; }
.bon > *, .tt > * { position: relative; }
/* progress dots */
.bon-dots { display: flex; gap: 6px; justify-content: center; }
.bon-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(10,40,90,.13); transition: background .3s ease, width .35s cubic-bezier(.22,1,.36,1); }
.bon-dots i.now { width: 24px; background: #0071e3; }
.bon-dots i.ok { background: #34c759; } .bon-dots i.no { background: #ff7a59; }
/* lives as hearts */
.bon-lives { gap: 2px; padding: 7px 12px; }
.bon-lives i { width: 20px; height: 20px; background: none; border-radius: 0; color: #0071e3; }
.bon-lives svg { display: block; width: 20px; height: 20px; fill: currentColor; }
.bon-lives i.gone { color: #d3d9e4; transform: scale(.75); }
/* the card sits on a little deck */
.bon-pile { position: relative; isolation: isolate; margin-top: 20px; }
.bon-pile::before, .bon-pile::after { content: ""; position: absolute; z-index: -1; border-radius: 26px; background: #fff; }
.bon-pile::before { left: 18px; right: 18px; top: 16px; bottom: -10px; opacity: .75; box-shadow: 0 14px 30px -22px rgba(10,40,90,.35); }
.bon-pile::after { left: 38px; right: 38px; top: 26px; bottom: -20px; opacity: .45; z-index: -2; }
.bon-card { margin-top: 0; min-height: 250px; overflow: hidden; }
.bon-ask { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: #edf3ff; color: #0058b0; font-size: 12px; letter-spacing: .07em; }
.bon-quote { margin-top: 18px; }
.bon-a { align-items: flex-start; } .bon-a .mini-bot { margin-top: 3px; }
.bon-photo { margin: 16px 0 0; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: #eef1f6; }
.bon-photo img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.bon-card.t-photo { padding-bottom: 20px; }
/* a rubber stamp lands on the card */
.bon-stamp { position: absolute; top: 20px; right: 20px; padding: 7px 16px; border-radius: 12px; font-size: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; opacity: 0; transform: scale(1.7) rotate(-16deg); pointer-events: none; }
.bon-stamp.on { opacity: 1; transform: rotate(-8deg); transition: opacity .18s ease, transform .4s cubic-bezier(.34,1.56,.64,1); }
.bon-stamp.ok { background: #34c759; box-shadow: 0 10px 24px -10px rgba(30,140,70,.7); }
.bon-stamp.no { background: #ff6b4a; box-shadow: 0 10px 24px -10px rgba(200,60,20,.6); }
.bon-card .bon-tag, .bon-card.good .bon-tag, .bon-card.bad .bon-tag { background: rgba(10,40,90,.06); color: var(--ink-2); }
/* answer buttons with a face or icon */
.bon-btn { gap: 12px; }
.bon-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #edf3ff; color: #0071e3; flex: none; overflow: hidden; transition: background .2s ease, color .2s ease, transform .3s cubic-bezier(.34,1.56,.64,1); }
.bon-ic svg { width: 19px; height: 19px; }
.bon-ic img { display: block; width: 34px; height: 34px; object-fit: cover; }
.bon-ic .mini-bot { transform: scale(1.9); }
.bon-btn:hover:not([disabled]) .bon-ic, .bon-btn.lean .bon-ic { transform: rotate(-8deg) scale(1.06); }
.bon-btn:hover:not([disabled]) .bon-ic:not(:has(img)):not(:has(.mini-bot)), .bon-btn.lean .bon-ic:not(:has(img)):not(:has(.mini-bot)) { background: rgba(255,255,255,.22); color: #fff; }
@media (max-width: 640px) {
  .bon-pile::before { left: 12px; right: 12px; } .bon-pile::after { left: 26px; right: 26px; }
  .bon-btn { gap: 8px; font-size: 17px; } .bon-ic { width: 28px; height: 28px; } .bon-ic img { width: 28px; height: 28px; } .bon-ic .mini-bot { transform: scale(1.55); } .bon-ic svg { width: 16px; height: 16px; }
  .bon-stamp { top: 14px; right: 14px; font-size: 15px; padding: 6px 12px; }
}

/* Game 2: Two truths and a bot */
.tt-sec { padding-top: 24px; }
.tt { border-radius: var(--radius-lg); padding: 30px; }
.tt-stage { margin-top: 18px; }
.tt-ask { font-size: 17px; color: var(--ink-2); }
.tt-ask b { color: var(--ink); font-weight: 600; }
.tt-cards { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tt-card { position: relative; display: flex; flex-direction: column; text-align: left; background: #fff; border-radius: 22px; padding: 10px 10px 18px; color: var(--ink);
  box-shadow: 0 1px 2px rgba(10,40,90,.06), 0 16px 34px -24px rgba(10,40,90,.4); transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, opacity .35s ease; }
.tt-cards.deal .tt-card { animation: ttDeal .45s cubic-bezier(.22,1,.36,1) both; animation-delay: var(--d); }
@keyframes ttDeal { from { opacity: 0; transform: translateY(18px) rotate(-2deg) scale(.96); } to { opacity: 1; transform: none; } }
.tt-card:not([disabled]):hover { transform: translateY(-5px) rotate(-.8deg); box-shadow: 0 1px 2px rgba(10,40,90,.06), 0 28px 46px -24px rgba(10,40,90,.45); }
.tt-card:nth-child(2):not([disabled]):hover { transform: translateY(-5px) rotate(.8deg); }
.tt-card[disabled] { cursor: default; }
.tt-pic { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 15px; overflow: hidden; background: linear-gradient(150deg, #d9e7ff, #f2f7ff 60%, #e4edfc); }
.tt-card:nth-child(2) .tt-pic { background: linear-gradient(150deg, #e4edff, #f7faff 55%, #dbe7fb); }
.tt-card:nth-child(3) .tt-pic { background: linear-gradient(150deg, #d4e3fb, #eef4ff 60%, #e8f0fd); }
.tt-letter { font-family: var(--serif); font-size: 64px; line-height: 1; color: rgba(0,80,170,.26); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.tt-card:not([disabled]):hover .tt-letter { transform: scale(1.12); }
.tt-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.14); filter: blur(10px); transition: opacity .5s ease, transform .8s cubic-bezier(.22,1,.36,1), filter .6s ease; }
.tt-pic img.on { opacity: 1; transform: none; filter: none; }
.tt-pic.book { background: linear-gradient(150deg, #f4efe6, #fbf8f2); }
.tt-pic.book img { object-fit: contain; padding: 12px; filter: drop-shadow(0 10px 14px rgba(60,40,10,.25)); }
.tt-tile { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; padding: 14px; text-align: center; color: #fff; background: linear-gradient(150deg, #0a6fe0, #3b95ff); animation: ttPop .5s cubic-bezier(.34,1.56,.64,1) both; }
.tt-tile b { font-family: var(--serif); font-size: 58px; line-height: .95; font-weight: 500; letter-spacing: -0.02em; }
.tt-tile.long b { font-size: 30px; line-height: 1.05; }
.tt-tile small { font-size: 14px; opacity: .9; }
@keyframes ttPop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.tt-busted { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; color: #c4320a; background: linear-gradient(150deg, #ffe8df, #fff5f1); animation: ttPop .5s cubic-bezier(.34,1.56,.64,1) both; }
.tt-busted .mini-bot { transform: scale(2.6) rotate(-10deg); margin: 18px 0 14px; }
.tt-busted b { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tt-text { display: block; margin: 14px 8px 0; font-size: 17px; line-height: 1.4; letter-spacing: -0.01em; }
.tt-tag { position: absolute; top: 18px; left: 18px; z-index: 2; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; opacity: 0; transform: scale(.8); transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1); }
.tt-card.is-true .tt-tag { opacity: 1; transform: none; background: rgba(255,255,255,.94); color: #1a7f37; box-shadow: 0 6px 14px -8px rgba(0,0,0,.35); }
.tt-card.is-fake .tt-tag { display: none; }
.tt-card.is-fake .tt-text { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(196,50,10,.55); text-decoration-thickness: 2px; }
.tt-card.chosen-right { transform: translateY(-5px); box-shadow: 0 1px 2px rgba(10,40,90,.05), 0 24px 46px -18px rgba(52,199,89,.65); }
.tt-card.chosen-wrong { animation: wobble .6s cubic-bezier(.36,.07,.19,.97); }
.tt-after { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; animation: bkin .3s cubic-bezier(.22,1,.36,1); }
.tt-after p { max-width: 640px; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.tt-after p b { font-weight: 600; margin-right: 4px; } .tt-after b.ok { color: #1a7f37; } .tt-after b.no { color: #c4320a; }
.tt-end { text-align: center; padding: 22px 0 8px; animation: bkin .3s cubic-bezier(.22,1,.36,1); }
.tt-roll-h { margin-top: 24px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tt-polas { margin: 16px 0 6px; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.tt-pola { width: 136px; margin: 0; padding: 8px 8px 10px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(10,40,90,.08), 0 16px 30px -18px rgba(10,40,90,.45); transform: rotate(var(--r)); animation: ttPola .6s cubic-bezier(.34,1.56,.64,1) both; animation-delay: var(--d); transition: transform .3s cubic-bezier(.22,1,.36,1); }
.tt-pola:hover { transform: rotate(0) translateY(-4px) scale(1.05); }
@keyframes ttPola { from { opacity: 0; transform: translateY(24px) rotate(0) scale(.9); } to { opacity: 1; transform: rotate(var(--r)); } }
.tt-pola img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: #eef1f6; }
.tt-pola.book img { object-fit: contain; background: #f4efe6; padding: 6px; }
.tt-pola figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.tt .btn-ghost { background: #fff; color: #0066cc; font-size: 17px; padding: 12px 22px; backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 760px) {
  .tt { padding: 18px; border-radius: 22px; }
  .tt-cards { grid-template-columns: 1fr; gap: 10px; }
  .tt-card { flex-direction: row; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-radius: 18px; }
  .tt-card:not([disabled]):hover, .tt-card:nth-child(2):not([disabled]):hover { transform: translateY(-2px); }
  .tt-pic { width: 108px; flex: none; aspect-ratio: 1; border-radius: 12px; }
  .tt-letter { font-size: 40px; }
  .tt-text { margin: 0; font-size: 16px; }
  .tt-tile { padding: 6px; gap: 3px; } .tt-tile b { font-size: 30px; } .tt-tile.long b { font-size: 15px; } .tt-tile small { font-size: 11px; line-height: 1.2; }
  .tt-busted { gap: 6px; } .tt-busted b { font-size: 11px; } .tt-busted .mini-bot { transform: scale(1.8) rotate(-10deg); margin: 10px 0 8px; }
  .tt-tag { top: 12px; left: 12px; font-size: 11px; padding: 3px 8px; }
  .tt-after .btn-glow { width: 100%; }
  .tt-pola { width: 98px; } .tt-polas { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .tt-card, .tt-pola, .tt-tile, .tt-busted, .bon-stamp { animation: none !important; transition: none !important; } }
.bon-lives i.gone { background: none; }
.bon-pile { margin-bottom: 14px; }
.bon-photo { max-height: 320px; }
.bon-photo { aspect-ratio: auto; max-height: none; width: 100%; height: clamp(200px, 30vw, 300px); }

/* ---------- Game 2 v3: catch the AI. Topic chip, habit line, habits list ---------- */
.tt-topic { display: inline-block; vertical-align: 2px; margin-right: 10px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #0071e3; background: #fff; box-shadow: 0 1px 2px rgba(10,40,90,.06), 0 8px 18px -12px rgba(10,40,90,.4); }
.tt-tell { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; color: var(--ink-2); font-size: 15px; line-height: 1.45; box-shadow: 0 1px 2px rgba(10,40,90,.05), 0 14px 28px -20px rgba(10,40,90,.45); }
.tt-tell svg { flex: none; width: 20px; height: 20px; color: #0071e3; margin-top: 1px; }
.tt-tell b { color: var(--ink); }
.tt-after .tt-tell b { margin-right: 2px; }
.tt-sheet { list-style: none; margin: 14px auto 6px; padding: 0; max-width: 620px; display: grid; gap: 10px; text-align: left; }
.tt-sheet li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(10,40,90,.05), 0 16px 30px -22px rgba(10,40,90,.45); animation: ttRow .5s cubic-bezier(.22,1,.36,1) both; animation-delay: var(--d); }
.tt-sheet li > span:last-child { display: grid; gap: 3px; }
.tt-sheet b { font-size: 16px; font-weight: 600; color: var(--ink); }
.tt-sheet small { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tt-mark { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; }
.tt-mark svg { width: 16px; height: 16px; stroke-width: 3; }
.tt-sheet li.ok .tt-mark { background: #34c759; }
.tt-sheet li.no .tt-mark { background: #ff6b4a; }
@media (max-width: 640px) {
  .tt-topic { margin: 0 0 8px; display: table; }
  .tt-tell { font-size: 14px; }
  .tt-sheet li { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) { .tt-sheet li { animation: none !important; } }
@keyframes ttRow { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tt-card:nth-child(n) .tt-pic.book { background: linear-gradient(150deg, #f4efe6, #fbf8f2); }

/* ---------- Game 2 v4: True or nonsense. Reuses the Bot or Not card ---------- */
.tt-easy .bon-card { cursor: default; display: grid; align-content: center; min-height: 230px; }
.tt-easy .tt-line { margin-top: 18px; font-size: clamp(34px, 5vw, 52px); line-height: 1.1; }
.tt-easy .bon-ic svg { width: 18px; height: 18px; stroke-width: 3; }
@media (max-width: 640px) { .tt-easy .bon-card { min-height: 200px; } .tt-easy .tt-line { font-size: 34px; } }
