/* /ai-team. The server HTML is the finished call sheet: the scene and plan
   radios fill the sheet through :has() with no script. .cs-live (the arrows,
   the typed lines, the signature) and .cs-moving (drift, swing) add on top. */

@layer components {
.cs-page {
  --cs-m: clamp(16px, 2.8vw, 40px);
  --cs-gap: clamp(88px, 10vw, 160px);
  --cs-out: cubic-bezier(.16, 1, .3, 1);
  --cs-1: clamp(44px, 6vw, 96px);
  --cs-2: clamp(32px, 3.9vw, 58px);
  --cs-3: clamp(20px, 1.7vw, 26px);
  --cs-small: 15px;
  position: relative;
  overflow-x: clip;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
}

.cs-page :focus-visible { outline: 3px solid var(--cs-blue); outline-offset: 3px; }
.cs-page h1, .cs-page h2, .cs-page h3 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1; text-wrap: balance; }
.cs-page h2 { font-size: var(--cs-2); }
:where(.cs-page) p, :where(.cs-page) figure { margin: 0; }
.cs-page figcaption { font-size: var(--cs-small); line-height: 1.35; margin-top: 10px; color: var(--ink-2); }
.cs-wrap { max-width: 1520px; margin-inline: auto; padding-inline: var(--cs-m); }
.cs-lede { font-size: var(--cs-3); line-height: 1.4; max-width: 30em; text-wrap: pretty; }
.cs-body { max-width: 34em; }
.cs-link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-underline-offset .25s var(--cs-out), color .2s ease; }
.cs-link:hover { text-underline-offset: 9px; color: var(--accent); }
.cs-pic { overflow: hidden; }
.cs-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-sec { padding-block: var(--cs-gap); scroll-margin-top: var(--nav-height); }
/* Two plain sections share one gap; a section after a band keeps its own. */
.cs-sec:not(.cs-dark):not(.cs-field) + .cs-sec:not(.cs-dark):not(.cs-field) { padding-top: 0; }

/* hero */
.cs-hero { background: var(--paper-2); padding-block: clamp(28px, 4vw, 56px) clamp(80px, 9vw, 140px); }
.cs-hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: end; }
.cs-hero h1 { font-size: var(--cs-1); letter-spacing: -.045em; line-height: .93; }
.cs-hero-form { display: grid; gap: 18px; justify-items: start; margin-top: 28px; }
.cs-hero-form > div { width: 100%; }

/* the clipboard and the sheet: a drawn object, light in both modes */
.cs-board { position: relative; background: var(--cs-board); border-radius: 4px; padding: clamp(34px, 3.4vw, 52px) clamp(10px, 1.6vw, 26px) clamp(10px, 1.6vw, 26px); margin-top: clamp(48px, 5vw, 80px); }
.cs-clip { position: absolute; left: 50%; top: -30px; width: clamp(180px, 20vw, 260px); transform: translateX(-50%); z-index: 3; }
.cs-sheet { position: relative; background: var(--cs-sheet); color: var(--cs-s-ink); border-radius: 4px; padding: clamp(14px, 2vw, 32px); }
.cs-hero .cs-sheet { transform: rotate(-.3deg); }
.cs-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; background: var(--cs-s-ink); color: var(--cs-sheet); border-radius: 4px; padding: 16px 20px; }
.cs-bar-t { font-size: var(--cs-2); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.cs-bar-small, .cs-pad .cs-bar-t { font-size: var(--cs-3); letter-spacing: -.02em; }
.cs-bar-r { font-size: var(--cs-small); font-weight: 600; text-align: right; }
.cs-bar-r em { display: block; font-style: normal; color: var(--cs-bar-em); font-weight: 800; font-size: 18px; }
.cs-cells { display: grid; grid-template-columns: 1fr 1fr 2fr 1.4fr; gap: 4px; margin-top: 4px; }
.cs-cells > div { background: var(--cs-cell); border-radius: 4px; padding: 12px 16px; min-width: 0; }
.cs-cells small { display: block; font-size: var(--cs-small); font-weight: 600; color: var(--cs-s-mute); }
.cs-cells strong { display: block; font-size: var(--cs-3); line-height: 1.15; letter-spacing: -.02em; }
.cs-dir strong { color: var(--cs-rust); }
.cs-nc { display: block; margin-top: 4px; font-size: var(--cs-small); font-weight: 600; }
.cs-lab { display: block; margin: 22px 0 8px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.cs-sheet [data-sc] { display: none; }
.cs-sheet:has(#cs-sc-finding:checked) [data-sc~="finding"],
.cs-sheet:has(#cs-sc-keyword:checked) [data-sc~="keyword"],
.cs-sheet:has(#cs-sc-strategy:checked) [data-sc~="strategy"] { display: inline; }

.cs-scenes { border: 0; margin: 0; padding: 0; min-width: 0; }
.cs-scenes legend { padding: 0; float: none; }
.cs-sc-list { display: grid; gap: 4px; }
.cs-scene { position: relative; display: grid; grid-template-columns: 13em minmax(0, 1fr) 21em; gap: 16px; align-items: center; background: var(--cs-cell); border-radius: 4px; padding: 14px 18px; cursor: pointer; transition: background-color .25s ease, transform .2s var(--cs-out); }
.cs-scene:hover { background: var(--cs-cell-2); transform: translateX(4px); }
.cs-scene:active { transform: scale(.99); }
.cs-scene input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cs-scene:has(input:focus-visible) { outline: 3px solid var(--cs-blue); outline-offset: 3px; }
.cs-nm { position: relative; justify-self: start; font-size: var(--cs-3); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; padding: 4px 2px; }
.cs-set { font-size: 18px; line-height: 1.4; }
.cs-who { font-size: var(--cs-small); font-weight: 700; color: var(--cs-who); text-align: right; }
.cs-ring { position: absolute; left: -16px; top: -12px; width: calc(100% + 32px); height: calc(100% + 24px); overflow: visible; pointer-events: none; }
.cs-ring path { fill: none; stroke: var(--cs-rust); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .7s var(--cs-out); }
.cs-scene:has(input:checked) { background: var(--cs-mint); }
.cs-scene:has(input:checked) .cs-ring path { stroke-dashoffset: 0; }
.cs-hole { position: absolute; left: clamp(6px, .8vw, 10px); width: 14px; height: 14px; border-radius: 50%; background: var(--cs-board); }
.cs-hole:nth-of-type(1) { top: 18%; }
.cs-hole:nth-of-type(2) { top: 50%; }
.cs-hole:nth-of-type(3) { top: 82%; }
.cs-pencil { position: absolute; right: 12%; bottom: -20px; width: clamp(170px, 22vw, 320px); height: auto; transform: rotate(-6deg); z-index: 2; pointer-events: none; }

/* cast rows: a row not called reads in the muted ink, never faded below contrast */
.cs-cast { position: relative; padding-left: 56px; display: grid; gap: 4px; }
.cs-arrows { position: absolute; left: 0; top: 0; width: 56px; height: 100%; overflow: visible; pointer-events: none; }
.cs-arrows path { fill: none; stroke: var(--cs-teal); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cs-arrows path.is-you { stroke: var(--cs-rust); }
.cs-heads { display: grid; grid-template-columns: 11em 13em minmax(0, 1fr) 7em; gap: 16px; padding: 0 18px 4px 74px; font-size: var(--cs-small); font-weight: 700; color: var(--cs-s-mute); }
.cs-row { display: grid; grid-template-columns: 11em 13em minmax(0, 1fr) 7em; gap: 16px; align-items: center; background: var(--cs-cell); color: var(--cs-s-mute); border-radius: 4px; padding: 12px 18px; min-height: 64px; transition: background-color .35s ease, color .35s ease; }
.cs-r { display: grid; }
.cs-r h3, .cs-r b { font-size: var(--cs-3); letter-spacing: -.02em; line-height: 1.1; font-weight: 800; }
.cs-r small { font-size: var(--cs-small); font-weight: 600; }
.cs-r small a { color: var(--cs-s-ink); text-decoration: underline; text-underline-offset: 3px; }
.cs-cue { font-size: var(--cs-small); font-weight: 700; }
.cs-ln { font-size: 18px; line-height: 1.4; min-height: 1.4em; }
.cs-mk { display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: var(--cs-small); font-weight: 800; white-space: nowrap; }
.cs-tick { width: 26px; height: 22px; flex: none; }
.cs-tick path { fill: none; stroke: var(--cs-teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset .4s var(--cs-out) .1s; }
.cs-mk .cs-y { display: none; align-items: center; gap: 6px; }
.cs-row .cs-ln [data-sc] { display: none !important; }
.cs-sheet:has(#cs-sc-finding:checked) .cs-row.finding:not(.is-wait),
.cs-sheet:has(#cs-sc-keyword:checked) .cs-row.keyword:not(.is-wait),
.cs-sheet:has(#cs-sc-strategy:checked) .cs-row.strategy:not(.is-wait) { background: var(--cs-mint); color: var(--cs-s-ink); }
.cs-sheet:has(#cs-sc-finding:checked) .cs-row.finding:not(.is-wait) .cs-ln [data-sc~="finding"],
.cs-sheet:has(#cs-sc-keyword:checked) .cs-row.keyword:not(.is-wait) .cs-ln [data-sc~="keyword"],
.cs-sheet:has(#cs-sc-strategy:checked) .cs-row.strategy:not(.is-wait) .cs-ln [data-sc~="strategy"] { display: inline !important; }
.cs-sheet:has(#cs-sc-finding:checked) .cs-row.finding:not(.is-wait) .cs-y,
.cs-sheet:has(#cs-sc-keyword:checked) .cs-row.keyword:not(.is-wait) .cs-y,
.cs-sheet:has(#cs-sc-strategy:checked) .cs-row.strategy:not(.is-wait) .cs-y { display: flex; }
.cs-sheet:has(#cs-sc-finding:checked) .cs-row.finding:not(.is-wait) .cs-n,
.cs-sheet:has(#cs-sc-keyword:checked) .cs-row.keyword:not(.is-wait) .cs-n,
.cs-sheet:has(#cs-sc-strategy:checked) .cs-row.strategy:not(.is-wait) .cs-n { display: none; }
.cs-sheet:has(#cs-sc-finding:checked) .cs-row.finding:not(.is-wait) .cs-tick path,
.cs-sheet:has(#cs-sc-keyword:checked) .cs-row.keyword:not(.is-wait) .cs-tick path,
.cs-sheet:has(#cs-sc-strategy:checked) .cs-row.strategy:not(.is-wait) .cs-tick path { stroke-dashoffset: 0; }
.cs-sheet .cs-row.cs-you:not(.is-wait) { background: var(--cs-you-soft) !important; }
.cs-row.cs-you:not(.is-wait) .cs-r b, .cs-row.cs-you:not(.is-wait) .cs-mk { color: var(--cs-rust); }
.cs-row.cs-you .cs-tick path { stroke: var(--cs-rust); }
.cs-row.cs-tbc { background: transparent; color: var(--cs-s-ink); min-height: 0; padding-block: 8px; }
.cs-row.cs-tbc .cs-r b { color: var(--cs-s-mute); }
.cs-tbc .cs-cue span, .cs-crew .cs-tbc .cs-st span { display: inline-block; background: var(--cs-amber); color: var(--cs-s-ink); border-radius: 4px; padding: 3px 10px; transform: rotate(-2deg); }

.cs-sign { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 22px; background: var(--cs-cell); border-radius: 4px; padding: 18px 22px; }
.cs-what b { display: block; font-size: var(--cs-3); letter-spacing: -.02em; }
.cs-what span { font-size: var(--cs-small); font-weight: 600; color: var(--cs-s-mute); }
.cs-sig { display: block; width: 100%; max-width: 360px; height: 58px; margin-top: 8px; }
.cs-sig path { fill: none; stroke: var(--cs-rust); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cs-sig rect { fill: var(--cs-s-ink); }
.cs-stamp { width: 132px; height: 132px; transform: rotate(-12deg); color: var(--cs-rust); }
.cs-stamp circle { fill: none; stroke: currentColor; }
.cs-stamp text { fill: currentColor; font-family: inherit; font-weight: 800; }

/* plans: a pad of three copies */
.cs-plans-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.cs-price { margin-top: 40px; font-size: clamp(26px, 2.6vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
.cs-price-line { margin-top: 18px; max-width: 26em; }
.cs-plans-side .cs-lede { margin-top: 28px; }
.cs-pad { position: relative; padding-top: 58px; }
.cs-tabs { position: absolute; top: 0; left: 18px; display: flex; gap: 6px; border: 0; margin: 0; padding: 0; z-index: 2; }
.cs-tabs legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cs-tab { position: relative; display: grid; place-items: center; min-width: 104px; min-height: 58px; padding: 0 18px; border-radius: 4px 4px 0 0; background: var(--cs-cell-2); color: var(--cs-s-ink); font-weight: 800; font-size: 18px; line-height: 1.2; cursor: pointer; transition: background-color .2s ease, transform .2s var(--cs-out); }
.cs-tab small { font-weight: 600; font-size: var(--cs-small); }
.cs-tab input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cs-tab:hover { transform: translateY(-3px); }
.cs-tab:has(input:focus-visible) { outline: 3px solid var(--cs-blue); outline-offset: 2px; }
.cs-tab:has(input:checked) { background: var(--cs-sheet); color: var(--cs-teal); }
.cs-pad .cs-sheet { z-index: 1; }
.cs-pad::before, .cs-pad::after { content: ""; position: absolute; inset: 58px 0 0; border-radius: 4px; background: var(--cs-pad-1); }
.cs-pad::before { transform: rotate(1.4deg) translate(10px, 8px); }
.cs-pad::after { background: var(--cs-pad-2); transform: rotate(-.9deg) translate(-6px, 5px); }
.cs-crew { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.cs-crew li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; background: var(--cs-cell); border-radius: 4px; padding: 14px 18px; transition: background-color .3s ease; }
.cs-crew .cs-nm { font-size: var(--cs-3); line-height: 1.15; padding: 0; }
.cs-crew .cs-nm small { display: block; font-size: var(--cs-small); font-weight: 600; color: var(--cs-s-mute); letter-spacing: 0; }
.cs-strike { position: absolute; left: -4px; right: -4px; top: .6em; height: 3px; background: var(--cs-rust); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--cs-out); }
.cs-st { display: flex; align-items: center; gap: 6px; font-size: var(--cs-small); font-weight: 800; }
.cs-st .cs-y, .cs-st .cs-n { display: none; }
.cs-crew li.cs-fixed .cs-st { color: var(--cs-s-mute); }
.cs-crew li.cs-tbc { background: transparent; padding-block: 8px; }
/* Plan keys are PricingPresenter::PLAN_NAMES. */
.cs-plans-grid [data-pl] { display: none; }
.cs-plans-grid:has(#cs-pl-free:checked) [data-pl="free"],
.cs-plans-grid:has(#cs-pl-hobby:checked) [data-pl="hobby"],
.cs-plans-grid:has(#cs-pl-pro:checked) [data-pl="pro"] { display: inline; }
.cs-plans-grid:has(#cs-pl-free:checked) li[data-p~="free"],
.cs-plans-grid:has(#cs-pl-hobby:checked) li[data-p~="hobby"],
.cs-plans-grid:has(#cs-pl-pro:checked) li[data-p~="pro"] { background: var(--cs-mint); }
.cs-plans-grid:has(#cs-pl-free:checked) li[data-p~="free"] .cs-y,
.cs-plans-grid:has(#cs-pl-hobby:checked) li[data-p~="hobby"] .cs-y,
.cs-plans-grid:has(#cs-pl-pro:checked) li[data-p~="pro"] .cs-y { display: flex; }
.cs-plans-grid:has(#cs-pl-free:checked) li[data-p~="free"] .cs-tick path,
.cs-plans-grid:has(#cs-pl-hobby:checked) li[data-p~="hobby"] .cs-tick path,
.cs-plans-grid:has(#cs-pl-pro:checked) li[data-p~="pro"] .cs-tick path { stroke-dashoffset: 0; }
.cs-plans-grid:has(#cs-pl-free:checked) li.cs-opt:not([data-p~="free"]) .cs-n,
.cs-plans-grid:has(#cs-pl-hobby:checked) li.cs-opt:not([data-p~="hobby"]) .cs-n,
.cs-plans-grid:has(#cs-pl-pro:checked) li.cs-opt:not([data-p~="pro"]) .cs-n { display: inline; color: var(--cs-s-mute); }
.cs-plans-grid:has(#cs-pl-free:checked) li.cs-opt:not([data-p~="free"]) .cs-strike,
.cs-plans-grid:has(#cs-pl-hobby:checked) li.cs-opt:not([data-p~="hobby"]) .cs-strike,
.cs-plans-grid:has(#cs-pl-pro:checked) li.cs-opt:not([data-p~="pro"]) .cs-strike { transform: scaleX(1); }
.cs-plans-grid:has(#cs-pl-free:checked) li.cs-opt:not([data-p~="free"]) .cs-nm,
.cs-plans-grid:has(#cs-pl-hobby:checked) li.cs-opt:not([data-p~="hobby"]) .cs-nm,
.cs-plans-grid:has(#cs-pl-pro:checked) li.cs-opt:not([data-p~="pro"]) .cs-nm { color: var(--cs-s-mute); }

/* to be cast: the band stays dark in both modes */
.cs-dark { background: var(--band); color: var(--band-ink); }
.cs-dark figcaption { color: var(--band-ink-2); }
.cs-soon-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 72px); align-items: end; }
.cs-soon-grid .cs-lede { margin-top: 28px; }
.cs-soon-grid .cs-pic img { aspect-ratio: 16 / 10; }
.cs-chairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); margin: clamp(56px, 6vw, 96px) 0 0; padding: 0; list-style: none; }
.cs-chairs li { display: grid; gap: 14px; align-content: start; }
.cs-chairs li:nth-child(2) { margin-top: 48px; }
.cs-chairs svg { width: 100%; height: auto; max-width: 320px; }
.cs-frame { fill: var(--cs-amber); }
.cs-canvas { fill: var(--cs-sheet); }
.cs-cname { fill: var(--cs-s-ink); font-family: inherit; font-weight: 800; font-size: 24px; letter-spacing: -.5px; }
.cs-tag rect { fill: var(--cs-rust); }
.cs-tag text { fill: var(--cs-white); font-family: inherit; font-weight: 700; font-size: 15px; }
.cs-tag line { stroke: var(--cs-sheet); stroke-width: 2; }
.cs-chairs h3 { font-size: var(--cs-3); letter-spacing: -.02em; }
.cs-chairs p { max-width: 24em; }

/* sign-off */
.cs-sign-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.cs-sign-grid .cs-lede { margin-top: 28px; }
.cs-sign-grid .cs-pic img { aspect-ratio: 5 / 4; }
.cs-slip { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center; background: var(--cs-sheet); color: var(--cs-s-ink); border-radius: 4px; padding: 24px 24px 26px; margin-top: 40px; transform: rotate(1.2deg); }
.cs-k { font-size: var(--cs-small); font-weight: 600; color: var(--cs-s-mute); }
.cs-v { font-size: var(--cs-3); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.cs-v + .cs-k { margin-top: 12px; }
.cs-slip .cs-stamp { width: 120px; height: 120px; }
.cs-slip .cs-sig { max-width: 240px; }

/* playbook */
.cs-field { background: var(--paper-2); }
.cs-book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.cs-book-grid .cs-lede, .cs-book-grid .cs-body { margin-top: 24px; }
.cs-book-fig { position: relative; }
.cs-book-fig .cs-pic, .cs-book-fig figcaption { margin-left: 72px; }
.cs-book-fig .cs-pic img { aspect-ratio: 4 / 3; }
.cs-script { position: absolute; left: 0; bottom: 56px; display: flex; flex-direction: column; width: min(44%, 250px); aspect-ratio: 8.5 / 11; padding: 30px 22px 26px 44px; background: var(--cs-teal); color: var(--cs-white); border-radius: 4px; transform: rotate(-3deg); }
.cs-script i { position: absolute; left: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--cs-amber); }
.cs-script i:nth-child(1) { top: 18%; }
.cs-script i:nth-child(2) { top: 48%; }
.cs-script i:nth-child(3) { top: 78%; }
.cs-script b { font-size: var(--cs-3); letter-spacing: -.04em; line-height: 1; }
.cs-script span { margin-top: 12px; font-size: var(--cs-small); }
.cs-script em { margin-top: auto; font-style: normal; font-weight: 700; font-size: var(--cs-small); }
.cs-install { margin-top: 36px; }
.cs-install-lab { font-weight: 700; margin-bottom: 10px !important; }
.cs-install-row { display: flex; gap: 8px; }
.cs-install pre { flex: 1; min-width: 0; margin: 0; padding: 14px 16px; overflow-x: auto; background: var(--paper); color: var(--ink); border-radius: 4px; font-size: var(--cs-small); line-height: 1.5; white-space: pre-wrap; word-break: break-all; }
.cs-copy { flex: none; min-width: 96px; }
.cs-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 28px !important; }

/* notes for the crew (the FAQ) */
.cs-faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
.cs-faq-grid figure { margin-top: 40px; }
.cs-faq-grid .cs-pic img { aspect-ratio: 4 / 3; }
.cs-faq-grid .cs-board { margin-top: 30px; }
.cs-notes details { margin-top: 4px; background: var(--cs-cell); border-radius: 4px; }
.cs-notes summary { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 18px; list-style: none; border-radius: 4px; cursor: pointer; transition: background-color .2s ease; }
.cs-notes summary::-webkit-details-marker { display: none; }
.cs-notes summary:hover { background: var(--cs-cell-2); }
.cs-notes summary h3 { font-size: var(--cs-3); letter-spacing: -.02em; line-height: 1.25; }
.cs-notes summary svg { width: 30px; height: 26px; }
.cs-notes summary svg path { fill: none; stroke: var(--cs-s-mute); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cs-notes summary svg .cs-tk { stroke: var(--cs-teal); stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset .4s var(--cs-out); }
.cs-notes details[open] summary svg .cs-tk { stroke-dashoffset: 0; }
.cs-notes details p { max-width: 60ch; padding: 0 18px 18px 62px; }

/* close */
.cs-close { padding-top: var(--cs-gap); }
.cs-sec:not(.cs-dark):not(.cs-field) + .cs-close { padding-top: 0; }
.cs-close-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; margin-bottom: 56px; }
.cs-close h2 { font-size: var(--cs-1); letter-spacing: -.045em; line-height: .95; }
.cs-close-act { display: grid; gap: 22px; justify-items: start; }
.cs-close-act > div { width: 100%; }
.cs-close-pic img { aspect-ratio: 21 / 8; }
.cs-credits { max-width: calc(48ch + 2 * var(--cs-m)); margin-inline: 0; padding-block: 24px clamp(72px, 8vw, 120px); font-size: var(--cs-small); line-height: 1.55; color: var(--ink-2); }
.cs-credits a { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 1100px) {
  .cs-heads { display: none; }
  .cs-row .cs-tick { display: none; }
  .cs-scene { grid-template-columns: 11em minmax(0, 1fr); }
  /* Stacked, the scenes are one list to pick from, not a pile of boxes. */
  .cs-sc-list { gap: 0; padding: 4px; background: var(--cs-cell); border-radius: 4px; }
  .cs-scene { background: transparent; padding: 12px 14px; }
  .cs-scene:hover { transform: none; background: var(--cs-cell-2); }
  .cs-who { grid-column: 1 / -1; text-align: left; }
  .cs-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .cs-row .cs-cue { grid-column: 1 / -1; grid-row: 2; }
  .cs-row .cs-ln { grid-column: 1 / -1; grid-row: 3; }
  .cs-row .cs-mk { grid-column: 2; grid-row: 1; }
  .cs-row.cs-tbc .cs-cue { grid-column: 2; grid-row: 1; justify-self: end; }
  .cs-row.cs-tbc .cs-ln { grid-row: 2; }
}
@media (max-width: 900px) {
  .cs-hero-top, .cs-plans-grid, .cs-sign-grid, .cs-book-grid, .cs-faq-grid, .cs-close-row { grid-template-columns: minmax(0, 1fr); }
  .cs-plans-side { order: -1; }
  .cs-cells { grid-template-columns: 1fr 1fr; }
  .cs-cells .cs-sc, .cs-cells .cs-cnt { grid-column: 1 / -1; }
  .cs-book-fig { display: flex; flex-direction: column; }
  .cs-book-fig figcaption { order: -1; margin: 0 0 10px; }
  .cs-book-fig .cs-pic { margin-left: 72px; }
}
@media (max-width: 760px) {
  .cs-hero .cs-sheet { transform: none; }
  .cs-scene { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cs-hole { display: none; }
  .cs-pencil { right: 8%; bottom: -16px; }
  .cs-cast { padding-left: 34px; }
  .cs-arrows { width: 34px; }
  .cs-row { padding: 12px 14px; }
  .cs-sign { grid-template-columns: minmax(0, 1fr); }
  .cs-sign .cs-stamp { width: 104px; height: 104px; justify-self: end; margin-top: -30px; }
  .cs-bar-r { text-align: left; }
  .cs-soon-grid { grid-template-columns: minmax(0, 1fr); }
  .cs-chairs { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .cs-chairs li:nth-child(2) { margin-top: 0; }
  .cs-chairs svg { max-width: 260px; }
  .cs-close-pic img { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .cs-install-row { flex-direction: column; }
  .cs-book-fig .cs-pic { margin-left: 32px; }
  .cs-script { padding: 18px 12px 16px 34px; bottom: 40px; }
  .cs-script i { left: 10px; width: 12px; height: 12px; }
}
@media (max-width: 520px) {
  .cs-tabs { left: 8px; right: 8px; }
  .cs-tab { flex: 1; min-width: 0; padding: 0 10px; }
  .cs-slip .cs-stamp { width: 84px; height: 84px; }
  .cs-notes details p { padding-left: 18px; }
}

/* Motion. Live adds what script can do; moving adds what reduced motion drops. */
.cs-live .cs-ln .is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: cs-blink .6s steps(1) infinite; }
.cs-live .cs-sheet .cs-sig path { stroke-dasharray: 640; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s ease; }
.cs-live .cs-sheet.is-pending .cs-sig path { stroke-dashoffset: 640; transition: none; }
.cs-live .cs-sheet .cs-stamp { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1) .5s, opacity .2s ease .5s; }
.cs-live .cs-sheet.is-pending .cs-stamp { opacity: 0; transform: rotate(-12deg) scale(1.9); transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .cs-moving .cs-drift img { animation: cs-drift 22s ease-in-out 1 forwards; }
  .cs-moving .cs-tag { transform-box: fill-box; transform-origin: 50% 0; animation: cs-swing 4s ease-in-out infinite alternate; }
  .cs-moving .cs-sheet.is-shuffle { animation: cs-shuffle .55s var(--cs-out); }
}
@keyframes cs-blink { 50% { opacity: 0; } }
@keyframes cs-drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-2%, -1%); } }
@keyframes cs-swing { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes cs-shuffle { 0% { transform: translateY(0); } 35% { transform: translateY(-14px) rotate(-1deg); } 100% { transform: none; } }
}

/* Unlayered, so these beat the tg-rise utility: a staggered entrance, and the
   drawn objects that rest tilted keep their tilt once they have risen. */
.cs-page .tg-rise { transition-delay: var(--d, 0ms); }
@media screen and (prefers-reduced-motion: no-preference) {
  [data-reveal-ready] .cs-page .cs-slip.tg-rise:not(.is-in) { transform: translateY(30px) rotate(5deg); }
  [data-reveal-ready] .cs-page .cs-slip.tg-rise.is-in { transform: rotate(1.2deg); }
  [data-reveal-ready] .cs-page .cs-slip.is-in .cs-sig path { stroke-dasharray: 640; stroke-dashoffset: 640; animation: cs-sign 1.2s ease .5s forwards; }
  [data-reveal-ready] .cs-page .cs-slip .cs-stamp { opacity: 0; transform: rotate(-12deg) scale(1.9); }
  [data-reveal-ready] .cs-page .cs-slip.is-in .cs-stamp { opacity: 1; transform: rotate(-12deg); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1) 1.5s, opacity .2s ease 1.5s; }
  [data-reveal-ready] .cs-page .cs-chairs li.tg-rise:not(.is-in) svg { transform: translateY(40px) rotate(-4deg); transform-origin: 50% 100%; }
  [data-reveal-ready] .cs-page .cs-chairs li.tg-rise svg { transition: transform .9s var(--cs-out); transition-delay: var(--d, 0ms); }
}
@keyframes cs-sign { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cs-page *, .cs-page *::before, .cs-page *::after { animation: none !important; transition: none !important; }
}
