/* Relay website styles */
/* Layout: one conversation relayed down the page. A thread draws itself along the left gutter as you scroll and a
     message "baton" rides its tip. Each chapter is a coloured sheet that slides over the last: a business hook first,
     then how Relay answers it, each with its own interaction. Type: oversized display + Manrope UI (user DESIGN.md). */
  :root {
    --void: #000000;
    --night: #170f3a;
    --paper: #ffffff;
    --smoke: #f5f5f5;
    --ash: #595959;
    --fog: #dddddd;
    --dim: #a3a3a3;
    --line: #262626;
    --yellow: #fff050;
    --periwinkle: #dfe3ff;
    --iris: #bec8ff;
    --violet: #6b5cff;

    --display: "Bricolage Grotesque", "Nekst", ui-sans-serif, system-ui, sans-serif;
    --ui: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

    --max: 1200px;
    --r-card: 30px;
    --r-btn: 20px;
    --r-btn-sm: 10px;
    --gutter: clamp(44px, 7vw, 120px);
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--void); color: var(--paper); font-family: var(--ui); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
  a { color: inherit; }
  p { margin: 0; }
  button { font-family: inherit; }
  .wrap { max-width: var(--max); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
  .display { font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
  .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 0; opacity: 0.65; }
  :focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
  .soft { opacity: 0.45; }

  /* ---------- buttons ---------- */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border-radius: var(--r-btn-sm); padding: 10px 16px; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
  .btn-ghost { border-color: currentColor; background: transparent; }
  .btn-ghost:hover { background: var(--paper); color: var(--void); border-color: var(--paper); }
  .btn-send { background: var(--yellow); color: var(--void); border-radius: var(--r-btn); padding: 18px 22px 18px 28px; font-size: 16px; overflow: hidden; position: relative; }
  .btn-send .plane { width: 30px; height: 30px; border-radius: 50%; background: var(--void); color: var(--yellow); display: grid; place-items: center; transition: transform .35s cubic-bezier(.5, -0.6, .3, 1.6); }
  .btn-send .plane svg { width: 15px; height: 15px; }
  .btn-send:hover .plane { transform: translateX(4px) rotate(-18deg); }
  .s-yellow .btn-send { background: var(--void); color: var(--paper); }
  .s-yellow .btn-send .plane { background: var(--yellow); color: var(--void); }

  /* ---------- nav: a live status pill ---------- */
  .site-head { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 60; padding-top: 12px; pointer-events: none; }
  .nav {
    pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 12px; border-radius: 20px;
    background: rgba(255, 255, 255, 0.9); color: var(--void);
    -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  }
  .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: var(--void); padding: 2px 6px 2px 2px; flex: none; }
  .brand svg { width: 32px; height: 32px; flex: none; overflow: visible; }
  .status { margin-inline: auto; display: inline-flex; align-items: center; gap: 10px; background: #efefef; color: var(--void); border-radius: 999px; padding: 6px 16px 6px 8px; font-size: 14px; font-weight: 500; min-width: 0; }
  .status .ring { width: 24px; height: 24px; flex: none; }
  .status .ring circle { fill: none; stroke-width: 3; }
  .status .ring circle:first-child { stroke: #d6d6d6; }
  .status .ring #ringp { stroke: var(--violet); }
  .status .lab { color: var(--ash); white-space: nowrap; }
  .status b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-actions { display: flex; gap: 8px; margin-left: auto; flex: none; }
  .status + .nav-actions { margin-left: 0; }
  .nav-actions .btn { border-radius: 12px; }
  .nav-actions .btn-ghost { color: var(--void); border-color: rgba(0, 0, 0, 0.18); }
  .nav-actions .btn-ghost:hover { background: var(--void); color: var(--paper); border-color: var(--void); }
  .nav-actions .demo { background: var(--void); color: var(--paper); }
  .nav-actions .demo:hover { background: var(--violet); }
  @media (max-width: 760px) { .status .lab { display: none; } }
  @media (max-width: 560px) { .status { display: none; } .status + .nav-actions { margin-left: auto; } .nav { gap: 6px; padding: 6px 6px 6px 8px; } .brand { font-size: 18px; gap: 7px; } .brand svg { width: 28px; height: 28px; } .nav-actions { gap: 6px; } .nav-actions .btn { font-size: 11px; padding: 9px 10px; letter-spacing: 0.04em; } }

  /* ---------- the relay line + baton ---------- */
  #thread { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 40; mix-blend-mode: difference; overflow: visible; }
  #thread path { fill: none; stroke: #ffffff; stroke-width: 3; stroke-linecap: round; }
  #thread .ghost { stroke-opacity: 0.2; stroke-dasharray: 2 10; }
  #baton { position: fixed; top: 56vh; left: 0; z-index: 45; pointer-events: none; display: flex; align-items: center; transform: translate(-11px, -11px); }
  #baton .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 5px rgba(107, 92, 255, 0.6); flex: none; }
  #baton .say { margin-left: 12px; background: var(--paper); color: var(--void); border-radius: 14px 14px 14px 4px; padding: 7px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); transform-origin: 0 50%; }
  @media (max-width: 760px) { #baton .say { display: none; } }

  /* ---------- chapters: coloured sheets ---------- */
  main { position: relative; }
  .sheet { position: relative; border-radius: 44px 44px 0 0; margin-top: -44px; padding-block: 150px 150px; }
  .sheet > .wrap, .pinwrap > .wrap { padding-left: max(var(--gutter), clamp(16px, 4vw, 40px)); }
  .s-black { background: var(--void); color: var(--paper); }
  .s-night { background: var(--night); color: var(--paper); }
  .s-peri { background: var(--periwinkle); color: var(--void); }
  .s-yellow { background: var(--yellow); color: var(--void); }
  .s-iris { background: var(--iris); color: var(--void); }
  .chap { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
  .chap .num { font-family: var(--display); font-size: 15px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; opacity: 0.8; }
  .hook { font-size: clamp(42px, 6.4vw, 90px); max-width: 16ch; }
  .answer { margin-top: 30px; display: flex; align-items: flex-start; gap: 16px; max-width: 46rem; }
  .answer .tag { flex: none; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; background: currentColor; margin-top: 4px; }
  .answer .tag span { color: var(--paper); }
  .s-black .answer .tag span, .s-night .answer .tag span { color: var(--void); }
  .answer p { font-size: 20px; line-height: 1.5; }
  .answer p b { font-weight: 700; }

  /* ---------- hero ---------- */
  .hero { padding-block: 130px 170px; margin-top: 0; border-radius: 0; overflow: hidden; }
  .hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
  .hero-grid > * { min-width: 0; }
  .hero h1 { font-size: clamp(52px, 7.4vw, 104px); }
  .hero h1 .q { display: inline-block; background: var(--paper); color: var(--void); border-radius: 0.28em 0.28em 0.28em 0.08em; padding: 0 0.22em 0.06em; margin: 0.08em 0 0.1em 0.04em; }
  .hero-sub { margin-top: 28px; max-width: 32em; font-size: 19px; color: var(--fog); }
  .hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
  .hero-cta .alt { font-size: 15px; color: var(--dim); font-weight: 500; }
  .hero-cta .alt b { color: var(--paper); letter-spacing: 0.06em; }
  .stack { position: relative; height: 520px; perspective: 1300px; }
  .stack-inner { position: absolute; inset: 0; transform-style: preserve-3d; }
  .note { position: absolute; left: 50%; top: 50%; width: min(360px, 84vw); margin: -36px 0 0 calc(min(360px, 84vw) / -2); background: rgba(255, 255, 255, 0.97); color: var(--void); border-radius: 22px; padding: 14px 16px; display: grid; grid-template-columns: 38px 1fr auto; gap: 2px 12px; align-items: center; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
  .note .app { grid-row: span 2; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--void); color: var(--paper); }
  .note .app svg { width: 21px; height: 21px; }
  .note b { font-size: 14px; }
  .note time { font-size: 12px; color: var(--ash); }
  .note p { grid-column: 2 / 4; font-size: 15px; font-weight: 500; }
  .note.relay { background: var(--violet); color: var(--paper); }
  .note.relay time { color: #d9d4ff; }
  .note.relay .app { background: var(--paper); }
  @media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .stack { height: 440px; } }

  /* ---------- chapter 1: the 11:47 pm clock ---------- */
  .pinwrap { width: 100%; }
  .pgrid { width: 100%; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 50px; align-items: center; }
  .pgrid > * { min-width: 0; }
  .pinwrap .hook { font-size: clamp(36px, 4.4vw, 62px); }
  .pinwrap .answer { margin-top: 22px; }
  .pinwrap .answer p { font-size: 17px; }
  .ptext .clock-box { margin-top: 34px; justify-items: start; }
  .ptext .clock { width: min(230px, 60vw); }
  .ptext .digital { left: 115px; font-size: 32px; }
  .hint { margin-top: 12px; font-size: 13px; color: #b4abf5; font-weight: 500; }
  @media (min-width: 901px) {
    .pinwrap { min-height: 100vh; display: grid; align-items: center; padding-block: 90px 30px; }
    .s-night, .s-peri { padding-block: 60px 60px; }
  }
  @media (max-width: 900px) { .pgrid { grid-template-columns: 1fr; gap: 30px; } }
  .night-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; margin-top: 44px; }
  .night-grid > * { min-width: 0; }
  .clock-box { position: relative; display: grid; place-items: center; }
  .clock { width: min(340px, 74vw); aspect-ratio: 1; }
  .clock .face { fill: #231a52; stroke: #3a2f7a; stroke-width: 2; }
  .clock .tick { stroke: #8c82d9; stroke-width: 3; stroke-linecap: round; }
  .clock .hand { stroke: var(--paper); stroke-linecap: round; }
  .clock .mh { stroke-width: 6; }
  .clock .hh { stroke-width: 10; }
  .clock .arc { fill: none; stroke: var(--yellow); stroke-width: 10; stroke-linecap: round; opacity: 0.9; }
  .digital { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: 40px; background: var(--night); padding: 0 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .digital small { font-family: var(--ui); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: #b4abf5; margin-left: 6px; }
  .toggle { display: inline-flex; background: #241b55; border-radius: 14px; padding: 5px; gap: 4px; margin-bottom: 18px; position: relative; }
  .toggle button { position: relative; z-index: 1; border: 0; background: transparent; color: #cfc9ff; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 10px; cursor: pointer; transition: color .25s; }
  .toggle button[aria-pressed="true"] { color: var(--void); }
  .toggle .knob { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 10px; background: var(--paper); transition: transform .35s cubic-bezier(.6, -0.3, .3, 1.4), width .35s; }
  .chatbox { background: #0e0927; border-radius: var(--r-card); padding: 22px; min-height: 340px; display: flex; flex-direction: column; gap: 10px; box-shadow: inset 0 0 0 1px #2d2466; }
  .chatbox .who { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #2d2466; margin-bottom: 4px; font-weight: 700; }
  .chatbox .who svg { width: 20px; height: 20px; }
  .chatbox .who span { font-weight: 500; color: #b4abf5; font-size: 13px; margin-left: auto; }
  .m { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 15px; font-weight: 500; line-height: 1.4; }
  .m small { display: block; font-size: 11px; font-weight: 700; opacity: 0.65; margin-top: 4px; letter-spacing: 0.04em; }
  .m.in { background: #2a2163; color: var(--paper); border-top-left-radius: 5px; align-self: flex-start; }
  .m.out { background: var(--paper); color: var(--void); border-top-right-radius: 5px; align-self: flex-end; }
  .m.ai { background: var(--violet); color: var(--paper); }
  .m.sys { align-self: center; background: transparent; color: #b4abf5; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px; }
  .m.lost { background: transparent; box-shadow: inset 0 0 0 1px #5a4fa8; color: #cfc9ff; }
  @media (max-width: 900px) { .night-grid { grid-template-columns: 1fr; gap: 30px; } }

  /* ---------- chapter 2: chaos to one inbox ---------- */
  .chaos { position: relative; height: 560px; }
  .apps { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: center; gap: clamp(20px, 6vw, 80px); }
  .apptile { position: relative; width: 104px; height: 104px; border-radius: 30px; background: var(--void); color: var(--paper); display: grid; place-items: center; }
  .apptile svg { width: 48px; height: 48px; }
  .apptile .badge { position: absolute; top: -10px; right: -10px; min-width: 40px; height: 40px; border-radius: 20px; padding: 0 10px; background: var(--violet); color: var(--paper); font-weight: 700; font-size: 17px; display: grid; place-items: center; font-variant-numeric: tabular-nums; border: 3px solid var(--periwinkle); transition: background .3s; }
  .apptile .name { position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 700; color: var(--void); white-space: nowrap; }
  .pop { position: absolute; left: 50%; top: 50%; background: var(--paper); color: var(--void); border-radius: 16px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 500; white-space: nowrap; box-shadow: 0 14px 30px rgba(23, 15, 58, 0.18); opacity: 0; }
  .pop svg { width: 18px; height: 18px; flex: none; }
  .pop b { font-weight: 700; }
  .inbox { position: absolute; left: 50%; top: 150px; width: min(560px, 100%); margin-left: calc(min(560px, 100%) / -2); background: var(--paper); color: var(--void); border-radius: var(--r-card); overflow: hidden; box-shadow: 0 30px 60px rgba(23, 15, 58, 0.18); }
  .inbox-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid #eee; }
  .inbox-top b { font-family: var(--display); font-weight: 400; font-size: 26px; }
  .inbox-top span { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); }
  .row { display: grid; grid-template-columns: 42px 80px 1fr auto; gap: 12px; align-items: center; padding: 12px 22px; border-bottom: 1px solid #f1f1f1; font-size: 14px; }
  .row:last-child { border-bottom: 0; }
  .row .nm { font-weight: 700; }
  .row .tx { color: var(--ash); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .row .st { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--periwinkle); white-space: nowrap; }
  .row .st.ai { background: var(--violet); color: var(--paper); }
  .av { position: relative; width: 36px; height: 36px; border-radius: 11px; background: var(--void); color: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
  .av svg { position: absolute; right: -6px; bottom: -6px; width: 19px; height: 19px; padding: 2px; border-radius: 50%; background: var(--paper); color: var(--void); }
  @media (max-width: 560px) { .row { grid-template-columns: 42px 1fr auto; } .row .tx { display: none; } }

  /* ---------- chapter 3: the follow-up week ---------- */
  .week { margin-top: 50px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .day { border-radius: 22px; padding: 16px; min-height: 280px; background: rgba(0, 0, 0, 0.07); display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; transition: background .3s, color .3s; }
  .day > * { min-width: 0; }
  .day h4 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; }
  .day .bub { font-size: 14px; font-weight: 500; padding: 9px 12px; border-radius: 14px; line-height: 1.35; }
  .day .bub.in { background: var(--paper); color: var(--void); border-top-left-radius: 4px; }
  .day .bub.r { background: var(--void); color: var(--paper); border-top-right-radius: 4px; }
  .day .bub.r small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); margin-bottom: 4px; }
  .day .seen { margin-top: auto; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; }
  .day .order { margin-top: auto; align-self: flex-start; font-family: var(--display); font-size: 30px; border: 3px solid currentColor; border-radius: 12px; padding: 4px 12px; transform: rotate(-6deg); }
  .day.today { background: var(--void); color: var(--paper); }
  .day.today .bub.r { background: var(--yellow); color: var(--void); }
  .day.today .bub.r small { color: var(--void); }
  @media (max-width: 860px) { .week { grid-template-columns: 1fr 1fr; } .day { min-height: 190px; } }

  /* ---------- chapter 4: try the AI ---------- */
  .try { margin-top: 50px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 20px; }
  .try > * { min-width: 0; }
  .product { background: var(--paper); color: var(--void); border-radius: var(--r-card); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
  .product .swatch { height: 170px; border-radius: 20px; background: var(--iris); position: relative; overflow: hidden; }
  .product .swatch::before { content: ""; position: absolute; left: 50%; top: 16%; width: 34%; height: 80%; margin-left: -17%; border-radius: 46px 46px 14px 14px; background: #3a4cff; }
  .product .swatch::after { content: ""; position: absolute; left: 50%; top: 16%; width: 10%; height: 24%; margin-left: -5%; border-radius: 0 0 20px 20px; background: var(--iris); }
  .product h4 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; }
  .product dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
  .product dt { color: var(--ash); }
  .product dd { margin: 0; font-weight: 700; }
  .product .sample { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); }
  .tryme { background: #111; border-radius: var(--r-card); padding: 22px; display: flex; flex-direction: column; gap: 12px; min-height: 460px; box-shadow: inset 0 0 0 1px #2a2a2a; }
  .tryme .log { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 300px; padding-right: 4px; }
  .tryme .m.in { background: #262626; }
  .typing { display: inline-flex; gap: 5px; align-self: flex-end; background: var(--violet); padding: 12px 14px; border-radius: 16px; border-top-right-radius: 5px; }
  .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--paper); display: block; animation: dot 1.1s infinite; }
  .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
  @keyframes dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip { border: 1px solid #3a3a3a; background: transparent; color: var(--fog); border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 500; cursor: pointer; }
  .chip:hover { border-color: var(--paper); color: var(--paper); }
  .composer { display: flex; gap: 8px; background: #1d1d1d; border-radius: 16px; padding: 6px 6px 6px 16px; }
  .composer input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--paper); font-size: 16px; font-family: var(--ui); outline: none; }
  .composer button { border: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--violet); color: var(--paper); cursor: pointer; display: grid; place-items: center; }
  .composer button svg { width: 18px; height: 18px; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  @media (max-width: 860px) { .try { grid-template-columns: 1fr; } }

  /* ---------- chapter 5: the handoff lanes ---------- */
  .lanes { margin-top: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; position: relative; }
  .lanes > * { min-width: 0; }
  .lane { border-radius: var(--r-card); padding: 24px; min-height: 380px; display: flex; flex-direction: column; gap: 10px; }
  .lane.wa { background: rgba(0, 0, 0, 0.08); }
  .lane.page { background: var(--paper); }
  .lane header { display: flex; align-items: center; gap: 10px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.12); flex-wrap: wrap; }
  .lane header svg { width: 20px; height: 20px; }
  .lane header .meter { margin-left: auto; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: var(--void); color: var(--paper); font-variant-numeric: tabular-nums; }
  .lane.page header .meter { background: var(--violet); }
  .lane .ln { font-size: 14px; font-weight: 500; padding: 9px 12px; border-radius: 14px; max-width: 85%; }
  .lane .ln.in { background: var(--paper); align-self: flex-start; border-top-left-radius: 4px; }
  .lane.page .ln.in { background: var(--smoke); }
  .lane .ln.out { background: var(--void); color: var(--paper); align-self: flex-end; border-top-right-radius: 4px; }
  .handoff { position: absolute; left: 50%; top: 50%; margin: -24px 0 0 -70px; z-index: 2; background: var(--void); color: var(--paper); font-family: var(--display); font-size: 22px; padding: 10px 16px; border-radius: 14px; white-space: nowrap; display: inline-flex; gap: 10px; align-items: center; }
  .handoff svg { width: 22px; height: 22px; }
  @media (max-width: 760px) { .lanes { grid-template-columns: 1fr; } }

  /* ---------- chapter 6: contacts + FAQ-as-chat ---------- */
  .contacts { margin-top: 50px; display: grid; grid-template-columns: 280px 1fr; border-radius: var(--r-card); overflow: hidden; background: #0f0f0f; box-shadow: inset 0 0 0 1px #262626; }
  .contacts > * { min-width: 0; }
  .clist { border-right: 1px solid #262626; padding: 12px; display: grid; gap: 6px; align-content: start; }
  .contact { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; text-align: left; border: 0; background: transparent; color: var(--paper); padding: 12px; border-radius: 16px; cursor: pointer; }
  .contact[aria-selected="true"] { background: #1f1f1f; }
  .contact .pic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-weight: 700; color: var(--void); }
  .contact b { display: block; font-size: 15px; }
  .contact span span { font-size: 13px; color: var(--dim); }
  .cpane { padding: 26px; display: flex; flex-direction: column; gap: 12px; min-height: 420px; }
  .cpane h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.05; }
  .cpane .gain { color: var(--dim); max-width: 40em; }
  .cpane .thread { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
  .cpane .m.in { background: #262626; color: var(--paper); }
  @media (max-width: 760px) { .contacts { grid-template-columns: 1fr; } .clist { border-right: 0; border-bottom: 1px solid #262626; grid-auto-flow: column; overflow-x: auto; } .contact { min-width: 220px; } }

  .faqhead { margin-top: 110px; }
  .faqchat { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .faqchat > * { min-width: 0; }
  .qs { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
  .qbtn { border: 0; cursor: pointer; text-align: left; background: var(--paper); color: var(--void); font-size: 17px; font-weight: 500; padding: 14px 18px; border-radius: 20px 20px 20px 6px; transition: transform .2s, background .2s, color .2s; }
  .qbtn:hover { transform: translateX(6px); }
  .qbtn[aria-pressed="true"] { background: var(--violet); color: var(--paper); }
  .faq-answer { background: var(--smoke); color: var(--void); border-radius: var(--r-card); padding: 26px; min-height: 240px; display: flex; flex-direction: column; gap: 12px; }
  .faq-answer .who { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); display: flex; gap: 8px; align-items: center; }
  .faq-answer .who svg { width: 22px; height: 22px; }
  .faq-answer p { font-size: 18px; line-height: 1.55; }
  @media (max-width: 760px) { .faqchat { grid-template-columns: 1fr; } }

  /* ---------- final composer ---------- */
  .final h2 { font-size: clamp(56px, 9vw, 128px); }
  .bigcomposer { margin-top: 40px; display: flex; align-items: center; gap: 14px; background: var(--void); color: var(--paper); border-radius: 26px; padding: 14px 14px 14px 26px; max-width: 780px; flex-wrap: wrap; }
  .bigcomposer .to { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
  .bigcomposer .word { font-family: var(--display); font-size: clamp(34px, 5vw, 56px); letter-spacing: 0.04em; flex: 1; min-width: 140px; }
  .bigcomposer .caret { display: inline-block; width: 3px; height: 0.8em; background: var(--yellow); margin-left: 6px; vertical-align: -0.05em; animation: blink 1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  .bigcomposer .copy { border: 1px solid #3a3a3a; background: transparent; color: var(--paper); border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
  .final .btn-send { background: var(--yellow); color: var(--void); }
  .final .btn-send .plane { background: var(--void); color: var(--yellow); }

  footer { position: relative; z-index: 2; background: var(--void); }
  .foot { padding-block: 40px 60px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; color: var(--dim); font-size: 14px; }
  .foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
  .foot a { text-decoration: none; }
  .foot a:hover { color: var(--paper); }

  @media (prefers-reduced-motion: reduce) {
    .typing i, .bigcomposer .caret { animation: none; }
    .note { transition: none; }
  }
