/* ==========================================================================
   Sessions page: the night room. Loaded after site.css.
   Everything that moves uses transform/opacity only, and stops for visitors
   who ask for less motion.
   ========================================================================== */

/* ---- header and hero: night ----------------------------------------------- */
.ss-page .site-head { background: #27344f; color: #eef2e2; --line-strong: rgba(238, 242, 226, .4); --focus: #ff9a6b; }
.ss-hero { position: relative; overflow: hidden; border-radius: 0 0 36px 36px; color: #eef2e2; background: linear-gradient(174deg, #27344f 0%, #1a2240 46%, #0d1229 100%); isolation: isolate; }
/* a little pixel rain falling behind everything */
.ss-hero::before { content: ""; position: absolute; inset: -20% 0 0 0; z-index: -1; pointer-events: none; opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='80' shape-rendering='crispEdges'%3E%3Cg fill='%2381a4ba'%3E%3Crect x='3' y='2' width='1' height='4'/%3E%3Crect x='17' y='21' width='1' height='3'/%3E%3Crect x='29' y='9' width='1' height='4'/%3E%3Crect x='9' y='44' width='1' height='3'/%3E%3Crect x='35' y='52' width='1' height='4'/%3E%3Crect x='22' y='66' width='1' height='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 240px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 60%, transparent 100%);
  animation: ss-rain 1.2s steps(12) infinite; }
@keyframes ss-rain { to { transform: translateY(240px); } }
.ss-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(30px, 6vw, 56px); padding-block: clamp(18px, 5vw, 56px) clamp(40px, 7vw, 84px); align-items: center; }
.ss-kicker { font-family: var(--pix); font-size: .98rem; color: var(--tangerine); display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ss-kicker .pix { font-size: 18px; }
.ss-hero-text { container-type: inline-size; }
/* sized to the text column, so "a resident doctor." (9em wide) always fits on one line */
.ss-hero h1 { font-family: var(--dot); font-weight: 400; letter-spacing: 0; font-size: clamp(2.1rem, 9.2vw, 3.2rem); font-size: clamp(1.8rem, 10.6cqi, 3.2rem); line-height: 1.12; color: #eeead9; text-wrap: initial; }
.ss-hero h1 span { display: block; }
.ss-hero h1 span + span { color: var(--tangerine); }
.ss-lede { margin-top: 24px; font-size: clamp(1.1rem, 2.2vw, 1.28rem); line-height: 1.6; max-width: 32em; color: #d5dccb; }
.ss-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ss-hero .btn-row { margin-top: 32px; }
.ss-hero .btn-quiet { --btn-face: #2c3b59; --btn-edge: #0e1522; --btn-ink: #eef2e2; }
.ss-hero .btn-quiet .btn-face { box-shadow: inset 0 0 0 1.5px rgba(238, 242, 226, .28); }
.ss-hero :focus-visible { outline-color: #ff9a6b; }
.ss-hero-screen .screen { box-shadow: 0 0 0 1.5px rgba(238, 234, 217, .14), 0 0 0 10px rgba(7, 10, 31, .55), 0 40px 70px -30px rgba(0, 0, 0, .8); }
.js .ss-hero-screen { animation: ss-in 1s var(--ease) both .1s; }
@keyframes ss-in { from { opacity: 0; transform: translateY(40px) scale(.97); } }
.ss-screen-note { margin-top: 18px; font-family: var(--pix); font-size: .82rem; line-height: 1.6; color: #a9b4c4; display: flex; align-items: center; gap: 10px; }
.ss-screen-note i { width: 7px; height: 7px; flex: none; background: var(--tangerine); animation: blink 1.6s steps(2, start) infinite; }
@media (min-width: 980px) {
  .ss-hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); padding-top: 40px; }
}

/* ---- on-this-page bar: sticks to the top while you scroll ------------------- */
.ss-subnav { position: sticky; top: 0; z-index: 30; margin-top: clamp(14px, 3vw, 26px); background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1.5px solid transparent; transition: border-color .3s var(--ease); }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .ss-subnav { background: var(--paper); } }
.ss-subnav.is-stuck { border-bottom-color: var(--line); }
.ss-subnav .wrap { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; scroll-padding-inline: var(--gutter); }
.ss-subnav .wrap::-webkit-scrollbar { display: none; }
.ss-subnav a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 12px; text-decoration: none; font-size: .98rem; color: var(--ink-2); border: 1.5px solid var(--line); transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); white-space: nowrap; }
.ss-subnav a:hover { color: var(--ink); border-color: var(--line-strong); }
.ss-subnav a[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ss-page section[id] { scroll-margin-top: 76px; }

/* ---- how a session works --------------------------------------------------- */
.ss-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; counter-reset: none; }
.ss-step { position: relative; background: var(--paper-2); border: 1.5px solid var(--line); border-radius: 24px; padding: 22px 22px 24px 84px; min-height: 120px; }
.ss-step-n { position: absolute; left: 22px; top: 18px; font-family: var(--dot); font-size: 2.6rem; line-height: 1; color: var(--tangerine); }
.ss-step h3 { font-size: 1.32rem; display: flex; align-items: center; gap: 10px; }
.ss-step h3 .pix { font-size: 17px; color: var(--ink-2); }
.ss-step p { margin-top: 8px; color: var(--ink-2); }
@media (min-width: 860px) {
  .ss-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .ss-step { padding: 92px 26px 28px; min-height: 0; }
  .ss-step-n { left: 26px; top: 24px; font-size: 3.1rem; }
}

/* the session, start to finish */
.ss-plan { margin: clamp(30px, 5vw, 48px) 0 0; background: var(--paper-2); border: 1.5px solid var(--line); border-radius: 24px; padding: clamp(18px, 3.4vw, 30px); }
.ss-plan-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-weight: 600; margin-bottom: 26px; }
.ss-plan-head small { font-family: var(--pix); font-weight: 400; font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
.ss-bar { display: grid; grid-template-columns: 9fr 30fr 10fr 30fr 10fr; gap: 4px; }
.ss-seg { position: relative; min-width: 0; height: 38px; border-radius: 8px; background: var(--navy); color: #eeead9; display: grid; place-items: center; }
.ss-seg.is-break { background: var(--tangerine); color: #1b2230; }
.ss-seg.is-intro { background: var(--paper-3); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.ss-seg span { font-family: var(--pix); font-size: .78rem; line-height: 1; white-space: nowrap; overflow: hidden; max-width: 100%; padding-inline: 3px; }
.ss-seg .pip { position: absolute; top: -13px; width: 8px; height: 8px; margin-left: -4px; background: var(--tangerine-text); }
.ss-plan-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .92rem; color: var(--ink-2); }
.ss-plan-key span { display: inline-flex; align-items: center; gap: 8px; }
.ss-plan-key i { width: 14px; height: 10px; border-radius: 3px; background: var(--navy); }
.ss-plan-key i.k-break { background: var(--tangerine); }
.ss-plan-key i.k-intro { background: var(--paper-3); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.ss-plan-key i.k-pip { width: 8px; height: 8px; border-radius: 0; background: var(--tangerine-text); }
@media (max-width: 559px) {
  .ss-bar { grid-template-columns: 11fr 30fr 11fr 30fr 11fr; gap: 3px; }
  .ss-seg span { font-size: .7rem; }
  .ss-seg span .wide { display: none; }
}

/* ---- the moments ------------------------------------------------------------ */
.moments { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.moment { display: flex; flex-direction: column; background: var(--paper-2); border: 1.5px solid var(--line); border-radius: 26px; padding: 10px; scroll-margin-top: 80px; }
.moment .screen { border-radius: 18px; box-shadow: 0 0 0 1.5px rgba(7, 10, 31, .2); }
.moment-text { padding: 16px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.moment-when { font-family: var(--pix); font-size: .82rem; color: var(--ink-2); display: flex; gap: 10px; align-items: center; }
.moment-when b { font-weight: 400; background: var(--ink); color: var(--paper); padding: 4px 7px 3px; border-radius: 6px; }
.moment h3 { font-size: 1.32rem; margin-top: 10px; }
.moment p { margin-top: 6px; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.moment-link { margin-top: auto; padding-top: 14px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .98rem; min-height: 44px; }
.moment-link .pix { font-size: 12px; }
.moment-link[aria-disabled="true"] { text-decoration: none; color: var(--ink-2); font-weight: 400; cursor: default; }
.moment-link[aria-disabled="true"] .pix { display: none; }
@media (min-width: 660px) { .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .moments { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }

/* ---- how it's made ------------------------------------------------------------ */
.labs { display: grid; gap: clamp(20px, 3vw, 26px); }
.lab { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; background: var(--paper-2); border: 1.5px solid var(--line); border-radius: 28px; padding: clamp(18px, 3.6vw, 34px); align-items: center; }
.lab-kicker { font-family: var(--pix); font-size: .86rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; }
.lab-kicker .pix { font-size: 15px; color: var(--tangerine-text); }
.lab h3 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-top: 10px; }
.lab-text p:not(.lab-kicker) { margin-top: 12px; color: var(--ink-2); max-width: 30em; }
.lab-stage { min-width: 0; }
@media (min-width: 900px) {
  .lab { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; }
  .lab-size { grid-template-columns: minmax(0, 1fr); }
  .lab-size .lab-text { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 40px; align-items: end; }
  .lab-size .lab-text h3 { grid-column: 1; }
  .lab-size .lab-text .lab-kicker { grid-column: 1; }
  .lab-size .lab-text p:not(.lab-kicker) { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}

/* real size: the frame at one pixel per screen pixel, then zoomed */
.lab-size .lab-stage { width: 100%; max-width: 760px; margin-inline: auto; }
.zoom-view { position: relative; aspect-ratio: 274 / 154; background: #070a1f; border-radius: 18px; overflow: hidden; }
.zoom-view::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px rgba(238, 234, 217, .12); pointer-events: none; }
.zoom-view img { position: absolute; left: 50%; top: 50%; width: 274px; max-width: none; height: auto; transform: translate(-50%, -50%); image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated; }
.js .zoom-view img { transition: width .35s var(--ease), left .35s var(--ease), top .35s var(--ease); }
.zoom-ctl { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "label out" "range range"; align-items: center; gap: 2px 14px; margin-top: 14px; font-weight: 600; }
.zoom-ctl > span { grid-area: label; }
.zoom-ctl input { grid-area: range; }
.zoom-ctl output { grid-area: out; font-family: var(--pix); font-weight: 400; font-size: .9rem; text-align: right; color: var(--ink-2); }
html:not(.js) .js-only { display: none; }
.no-js-note { font-size: .92rem; color: var(--ink-2); margin-top: 12px; }
.js .no-js-note { display: none; }
html:not(.js) .zoom-ctl { display: none; }

/* pixel range slider */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--tangerine) var(--fill, 0%), var(--paper-3) var(--fill, 0%)); box-shadow: inset 0 0 0 1.5px var(--line); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--paper-3); box-shadow: inset 0 0 0 1.5px var(--line); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--tangerine); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 8px; background: var(--ink); border: 3px solid var(--paper-2); box-shadow: 0 0 0 1.5px var(--line-strong); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 8px; background: var(--ink); border: 3px solid var(--paper-2); box-shadow: 0 0 0 1.5px var(--line-strong); }

/* 44 colours */
.pal-view { position: relative; }
.pal-view .screen { box-shadow: 0 0 0 1.5px rgba(7, 10, 31, .2); }
.pal-readout { margin-top: 14px; min-height: 3.1em; font-size: .98rem; color: var(--ink-2); }
.pal-readout b { color: var(--ink); }
.pal-readout code { font-family: var(--pix); font-size: .86rem; background: var(--paper-3); padding: 2px 6px; border-radius: 5px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; margin-top: 12px; }
.swatch { aspect-ratio: 1; min-height: 32px; border: 0; border-radius: 8px; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(7, 10, 31, .18); transition: transform .2s var(--spring), box-shadow .2s var(--ease); }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 5.5px var(--ink); transform: translateY(-2px); }
.swatch-all { grid-column: span 3; aspect-ratio: auto; background: var(--paper); color: var(--ink); font-size: .9rem; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
html:not(.js) .swatch { cursor: default; }
html:not(.js) .swatch-all { display: none; }

/* light, step by step */
.light-switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.light-switch { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink); font-size: .96rem; font-weight: 600; text-align: left; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.light-switch i { width: 12px; height: 12px; flex: none; border-radius: 3px; background: var(--paper-3); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background .2s var(--ease); }
.light-switch.is-on i { background: var(--tangerine); box-shadow: none; }
.light-switch[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.light-all { grid-column: 1 / -1; min-height: 44px; padding: 8px 14px; border-radius: 14px; border: 1.5px dashed var(--line-strong); background: transparent; color: var(--ink-2); font-size: .94rem; font-weight: 600; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.light-all:hover { background: var(--paper); color: var(--ink); }
html:not(.js) .light-switches { display: none; }
@media (min-width: 560px) { .light-switches { grid-template-columns: repeat(4, minmax(0, 1fr)); } .light-switch { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* ---- the sessions ------------------------------------------------------------- */
.ss-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.ss-list .brew { border-radius: 30px; }
.ss-next h3 { font-size: 1.45rem; }
.ss-subscribe[hidden] { display: none; }
.ss-subscribe { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; min-height: 44px; }

/* ---- Ninekey -------------------------------------------------------------------- */
.ss-nk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: center; background: var(--lcd); color: var(--lcd-ink); border-radius: 30px; padding: clamp(24px, 5vw, 52px); box-shadow: inset 0 0 0 2px rgba(35, 46, 26, .22); overflow: hidden; }
.ss-nk h2 { font-family: var(--dot); font-weight: 400; letter-spacing: 0; font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.2; }
.ss-nk p { margin-top: 14px; max-width: 30em; font-size: 1.08rem; }
.ss-nk .btn { margin-top: 26px; }
.ss-nk-phone { display: flex; justify-content: center; height: 330px; }
.ss-nk-phone .phone { --phone-w: 230px; align-self: flex-start; transform: rotate(4deg); }
@media (min-width: 860px) {
  .ss-nk { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); padding-block: 0; }
  .ss-nk-text { padding-block: 52px; }
  .ss-nk-phone { height: 380px; align-self: end; }
  .ss-nk-phone .phone { --phone-w: 250px; margin-top: 46px; }
}

/* ---- last call ------------------------------------------------------------------- */
.ss-getit { text-align: center; color: #eef2e2; border-radius: 36px; padding: clamp(40px, 8vw, 84px) 24px; position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(172deg, #27344f, #0d1229); }
.ss-getit::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(238, 234, 217, .1) 1.2px, transparent 1.3px); background-size: 14px 14px; pointer-events: none; }
.ss-getit h2 { font-family: var(--dot); font-weight: 400; letter-spacing: 0; color: #eeead9; font-size: clamp(1.8rem, 6.6vw, 3.1rem); line-height: 1.2; }
.ss-getit h2 span { display: block; color: var(--tangerine); }
.ss-getit p { margin: 16px auto 0; max-width: 30em; color: #d5dccb; }
.ss-getit .btn { margin-top: 32px; }
.ss-getit small { display: block; margin-top: 22px; font-family: var(--pix); font-size: .8rem; color: #a9b4c4; }
.ss-getit :focus-visible { outline-color: #ff9a6b; }

@media (prefers-reduced-motion: reduce) {
  .ss-hero::before { animation: none; }
  .ss-screen-note i { animation: none; }
}
