/* ---------- Story and density (Dec 1, her "Do all of it") ----------
   The story, in her own lines: one line under each section title (debate taught her to hold a position, she used it on
   real laws and in government, now she builds Pantheon), her Rancho words as the About thesis, and an invitation in the
   footer. Density: slimmer photo backdrops, Research and Music open on a plain title and line (no photo), and a shorter
   doorway to My universe. Site tokens only, no lines. Reduced motion is unaffected. */

/* backdrops are slimmer: the photo is a mood, not a screen */
main > .sec > .band { min-height: clamp(168px, 13.6vw, 206px); }
@media (max-width: 640px) { main > .sec > .band { min-height: 128px; } }
.band .band-line { max-width: 62ch; color: #EDE6DA; text-wrap: balance; }

/* Research has its photo backdrop again (Dec 1, late, her note: "research backsplash is bad"): the Senate hearing
   room she picked, like every other section. */

/* the doorway to My universe takes less of the page */
#after-hours.uv-night .world-door { padding-top: clamp(48px, 5.4vw, 88px); padding-bottom: clamp(52px, 5.4vw, 88px); }

/* section text is a little larger and sturdier, and the key fact in each line is bold (her note: "more highlighting
   and bolding in the description sections", "the text of the sections should be a little larger slightly more robust") */
main .dash li { font-size: 17.5px; line-height: 1.5; font-weight: 500; }
main .dash li b, .sys-steps p b { font-weight: 700; color: var(--ink); }
main .meta { font-size: 17px; font-weight: 500; }
main .tile h3, main .role h3, main .bill2-title { font-weight: 700; }
@media (max-width: 640px) { main .dash li { font-size: 16px; } main .meta { font-size: 15.5px; } }

/* Music: the photos sit under the words, beside the Chopin video, so they read wide instead of tall (her note: "the
   pictures under music right now are too too vertical"). Videos on the left, words then photos on the right. */
@media (min-width: 961px) {
  #music .music { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; }
  #music .music > .vp:not(.vp-2) { grid-column: 1; grid-row: 1; }
  #music .music > .vp-2 { grid-column: 1; grid-row: 2; }
  #music .music > .tile-text { grid-column: 2; grid-row: 1; align-self: start; }
  #music .music > .flow { grid-column: 2; grid-row: 2; align-self: stretch; aspect-ratio: auto; height: auto; min-height: 0; }
}

/* Gun policy: the range photo is gone (her note), the line stays as the section's story, in the serif */
.guns-lead.guns-story { display: block; margin: 0 0 clamp(26px, 2.8vw, 44px); }
.guns-story .guns-intro { max-width: 34ch; margin: 0; font: 400 clamp(26px, 2.4vw, 36px)/1.25 var(--serif); letter-spacing: -0.005em; color: var(--ink); text-wrap: balance; }
@media (max-width: 640px) { .guns-story .guns-intro { font-size: 24px; } }

/* Rancho's video and photos: no dot row on the thumbnail (her note: "i don't like the little subtitle"). The set still
   crossfades on its own, and every photo opens in the viewer. */
#rancho .mix-dots, #rancho .sn-dots { display: none; }

/* ---------- One rule for emphasis (Dec 1, night, her note: "the highlights and bolding conventions aren't amazing") ----------
   Bold = the role, in every card's role line. Highlight = the one result that matters most on each card, in its bullets,
   and only one. Nothing else in the bullets is bold. (The big numbers in Pantheon and Debate are display numbers.) */
main .meta b { font-weight: 700; color: var(--ink); }
main .meta mark { background: none; padding: 0; font-weight: 700; color: var(--ink); }

/* the backdrops open large when tapped (her note, Dec 1): a quiet button over the photo, the words let taps through */
.band .band-open { position: absolute; inset: 0; z-index: 0; padding: 0; border: 0; background: none; cursor: zoom-in; }
.band .band-open:focus-visible { outline: 2px solid #FCFAF6; outline-offset: -6px; }
.band > .band-text { pointer-events: none; }
.band > .band-text a, .band > .band-text button { pointer-events: auto; }

/* ---------- Debate results, all at once (Dec 1, night, her note: "the results are displayed weirdly in debate") ----------
   No carousel, dots or arrows: all ten results in a tidy grid (five across on a computer, two on a phone). Each card
   leads with the tournament (what a reader scans for), then the result as a small gold label, then its one line. */
#debate .rc { display: block; }
#debate .rc-ctl, #debate .rc-dots, #debate .rc-btn { display: none !important; }
#debate .rc-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1vw, 14px); overflow: visible; scroll-snap-type: none; -webkit-mask-image: none; mask-image: none; padding: 0; }
#debate .rc-card { flex: none; width: auto; min-width: 0; gap: 8px; padding: 16px 16px 18px; }
#debate .rc-logo { order: 0; height: 26px; }
#debate .rc-logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
#debate .rc-name { order: 1; margin: 2px 0 0; font-size: 16.5px; line-height: 1.25; font-weight: 700; color: var(--ink); }
#debate .rc-name span { font-weight: 500; color: var(--muted); }
#debate .rc-result { order: 2; align-self: flex-start; padding: 3px 10px 4px; border-radius: 999px; background: var(--marker, #F3DC9C); color: var(--ink); font: 700 13.5px/1.2 var(--sans); letter-spacing: 0.01em; }
#debate .rc-why { order: 3; margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 1100px) { #debate .rc-track { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { #debate .rc-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } #debate .rc-card { padding: 14px; } }
#debate .rc-logo img[src*="yale"], #debate .rc-logo img[src*="stanford"] { height: 19px; margin-top: 4px; }   /* wordmarks sit at the icons' weight */

/* ---------- One emphasis system (Dec 1, late, her note: "the highlights and the bolded stuff does not have unified
   idea or design plan") ----------
   Everywhere, the same three steps:
   1. Role line: the role is bold.
   2. Bullets: the hard facts are bold (the numbers, or a name when a line has no number). Lines with neither have none.
   3. One highlight per card, on the single result that matters most. It's the same weight as bold, with the marker. */
main .dash li b, main .dash li mark { font-weight: 700; color: var(--ink); }

/* the team card: its role on its own line, then one sentence (the role used to run into a stray period) */
.teams .tm-role, .teams .tm-say { display: block; }
.teams .tm-role b { display: inline; margin-top: 4px; font-size: 16.5px; font-weight: 700; }
.teams .tm-say { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.teams .tm-say b, .teams .tm-say mark { display: inline; font-size: inherit; font-weight: 700; color: var(--ink); }

/* Research: Device of Tomorrow Capital spans the row under the two studies, so the section has no empty half
   (her note, Dec 1, late: "some of the shit isn't centered ... do a cleanup pass") */
@media (min-width: 981px) {
  #research .research-list > #dot { grid-column: 1 / -1; }
  #research .research-list > #dot > .flow, #research .research-list > #dot > .vp, #research .research-list > #dot > .row-doc { max-width: 320px; }
}

/* the moon cursor everywhere (Dec 1, late, her note: "where did moon cursor go"): text no longer swaps it for the
   I-beam, only places you type do */
@media (hover: hover) and (pointer: fine) {
  p, li, h1, h2, h3, h4, figcaption, td, th, dd, dt, blockquote, .hn, .love:not([data-img]) { cursor: inherit; }
}

/* ---------- Debate results as one ribbon (Dec 1, late, her notes) ----------
   One slow row that drifts left and loops, each result as a soft chip: the tournament's mark, the result in the
   highlighter, then the tournament and year. Pointing at it holds it. Reduced motion: it sits still and scrolls by hand. */
#debate .rr { margin-top: clamp(30px, 3.2vw, 48px); }
#debate .rr-view { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
#debate .rr-track { display: flex; flex: none; gap: 12px; margin: 0; padding: 4px 12px 4px 0; list-style: none; animation: rr-drift 60s linear infinite; }
#debate .rr-view:hover .rr-track, #debate .rr-view:focus-within .rr-track { animation-play-state: paused; }
#debate .rr-track li { display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 10px 16px 10px 12px; background: var(--sheet); white-space: nowrap; font-size: 16px; color: var(--ink-2); }
#debate .rr-track img { height: 26px; width: auto; max-width: 64px; object-fit: contain; }
#debate .rr-track img[src*="yale"], #debate .rr-track img[src*="stanford"] { height: 18px; }
#debate .rr-track mark { font-weight: 700; color: var(--ink); }
@keyframes rr-drift { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  #debate .rr-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  #debate .rr-track { animation: none; }
  #debate .rr-track[aria-hidden="true"] { display: none; }
}

/* ---------- Research, cleaner (Dec 1, late, her note: "the research section isn't good with the logos and the titles") ----------
   Three matching cards in one row: the picture on top at one shape, the organization as a small label, a short
   title, the role, the bullets. No logos squeezed into the titles. Phones stack them. */
@media (min-width: 981px) {
  #research .research-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #research .research-list > #dot { grid-column: auto; }
}
#research .research-list > .tile.slim { display: flex; flex-direction: column; }
#research .research-list > .tile.slim > .flow, #research .research-list > .tile.slim > .row-doc { width: 100%; max-width: none; height: auto; aspect-ratio: 4 / 3; flex: none; }
#research .research-list > .tile.slim > .row-doc { overflow: hidden; }
#research .research-list > .tile.slim > .row-doc img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
#research .research-list > .tile.slim > .tile-text { padding: clamp(18px, 1.8vw, 24px); }
#research .rs-org { margin: 0 0 6px; font: 650 12.5px/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
#research .tile-text h3 { margin-top: 0; }
/* results ribbon, tidier (her note: "all results is kinda messy right now it has gaps"): every chip the same width and
   shape, the mark and the result on one line, the tournament and year under it, even spacing all the way round */
#debate .rr { margin-top: clamp(26px, 2.8vw, 40px); margin-bottom: 0; }
#debate .rr .rc-title { margin-bottom: 14px; }
#debate .rr-track { gap: 10px; padding-right: 10px; }
#debate .rr-track li { display: grid; grid-template-columns: 34px auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; row-gap: 6px; width: 236px; padding: 14px 16px; white-space: normal; }
#debate .rr-track img { grid-row: 1; width: 34px; height: 26px; max-width: none; object-fit: contain; object-position: left center; }
#debate .rr-track img[src*="yale"], #debate .rr-track img[src*="stanford"] { height: 26px; }
#debate .rr-track mark { grid-row: 1; justify-self: start; font-size: 15px; }
#debate .rr-track span { grid-column: 1 / -1; font-size: 14.5px; line-height: 1.35; color: var(--muted); }

/* ---------- Easier to read (Dec 1, late, her note: "words too dense and hard to read also the sizes of everything is
   weird") ----------
   One scale for text in cards: bullets 16.5px regular with roomy lines and space between them, the role line 16px,
   card titles at the card size. The bold facts and the one highlight stay (the emphasis rule above). The serif
   statements inside sections (Gun policy's line, Pantheon's paragraph) share one size. */
main .dash li { font-size: 16.5px; line-height: 1.6; font-weight: 400; color: var(--ink-2); }
main .dash li + li { margin-top: 6px; }
main .meta { font-size: 16px; font-weight: 400; color: var(--muted); line-height: 1.45; }
main .meta b { color: var(--ink); }
main .tile h3, main .role h3 { font-size: var(--t-card); line-height: 1.25; }
#gun-policy .guns-intro, #pantheon .pan-lead { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.3; }
@media (max-width: 640px) { main .dash li { font-size: 15.5px; } main .meta { font-size: 15px; } }
/* the ribbon never widens its grid (it did on phones: the grid track grew to the ribbon's full length) */
#debate .deb-wins > .rr { min-width: 0; max-width: 100%; grid-column: 1 / -1; }
#debate .rr-view { width: 100%; max-width: 100%; }
/* the results ribbon, working (Dec 1, night, her note: "ribbon for debate results isn't working"). It was a CSS loop you
   couldn't touch, and each highlight drew itself in only when its chip drifted fully into view, so chips showed half-drawn
   or blank highlights. Now script.js drifts it (the same code as the other ribbons): it pauses while you point at it,
   and you can swipe, drag or scroll it sideways. Every highlight in it is drawn from the start. */
#debate .rr-view.rr-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
#debate .rr-view.rr-scroll::-webkit-scrollbar { display: none; }
#debate .rr-view.rr-scroll:active { cursor: grabbing; }
#debate .rr-view.rr-scroll .rr-track { animation: none; }
#debate .rr-track li { -webkit-user-select: none; user-select: none; }
#debate .rr-track img { -webkit-user-drag: none; pointer-events: none; }
html.ink #debate .rr mark { background-size: 100% 100%; transition: none; }
/* Research opens on the page, no photo backdrop (Dec 1, night, her note: "research backsplash looks so freaking weird") */
#research .rs-head { margin: 0 0 var(--head-gap, clamp(26px, 2.8vw, 40px)); }
#research .rs-head .sec-title { margin: 0; }
#research .rs-line { margin: 12px 0 0; max-width: 58ch; font-size: 17.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
/* the DOT photos fill their card like the other two (Dec 1, night, her note: "the dot photos aren't good size"). An older
   rule from when DOT spanned the row capped them at 320px. */
#research .research-list > #dot > .flow, #research .research-list > #dot > .vp, #research .research-list > #dot > .row-doc { max-width: none; }
/* Research backdrop, back (Dec 1, night, her note: "where is the research backsplash"): cropped to the witness table, its
   microphones and the blue chairs, so the strip reads as a hearing room instead of a band of wood paneling */
#research .band-bg { object-position: 50% 68%; }
/* Debate, Dec 1, night (her notes: "the results banner is kinda on a weird spot", "debate accessibility is a weirdly sized
   title"): the ribbon sits right under the four big numbers, above the plaques, and "Debate accessibility" is a small
   label like Gun policy's "Three bills I lobbied on" instead of a mid-size serif heading */
#debate .deb-wins > .rr { margin: clamp(26px, 2.8vw, 40px) 0 clamp(30px, 3.4vw, 50px); }
#debate .block-title#teaching { margin: clamp(52px, 5.6vw, 84px) 0 clamp(14px, 1.4vw, 20px); font: 650 13px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Debate, Dec 2 (her pick "Plaques first"): the plaques lead, then the big numbers, then every result as a quiet
   list right under them (no drifting strip, no boxes, no lines): logo, the result highlighted, the tournament and year */
#debate .deb-wins > .plaques { margin-bottom: clamp(30px, 3.4vw, 52px); }
#debate .deb-wins > .rr.rr-list { margin: clamp(18px, 2vw, 28px) 0 clamp(30px, 3.4vw, 50px); }
#debate .rr-list .rr-view { overflow: visible; -webkit-mask-image: none; mask-image: none; cursor: auto; }
#debate .rr-list .rr-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 2px 32px; width: 100%; padding: 0; animation: none; }
#debate .rr-list .rr-track li { display: flex; align-items: center; gap: 12px; width: auto; min-width: 0; padding: 9px 0; background: none; box-shadow: none; white-space: normal; }
#debate .rr-list .rr-track img { flex: none; width: 30px; height: 24px; object-fit: contain; object-position: center; }
#debate .rr-list .rr-track mark { flex: none; font-size: 15px; }
#debate .rr-list .rr-track span { grid-column: auto; font-size: 15px; line-height: 1.3; color: var(--muted); }

/* the Speech and Debate team card, Dec 2 (her "Yes, use these bullets"): the same role line and bullets as every other card */
.teams .tm-list { margin: 8px 0 0; }
.teams .tm-list li { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.teams .tm-list b, .teams .tm-list mark { display: inline; margin: 0; font-size: inherit; font-weight: 700; color: var(--ink); }
.teams .tm-list li { display: list-item; margin: 6px 0 0; padding: 0 0 0 15px; background: none; box-shadow: none; border-radius: 0; min-height: 0; }

/* Debate plaques, Dec 2 (her note: "my head looks diff sizes"): the three faces at one size and one height.
   Measured in the 4:5 tiles: Yale's face is the reference (about 95px tall, its middle at 27% from the top). The TOC
   photo was shot from further away (face about 68px, low at 45%), so it zooms 1.4x round her face and lifts.
   Harvard's face is the right size but sat lower (33%), so the crop slides up. */
#debate .plaques .flow { overflow: hidden; }
#debate .plaques img[src*="pro-toc-plaque"] { transform-origin: 52% 45%; transform: translateY(-18%) scale(1.4); }
#debate .plaques img[src*="pro-harvard-plate"] { object-position: 50% 46% !important; }
/* Music backdrop (Dec 1, night, her note: "music needs to have a diff backsplash"): the empty recital stage with the
   Steinway under the lights (her Must use, IMG_4218), cropped to the piano */
#music .band-bg { object-position: 50% 60%; }
/* Dec 2 (her note: "the music backplash sucks right now"): her mid-performance on the control-room screen of the studio
   (her Must use, FullSizeRender (1).jpeg, 5712px, cut to 2400). The stage photos she turned down are the same shoot as the
   Music slideshow, so this one is a new scene. Phones keep the screen with her on it in view. */
#music .band-bg { object-position: 50% 52%; }
@media (max-width: 760px) { #music .band-bg { object-position: 40% 50%; } }
