/* Patience (signature page, 2 Dec 2026): a dark stage with a great disc of gold growth rings, one for every year since
   1980. Without JavaScript: a still disc and the lines, read as one short poem. With widgets/patience.js (.is-on): the
   stage is pinned while the rings are laid down, the lines take turns over it, then the navy close. Prefix cmb-ti-. */
html body .cmb .cmb-ti { position: relative; background: #000A28; color: var(--b-ivory); }
html body .cmb .cmb-ti-stage {
  position: relative; overflow: hidden; isolation: isolate; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; gap: clamp(28px, 5vw, 56px);
  padding: clamp(44px, 8vw, 96px) var(--b-pad) clamp(52px, 7vw, 88px);
  background: linear-gradient(rgba(0, 10, 40, 0) 72%, #000A28), radial-gradient(circle at var(--cmb-ti-gx, 50%) var(--cmb-ti-gy, 40%), #0A1840 0, #061335 20%, #020D2B 42%, #000820 68%, #00040F 100%);
}
/* a fine grain on the dark, under the drawing */
html body .cmb .cmb-ti-stage::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .96 0 0 0 0 .88 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html body .cmb .cmb-ti-still { position: relative; z-index: 1; display: block; width: min(84vw, 58vh, 640px); height: auto; aspect-ratio: 1; overflow: visible; }
html body .cmb .cmb-ti-cv, html body .cmb .cmb-ti-year, html body .cmb .cmb-ti-dial, html body .cmb .cmb-ti-hint,
html body .cmb .cmb-ti-dots, html body .cmb .cmb-ti-cue { display: none; }

/* the lines */
html body .cmb .cmb-ti-lines { position: relative; z-index: 2; display: grid; gap: clamp(26px, 4vw, 40px); width: 100%; max-width: 560px; }
html body .cmb .cmb-ti .cmb-k { margin-bottom: 20px; color: var(--b-gold-2); letter-spacing: .32em; }
html body .cmb .cmb-ti-ch :is(h1, h2) { font-family: "Bodoni Moda", Georgia, serif; font-weight: 400; color: var(--b-ivory); letter-spacing: -.005em; text-wrap: balance; }
html body .cmb .cmb-ti-ch h1 { font-size: clamp(40px, 4.7vw, 72px); line-height: 1.02; }
html body .cmb .cmb-ti-ch h2 { font-size: clamp(32px, 3.9vw, 58px); line-height: 1.06; }
html body .cmb .cmb-ti-ch em { font-style: italic; color: #F3E9D2; }
html body .cmb .cmb-ti-hint { margin-top: 26px; align-items: center; gap: 14px; font: 500 11px/1.4 "Jost", sans-serif; letter-spacing: .28em; text-transform: uppercase; color: rgba(201, 169, 110, .9); }
html body .cmb .cmb-ti-hint::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(201, 169, 110, .6); background: radial-gradient(circle, #E9D3A0 0 2px, transparent 2.5px); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  html body .cmb .cmb-ti-stage { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; justify-items: start; }
  html body .cmb .cmb-ti-still { grid-column: 2; grid-row: 1; justify-self: center; width: min(46vw, 80vh, 720px); }
  html body .cmb .cmb-ti-lines { grid-column: 1; grid-row: 1; }
}

/* ---------- live: the pinned stage ---------- */
html body .cmb .cmb-ti.is-on { height: 540vh; height: 540svh; }
html body .cmb .cmb-ti.is-on .cmb-ti-stage {
  position: sticky; top: 0; display: block; height: 100vh; height: 100svh; min-height: 0; padding: 0;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
html body .cmb .cmb-ti.is-on .cmb-ti-still { display: none; }
html body .cmb .cmb-ti.is-on .cmb-ti-cv { display: block; position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
html body .cmb .cmb-ti.is-on .cmb-ti-year { display: block; position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; will-change: transform; }
html body .cmb .cmb-ti-year span {
  position: relative; display: block; transform: translate(-50%, -100%); padding: 0 0 16px .36em;
  font: 500 12px/1 "Jost", sans-serif; letter-spacing: .36em; color: #E2C990; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums;
}
html body .cmb .cmb-ti-year span::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 1px; height: 9px; background: linear-gradient(rgba(226, 201, 144, .8), rgba(226, 201, 144, 0)); }
html body .cmb .cmb-ti.is-on .cmb-ti-dial {
  display: block; position: absolute; z-index: 3; border-radius: 50%; cursor: grab; touch-action: pan-y; outline: none;
  -webkit-tap-highlight-color: transparent; transition: box-shadow .4s var(--b-ease);
}
html body .cmb .cmb-ti-dial.is-turning { cursor: grabbing; }
html body .cmb .cmb-ti-dial:focus-visible { box-shadow: 0 0 0 1px rgba(201, 169, 110, .55), 0 0 0 7px rgba(201, 169, 110, .1); }
html body .cmb .cmb-ti.is-on .cmb-ti-lines {
  position: absolute; z-index: 2; left: var(--b-pad); top: var(--cmb-ti-top, 60px); bottom: 0; width: var(--cmb-ti-tw, 34vw); max-width: 520px;
  display: grid; grid-template-rows: auto auto; align-content: center; gap: 0; pointer-events: none;
}
html body .cmb .cmb-ti.is-on .cmb-ti-ch { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity .7s var(--b-ease), transform 1s var(--b-ease); }
html body .cmb .cmb-ti.is-on .cmb-ti-ch.is-on { opacity: 1; transform: none; transition-delay: .18s; }
html body .cmb .cmb-ti.is-on .cmb-ti-hint { display: flex; }
html body .cmb .cmb-ti.is-on .cmb-ti-dots { display: flex; grid-area: 2 / 1; gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; }
html body .cmb .cmb-ti-dots li { width: 18px; height: 1px; background: rgba(247, 243, 234, .22); transition: width .6s var(--b-ease), background-color .6s; }
html body .cmb .cmb-ti-dots li.is-on { width: 44px; background: var(--b-gold-2); }
html body .cmb .cmb-ti.is-on .cmb-ti-cue {
  display: flex; flex-direction: column; align-items: center; gap: 12px; position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%);
  font: 500 10px/1 "Jost", sans-serif; letter-spacing: .34em; padding-left: .34em; text-transform: uppercase; color: rgba(247, 243, 234, .62);
  transition: opacity .6s var(--b-ease); pointer-events: none;
}
html body .cmb .cmb-ti-cue::after { content: ""; width: 1px; height: 42px; background: linear-gradient(rgba(201, 169, 110, 0), rgba(201, 169, 110, .9)); background-size: 1px 200%; animation: cmb-ti-fall 2.6s var(--b-ease) infinite; }
html body .cmb .cmb-ti-cue.is-off { opacity: 0; }
@keyframes cmb-ti-fall { 0% { background-position: 0 100%; opacity: 0; } 30% { opacity: 1; } 100% { background-position: 0 -100%; opacity: 0; } }

/* tall screens (phones, portrait tablets): the disc above, the lines below it */
@media (max-width: 699px), (max-aspect-ratio: 1/1) {
  html body .cmb .cmb-ti.is-on .cmb-ti-lines { top: auto; right: var(--b-pad); bottom: 34px; width: auto; max-width: 560px; align-content: end; }
  html body .cmb .cmb-ti.is-on .cmb-ti-ch h1 { font-size: clamp(34px, 9vw, 56px); }
  html body .cmb .cmb-ti.is-on .cmb-ti-ch h2 { font-size: clamp(29px, 7.7vw, 48px); }
  html body .cmb .cmb-ti.is-on .cmb-k { margin-bottom: 14px; }
  html body .cmb .cmb-ti.is-on .cmb-ti-hint { margin-top: 16px; }
  html body .cmb .cmb-ti.is-on .cmb-ti-dots { margin-top: 24px; }
  html body .cmb .cmb-ti.is-on .cmb-ti-cue { left: auto; right: var(--b-pad); bottom: 34px; transform: none; flex-direction: row; gap: 12px; }
  html body .cmb .cmb-ti-cue::after { width: 34px; height: 1px; background: linear-gradient(90deg, rgba(201, 169, 110, 0), rgba(201, 169, 110, .9)); background-size: 200% 1px; animation-name: cmb-ti-run; }
}
@keyframes cmb-ti-run { 0% { background-position: 100% 0; opacity: 0; } 30% { opacity: 1; } 100% { background-position: -100% 0; opacity: 0; } }

/* ---------- the close ---------- */
html body .cmb .cmb-ti-close { background: linear-gradient(#000A28, var(--b-navy) 260px); padding-top: clamp(72px, 10vw, 136px); }
html body .cmb .cmb-ti-close .cmb-close h2 { font-size: clamp(36px, 4.6vw, 60px); }
html body .cmb .cmb-ti-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(52px, 7vw, 88px); border-top: 1px solid rgba(201, 169, 110, .3); }
html body .cmb .cmb-ti-more a { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 44px; padding: 28px 28px 6px 0; text-decoration: none; color: var(--b-ivory); }
html body .cmb .cmb-ti-more a + a { padding-left: 28px; border-left: 1px solid rgba(201, 169, 110, .16); }
html body .cmb .cmb-ti-more .cmb-k { margin: 0; font-size: 11px; letter-spacing: .26em; }
html body .cmb .cmb-ti-more b { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; font: 400 clamp(21px, 1.9vw, 26px)/1.2 "Bodoni Moda", Georgia, serif; color: var(--b-ivory); transition: color .3s var(--b-ease); }
html body .cmb .cmb-ti-more b::after { content: "→"; flex: none; font: 400 16px/1 "Jost", sans-serif; color: var(--b-gold-2); transition: transform .3s var(--b-ease); }
html body .cmb .cmb-ti-more a:hover b { color: #F3E9D2; }
html body .cmb .cmb-ti-more a:hover b::after { transform: translateX(5px); }
@media (max-width: 799px) {
  html body .cmb .cmb-ti-more { grid-template-columns: minmax(0, 1fr); }
  html body .cmb .cmb-ti-more a, html body .cmb .cmb-ti-more a + a { padding: 22px 0; border-left: 0; }
  html body .cmb .cmb-ti-more a + a { border-top: 1px solid rgba(201, 169, 110, .16); }
}
@media (prefers-reduced-motion: reduce) {
  html body .cmb .cmb-ti-cue::after { animation: none; background-position: 0 0; }
}
