/* The cold (house signature page, prefix cmb-co-): a dark pane on which frost grows, pinned while five chapters
   change with scroll (the-cold.js adds .cmb-co-live). Without the script: a still pane, the chapters one under another. */
html body .cmb .cmb-co-pane { position: relative; background: #000E34; color: var(--b-ivory); }
html body .cmb .cmb-co-stage {
  position: relative; overflow: hidden; isolation: isolate; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  background:
    radial-gradient(64% 52% at 88% 106%, rgba(201, 169, 110, .15), rgba(201, 169, 110, 0) 72%),
    radial-gradient(48% 40% at 8% -4%, rgba(214, 226, 242, .05), rgba(214, 226, 242, 0) 70%),
    radial-gradient(96% 78% at 50% 46%, #0A1C4C 0%, #04154A 40%, #000E34 74%, #000B2A 100%);
}
html body .cmb .cmb-co-back, html body .cmb .cmb-co-front { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; }
html body .cmb .cmb-co-front { z-index: 1; }
html body .cmb .cmb-co-glass {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg, #000E34 0, rgba(0, 14, 52, 0) 72px), linear-gradient(116deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .022) 71%, rgba(255, 255, 255, 0) 83%);
  box-shadow: inset 0 0 180px rgba(0, 6, 26, .62);
}
html body .cmb .cmb-co-pane:not(.cmb-co-live) .cmb-co-glass { box-shadow: inset 0 0 140px rgba(214, 226, 242, .07), inset 0 0 40px rgba(214, 226, 242, .05); }

/* chapters */
html body .cmb .cmb-co-ch {
  position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 74vh; padding: 12vh clamp(52px, 9vw, 150px); text-align: center;
}
html body .cmb .cmb-co-ch[data-cmb-co-ch="0"] { min-height: calc(100vh - 119px); }
html body .cmb .cmb-co-pane .cmb-k { display: inline-flex; align-items: center; justify-content: center; gap: 16px; color: var(--b-gold-2); letter-spacing: .32em; text-shadow: 0 0 18px rgba(0, 10, 39, .9); }
html body .cmb .cmb-co-pane .cmb-k::before, html body .cmb .cmb-co-pane .cmb-k::after { content: ""; flex: none; width: 30px; height: 1px; background: rgba(201, 169, 110, .55); }
html body .cmb .cmb-co-ch h1, html body .cmb .cmb-co-ch h2 {
  margin-top: 26px; font-size: clamp(36px, 6.3vw, 98px); line-height: 1.04; color: var(--b-ivory);
  text-shadow: 0 0 42px rgba(0, 10, 39, .9), 0 0 3px rgba(0, 10, 39, .5);
}
html body .cmb .cmb-co-ch :is(h1, h2) em { display: block; color: #EBDDBC; }
html body .cmb .cmb-co-ch p { margin-top: 24px; font: italic 400 clamp(16px, 1.45vw, 20px)/1.5 "Lora", Georgia, serif; color: var(--b-mist); text-shadow: 0 0 18px rgba(0, 10, 39, .9); }

/* pinned: one chapter at a time, crossfading */
html body .cmb .cmb-co-pane.cmb-co-live { height: 540vh; }
html body .cmb .cmb-co-live .cmb-co-stage { touch-action: pan-y pinch-zoom; position: sticky; top: var(--cmb-co-top, 0px); height: calc(100vh - var(--cmb-co-top, 0px)); height: calc(100svh - var(--cmb-co-top, 0px)); }
html body .cmb .cmb-co-live .cmb-co-ch {
  position: absolute; inset: 0; min-height: 0; padding: 0 clamp(52px, 9vw, 150px) 2vh; pointer-events: none;
  opacity: 0; transform: translateY(16px); filter: blur(5px);
  transition: opacity .55s var(--b-ease), transform .8s var(--b-ease), filter .55s var(--b-ease);
}
html body .cmb .cmb-co-live .cmb-co-ch.is-on { opacity: 1; transform: none; filter: none; transition: opacity .9s var(--b-ease) .2s, transform 1.2s var(--b-ease) .2s, filter .8s var(--b-ease) .2s; }
html body .cmb .cmb-co-live .cmb-co-ch--night { padding-bottom: 14vh; }

/* scroll cue and the touch hint */
html body .cmb .cmb-co-cue {
  position: absolute; left: 50%; bottom: clamp(22px, 4.6vh, 46px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px;
  font: 500 10px/1 "Jost", sans-serif; letter-spacing: .34em; text-transform: uppercase; color: rgba(247, 243, 234, .55);
}
html body .cmb .cmb-co-cue::after { content: ""; width: 1px; height: 46px; background: linear-gradient(rgba(201, 169, 110, .95), rgba(201, 169, 110, 0)); transform-origin: top; animation: cmb-co-fall 2.6s var(--b-ease) infinite; }
@keyframes cmb-co-fall { 0% { transform: scaleY(0); opacity: 1; } 65% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
html body .cmb .cmb-co-hint { display: inline-flex; align-items: center; gap: 14px; margin-top: 38px; font: 500 11px/1 "Jost", sans-serif; letter-spacing: .28em; text-transform: uppercase; color: rgba(247, 243, 234, .66); text-shadow: 0 0 14px rgba(0, 10, 39, .9); }
html body .cmb .cmb-co-hint::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(201, 169, 110, .85); background: radial-gradient(circle, rgba(233, 214, 170, .95) 0 2.5px, rgba(201, 169, 110, 0) 3.5px); animation: cmb-co-pulse 2.8s ease-in-out infinite; }
@keyframes cmb-co-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 110, .35); } 50% { box-shadow: 0 0 0 9px rgba(201, 169, 110, 0); } }
html body .cmb .cmb-co-pane:not(.cmb-co-live) .cmb-co-hint, html body .cmb .cmb-co-pane:not(.cmb-co-live) .cmb-co-rail { display: none; }

/* Monday to Thursday: seven day marks, the four dispatch days light in gold */
html body .cmb .cmb-co-days { display: flex; justify-content: center; gap: clamp(12px, 3.2vw, 46px); margin-top: 44px; }
html body .cmb .cmb-co-live .cmb-co-days { position: absolute; left: 50%; bottom: clamp(34px, 8.5vh, 92px); margin: 0; transform: translateX(-50%); }
html body .cmb .cmb-co-days::before { content: ""; position: absolute; z-index: -1; inset: -34px -70px; background: radial-gradient(closest-side, rgba(0, 11, 40, .8), rgba(0, 11, 40, 0)); pointer-events: none; }
html body .cmb .cmb-co-days { position: relative; }
html body .cmb .cmb-co-days li {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 30px;
  font: 500 11px/1 "Jost", sans-serif; letter-spacing: .22em; text-indent: .22em; text-transform: uppercase; color: rgba(247, 243, 234, .38); transition: color .9s var(--b-ease);
}
html body .cmb .cmb-co-days li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(247, 243, 234, .32); background: transparent;
  transition: background-color .9s var(--b-ease), border-color .9s var(--b-ease), box-shadow .9s var(--b-ease), transform .9s var(--b-ease);
}
html body .cmb .cmb-co-pane:not(.cmb-co-live) .cmb-co-days li[data-cmb-co-go], html body .cmb .cmb-co-live .cmb-co-days li.is-on { color: var(--b-gold-2); }
html body .cmb .cmb-co-pane:not(.cmb-co-live) .cmb-co-days li[data-cmb-co-go]::before, html body .cmb .cmb-co-live .cmb-co-days li.is-on::before {
  background: #E2C78F; border-color: #E2C78F; transform: scale(1.15); box-shadow: 0 0 14px 2px rgba(226, 199, 143, .5);
}

/* Ten weeks: ten marks fill, one after another */
html body .cmb .cmb-co-ten { display: flex; align-items: flex-end; gap: clamp(11px, 1.7vw, 20px); height: 46px; margin-top: 46px; }
html body .cmb .cmb-co-ten li { position: relative; width: 1px; height: 100%; background: rgba(247, 243, 234, .24); }
html body .cmb .cmb-co-ten li::after {
  content: ""; position: absolute; left: -.5px; bottom: 0; width: 2px; height: 100%; background: linear-gradient(#F0DDB2, #C9A96E);
  box-shadow: 0 0 10px rgba(226, 199, 143, .6); transform-origin: bottom; transform: scaleY(var(--cmb-co-f, 1));
}
html body .cmb .cmb-co-live .cmb-co-ten li::after { transform: scaleY(var(--cmb-co-f, 0)); }

/* the chapter rail */
html body .cmb .cmb-co-rail { position: absolute; right: clamp(4px, 1.8vw, 30px); top: 50%; z-index: 4; display: flex; flex-direction: column; transform: translateY(-50%); }
html body .cmb .cmb-co-rail button { display: flex; align-items: center; justify-content: flex-end; width: 44px; height: 44px; margin: 0; padding: 0 8px; border: 0; background: none; cursor: pointer; }
html body .cmb .cmb-co-rail button::after { content: ""; width: 14px; height: 1px; background: rgba(247, 243, 234, .42); transition: width .6s var(--b-ease), background-color .6s var(--b-ease); }
html body .cmb .cmb-co-rail button:hover::after { background: rgba(247, 243, 234, .8); }
html body .cmb .cmb-co-rail button[aria-current="step"]::after { width: 28px; background: var(--b-gold-2); }
html body .cmb .cmb-co-rail button:focus-visible { outline: 1px solid var(--b-gold-2); outline-offset: -6px; }

/* the close */
html body .cmb .cmb-co-end { position: relative; padding-top: clamp(76px, 10vw, 132px); padding-bottom: clamp(60px, 8vw, 100px); }
html body .cmb .cmb-co-close { display: flex; flex-direction: column; align-items: center; text-align: center; }
html body .cmb .cmb-co-close h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; color: var(--b-ivory); }
html body .cmb .cmb-co-close h2 em { display: block; color: #EBDDBC; }
html body .cmb .cmb-co-close .cmb-btns { justify-content: center; margin-top: 36px; }
html body .cmb .cmb-co-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 960px; margin-top: clamp(58px, 7vw, 92px); border-top: 1px solid rgba(201, 169, 110, .3); }
html body .cmb .cmb-co-links a { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 16px 6px; color: var(--b-ivory); text-decoration: none; }
html body .cmb .cmb-co-links a + a { border-left: 1px solid rgba(201, 169, 110, .2); }
html body .cmb .cmb-co-links .cmb-k { font-size: 11px; }
html body .cmb .cmb-co-links b { font: 400 clamp(19px, 1.7vw, 23px)/1.2 "Bodoni Moda", Georgia, serif; transition: color .3s var(--b-ease); }
html body .cmb .cmb-co-links b::after { content: "→"; display: inline-block; margin-left: 10px; font-family: "Jost", sans-serif; color: var(--b-gold-2); transition: transform .3s var(--b-ease); }
html body .cmb .cmb-co-links a:hover b { color: #EBDDBC; }
html body .cmb .cmb-co-links a:hover b::after { transform: translateX(4px); }

@media (max-width: 699px) {
  html body .cmb .cmb-co-ch { padding-left: 46px; padding-right: 46px; }
  html body .cmb .cmb-co-ch h1, html body .cmb .cmb-co-ch h2 { font-size: clamp(34px, 9.8vw, 44px); }
  html body .cmb .cmb-co-live .cmb-co-ch { padding: 0 46px 2vh; }
  html body .cmb .cmb-co-live .cmb-co-ch--night { padding-bottom: 12vh; }
  html body .cmb .cmb-co-pane .cmb-k { gap: 10px; letter-spacing: .24em; line-height: 1.6; }
  html body .cmb .cmb-co-pane .cmb-k::before, html body .cmb .cmb-co-pane .cmb-k::after { width: 16px; }
  html body .cmb .cmb-co-ch[data-cmb-co-ch="3"] .cmb-k::before, html body .cmb .cmb-co-ch[data-cmb-co-ch="3"] .cmb-k::after { display: none; }
  html body .cmb .cmb-co-days li { min-width: 26px; letter-spacing: .14em; text-indent: .14em; font-size: 10px; }
  html body .cmb .cmb-co-rail { right: 0; }
  html body .cmb .cmb-co-links { grid-template-columns: minmax(0, 1fr); }
  html body .cmb .cmb-co-links a { padding: 22px 0 18px; }
  html body .cmb .cmb-co-links a + a { border-left: 0; border-top: 1px solid rgba(201, 169, 110, .2); }
}
@media (prefers-reduced-motion: reduce) {
  html body .cmb .cmb-co-live .cmb-co-ch { filter: none; transform: none; }
}
