/* TabbyGato marketing site. Light only: the page is a sunny practice room. */

@font-face {
  font-family: "Tabbygato";
  src: url("../assets/fonts/TabbygatoDisplay-Heavy.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Room */
  --wall: #E9DED0;
  --wall-deep: #D9C7B4;
  --daylight: #F4EEE6;
  /* Page */
  --paper: #FEFDFB;
  --score: #FCFBF7;
  --sage: #EDF1EB;
  --warm: #F4EEE4;
  --ink: #202625;
  --muted: #4A564F;
  --accent: #245C53;
  --accent-hover: #194B43;
  --on-accent: #FCFBF7;
  --line: #D2D9D2;
  --field: #8A998C;
  --error: #9D302A;
  /* The cat's six stripes, which are also six strings */
  --cat-1: #E93D82;
  --cat-2: #F76B15;
  --cat-3: #EFB100;
  --cat-4: #46A758;
  --cat-5: #05A2C2;
  --cat-6: #8E4EC6;

  --display: "Tabbygato", "Geist", system-ui, sans-serif;
  --text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 48px;
  --max: 1200px;
  --section: 152px;
  --header: 72px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --shadow-frame: 0 1px 2px rgba(32, 38, 37, .06), 0 28px 64px -24px rgba(36, 92, 83, .30);
  --shadow-soft: 0 1px 2px rgba(32, 38, 37, .05), 0 12px 32px -16px rgba(36, 92, 83, .28);
}

@media (max-width: 1050px) { :root { --gutter: 32px; --section: 112px; } }
@media (max-width: 700px)  { :root { --gutter: 20px; --section: 88px; --header: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #B7C2B9 var(--paper);
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
  overflow-x: clip;
}
::selection { background: rgba(36, 92, 83, .18); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Type ---------- */
h1, h2 {
  font-family: var(--text);
  font-weight: 720;
  color: var(--ink);
  letter-spacing: -0.04em;
  text-wrap: balance;
  font-kerning: normal;
}
h1 { font-size: clamp(46px, 5.4vw, 84px); line-height: .98; }
h2 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.04; }
.lead {
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
  max-width: 34em;
}
p { text-wrap: pretty; }
@media (max-width: 700px) { body { font-size: 17px; } }

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  border: 0; border-radius: 12px;
  background: var(--accent); color: var(--on-accent);
  font-size: 17px; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 1px rgba(25, 75, 67, .25), 0 8px 20px -10px rgba(25, 75, 67, .55);
  transition: background-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.button:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 1px 1px rgba(25, 75, 67, .25), 0 12px 24px -10px rgba(25, 75, 67, .6); }
.button:active { transform: translateY(1px); box-shadow: 0 1px 1px rgba(25, 75, 67, .25); }
.button-small { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 11px; }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); font-weight: 600; font-size: 17px;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
  text-decoration-color: rgba(32, 38, 37, .35);
  transition: text-decoration-color .18s var(--ease);
}
.text-link:hover { text-decoration-color: var(--ink); }
/* "Learn more" in the hero: a small arrow that nudges right under the pointer */
.text-link-arrow { gap: 6px; }
.text-link-arrow svg {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
@media (prefers-reduced-motion: no-preference) {
  .text-link-arrow svg { transition: transform .2s var(--ease-out); }
  .text-link-arrow:hover svg { transform: translateX(3px); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), backdrop-filter .2s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(254, 253, 251, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.brand { justify-self: start; display: inline-flex; padding: 6px 0; border-radius: 8px; }
.brand svg { width: 136px; height: auto; overflow: visible; }
.site-nav { display: flex; gap: 6px; }
.site-nav a {
  padding: 10px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none;
  transition: background-color .18s var(--ease);
}
.site-nav a:hover { background: rgba(32, 38, 37, .06); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.header-login {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none;
  transition: background-color .18s var(--ease);
}
.header-login:hover { background: rgba(32, 38, 37, .06); }
@media (max-width: 560px) { .header-login { display: none; } }
/* Phones and narrow windows: site.js adds a Menu button that opens the header's links in a panel. */
.menu-button { display: none; }
@media (max-width: 1000px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .js .header-inner { grid-template-columns: 1fr auto auto; gap: 8px; }
  .site-nav { display: none; }
  .menu-button {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; padding: 0;
    border: 1px solid rgba(32, 38, 37, .14); border-radius: 11px;
    background: rgba(255, 255, 255, .55); color: var(--ink);
  }
  .menu-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .menu-button .m-close, .site-header.menu-open .menu-button .m-open { display: none; }
  .site-header.menu-open .menu-button .m-close { display: inline; }
  .site-header.menu-open { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
  .site-header.menu-open .site-nav {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--paper);
    box-shadow: 0 1px 0 var(--line), 0 18px 24px -20px rgba(32, 38, 37, .45);
  }
  .site-header.menu-open .site-nav a { padding: 13px 12px; font-size: 17px; }
}
@media (max-width: 700px) {
  .brand svg { width: 100px; }
  .button-small { min-height: 42px; padding: 0 13px; font-size: 14px; }
  .js .header-inner { gap: 6px; }
}
@media (max-width: 359px) {
  .brand svg { width: 86px; }
  .button-small { padding: 0 10px; font-size: 13px; }
  .menu-button { width: 40px; }
}

/* Logo stripes: they slide in once on load. After that (is-ready), pointing at the cat or pressing it
   pets it: each stripe shuffles side to side, from the ears down, and the ears dip. */
[data-stripe-count] > *, .brand [data-i="-1"] { transform-box: fill-box; }
.brand [data-i="-1"] { transform-origin: 50% 100%; }
.brand [data-stripe-count] > :nth-child(1) { --pet: 9px; }
.brand [data-stripe-count] > :nth-child(2) { --pet: -8px; }
.brand [data-stripe-count] > :nth-child(3) { --pet: 10px; }
.brand [data-stripe-count] > :nth-child(4) { --pet: -9px; }
.brand [data-stripe-count] > :nth-child(5) { --pet: 8px; }
.brand [data-stripe-count] > :nth-child(6) { --pet: -6px; }
@media (prefers-reduced-motion: no-preference) {
  .brand:not(.is-ready) [data-stripe-count] > * { animation: stripe-in .5s var(--ease-out) both; }
  .brand:not(.is-ready) [data-stripe-count] > :nth-child(1) { animation-delay: .10s; }
  .brand:not(.is-ready) [data-stripe-count] > :nth-child(2) { animation-delay: .16s; }
  .brand:not(.is-ready) [data-stripe-count] > :nth-child(3) { animation-delay: .22s; }
  .brand:not(.is-ready) [data-stripe-count] > :nth-child(4) { animation-delay: .28s; }
  .brand:not(.is-ready) [data-stripe-count] > :nth-child(5) { animation-delay: .34s; }
  .brand:not(.is-ready) [data-stripe-count] > :nth-child(6) { animation-delay: .40s; }
  .brand.is-petting [data-stripe-count] > * { animation: stripe-pet .56s var(--ease) both; }
  .brand.is-petting [data-stripe-count] > :nth-child(2) { animation-delay: .04s; }
  .brand.is-petting [data-stripe-count] > :nth-child(3) { animation-delay: .08s; }
  .brand.is-petting [data-stripe-count] > :nth-child(4) { animation-delay: .12s; }
  .brand.is-petting [data-stripe-count] > :nth-child(5) { animation-delay: .16s; }
  .brand.is-petting [data-stripe-count] > :nth-child(6) { animation-delay: .20s; }
  .brand.is-petting [data-i="-1"] { animation: ears-pet .5s var(--ease) both; }
}
@keyframes stripe-in { from { transform: translateX(-28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes stripe-pet {
  0%, 100% { transform: none; }
  30% { transform: translateX(var(--pet)); }
  62% { transform: translateX(calc(var(--pet) * -0.45)); }
  84% { transform: translateX(calc(var(--pet) * 0.15)); }
}
@keyframes ears-pet { 0%, 100% { transform: none; } 35% { transform: translateY(3px) scaleY(.82); } 70% { transform: translateY(-1px) scaleY(1.04); } }

/* ---------- Scenes: a room photo with the real app on the laptop ---------- */
/* The scene box is the full 3:2 photo. Its frame crops it: --sx is the share hidden on the left, --sw the share shown. */
.scene-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: calc(var(--sw) * 3) / 2;
}
.scene {
  position: absolute; top: 0; left: 0;
  width: calc(100% / var(--sw));
  aspect-ratio: 3 / 2;
  transform: translateX(calc(var(--sx) * -100%));
}
.scene .room {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.scene .room.is-on { opacity: 1; }
.screen {
  position: absolute;
  left: 54.95%; top: 20.45%; width: 34.25%; height: 32.15%;
  overflow: hidden;
  border-radius: 2px;
  background: #0d0f0f;
}
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(.96); transition: opacity .18s var(--ease); }
.screen img.is-dim { opacity: .15; }
.screen::after {
  /* Glass: a faint sheen from the window on the left */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 34%, transparent 52%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .05) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 12% 18%, var(--daylight) 0%, rgba(244, 238, 230, 0) 62%),
    linear-gradient(90deg, #F1E9DE 0%, #ECE1D4 42%, var(--wall-deep) 100%);
  min-height: calc(min(64vw, 1240px) / 1.245 + var(--header));
  display: flex; align-items: center;
  padding-top: var(--header);
}
.hero-scene {
  --sx: .17; --sw: .83;
  position: absolute; top: var(--header); right: 0; z-index: -1;
  width: min(64vw, 1240px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(180deg, transparent 0, #000 9%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(180deg, transparent 0, #000 9%);
  mask-composite: intersect;
}
.hero-scene .scene-frame { aspect-ratio: calc(var(--sw) * 3) / 2; }
.hero-copy { position: relative; padding-block: 48px 64px; }
.hero-text { max-width: min(468px, calc(36vw - var(--gutter) + 36px)); }
.hero h1 { margin-bottom: 26px; }
.hero h1 .noun { display: inline-block; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.hero h1 .noun.is-swapping { opacity: 0; transform: translateY(6px); }

/* The instrument word in the headline is the picker. The accent color, the six-color underline and the arrow mark it
   as something to press. The menu opens under the word. */
.hero-title { position: relative; }
/* A hair more line spacing than other headlines, so the underline clears both the tail of the g and the tops of the
   letters on the second line. */
.hero-title h1 { line-height: 1.02; }
/* "Your ukulele" plus the arrow needs about 520px at the largest headline size, so the headline may run 60px past
   the paragraph's column on a computer and keeps two lines for every instrument. */
@media (min-width: 901px) { .hero-title h1 { width: calc(100% + 60px); } }
.noun-pick {
  display: inline-flex; align-items: center; gap: .05em;
  /* The bottom padding lets the hover shade reach under the underline, and the negative margin keeps the line
     spacing as it was. */
  margin: 0 -.08em -.12em; padding: 0 .08em .14em;
  font: inherit; letter-spacing: inherit; color: var(--accent);
  background: transparent; border: 0; border-radius: .14em; cursor: pointer;
  transition: background-color .2s var(--ease);
}
/* The underline is six equal bands in the logo's six string colors, in the cat's order. The band sits in the word's
   own bottom padding, 0.18 to 0.24 of the type size below the baseline: just clear of the tail of the g, and 0.07
   above the second line's tallest letters, so the band reads with the word. Nik chose this on November 17, 2026, over
   a band behind the letters, where the g hid the pink stripe. The band moves and fades with the word when the
   instrument changes. */
.noun-pick .noun {
  padding-bottom: .11em; margin-bottom: -.11em;
  background: linear-gradient(90deg,
    #e93d82 0 16.667%, #f76b15 0 33.333%, #efb100 0 50%,
    #46a758 0 66.667%, #05a2c2 0 83.333%, #8e4ec6 0) no-repeat 0 calc(100% - .03em) / 100% .06em;
}
.noun-pick:hover, .noun-pick[aria-expanded="true"] { background: rgba(36, 92, 83, .09); }
.noun-pick:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.noun-caret {
  width: .4em; height: .4em; flex: none; margin-top: .1em;
  fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s var(--ease);
}
.noun-pick[aria-expanded="true"] .noun-caret { transform: rotate(180deg); }
.noun-menu {
  position: absolute; z-index: 30; top: 0; left: 0;
  display: grid; gap: 2px; min-width: 216px; padding: 6px;
  background: var(--paper);
  border: 1px solid rgba(32, 38, 37, .12); border-radius: 16px;
  box-shadow: var(--shadow-soft), 0 2px 6px rgba(32, 38, 37, .08);
}
.noun-menu[hidden] { display: none; }
.noun-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 44px; padding: 0 12px 0 14px;
  font: 550 16px/1.2 var(--text); color: var(--ink); text-align: left;
  background: transparent; border: 0; border-radius: 10px; cursor: pointer;
}
.noun-menu button:hover { background: var(--sage); }
.noun-menu button:focus-visible { background: var(--sage); outline: 2px solid var(--accent); outline-offset: -2px; }
.noun-menu button[aria-checked="true"] { color: var(--accent); }
.noun-menu svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.noun-menu button[aria-checked="true"] svg { visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .noun-menu:not([hidden]) { animation: noun-menu-in .16s var(--ease-out); }
}
@keyframes noun-menu-in { from { opacity: 0; transform: translateY(-4px); } }
.hero .lead { max-width: 26em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 34px; }
.hero-actions .button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }


/* The one authored moment: the laptop wakes and shows the app */
@media (prefers-reduced-motion: no-preference) {
  .hero .screen img { animation: screen-wake 1.2s .2s var(--ease-out) backwards; }
}
@keyframes screen-wake {
  0% { opacity: .3; filter: brightness(1.6) saturate(.3) blur(3px); transform: scale(1.02); }
  35% { opacity: 1; }
  100% { opacity: 1; filter: saturate(.96); transform: none; }
}

@media (max-width: 1050px) {
  .hero-scene { width: 62vw; }
  .hero-text { max-width: calc(38vw - var(--gutter) + 36px); }
}
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; padding-top: calc(var(--header) + 8px); }
  .hero-copy { padding-block: 24px 28px; }
  .hero-text { max-width: 560px; }
  .hero-scene {
    position: relative; width: 100%;
    --sx: .19; --sw: .74;
    top: 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 11%);
    mask-image: linear-gradient(180deg, transparent 0, #000 11%);
    margin-top: -20px;
  }
  .hero { display: flex; flex-direction: column; align-items: stretch; }
  /* The headline, paragraph and buttons come first, then the room photo, so the laptop with the real app
     reaches the first phone screen. */
  .hero-copy, .hero-text { display: contents; }
  .hero-text > * { width: 100%; max-width: calc(560px + var(--gutter) * 2); padding-inline: var(--gutter); order: 1; }
  .hero h1 { margin-top: 24px; }
  .hero .lead { max-width: calc(26em + var(--gutter) * 2); }
  .hero-actions { padding-bottom: 28px; }
  .hero-scene { order: 2; }
}
@media (max-width: 700px) {
  .hero-actions { margin-top: 26px; gap: 6px 20px; }
  .hero h1 { margin-bottom: 18px; }
}

/* ---------- Opening statement ---------- */
.opening { padding-block: calc(var(--section) * .8); }
.opening-inner { max-width: calc(880px + var(--gutter) * 2); text-align: center; }
.opening h2 { margin-bottom: 26px; }
.opening .lead { margin-inline: auto; color: var(--muted); }
.facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px;
  margin-top: 40px;
  font-size: 16px; font-weight: 550; color: var(--ink);
}
.facts li { display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.opening-figure { max-width: 560px; margin: 56px auto 0; text-align: left; }
@media (max-width: 700px) {
  .opening-inner { text-align: left; }
  .facts { flex-direction: column; align-items: flex-start; gap: 12px; }
  .opening-figure { margin-top: 40px; }
}

/* ---------- The session ---------- */
.session { background: var(--sage); padding-block: var(--section) calc(var(--section) * .7); }
.session-intro { max-width: 640px; margin-bottom: 72px; }
.session-intro h2 { margin-bottom: 20px; }
.session-intro .lead { color: var(--muted); }

.rail { --rail: 56px; position: relative; padding-left: var(--rail); display: grid; gap: 112px; }
.rail::before {
  content: ""; position: absolute; left: 6px; top: 10px; bottom: 34px; width: 1px;
  background: linear-gradient(180deg, var(--line), var(--line) 92%, rgba(210, 217, 210, 0));
}
.chapter {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 40px; row-gap: 36px;
  align-items: center;
}
.chapter-text { grid-column: 1 / span 4; }
.chapter-figure { grid-column: 5 / span 8; }
.chapter.is-flipped .chapter-text { grid-column: 9 / span 4; grid-row: 1; }
.chapter.is-flipped .chapter-figure { grid-column: 1 / span 8; grid-row: 1; }
.chapter-wide { align-items: end; }
.chapter-top { align-items: start; }
.chapter-top .chapter-text { position: sticky; top: 112px; }
.chapter-wide .chapter-text { grid-column: 1 / span 6; }
.chapter-wide .chapter-figure { grid-column: 1 / -1; }

.minute {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
/* The dot hangs on the rail: left comes from the chapter, top from where the minute label sits */
.rail-dot {
  position: absolute; left: calc(var(--rail) * -1);
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 5px var(--sage);
}
.chapter h3 {
  font-family: var(--text); font-weight: 700;
  font-size: clamp(27px, 2.5vw, 36px); line-height: 1.08; letter-spacing: -0.035em;
  text-wrap: balance;
  margin-bottom: 18px;
}
.chapter-text > p:not(.minute) { color: var(--muted); max-width: 30em; }

.frame {
  position: relative;
  background: var(--score);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-frame);
  overflow: hidden;
}
.crop {
  --cx: var(--x); --cy: var(--y); --cw: var(--w); --ch: var(--h);
  aspect-ratio: var(--cw) / var(--ch);
}
.crop img {
  position: absolute;
  width: calc(1440 / var(--cw) * 100%);
  max-width: none;
  height: auto;
  left: calc(var(--cx) / var(--cw) * -100%);
  top: calc(var(--cy) / var(--ch) * -100%);
}
.views img.view { opacity: 0; transition: opacity .32s var(--ease); }
.views img.view.is-on { opacity: 1; }
html:not(.js) .views img.view:first-child { opacity: 1; }
@media (max-width: 700px) {
  .views img[style*="--ipx"] { left: calc(var(--ipx) / var(--cw) * -100%); top: calc(var(--ipy) / var(--ch) * -100%); }
}

figcaption { margin-top: 6px; }
.full-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-size: 14px; font-weight: 550; color: var(--muted);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: rgba(74, 86, 79, .35);
}
.full-link:hover { color: var(--ink); text-decoration-color: currentColor; }
.full-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Minute 2: Even spacing above Printed score. Both pictures are 2000 by 778 at the same scale and fill the wide
   column. On a phone each frame scrolls sideways inside itself and shows the picture 420 pixels tall, so the
   tab numbers stay readable; the page itself never scrolls sideways. */
.spacing-pair { display: grid; gap: 36px; min-width: 0; }
.spacing-view { margin: 0; min-width: 0; }
.spacing-view figcaption.spacing-caption {
  margin: 0 0 12px; max-width: 46em;
  font-size: 16px; line-height: 1.5; color: var(--muted);
}
.spacing-caption strong { color: var(--ink); font-weight: 650; }
.spacing-scroll img { display: block; width: 100%; height: auto; }
.spacing-hint { display: none; }
@media (max-width: 700px) {
  .spacing-pair { gap: 28px; }
  .spacing-view figcaption.spacing-caption { font-size: 15px; margin-bottom: 10px; }
  .spacing-scroll { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .spacing-scroll img { width: auto; max-width: none; height: 420px; }
  .spacing-hint { display: block; margin: 0 0 -12px; font-size: 14px; font-weight: 550; color: var(--muted); }
}

/* Minute 2 with the script (site.js adds .is-single and data-mode): one frame holds both pictures. The Even spacing
   picture stays in the flow and sets the frame's size in every state. The Printed score picture sits on top in
   .spacing-ink and fades in for Printed score. Measured on the two captures (bars 51 to 58, November 14), the
   staff lines of both pictures sit on the same pixel rows, so the top picture needs no vertical nudge. The
   Printed score first line starts 17 pixels further right, because that capture indents the first line; the
   second lines start at the same spot. */
.spacing-pair.is-single { gap: 0; }
.is-single .spacing-switch { margin: 0 0 14px; }
.is-single .spacing-now { display: grid; margin: 0 0 12px; max-width: 46em; font-size: 16px; line-height: 1.5; color: var(--muted); }
.spacing-now > span { grid-area: 1 / 1; }
.spacing-ghost { visibility: hidden; }
.spacing-stage { position: relative; }
.spacing-ink {
  position: absolute; inset: 0; overflow: hidden;
  background: #fff; opacity: 0;
  transition: opacity .18s var(--ease);
}
.spacing-even { transition: opacity .18s var(--ease); }
[data-mode="printed"] .spacing-even { opacity: 0; }
[data-mode="printed"] .spacing-ink { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .spacing-ink, .spacing-ink::after, .spacing-even { transition: none; }
}
@media (max-width: 700px) {
  .is-single .spacing-switch { display: grid; grid-template-columns: repeat(3, auto); width: 100%; }
  .is-single .spacing-switch button { min-height: 44px; padding: 0 6px; font-size: 14px; white-space: nowrap; }
  .is-single .spacing-now { font-size: 15px; margin-bottom: 10px; }
  .is-single .spacing-hint { margin: 0 0 8px; }
  .spacing-stage { width: max-content; }
  .spacing-ink img { height: 420px; }
}

/* Full screen pictures: site.js opens each a.full-link in this dialog. The dialog fills the window, and a click
   on the dimmed area around the picture closes it. */
html.lightbox-open { overflow: hidden; }
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--paper);
  overflow: hidden;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(24, 30, 29, .94); }
.lightbox-stage {
  position: relative; flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 72px 32px 12px;
  overflow: auto; overscroll-behavior: contain;
}
.lightbox-img {
  display: block; max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  border-radius: 12px;
  background: var(--score);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 32px 80px -24px rgba(0, 0, 0, .6);
}
.lightbox.is-loading .lightbox-img, .lightbox.is-failed .lightbox-img { visibility: hidden; }
.lightbox-loading {
  display: none; position: absolute; inset: 0; margin: auto; height: fit-content;
  text-align: center; font-size: 16px; font-weight: 550; color: rgba(254, 253, 251, .85);
}
.lightbox.is-loading .lightbox-loading, .lightbox.is-failed .lightbox-loading { display: block; }
.lightbox-caption {
  flex: none; margin: 0 auto; padding: 4px 32px 24px;
  text-align: center; font-size: 15px; line-height: 1.45; color: rgba(254, 253, 251, .9);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;
}
.lightbox-close {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: rgba(254, 253, 251, .14); color: var(--paper);
  transition: background-color .18s var(--ease);
}
.lightbox-close:hover { background: rgba(254, 253, 251, .26); }
.lightbox-close:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }
.lightbox-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox-img { animation: lightbox-in .26s var(--ease-out); }
  .lightbox[open]::backdrop { animation: lightbox-fade .22s var(--ease-out); }
}
@keyframes lightbox-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes lightbox-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 700px) {
  .lightbox-stage { padding: 72px 12px 8px; }
  .lightbox-caption { padding: 4px 16px 20px; white-space: normal; }
  .lightbox-img { border-radius: 8px; }
}

.view-switch {
  display: inline-flex; gap: 4px; padding: 4px; margin-top: 28px;
  background: #DCE4DB; border-radius: 12px;
}
.view-switch button {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 9px;
  background: transparent; font-size: 15px; font-weight: 550; color: var(--muted);
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.view-switch button:hover { color: var(--ink); }
.view-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(32, 38, 37, .08), 0 4px 10px -6px rgba(32, 38, 37, .3); }

.chapter-stack { display: grid; gap: 24px; }

/* Speed demo */
.speed-demo {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 28px 22px;
  box-shadow: var(--shadow-soft);
}
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.demo-head h4 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; margin: 0; }
.demo-play {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px 0 14px;
  border: 1px solid rgba(36, 92, 83, .28); border-radius: 999px;
  background: #E3ECE6; color: var(--accent);
  font-size: 15px; font-weight: 600;
  transition: background-color .18s var(--ease);
}
.demo-play:hover { background: #D6E4DB; }
.demo-play svg { width: 18px; height: 18px; fill: currentColor; }
.demo-play .i-stop { display: none; }
.demo-play[aria-pressed="true"] .i-play { display: none; }
.demo-play[aria-pressed="true"] .i-stop { display: block; }

.count {
  position: relative;
  display: grid; grid-template-columns: repeat(16, 1fr);
  padding: 14px 0 16px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.count span { text-align: center; font-size: 24px; font-weight: 650; color: var(--ink); line-height: 1.2; }
.count span.and { color: #5F6C64; font-weight: 450; font-size: 19px; line-height: 1.52; }
.count span.is-now { color: var(--accent); }
.beat-mark {
  position: absolute; left: 0; bottom: -1px;
  width: 6.25%; height: 4px;
  display: flex; justify-content: center;
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform .12s var(--ease);
}
.beat-mark::before { content: ""; width: 22px; height: 4px; border-radius: 4px; background: var(--cat-5); }
.demo-controls { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 16px; margin-top: 20px; }
.demo-label { font-size: 15px; font-weight: 600; }
.chips { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 360px; }
.chips button {
  min-height: 40px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--score); font-size: 14px; font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.chips button:hover { color: var(--ink); border-color: #B9C4BB; }
.chips button[aria-pressed="true"] { background: #DCEADF; border-color: rgba(36, 92, 83, .35); color: var(--accent); }
.readout { margin-top: 16px; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.readout strong { font-weight: 650; color: var(--accent); }
.demo-note { margin-top: 6px; font-size: 14px; color: var(--muted); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; background: transparent; margin: 0;
  --fill: 62.7%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent) var(--fill), #D6DED7 var(--fill));
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: #D6DED7; }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
  box-shadow: 0 2px 6px -2px rgba(32, 38, 37, .4);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
  box-shadow: 0 2px 6px -2px rgba(32, 38, 37, .4);
}
input[type="range"]:focus-visible { outline-offset: 0; }

.end-line {
  font-family: var(--text); font-weight: 680;
  font-size: clamp(25px, 2.3vw, 32px); line-height: 1.2; letter-spacing: -0.03em; color: var(--ink);
  max-width: 22em; text-wrap: balance;
}
.chapter-end .chapter-text { grid-column: 1 / span 8; }

@media (max-width: 1050px) {
  .chapter { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .chapter-text, .chapter.is-flipped .chapter-text, .chapter-wide .chapter-text, .chapter-end .chapter-text { grid-column: 1 / -1; grid-row: auto; }
  .chapter-figure, .chapter.is-flipped .chapter-figure { grid-column: 1 / -1; grid-row: auto; }
  .chapter-text { max-width: 620px; }
  .chapter-top .chapter-text { position: static; }
  .rail { gap: 104px; }
}
@media (max-width: 700px) {
  .session-intro { margin-bottom: 64px; }
  .rail { --rail: 28px; gap: 80px; }
  .rail::before { left: 5px; }
  .rail-dot { width: 11px; height: 11px; }
  .chapter { row-gap: 26px; }
  .crop { --cx: var(--px); --cy: var(--py); --cw: var(--pw); --ch: var(--ph); }
  .frame { border-radius: 12px; }
  .speed-demo { padding: 20px 18px 18px; }
  .count span { font-size: 17px; }
  .count span.and { font-size: 14px; line-height: 1.46; }
  .beat-mark::before { width: 12px; }
  .demo-head h4 { font-size: 18px; }
}

/* ---------- Six strings ---------- */
/* site.js draws the strings as curves you can strum (.strings-svg) and hides these plain lines. With less motion
   asked for, or without the script, the plain lines show. */
.strings {
  position: relative;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  height: 120px;
}
.strings i {
  display: block; height: 3px; border-radius: 3px;
  background: var(--c);
}
.strings.has-svg i { visibility: hidden; }
.strings-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.strings-svg path { fill: none; stroke-linecap: round; }

/* ---------- Why I built it ---------- */
.why { background: var(--warm); padding-block: var(--section); }
.why-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 40px; row-gap: 32px;
  align-items: center;
}
.why-photo { grid-column: 1 / span 5; }
.why-photo img {
  width: 100%; height: auto; max-height: 640px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% 50%;
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(32, 38, 37, .06), 0 30px 60px -30px rgba(80, 60, 30, .35);
}
.why-copy { grid-column: 7 / span 5; }
.why-copy h2 { margin-bottom: 26px; }
.why-copy > p { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.6; color: var(--ink); max-width: 30em; }
.signature { display: flex; flex-direction: column; gap: 2px; margin-top: 30px; }
.sig-name { font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.sig-role { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .why-photo, .why-copy { grid-column: 1 / -1; }
  .why-photo img { aspect-ratio: 4 / 3; border-radius: 16px; }
}

/* ---------- Questions ---------- */
.questions { padding-block: var(--section); }
.questions-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 40px; row-gap: 32px;
  align-items: start;
}
.questions h2 { grid-column: 1 / span 4; position: sticky; top: 120px; }
.faq { grid-column: 6 / span 7; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 72px; padding: 18px 0;
  cursor: pointer; list-style: none;
  border-radius: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.faq summary:hover h3 { color: var(--accent); }
.plus { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--sage); transition: transform .25s var(--ease), background-color .2s var(--ease); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--ink); }
.plus::after { transform: rotate(90deg); }
.faq details[open] .plus { transform: rotate(45deg); background: #DCE4DB; }
.answer { padding: 0 52px 26px 0; }
.answer p { color: var(--muted); max-width: 36em; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .answer { animation: answer-in .3s var(--ease-out); }
}
@keyframes answer-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .questions-grid { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .questions h2, .faq { grid-column: 1 / -1; position: static; }
  .answer { padding-right: 0; }
  .faq summary h3 { font-size: 18px; }
}

/* ---------- Pull up a chair ---------- */
.updates {
  background:
    radial-gradient(90% 120% at 0% 0%, var(--daylight) 0%, rgba(244, 238, 230, 0) 60%),
    linear-gradient(90deg, #EFE6DA 0%, #E6D8C8 55%, var(--wall-deep) 100%);
  overflow: hidden;
}
.updates-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
  align-items: center;
  min-height: 640px;
}
.updates-copy {
  padding-block: 96px;
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2));
  padding-right: 56px;
}
.updates h2 { margin-bottom: 22px; }
.updates .lead { max-width: 24em; }
.updates-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.updates .form-note { margin-top: 18px; }
.updates-scene {
  --sx: .03; --sw: .97;
  align-self: stretch;
  display: flex; align-items: center;
}
.updates-scene .scene-frame {
  width: 100%;
  border-radius: 24px 0 0 24px;
  box-shadow: -30px 40px 80px -50px rgba(70, 50, 25, .45);
}

.signup { margin-top: 36px; max-width: 520px; }
.signup label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.field-row { display: flex; gap: 10px; }
.signup input {
  flex: 1; min-width: 0; min-height: 56px; padding: 0 18px;
  border: 1.5px solid var(--field); border-radius: 12px;
  background: var(--paper); color: var(--ink); font-size: 17px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.signup input::placeholder { color: #69766D; }
.signup input:hover { border-color: #6F7E72; }
.signup input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); border-radius: 12px; }
.signup input[aria-invalid="true"] { border-color: var(--error); }
.form-error { min-height: 0; margin-top: 10px; font-size: 15px; font-weight: 550; color: var(--error); }
.form-error:empty { display: none; }
.form-note { margin-top: 12px; font-size: 14px; color: #3F4A44; max-width: 34em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup { position: relative; }
.signup .button:disabled { opacity: .7; cursor: progress; transform: none; }
.form-thanks { display: none; align-items: flex-start; gap: 14px; margin-top: 18px; }
.form-thanks.is-shown { display: flex; }
.form-thanks p { font-size: 16px; line-height: 1.5; color: var(--ink); }
.thanks-stripes { display: grid; gap: 4px; padding-top: 4px; flex: none; }
.thanks-stripes i { display: block; width: 28px; height: 5px; border-radius: 5px; }
.thanks-stripes i:nth-child(1) { background: var(--cat-1); }
.thanks-stripes i:nth-child(2) { background: var(--cat-2); }
.thanks-stripes i:nth-child(3) { background: var(--cat-3); }
.thanks-stripes i:nth-child(4) { background: var(--cat-4); }
.thanks-stripes i:nth-child(5) { background: var(--cat-5); }
.thanks-stripes i:nth-child(6) { background: var(--cat-6); }
@media (prefers-reduced-motion: no-preference) {
  .form-thanks.is-shown .thanks-stripes i { animation: stripe-in .45s var(--ease-out) both; }
  .form-thanks.is-shown .thanks-stripes i:nth-child(2) { animation-delay: .05s; }
  .form-thanks.is-shown .thanks-stripes i:nth-child(3) { animation-delay: .10s; }
  .form-thanks.is-shown .thanks-stripes i:nth-child(4) { animation-delay: .15s; }
  .form-thanks.is-shown .thanks-stripes i:nth-child(5) { animation-delay: .20s; }
  .form-thanks.is-shown .thanks-stripes i:nth-child(6) { animation-delay: .25s; }
}
@media (max-width: 900px) {
  .updates-grid { grid-template-columns: 1fr; min-height: 0; }
  .updates-copy { padding: var(--section) var(--gutter) 48px; }
  .updates-scene { --sx: .02; --sw: .98; }
  .updates-scene .scene-frame { border-radius: 0; box-shadow: none; }
}
@media (max-width: 560px) {
  .field-row { flex-direction: column; }
  .field-row .button { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 56px; background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 56px; align-items: start; }
.footer-logo { display: inline-flex; border-radius: 8px; }
.footer-text p { font-size: 15px; color: var(--ink); max-width: 44em; }
.footer-text .small { margin-top: 8px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a {
  font-size: 15px; font-weight: 550; color: var(--ink);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(32, 38, 37, .3);
}
.footer-links a:hover { text-decoration-color: currentColor; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion: everything settles at once ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ---------- After the session: the link to A closer look ---------- */
.session-more { margin-top: 64px; }
@media (max-width: 700px) { .session-more { margin-top: 48px; } }

/* ---------- A closer look ---------- */
.page-hero {
  padding-top: calc(var(--header) + 72px);
  background:
    radial-gradient(120% 90% at 12% 0%, var(--daylight) 0%, rgba(244, 238, 230, 0) 62%),
    linear-gradient(180deg, #F1E9DE 0%, #ECE1D4 60%, var(--sage) 60%);
}
.page-hero h1 { max-width: 13em; margin-bottom: 22px; }
.page-hero .lead { max-width: 34em; color: var(--ink); }
.page-hero-shot { margin-top: 56px; }
.page-hero-shot .frame { border-radius: 20px; }
.look { background: var(--sage); padding-block: 0 var(--section); }

/* Jump bar: the tour's steps in one row that sticks under the header while the steps are on screen.
   The step on screen is marked; the row scrolls sideways when it doesn't fit, and fades at a cut edge. */
.jump {
  position: sticky; top: var(--header); z-index: 40;
  margin-bottom: 104px;
  background: rgba(237, 241, 235, .9);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
}
.jump-list {
  list-style: none; margin-block: 0; padding-block: 10px;
  display: flex; gap: 4px;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.jump-list::-webkit-scrollbar { display: none; }
.jump-list.fade-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.jump-list.fade-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px); mask-image: linear-gradient(90deg, transparent, #000 32px); }
.jump-list.fade-left.fade-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
.jump-list li { flex: none; }
.jump-list a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 13px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 14.5px; font-weight: 550; color: var(--muted); white-space: nowrap; text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.jump-list a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); opacity: .6; flex: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.jump-list a:hover { color: var(--ink); background: rgba(255, 255, 255, .55); }
.jump-list a[aria-current="location"] {
  color: var(--ink); background: var(--paper);
  border-color: rgba(32, 38, 37, .12);
  box-shadow: 0 1px 2px rgba(32, 38, 37, .08), 0 4px 12px -6px rgba(32, 38, 37, .25);
}
.jump-list a[aria-current="location"]::before { opacity: 1; transform: scale(1.2); }
:root:has(.jump) { scroll-padding-top: calc(var(--header) + 84px); }
.look .chapter h2 { font-size: clamp(27px, 2.5vw, 36px); line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 18px; }
.extras { margin-top: 128px; padding-left: 56px; }
.extras h2 { font-size: clamp(27px, 2.5vw, 36px); margin-bottom: 28px; }
.extras ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 48px; max-width: 980px; }
.extras li { display: flex; gap: 14px; align-items: baseline; }
.extras li .dot { transform: translateY(-2px); }
.extras p { color: var(--ink); }
/* "Try TabbyGato." closes A closer look, About and the guides in the same warm band. */
.page-end { padding-block: var(--section); background:
    radial-gradient(90% 120% at 0% 0%, var(--daylight) 0%, rgba(244, 238, 230, 0) 60%),
    linear-gradient(90deg, #EFE6DA 0%, #E6D8C8 55%, var(--wall-deep) 100%); }
.page-end-inner { text-align: center; display: grid; justify-items: center; gap: 22px; }
.page-end .lead { max-width: 30em; text-wrap: balance; }
.site-nav a[aria-current="page"] { background: rgba(32, 38, 37, .07); }
@media (max-width: 700px) {
  .page-hero { padding-top: calc(var(--header) + 40px); }
  .page-hero-shot { margin-top: 36px; }
  .extras { padding-left: 0; margin-top: 88px; }
  .extras ul { grid-template-columns: 1fr; }
  .jump { margin-bottom: 64px; }
  .jump-list { padding-block: 8px; }
  .jump-list a { padding: 0 11px; font-size: 14px; }
}

/* ---------- Footer page links (SEO and GEO chat, November 13, 2026) ---------- */
.footer-pages { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-pages a { font-size: 15px; color: var(--muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.footer-pages a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- The tab, the recording and the video (November 17, 2026) ---------- */
/* The hero's reassurance line sits right under the two actions, where a visitor decides. */

.together { background: var(--warm); padding-block: var(--section) calc(var(--section) * .8); }
.together-intro { max-width: 720px; margin-bottom: 64px; }
.together-intro h2 { margin-bottom: 22px; }
.together-intro .lead { color: var(--muted); }

.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.kind { padding-top: 22px; border-top: 2px solid var(--c); }
.kind-icon {
  display: block; width: 32px; height: 32px; margin-bottom: 14px;
  fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--ink);
}
.kind-label { margin-bottom: 8px; font-size: 14px; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.kind h3 {
  font-family: var(--text); font-weight: 700;
  font-size: clamp(22px, 1.9vw, 27px); line-height: 1.12; letter-spacing: -0.03em;
  text-wrap: balance; margin-bottom: 14px;
}
.kind > p:last-child { color: var(--muted); }

.together-library { margin-top: 72px; }
.together-library figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.together-caption { display: block; }

.together-comments {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 40px; row-gap: 28px;
  align-items: center; margin-top: 96px;
}
.together-comments-text { grid-column: 1 / span 4; }
.together-comments-text h3 {
  font-family: var(--text); font-weight: 700;
  font-size: clamp(27px, 2.5vw, 36px); line-height: 1.08; letter-spacing: -0.035em;
  text-wrap: balance; margin-bottom: 18px;
}
.together-comments-text p { color: var(--muted); max-width: 30em; }
.together-comments-figure { grid-column: 5 / span 8; }

.together-note { margin-top: 72px; max-width: 46em; font-size: 15px; line-height: 1.6; color: var(--muted); }
.together-more { margin-top: 12px; }

@media (max-width: 1050px) {
  .kinds { gap: 28px; }
  .together-comments { grid-template-columns: minmax(0, 1fr); }
  .together-comments-text, .together-comments-figure { grid-column: 1 / -1; }
  .together-comments-text { max-width: 620px; }
}
@media (max-width: 760px) {
  .kinds { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 700px) {
  .together-intro { margin-bottom: 48px; }
  .together-library { margin-top: 56px; }
  .together-comments { margin-top: 72px; }
  .together-note { margin-top: 56px; }
}

/* ---------- One look on every page (cohesion pass, November 17, 2026) ---------- */
/* The second button beside a green one: the same size and words, with no fill. */
.button-quiet { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px rgba(36, 92, 83, .45); }
.button-quiet:hover { background: rgba(36, 92, 83, .07); box-shadow: inset 0 0 0 1.5px var(--accent); }
.button-quiet:active { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* Links inside running text, on every page: ink, the text's own weight, and a soft underline that darkens under
   the pointer. Notes and jump links stay gray. "See the full screen" keeps its own style. */
.answer a, .form-note a, .article-body :where(a:not(.button, .full-link)) {
  color: var(--ink); font-weight: inherit;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: rgba(32, 38, 37, .4);
}
.answer a:hover, .form-note a:hover, .article-body :where(a:not(.button, .full-link)):hover { text-decoration-color: currentColor; }
.article-body :where(.note, .toc) a { color: var(--muted); text-decoration-color: rgba(74, 86, 79, .4); }

/* "See the full screen" under A closer look's opening picture. */
.shot-link { margin-top: 8px; }

/* Footer links a finger can hit on a phone: 44 pixels tall. */
@media (max-width: 700px) {
  .footer-links, .footer-pages { gap: 0 24px; }
  .footer-links a, .footer-pages a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- When you get stuck (Home, November 18, 2026) ----------
   Five fixes in the student's own words, beside the practice player. Each fix is a button that sets the player up. */
.stuck { background: var(--sage); padding-block: var(--section) calc(var(--section) * .8); }
.stuck h2 { max-width: 640px; }
.stuck-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; margin-top: 48px; }
.fixes { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.fix { border-left: 3px solid var(--c); padding-left: 16px; }
.fix-q {
  display: block; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 20px; font-weight: 650; line-height: 1.3; text-align: left; color: var(--ink);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: text-decoration-color .15s var(--ease), color .15s var(--ease);
}
.fix-q:hover { text-decoration-color: currentColor; }
.fix-q[aria-pressed="true"] { color: var(--accent); }
.fix-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.fix p { margin-top: 6px; color: var(--muted); max-width: 32em; }
.stuck-player { margin: 0; position: sticky; top: calc(var(--header) + 24px); }
.stuck-more { margin-top: 48px; }
@media (max-width: 1050px) {
  .stuck-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .stuck-player { position: static; }
}
@media (max-width: 700px) {
  .stuck-grid { margin-top: 32px; }
  .fixes { gap: 22px; }
  .fix-q { font-size: 18px; }
}
/* The three kinds of song file now carry one line and one link each, with no library picture under them. */
.kind p + p { margin-top: 10px; }

/* ---------- How to use (November 18, 2026) ---------- */
.howto-steps { list-style: decimal; margin: 0 0 0 1.2em; padding: 0; display: grid; gap: 12px; color: var(--muted); max-width: 34em; }
.howto-steps li::marker { color: var(--ink); font-weight: 700; }
.howto-steps + p { margin-top: 18px; color: var(--muted); max-width: 34em; }
.tour-page [data-folder-scene] { margin-block: 40px 96px; }
.rail-after { margin-top: 0; }
.howto-more { margin-top: 72px; max-width: 40em; }

/* Open TabbyGato (November 18, 2026): the app opens its four sample songs with no account. The header link hides on
   phones beside Log in, and the Menu panel carries a copy instead. The song button sits under the Home player. */
.nav-app { display: none; }
@media (max-width: 1000px) { .site-header.menu-open .site-nav a.nav-app { display: block; } }
@media (min-width: 1001px) and (max-width: 1180px) { .header-open { display: none; } }
@media (max-width: 1000px) and (min-width: 561px) { .header-open { display: inline-flex; } }
.player-open { margin: 16px 0 0; }
.header-login, .header-actions .button-small { white-space: nowrap; }
