/* static-talks.css: /talks/, "The answer sheet" (BRIEF §2.4). Linked after css/static.css on this page only.
   Markup: tools/seo/pages/talks.mjs. Her media is crop/resize/mask only: nothing here filters, blends, tints or
   lays text over it. Motion: the sheet's bubbles pencil-fill when js/static.js marks their row .is-in; without JS,
   under reduced motion and after the failsafe (html.rv-off) every bubble is simply filled. */

/* ------------------------------------------------------------ 01 hero: the data block sits under the loop */
.tk-data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.tk-data__i { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 14px 12px 0 0; }
.tk-data__i + .tk-data__i { padding-left: 14px; border-left: 1px solid var(--line); }
.tk-data dd { margin: 0; font-family: var(--f-display); font-size: clamp(2.25rem, 3.6vw, 3.75rem); font-weight: 800; letter-spacing: -.035em; line-height: .9; font-variant-numeric: tabular-nums; }
.tk-data dt { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; color: var(--mute); }
@media (min-width: 761px) {
  .hx--talks { --tk-dh: clamp(118px, 13vh, 150px); grid-template-areas: "kick media" "deck media" "gap media" "title media" "title chips"; }
  .hx--talks .slot { --slot-w: min(clamp(280px, 31vw, 520px), var(--slot-capw)); --slot-h: min(calc(min(100svh, 980px) - var(--hx-top) - var(--hx-bot) - 40px - var(--tk-dh)), var(--slot-caph)); }
  .hx--talks .hx__chips { width: 0; min-width: 100%; margin-top: var(--s-4); align-self: end; }
}

/* ------------------------------------------------------------ 02 the answer sheet */
.tk-sh__head { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) {
  .tk-sh__frame { min-height: calc(100svh - var(--sec-y)); display: flex; flex-direction: column; justify-content: space-between; }
}
.sh__wrap { position: relative; }
.sh__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sh { --bw: clamp(28px, 3.6vw, 60px); --bgap: clamp(5px, .55vw, 8px); width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.sh col.sh__cy { width: clamp(6rem, 10vw, 10.5rem); }
.sh col.sh__cn { width: clamp(4.5rem, 7vw, 7.5rem); }
.sh__cap { caption-side: bottom; text-align: left; padding-top: var(--s-5); color: var(--mute); font-size: .875rem; line-height: 1.4; }
.sh__key { display: inline-flex; align-items: center; gap: 10px; margin: 0 2rem 8px 0; }
/* the column heads: month initials only where the bubbles are too small to carry them (phones); "Talks" always */
.sh thead th { padding: 0 0 10px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); text-align: center; }
.sh thead th > span[aria-hidden] { display: none; }
.sh thead .sh__nh { text-align: right; }
.sh tbody tr { border-top: 1px solid var(--line); }
.sh tbody tr:last-child { border-bottom: 1px solid var(--line); }
.sh tbody th, .sh tbody td { padding: clamp(12px, 1.25vw, 20px) 0; vertical-align: bottom; text-align: center; font-weight: 400; }
.sh tbody th { text-align: left; }
.sh__y { display: inline-flex; align-items: flex-end; min-height: 44px; font-family: var(--f-display); font-size: clamp(1.75rem, 3.1vw, 3.25rem); font-weight: 900; letter-spacing: -.045em; line-height: .8; text-decoration: none; }
.sh__y2 { display: none; }
@media (hover: hover) { .sh__y:hover { text-decoration: underline; text-decoration-thickness: 2px; } }
/* the year's count, set as the years are: display 900, tabular (td's own weight would otherwise win) */
.sh tbody .sh__n { text-align: right; font-family: var(--f-display); font-size: clamp(1.75rem, 3.1vw, 3.25rem); font-weight: 900; letter-spacing: -.045em; line-height: .8; font-variant-numeric: tabular-nums; }
/* every month cell keeps room for a stack of 3, so all six rows are one height and a stack never reads as the year above */
.sh__c { display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-start; gap: var(--bgap); min-height: calc(3 * var(--bw) / 1.62 + 2 * var(--bgap)); }

/* a bubble: 1.62 : 1, the film's answer-bubble ratio; the month's initial inside, as on the SAT sheet */
.bb { position: relative; flex: none; display: grid; place-items: center; width: var(--bw); height: calc(var(--bw) / 1.62); border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--fg); color: var(--fg); text-decoration: none; }
.bb b { position: relative; z-index: 1; font-size: max(10px, calc(var(--bw) * .27)); font-weight: 700; line-height: 1; color: var(--mute); }
.bb--on b { color: var(--ground); }
.bb__o { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; transition: background-color .25s linear; }
.bb__pen { position: absolute; left: -6%; top: -8%; width: 112%; max-width: none; height: 116%; fill: none; stroke: var(--fg); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.bb--key { --bw: 30px; display: inline-grid; vertical-align: middle; }
.bb--keyon { background: var(--fg); }
/* the count bubble: the 3rd of a stack, "+3" = three more that month (its tag lists them) */
.bb--more b { font-size: max(11px, calc(var(--bw) * .3)); letter-spacing: -.02em; }
.bb--keyn b { font-size: 10px; color: var(--ground); }
/* the pencil fill, in date order along the row, once the row is in view (js/static.js adds .is-in) */
html.js .sh tr:not(.is-in) .bb__pen { stroke-dashoffset: 1; }
html.js .sh tr:not(.is-in) .bb--on b { color: var(--mute); }
html.js .sh tr.is-in .bb__pen { transition: stroke-dashoffset .75s cubic-bezier(.45, 0, .2, 1), stroke .25s linear; transition-delay: calc(150ms + var(--i, 0) * 85ms), 0s; }
html.js .sh tr.is-in .bb--on b { transition: color .2s linear; transition-delay: calc(500ms + var(--i, 0) * 85ms); }
html.rv-off .sh .bb__pen { stroke-dashoffset: 0 !important; }
html.rv-off .sh .bb--on b { color: var(--ground) !important; }

/* the talk's title as a tag (hover / keyboard focus); it is the bubble's accessible name the rest of the time */
.bb__t { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bb--on:focus-visible { z-index: 4; }
.bb--on:focus-visible .bb__o { background: var(--accent); }
.bb--on:focus-visible .bb__pen { stroke: var(--accent); }
.bb--on:focus-visible b { color: var(--on-accent) !important; }
.bb--on:focus-visible .bb__t,
.bb--on:hover .bb__t { left: 50%; bottom: calc(100% + 10px); z-index: 5; width: max-content; max-width: min(22rem, 70vw); height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; transform: translateX(-50%); padding: 9px 14px; border-radius: 14px; background: var(--ink); color: var(--on-ink); font-size: .8125rem; font-weight: 600; line-height: 1.35; letter-spacing: 0; text-align: left; pointer-events: none; box-shadow: 0 10px 30px -12px rgba(20, 21, 26, .5); }
.sh td:nth-child(-n+4) .bb__t { left: 0 !important; transform: none !important; }
.sh td:nth-child(n+11) .bb__t { left: auto !important; right: 0; transform: none !important; }
.bb__tl { display: block; }
.bb__tl + .bb__tl { margin-top: 6px; }
@media (hover: hover) and (pointer: fine) {
  .bb--on:hover { z-index: 4; }
  .bb--on:hover .bb__o { background: var(--accent); }
  .bb--on:hover .bb__pen { stroke: var(--accent); }
  .bb--on:hover b { color: var(--on-accent) !important; }
}
@media (hover: none), (pointer: coarse) { .bb--on:hover .bb__t { width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); } }

/* ------------------------------------------------------------ 03 on stage: the s07 trio, as ink cards on the sheet's paper */
.tk-stage { margin-top: var(--sec-y); }
.tk-stage__t { font-family: var(--f-display); font-size: var(--t-d2); font-weight: 900; letter-spacing: -.04em; line-height: .9; }
.tk-cards { display: grid; grid-template-columns: 26fr 42fr 32fr; gap: clamp(16px, 1.6vw, 24px); align-items: start; }
.tk-card { display: grid; gap: var(--s-5); align-content: start; padding: clamp(20px, 1.8vw, 28px); border-radius: 28px; }
.tk-card__h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); }
.tk-card__no { font-family: var(--f-display); font-size: clamp(2.5rem, 4.2vw, 4.25rem); font-weight: 900; letter-spacing: -.05em; line-height: .8; }
.tk-card__k { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.tk-card .slot { justify-items: start; --slot-w: min(100%, var(--slot-capw)); }
.tk-card--tedx .slot { --slot-ar: 369 / 470; }
.tk-card--room .slot { --slot-ar: 3 / 2; }
.tk-card--academy .slot { --slot-ar: 4 / 3; }
.tk-card--academy .slot__m > img, .tk-card--academy .slot__m > video { object-position: 50% 28% !important; }   /* a crop: her face, above the burned-in subtitle */
.tk-card__b { display: grid; gap: var(--s-3); }
.tk-card__t { font-family: var(--f-display); font-size: clamp(1.75rem, 2.4vw, 2.5rem); font-weight: 900; letter-spacing: -.035em; line-height: .92; text-transform: uppercase; }
.tk-card__p { color: var(--mute); font-size: 1rem; line-height: 1.45; }
.tk-card__f { font-size: 1.0625rem; line-height: 1.4; }
.tk-card__big { display: flex; align-items: flex-start; gap: var(--s-4); }
.tk-card__bn { flex: none; font-family: var(--f-display); font-size: clamp(4rem, 7vw, 7rem); font-weight: 900; letter-spacing: -.06em; line-height: .78; }
.tk-card__bl { max-width: 17rem; font-size: 1rem; line-height: 1.4; color: var(--mute); padding-top: .2em; }
.tk-card__q { margin-top: var(--s-3); }
.tk-card__q blockquote p { font-size: clamp(1.0625rem, 1.25vw, 1.25rem); line-height: 1.4; font-weight: 500; }
.tk-card__q figcaption { margin-top: 10px; font-size: .8125rem; line-height: 1.45; color: var(--mute); }
.tk-card__q a { text-decoration: underline; }
/* the cards arrive tilted (<= 4 deg, the card only) and park flat; scroll-driven, so nothing runs without support */
.tk-card--tedx { --tilt: -4deg; }
.tk-card--room { --tilt: 2.5deg; }
.tk-card--academy { --tilt: -3deg; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 761px) {
    html.js .tk-card { animation: tk-park linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
  }
}
@keyframes tk-park { from { transform: translateY(72px) rotate(var(--tilt)); } to { transform: none; } }
html.rv-off .tk-card { animation: none !important; }

/* ------------------------------------------------------------ 04-09 the years: giant numeral, its photo, display rows */
.tk-yr { padding-top: clamp(56px, 7vw, 120px); }
.tk-yr__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "kick media" "year media"; column-gap: var(--s-6); row-gap: var(--s-4); margin-bottom: clamp(28px, 3.5vw, 56px); }
.tk-yr__head > .chk { grid-area: kick; align-self: end; }
.tk-yr__y { grid-area: year; align-self: end; margin-left: -.06em; }
.tk-yr__y .ln { padding-bottom: .04em; margin-bottom: -.04em; }
.tk-yr__m { grid-area: media; align-self: end; justify-items: end; --slot-w: min(clamp(140px, 12.5vw, 210px), var(--slot-capw)); --slot-ar: 5 / 8; }
/* every other band mirrors its head: the numeral on the right, the photo (if any) on the left */
.tk-yr--r .tk-yr__head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "media kick" "media year"; }
.tk-yr--r .tk-yr__head > .chk { justify-self: end; }
.tk-yr--r .tk-yr__y { justify-self: end; margin-left: 0; margin-right: -.02em; text-align: right; }
.tk-yr--r .tk-yr__m { justify-items: start; }
.tk-rows { border-bottom: 1px solid var(--line); }
.tk-r { position: relative; display: grid; grid-template-columns: 14px 8.25rem minmax(0, 1fr) minmax(9rem, 13rem); column-gap: clamp(16px, 2vw, 32px); align-items: baseline; margin: 0 calc(-1 * var(--gut)); padding: clamp(18px, 1.8vw, 28px) var(--gut); border-top: 1px solid var(--line); scroll-margin-top: var(--nav-h); }
.tk-r .bub { align-self: start; margin-top: .62em; }
.tk-r__d { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tk-r__t { font-family: var(--f-display); font-size: clamp(1.25rem, 1.9vw, 2.125rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; overflow-wrap: break-word; }
.tk-r__a { text-decoration: none; }
.tk-r__a::after { content: ""; position: absolute; inset: 0; }
.tk-r__go { display: inline-block; margin-left: .22em; font-weight: 600; transition: transform .5s var(--ease-osmo); }
.tk-r__m { margin-top: .55em; font-size: .9375rem; line-height: 1.4; color: var(--mute); }
.tk-r__k { justify-self: end; text-align: right; }
.tk-r__k span { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .6875rem; font-weight: 700; letter-spacing: .09em; line-height: 1.3; text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) { .tk-r:hover .tk-r__go { transform: translate(3px, -3px); } .tk-r:hover .tk-r__k span { border-color: currentColor; } }
/* the row a sheet bubble points to: its own bubble filled, the band raised */
.tk-r:target { background: var(--raise); }
.tk-r:target .bub { background: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------------ phones */
@media (max-width: 760px) {
  .sh col.sh__cy { width: 2.5rem; }
  .sh col.sh__cn, .sh .sh__n, .sh .sh__nh { display: none; width: 0; }
  .sh thead th { padding-bottom: 6px; font-size: .625rem; letter-spacing: 0; }
  .sh thead th > span[aria-hidden] { display: inline; }
  .sh tbody th, .sh tbody td { padding: 8px 0; }
  .sh__y { font-size: 1.125rem; letter-spacing: -.03em; line-height: 1; }
  .sh__y4 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sh__y2 { display: inline; }
  .sh { --bw: min(22px, 5.6vw); --bgap: 3px; }
  .bb { box-shadow: inset 0 0 0 1.25px var(--fg); }
  .bb b { display: none; }
  .bb--more b, .bb--keyn b { display: block; font-size: 9px; letter-spacing: -.04em; }
  .bb--on { pointer-events: none; }            /* too small to tap: the rows below are the targets */
  .bb--key { --bw: 24px; }
  .sh__key { display: flex; margin: 0 0 8px; }
  .tk-cards { grid-template-columns: minmax(0, 1fr); }
  .tk-card--room .slot { --slot-ar: 4 / 3; }
  .tk-yr__head { column-gap: var(--s-4); }
  .tk-yr__y { font-size: clamp(5rem, 22vw, 6.5rem); }
  .tk-yr__m { --slot-w: min(31vw, var(--slot-capw)); }
  .tk-r { grid-template-columns: 13px minmax(0, 1fr) auto; grid-template-areas: "bub date kind" ". body body"; column-gap: 12px; row-gap: 10px; align-items: center; padding-top: 18px; padding-bottom: 20px; }
  .tk-r .bub { grid-area: bub; margin: 0; align-self: center; }
  .tk-r__d { grid-area: date; }
  .tk-r__k { grid-area: kind; }
  .tk-r__b { grid-area: body; }
  .tk-r__t { font-size: 1.25rem; line-height: 1.12; }
}

/* ------------------------------------------------------------ reduced motion: everything in place, nothing moves */
@media (prefers-reduced-motion: reduce) {
  html.js .sh tr .bb__pen { stroke-dashoffset: 0 !important; transition: none !important; }
  html.js .sh tr .bb--on b { transition: none !important; }
  html.js .sh tr:not(.is-in) .bb--on b { color: var(--ground); }
  .bb__o, .tk-r__go { transition: none !important; }
  .tk-card { animation: none !important; }
}
