
  .rtt-s1 {
    --ink: #2b2622; --muted: #5f5650; --coral: #ee7b6c; --coral-dark: #e0665b; --coral-text: #b8443a; --coral-soft: #f8c9c0;
    --cream: #fbf5ea; --paper: #fffdf8; --paper-2: #f7efe0; --sand: #f3e6d0;
    --flip: 1000ms;
    box-sizing: border-box; max-width: 1120px; margin: 0 auto; padding: clamp(64px, 8vw, 96px) 0 clamp(32px, 4vw, 48px);
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink);
  }
  .rtt-s1 *, .rtt-s1 *::before, .rtt-s1 *::after { box-sizing: border-box; }

  /* ---------- heading ---------- */
  .rtt-s1__head { max-width: 660px; margin: 0 auto 32px; text-align: center; }
  .rtt-s1__eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--coral-text); }
  .rtt-s1__title { margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(32px, 5vw, 52px); line-height: 1.06; letter-spacing: -.01em; text-wrap: balance; }
  .rtt-s1__title em { font-style: italic; font-weight: 500; color: var(--coral-text); }
  .rtt-s1__lede { margin: 16px auto 0; max-width: 50ch; font-size: clamp(16px, 2vw, 18px); line-height: 1.65; color: var(--muted); }

  /* ---------- stage ---------- */
  .rtt-s1__stage { position: relative; overflow: hidden; padding: 28px 0 10px; }

  /* the book */
  .rtt-book {
    position: relative; margin: 0 auto; width: min(100%, 980px); aspect-ratio: 2 / 1;
    perspective: 2600px;
  }
  .rtt-book::before { /* table shadow */
    content: ""; position: absolute; left: 4%; right: 4%; bottom: -6%; height: 12%; border-radius: 50%;
    background: rgba(43,38,34,.35); filter: blur(22px); z-index: 0;
  }
  .rtt-book::after { /* spine */
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; z-index: 40;
    background: linear-gradient(to right, rgba(0,0,0,.18), rgba(0,0,0,.05)); pointer-events: none;
  }
  .rtt-book__base { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 1; }
  .rtt-book__base--left { left: 0; }
  .rtt-book__base--right { right: 0; }

  .rtt-leaf {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; z-index: 10;
    transform-origin: left center; transform-style: preserve-3d;
    transition: transform var(--flip) cubic-bezier(.4, .05, .25, 1);
    will-change: transform;
  }
  .rtt-leaf.is-flipped { transform: rotateY(-180deg); }
  .rtt-leaf__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
  .rtt-leaf__back { transform: rotateY(180deg); }
  /* peel animation: the leaf is sliced into strips while it turns */
  .rtt-leaf.is-peeling { transition: none !important; transform: none !important; }
  .rtt-leaf.is-peeling > .rtt-leaf__face { visibility: hidden; }
  .rtt-peel { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
  .rtt-peel__strip { position: absolute; top: 0; bottom: 0; left: 0; overflow: hidden; transform-origin: 0 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform; }
  .rtt-peel__strip > .rtt-pg { right: auto !important; }
  .rtt-peel__shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
  .rtt-peel__cast { position: absolute; top: 1%; bottom: 1%; left: 50%; width: 0; opacity: 0; pointer-events: none; z-index: 5;
    background: linear-gradient(to right, rgba(43,38,34,.45), rgba(43,38,34,0)); filter: blur(6px); }
  .rtt-peel__cast.is-left { transform: scaleX(-1); transform-origin: left center; }
  /* moving shade across the turning leaf */
  .rtt-leaf__face::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background: linear-gradient(to right, rgba(0,0,0,.16), rgba(0,0,0,0) 22%);
    opacity: 0; transition: opacity var(--flip) ease;
  }
  .rtt-leaf.is-turning .rtt-leaf__face::after { opacity: 1; }
  .rtt-leaf__back::after { background: linear-gradient(to left, rgba(0,0,0,.16), rgba(0,0,0,0) 22%); }

  /* a page of paper */
  .rtt-pg {
    position: absolute; inset: 0; margin: 0; padding: clamp(10px, 1.6vw, 18px); background: var(--paper);
    display: flex; flex-direction: column; gap: 8px;
    box-shadow: 0 0 0 1px rgba(43,38,34,.06), 0 18px 40px -26px rgba(43,38,34,.5);
  }
  .rtt-pg--left { border-radius: 14px 0 0 14px; box-shadow: inset -18px 0 24px -22px rgba(0,0,0,.28), 0 0 0 1px rgba(43,38,34,.06); }
  .rtt-pg--right { border-radius: 0 14px 14px 0; box-shadow: inset 18px 0 24px -22px rgba(0,0,0,.28), 0 0 0 1px rgba(43,38,34,.06); }
  .rtt-pg img {
    display: block; width: 100% !important; height: auto !important; max-width: 100% !important;
    aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; background: var(--sand); flex: 0 1 auto; min-height: 0;
  }
  .rtt-pg figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: clamp(11px, 1.2vw, 13px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .rtt-pg figcaption b { color: var(--coral-text); font-weight: 700; }

  /* title page (left base) */
  .rtt-pg--title { justify-content: center; align-items: center; text-align: center; background: var(--paper-2); }
  .rtt-pg--title .rtt-pg__t { margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(20px, 3.2vw, 40px); line-height: 1.05; }
  .rtt-pg--title .rtt-pg__t em { font-style: italic; font-weight: 500; color: var(--coral-text); }
  .rtt-pg--title .rtt-pg__s { margin: 10px 0 0; font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: clamp(13px, 1.6vw, 18px); color: var(--muted); }
  .rtt-pg--title .rtt-pg__hint { margin: clamp(14px, 3vw, 34px) 0 0; display: inline-flex; align-items: center; gap: 8px; font-size: clamp(11px, 1.2vw, 13px); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-text); }
  .rtt-pg--title .rtt-pg__hint svg { width: 16px; height: 16px; animation: rtt-nudge 1.6s ease-in-out infinite; }
  @keyframes rtt-nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

  /* blank paper (backs / right base) */
  .rtt-pg--blank { background: var(--paper-2); }
  .rtt-pg--blank::before { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(43,38,34,.1); border-radius: 8px; }

  /* CTA page (last leaf) */
  .rtt-pg--cta { justify-content: center; align-items: center; text-align: center; background: var(--ink); color: var(--cream); }
  .rtt-pg--cta .rtt-pg__k { margin: 0 0 10px; font-size: clamp(10px, 1.1vw, 12px); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--coral-soft); }
  .rtt-pg--cta .rtt-pg__t { margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(20px, 3vw, 36px); line-height: 1.08; }
  .rtt-pg--cta .rtt-pg__t em { font-style: italic; font-weight: 500; color: var(--coral-soft); }
  .rtt-pg--cta .rtt-pg__p { margin: 10px 0 0; max-width: 28ch; font-size: clamp(12px, 1.4vw, 16px); line-height: 1.55; color: rgba(251,245,234,.85); }
  .rtt-pg--cta .rtt-pg__btn { margin-top: clamp(14px, 2.4vw, 26px); }

  /* buttons */
  .rtt-pg__btn, .rtt-s1__cta-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px;
    background: var(--coral); color: var(--ink) !important; font-size: 15px; font-weight: 700; text-decoration: none !important;
    box-shadow: 0 14px 30px -12px rgba(238,123,108,.8); transition: transform 180ms ease, background 180ms ease;
  }
  .rtt-pg__btn:hover, .rtt-s1__cta-btn:hover { background: var(--coral-dark); transform: translateY(-2px); }
  .rtt-pg__btn:focus-visible, .rtt-s1__cta-btn:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
  .rtt-pg__btn svg, .rtt-s1__cta-btn svg { width: 18px; height: 18px; flex: none; }

  /* ---------- controls ---------- */
  .rtt-s1__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 30px; }
  .rtt-s1__btn {
    display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(43,38,34,.12);
    background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 10px 24px -14px rgba(43,38,34,.4);
    transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
  }
  .rtt-s1__btn:hover:not([disabled]) { background: var(--coral); transform: translateY(-2px); }
  .rtt-s1__btn[disabled] { opacity: .35; cursor: default; }
  .rtt-s1__btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
  .rtt-s1__btn svg { width: 20px; height: 20px; }
  .rtt-s1__label { min-width: 140px; text-align: center; font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 17px; color: var(--muted); }
  .rtt-s1__hint { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

  /* ---------- CTA band (appears after first turn) ---------- */
  .rtt-s1__cta {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 24px;
    margin: 28px auto 0; padding: 18px 22px 18px 18px; max-width: 880px; border-radius: 20px;
    background: #fff; border: 1px solid rgba(43,38,34,.08); box-shadow: 0 24px 50px -30px rgba(43,38,34,.45);
    max-height: 0; opacity: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; margin-top: 0; border-width: 0;
    transform: translateY(12px);
    transition: max-height 600ms cubic-bezier(.2,.7,.2,1), opacity 500ms ease 120ms, transform 600ms cubic-bezier(.2,.7,.2,1), padding 600ms ease, margin 600ms ease;
  }
  .rtt-s1.is-turned .rtt-s1__cta { max-height: 320px; opacity: 1; transform: none; padding-top: 18px; padding-bottom: 18px; margin-top: 28px; border-width: 1px; }
  .rtt-s1__cta img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; transform: rotate(-3deg); box-shadow: 0 14px 24px -14px rgba(43,38,34,.6); }
  .rtt-s1__cta-t { margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(18px, 2.4vw, 24px); line-height: 1.15; }
  .rtt-s1__cta-t em { font-style: italic; font-weight: 500; color: var(--coral-text); }
  .rtt-s1__cta-p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

  /* ---------- hand-painted note ---------- */
  .rtt-s1__note {
    display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
    margin: 34px auto 8px; padding: 18px 0 0; max-width: 720px; border-top: 1px solid rgba(43,38,34,.1);
    font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 16px; line-height: 1.5; color: var(--muted); text-align: center;
  }
  .rtt-s1__note svg { width: 18px; height: 18px; flex: none; color: var(--coral-text); }
  .rtt-s1__note b { font-weight: 500; color: var(--ink); }

  /* ---------- phones: single page book ---------- */
  @media (max-width: 820px) {
    .rtt-s1__stage { padding: 16px 0 10px; }
    .rtt-book { aspect-ratio: 1 / 1.06; width: min(100%, 460px); perspective: 1800px; }
    .rtt-book::after, .rtt-book::before { display: none; }
    .rtt-book__base--left { display: none; }
    .rtt-book__base--right { width: 100%; }
    .rtt-leaf { left: 0; width: 100%; }
    .rtt-peel__cast { left: 0; }
    .rtt-pg--left, .rtt-pg--right { border-radius: 14px; box-shadow: 0 0 0 1px rgba(43,38,34,.06), 0 18px 40px -26px rgba(43,38,34,.5); }
    .rtt-s1__cta { grid-template-columns: auto 1fr; }
    .rtt-s1__cta .rtt-s1__cta-btn { grid-column: 1 / -1; justify-content: center; }
    .rtt-s1__note { font-size: 15px; margin-top: 26px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .rtt-s1 { --flip: 1ms; }
    .rtt-pg--title .rtt-pg__hint svg { animation: none; }
    .rtt-s1__cta, .rtt-s1__btn, .rtt-pg__btn, .rtt-s1__cta-btn { transition: none; }
  }
  /* keep Squarespace section themes from recoloring headings */
  .rtt-s1 h2, .rtt-s1 h3 { color: var(--ink); }
  .rtt-s1 .rtt-s1__title em { color: var(--coral-text); }
  .rtt-s1.rtt-s1 { padding: clamp(28px, 5vw, 48px) 0 clamp(16px, 3vw, 28px); }
