/* CaseModel website: css/base.css
   What every page shares: the brand's tokens, type, the header and its menus, buttons, the films and the theatre, the footer.
   Light only: the azure-and-navy logo reads correctly only on a white ground. */

:root {
  --navy: #002860; --azure: #0070f8; --azure-d: #0061d8; --azure-dd: #0053bd; --sky: #30a8fc;
  --gold: #ffc53d; --gold-d: #b97f00; --gold-l: #f0cf73; --gold-bg: #fff1c9;
  --red: #d8452f; --red-d: #a8321f; --red-dd: #7a1f10; --red-bg: #ffece7; --orange: #c9731d; --orange-d: #8a4a05; --orange-dd: #6d3a04; --orange-bg: #fff1e2;
  --sky-1: #f8fcff; --sky-2: #f3f9ff; --sky-3: #ebf5ff; --sky-4: #e0effe; --line: #d3e2f4; --line-2: #e6eef8; --edge: #bcd6f2;
  --text: #1d2a3d; --text-2: #414c5d; --text-3: #5b6676;
  --display: 'Plus Jakarta Sans', 'Avenir Next', 'Segoe UI Variable Display', system-ui, sans-serif;
  --ui: 'Source Sans 3', 'Source Sans Pro', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --r: 6px; --r-l: 12px;
  --sh-1: 0 1px 2px rgb(0 40 96 / .06); --sh-2: 0 6px 22px rgb(0 40 96 / .09); --sh-3: 0 22px 60px rgb(0 40 96 / .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px; --gut: clamp(20px, 4vw, 48px); --sec: clamp(52px, 5.6vw, 80px); --top: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-padding-top: calc(var(--top) + 20px); -webkit-text-size-adjust: 100%; overflow-x: clip; scrollbar-gutter: stable; }
body { margin: 0; background: #fff; color: var(--text); font: 400 18px/1.6 var(--ui); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video, canvas { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); color: var(--navy); letter-spacing: -.022em; text-wrap: balance; line-height: 1.08; }
h2 { font-size: clamp(30px, 3.5vw, 50px); font-weight: 700; letter-spacing: -.03em; }
h3 { font-size: clamp(20px, 1.7vw, 24px); font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--azure-dd); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 10px 14px; background: var(--navy); color: #fff; border-radius: var(--r); }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* a label that says where you are; never a repeat of the heading under it */
.kick { margin: 0 0 18px; font: 700 13px/1.2 var(--display); letter-spacing: .09em; text-transform: uppercase; color: var(--azure-dd); }
.lede { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.5; color: var(--text-2); max-width: 34em; }

/* ---- buttons and links that go somewhere ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--r);
  font: 700 16px/1 var(--display); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
.btn.pri { background: var(--azure-d); color: #fff; box-shadow: 0 6px 18px rgb(0 97 216 / .24); }
.btn.pri:hover { background: var(--azure-dd); color: #fff; box-shadow: 0 10px 26px rgb(0 97 216 / .3); }
.btn.sec { background: #fff; border-color: var(--edge); color: var(--navy); box-shadow: var(--sh-1); }
.btn.sec:hover { border-color: var(--azure); color: var(--azure-dd); }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn:active { transform: translateY(1px); }
.play-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--azure-d); position: relative; }
.play-ic::after { content: ''; position: absolute; left: 12px; top: 9px; border: 6px solid transparent; border-left: 9px solid #fff; border-right: 0; }
.go { display: inline-flex; align-items: center; gap: 8px; font: 700 16px/1.25 var(--display); color: var(--azure-dd); text-decoration: none; letter-spacing: -.005em; }
.go::after { content: ''; flex: none; width: 18px; height: 10px; background: currentColor; transition: transform .2s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.go:hover { color: var(--navy); }
.go:hover::after { transform: translateX(4px); }

/* ---- the header ---- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--top); background: rgb(255 255 255 / .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.top.on { border-bottom-color: var(--line-2); box-shadow: 0 6px 24px rgb(0 40 96 / .05); }
.top-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { flex: none; display: block; }
.brand img { height: 81px; width: auto; }
/* on wide windows the bar is taller again, so the logo can be larger and still sit clear of its edges */
@media (min-width: 1041px) { :root { --top: 108px; } .brand img { height: 93px; } }
/* the narrowest phones: the logo, the ask and the menu still share one row */
@media (max-width: 379px) { :root { --top: 88px; } .brand img { height: 72px; } }
@media (max-width: 359px) { .brand img { height: 66px; } .top .top-cta { padding: 0 10px; font-size: 13px; } }
/* a short window (a phone on its side) keeps a slim bar, so the page is not mostly header */
@media (max-height: 500px) { :root { --top: 72px; } .brand img { height: 56px; } }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav-btn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border: 0; background: none; border-radius: var(--r); font: 600 16px/1 var(--display); color: var(--navy); text-decoration: none; letter-spacing: -.008em; }
.nav > a:hover, .nav-btn:hover, .nav-btn[aria-expanded="true"] { background: var(--sky-3); color: var(--navy); }
.nav-btn::after { content: ''; width: 8px; height: 8px; margin-top: -4px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); transition: transform .2s var(--ease), margin .2s var(--ease); }
.nav-btn[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 4px; }
.nav > a[aria-current="page"], .nav-btn.here { box-shadow: inset 0 -2px 0 var(--azure); border-radius: var(--r) var(--r) 0 0; }
.nav .signin { color: var(--text-2); font-weight: 600; }
/* the ask stands in the header at every width */
.top-cta { flex: none; }
.top .top-cta { min-height: 44px; }
.menu-btn { display: none; }

/* a menu's panel, under the header */
.panel { position: fixed; left: 0; right: 0; top: var(--top); z-index: 89; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgb(0 40 96 / .12); opacity: 0; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.panel.open { opacity: 1; transform: none; }
.panel-in { padding-top: 34px; padding-bottom: 30px; }
/* stage 2 has one capability: its column keeps room for its name and the line to the next circle */
.mm { display: grid; grid-template-columns: 2fr minmax(160px, 1fr) 3fr 2fr; gap: 0 28px; }
.mm-g { position: relative; padding-top: 44px; }
.mm-g > p { position: absolute; top: 0; left: 0; right: 0; margin: 0; display: flex; align-items: center; gap: 12px; font: 700 15px/1 var(--display); color: var(--navy); white-space: nowrap; }
.mm-g > p::after { content: ''; flex: 1; height: 2px; background: var(--line); margin-right: -28px; }
.mm-g:last-child > p::after { display: none; }
.mm-g > div { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; }
.step-n { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 14px/1 var(--display); }
.mm a { display: block; padding: 8px; margin: -8px; border-radius: var(--r-l); text-decoration: none; color: var(--navy); }
.mm a:hover { background: var(--sky-2); }
.mm a img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); background: var(--sky-3); }
.mm a b { display: block; margin-top: 10px; font: 700 15.5px/1.2 var(--display); letter-spacing: -.01em; }
.mm a span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.35; color: var(--text-3); }
.mm a[aria-current="page"] b { color: var(--azure-dd); }
.mm-more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 34px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.mm-more p { margin: 0; font: 700 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.mm-more a { font: 600 15.5px/1.2 var(--display); color: var(--navy); text-decoration: none; }
.mm-more a > span:not(.wm) { font: 400 14.5px/1.2 var(--ui); color: var(--text-3); margin-left: 6px; }
/* Cognition and CaseIQ are named by their own wordmarks, the logo's C as their C */
.mm-more a { display: inline-flex; align-items: baseline; }
.mm-more .wm { font-size: 18px; }
.mm-more a:hover { color: var(--azure-dd); }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin-left: auto; }
.who a { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-l); text-decoration: none; color: var(--navy); }
.who a:hover { border-color: var(--azure); background: var(--sky-1); }
.who a b { display: block; font: 700 18px/1.2 var(--display); }
.who a span { display: block; margin-top: 6px; font-size: 15.5px; line-height: 1.4; color: var(--text-3); }

@media (max-width: 1040px) {
  .top-in { gap: 12px; }
  /* the open menu lies directly under the header, so the ask's shadow is kept within it */
  .top .top-cta { margin-left: auto; box-shadow: 0 4px 10px rgb(0 97 216 / .22); }
  .menu-btn { flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
  .menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s; }
  .menu-btn i { position: relative; }
  .menu-btn i::before, .menu-btn i::after { content: ''; position: absolute; left: 0; }
  .menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
  .menu-btn[aria-expanded="true"] i { background: transparent; }
  .menu-btn[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
  .nav { position: fixed; left: 0; right: 0; top: var(--top); height: calc(100vh - var(--top)); height: calc(100dvh - var(--top)); z-index: 88; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 10px var(--gut) 40px; background: #fff; overflow-y: auto; overscroll-behavior: contain; }
  .nav.open { display: flex; }
  .nav > a, .nav-btn { height: 56px; padding: 0 4px; font-size: 19px; justify-content: space-between; border-radius: 0; border-bottom: 1px solid var(--line-2); }
  .nav > a[aria-current="page"], .nav-btn.here { box-shadow: none; color: var(--azure-dd); }
  .panel { position: static; box-shadow: none; border: 0; opacity: 1; transform: none; }
  .panel-in { padding: 16px 0 22px; }
  .mm { grid-template-columns: 1fr; gap: 22px; }
  .mm-g { padding-top: 40px; }
  .mm-g > p::after { margin-right: 0; }
  .mm-g > div { grid-auto-flow: row; gap: 4px; }
  .mm a { display: grid; grid-template-columns: 92px 1fr; gap: 0 14px; align-items: center; margin: 0; padding: 8px 0; }
  .mm a img { grid-row: 1 / span 2; }
  .mm a b { margin: 0; align-self: end; }
  .mm a span { align-self: start; }
  .mm-more { margin-top: 18px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .who { grid-template-columns: 1fr; gap: 12px; max-width: none; }
}
/* the narrowest phones: the logo, the ask and the menu button still share one row */
@media (max-width: 379px) { .top-in { gap: 8px; } .top .top-cta { padding: 0 12px; font-size: 14px; } }
@media (max-width: 339px) { .top .top-cta { padding: 0 9px; font-size: 13px; letter-spacing: -.012em; } }

/* ---- the rail, on every page below the overview: where you are. Up to the overview; across the four stages and the
   capabilities of the one you are in; back and on. The numbered circles are joined by a line, as steps in a sequence are. ---- */
.rail { position: sticky; top: var(--top); z-index: 80; margin-top: var(--top); background: rgb(255 255 255 / .94); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line-2); view-transition-name: rail; }
.rail-in { display: flex; align-items: center; gap: 20px; min-height: 52px; }
.rail-up { flex: none; display: inline-flex; align-items: center; gap: 9px; height: 34px; padding-right: 20px; border-right: 1px solid var(--line); font: 600 14.5px/1 var(--display); color: var(--text-2); text-decoration: none; }
.rail-up::before { content: ''; width: 8px; height: 8px; margin-top: 4px; border: solid currentColor; border-width: 1.8px 0 0 1.8px; transform: rotate(45deg); }
.rail-up:hover { color: var(--azure-dd); }
.rail-line { flex: 1; min-width: 0; display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.rail-line > li { display: flex; align-items: center; min-width: 0; }
.rail-line > li + li::before { content: ''; flex: none; width: clamp(12px, 1.8vw, 28px); height: 2px; margin: 0 10px; background: var(--edge); }
.rail-s { display: inline-flex; align-items: center; gap: 9px; font: 600 14.5px/1 var(--display); color: var(--text-2); text-decoration: none; white-space: nowrap; }
.rail-s .step-n { width: 26px; height: 26px; font-size: 13px; background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.6px var(--navy); transition: background .2s, color .2s; }
a.rail-s:hover .step-n { background: var(--sky-4); } a.rail-s:hover b { color: var(--azure-dd); }
.rail-s b { font-weight: 600; }
.rail-line > li.on .rail-s .step-n { background: var(--navy); color: #fff; }
.rail-line > li.on .rail-s b { color: var(--navy); font-weight: 700; }
.rail-c { display: inline-flex; align-items: center; gap: 2px; margin-left: 14px; padding-left: 12px; border-left: 1px solid var(--line); }
.rail-c a { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px; font: 600 14.5px/1 var(--display); color: var(--text-2); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.rail-c a:hover { background: var(--sky-3); color: var(--navy); }
.rail-c a[aria-current="page"] { background: var(--navy); color: #fff; view-transition-name: rail-here; }
.rail-line.flat .rail-c { margin-left: 12px; }
.rail-pn { flex: none; display: inline-flex; gap: 6px; }
.rail-pn a, .rail-pn .off { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--edge); border-radius: 50%; color: var(--navy); transition: border-color .2s, background .2s; }
.rail-pn a::before, .rail-pn .off::before { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: translateX(-1.5px) rotate(-45deg); }
.rail-pn a[rel="prev"]::before, .rail-pn .off:first-child::before { transform: translateX(1.5px) rotate(135deg); }
.rail-pn a:hover { border-color: var(--azure); background: var(--sky-3); }
.rail-pn .off { color: var(--line); border-color: var(--line-2); }
/* each link in the rail can be pressed over a finger's height, more than it shows */
.rail-up, a.rail-s, .rail-c a, .rail-pn a { position: relative; }
.rail-up::after, a.rail-s::after, .rail-c a::after, .rail-pn a::after { content: ''; position: absolute; inset: -5px 0; }
a.rail-s::after { inset: -9px; }
.rail-pn a::after { inset: -6px -4px; }
/* where a finger may press them, the two arrows stand a little further apart, so each can be pressed over 44 px square and the
   two areas meet without overlapping */
@media (any-pointer: coarse) { .rail-pn { gap: 10px; } .rail-pn a::after { inset: -6px; } }
html:has(.rail) { scroll-padding-top: calc(var(--top) + 76px); }
/* a stage with more than one capability needs the room: the other stages keep their numbers and give up their names */
.rail-line:has(li.on .rail-c a:nth-child(2)) > li:not(.on) .rail-s b { display: none; }
@media (max-width: 1260px) { .rail-line > li:not(.on) .rail-s b { display: none; } }
/* up to 1140 px the capabilities of the stage you are in take a row of their own under the stages, so no name runs under a
   circle or an arrow. The rail is then taller, so it stays at the head of the page rather than following it down */
@media (max-width: 1140px) {
  .rail { position: static; }
  html:has(.rail) { scroll-padding-top: calc(var(--top) + 20px); }
  .rail-in { align-items: flex-start; padding-top: 9px; padding-bottom: 10px; }
  .rail-line { flex-wrap: wrap; row-gap: 6px; }
  .rail-line > li, .rail-line > li.on > .rail-s { min-height: 34px; }
  .rail-line > li.on { display: contents; }
  .rail-c, .rail-line.flat .rail-c { order: 9; flex: 1 0 100%; flex-wrap: wrap; margin: 0; padding: 6px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
}
@media (max-width: 760px) {
  .rail { position: static; }
  .rail-in { flex-wrap: wrap; gap: 10px 14px; padding-top: 8px; padding-bottom: 10px; }
  .rail-up { order: 1; border-right: 0; padding-right: 0; }
  .rail-pn { order: 2; margin-left: auto; gap: 10px; }
  .rail-pn a::after { inset: -6px; }
  .rail-line { order: 3; flex: 1 0 100%; flex-wrap: wrap; row-gap: 6px; }
  .rail-line > li.on { display: contents; }
  .rail-line > li + li::before { width: 14px; margin: 0 8px; }
  .rail-line > li.on + li::before { margin-left: 10px; }
  /* the name of the stage you are in takes the room the line leaves it, and wraps rather than push a step onto a row alone */
  .rail-line > li.on > .rail-s { flex: 1 1 0; min-width: 0; max-width: max-content; }
  .rail-line > li.on > .rail-s b { white-space: normal; line-height: 1.15; }
  .rail-c { order: 9; flex: 1 0 100%; flex-wrap: wrap; row-gap: 8px; margin: 2px 0 0; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .rail-c a { height: 36px; padding: 0 12px; }
  .rail-c a::after { inset: -4px 0; }
  .rail-line.flat > li.on .rail-s { display: none; }
  .rail-line.flat .rail-c { margin-top: 0; border-top: 0; padding-top: 0; }
}
/* the narrowest phones: shorter joins between the steps, and the two longer stage names set on two lines */
@media (max-width: 420px) { .rail-line > li + li::before, .rail-line > li.on + li::before { width: 10px; margin: 0 6px; } }
@media (max-width: 380px) { .rail-line > li.on > .rail-s b { max-width: 6em; } }

/* ---- sections ---- */
main { display: block; }
/* (a section, not the second kind of button, which shares the short name) */
section.sec { padding: var(--sec) 0; }
section.sec.tint { background: linear-gradient(180deg, var(--sky-2), var(--sky-1)); }
.sec-head { max-width: 800px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lede { margin-top: 20px; }

/* steps in a sequence: numbered circles joined by a line that runs on to the next */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0 clamp(20px, 3vw, 44px); counter-reset: st; }
.steps > li { position: relative; padding-top: 58px; counter-increment: st; }
.steps > li::before { content: counter(st); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 17px/1 var(--display); z-index: 1; }
.steps > li::after { content: ''; position: absolute; top: 18px; left: 38px; right: calc(clamp(20px, 3vw, 44px) * -1); height: 2px; background: var(--edge); }
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: 10px; }
.steps p { font-size: 17px; color: var(--text-2); }
@media (max-width: 860px) {
  .steps { grid-auto-flow: row; gap: 0; }
  .steps > li { padding: 4px 0 34px 60px; }
  .steps > li::after { top: 38px; bottom: 0; left: 18px; right: auto; width: 2px; height: auto; }
}

/* a list of things you get: ticks, never bullets */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .42em; width: 15px; height: 8px; border: solid var(--azure); border-width: 0 0 2.2px 2.2px; transform: rotate(-45deg); }

/* ---- a film: its poster, with the play mark and the film's length in its lower corner. Pressed, the film plays in the same
   place, at the same size, with nothing over it, until its place is scrolled away (below); a fine line along its foot shows
   how far it has run, for a moment, as the pointer moves over it. The whole picture is one button (js/site.js) ---- */
.film { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; background: var(--sky-3); border: 1px solid var(--line); box-shadow: var(--sh-2); isolation: isolate; container-type: inline-size; }
.film img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film video { z-index: 1; background: transparent; transition: opacity .28s var(--ease); }
/* pressed, the film comes in over its poster as it goes at its end */
.film video { opacity: 0; }
.film video.on { opacity: 1; }
/* at its end the film gives way to its poster */
.film video.out { opacity: 0; }
.film-hit { position: absolute; inset: 0; z-index: 3; display: flex; flex-wrap: wrap; align-content: flex-end; align-items: center; gap: 10px; gap: clamp(8px, 1.8cqi, 12px); margin: 0; padding: 16px; padding: clamp(12px, 3.4cqi, 24px); border: 0; border-radius: inherit; background: none; color: var(--navy); text-align: left; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.film-mark { flex: none; position: relative; width: 44px; width: clamp(36px, 8cqi, 56px); aspect-ratio: 1; border-radius: 50%; background: var(--azure-d); box-shadow: 0 8px 20px rgb(0 40 96 / .18); transition: opacity .2s var(--ease), transform .2s var(--ease), background .2s var(--ease); }
.film-mark::after { content: ''; position: absolute; left: 39%; top: 30%; width: 29%; height: 40%; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.film-len { padding: 3px 9px; border-radius: 999px; background: #fff; font: 600 15px/1.2 var(--display); font-size: clamp(13px, 2.4cqi, 16px); letter-spacing: -.005em; color: var(--navy); white-space: nowrap; transition: opacity .2s var(--ease); }
@media (hover: hover) { .film-hit:hover .film-mark { background: var(--azure-dd); transform: scale(1.06); } }
/* playing, nothing stands on the picture; paused, the mark comes back on its own */
.film.playing .film-hit > *, .film.paused .film-len { opacity: 0; }
/* how far the film has run, along the picture's foot. Once the film has started the line can be pressed or dragged: the strip
   that takes the press is taller than the line itself, and stands over the picture's own press */
.film-seek { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 20px; display: flex; align-items: flex-end; cursor: pointer; touch-action: none; pointer-events: none; outline: 0; }
.film.playing .film-seek, .film.paused .film-seek { pointer-events: auto; }
.film-line { position: relative; flex: 1; height: 4px; background: rgb(0 112 248 / .22); opacity: 0; transition: opacity .2s linear, height .15s var(--ease); }
.film-line i { display: block; height: 100%; background: var(--azure); transform: scaleX(0); transform-origin: 0 50%; }
.film.lit .film-line, .film.seeking .film-line, .film-seek:focus-visible .film-line { opacity: 1; }
.film-seek:hover .film-line, .film.seeking .film-line, .film-seek:focus-visible .film-line { height: 6px; }
.film-seek:focus-visible { box-shadow: inset 0 0 0 2px var(--azure); }
/* on a touch screen the strip is a finger's height, and takes a press only while the line is showing, so a tap on the picture
   still pauses and plays it */
@media (pointer: coarse) {
  .film-seek { height: 44px; }
  .film.playing .film-seek, .film.paused .film-seek { pointer-events: none; }
  .film.playing.lit .film-seek, .film.paused.lit .film-seek, .film.seeking .film-seek { pointer-events: auto; }
}
/* the keyboard's ring goes round the whole picture */
.film-hit:focus-visible { outline: 2px solid var(--azure); outline-offset: -4px; }
@supports selector(:has(*)) {
  .film-hit:focus-visible { outline: 0; }
  .film:has(> .film-hit:focus-visible) { outline: 2px solid var(--azure); outline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .film video, .film-mark, .film-len, .film-line { transition: none; }
  .film-hit:hover .film-mark { transform: none; }
}
/* a film that did not load says so quietly in its place, on a plain ground, with one way to try again */
.film-err { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 12px 20px; background: var(--sky-1); text-align: center; }
.film-err b { font: 700 18px/1.25 var(--display); color: var(--navy); }
.film-err span { font-size: 15.5px; line-height: 1.35; color: var(--text-2); }
.film-err .btn { margin-top: 10px; min-height: 44px; }
/* captions, where js/site.js turns them on: the site's own type on a navy ground */
.film video::cue { font: 600 16px/1.35 var(--ui); color: #fff; background: rgb(0 40 96 / .78); }

/* ---- a film scrolled away as it plays goes on in the corner of the window: the same film, lifted off the page by a soft
   shadow, over the page, under the rail, the header, its menus, the cookie card and the theatre. It keeps within the screen's
   safe edges, clear of the cookie card (--film-lift, or a smaller --film-w beside it) and of words held over a picture
   (--film-w), all set by js/site.js; it gives way to held words quickly (.snap). The footer keeps room below it for the
   corner (--film-room), so the end of the page can be scrolled clear of it. Its place keeps its room and shows its poster,
   quietly ---- */
.js .film.docked { position: fixed; z-index: 79; inset: auto max(18px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) auto; width: var(--film-w, min(360px, calc(100vw - 36px), 80vh)); height: auto; margin: 0 0 var(--film-lift, 0px); border: 0; box-shadow: 0 18px 48px rgb(0 40 96 / .22), 0 3px 10px rgb(0 40 96 / .1); transform-origin: 0 0; view-transition-name: none; }
.js .film.docked.set { transition: width .3s var(--ease), margin .3s var(--ease); }
.js .film.docked.set.snap { transition: width .15s var(--ease), margin .3s var(--ease); }
@media (max-width: 640px) {
  .js .film.docked { inset: auto 10px calc(10px + env(safe-area-inset-bottom, 0px)) auto; width: var(--film-w, min(240px, 64vw)); border-radius: 10px; }
}
/* on its way back to its place it passes over what stands near it, and under the rail, as the page does */
.film.film-moving { z-index: 79; transform-origin: 0 0; }
.film-held { cursor: pointer; }
.film-held img { opacity: .85; }
/* the close mark: a navy cross on a white circle, pressed over 44 px. With a mouse it shows while the pointer is over the film
   or the keyboard is in it (not merely after a click on it); on a touch screen it is always there */
.film-x { position: absolute; top: 0; right: 0; z-index: 5; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: opacity .18s var(--ease); }
.film-x i { position: relative; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgb(0 40 96 / .22); transition: box-shadow .18s var(--ease); }
.film-x i::before, .film-x i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 1px; background: var(--navy); transform: rotate(45deg); }
.film-x i::after { transform: rotate(-45deg); }
.film-x:hover i { box-shadow: 0 3px 12px rgb(0 40 96 / .32); }
.film-x:focus-visible { outline: 0; }
.film-x:focus-visible i { outline: 2px solid var(--azure); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .film-x { opacity: 0; }
  .film.docked:hover .film-x, .film-x:focus-visible { opacity: 1; }
  .film.docked:has(:focus-visible) .film-x { opacity: 1; }
}
@media (any-pointer: coarse) { .film.docked .film-x { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .js .film.docked.set, .film-x, .film-x i { transition: none; } }
/* in a high-contrast theme the close mark keeps its navy cross on the white circle it draws for itself */
@media (forced-colors: active) { .film-x i { forced-color-adjust: none; } }

/* the film, large, over the page. The page behind softens in the site's own light, and the film sits on it with a soft shadow.
   It never runs past the window either way, and keeps room for its close mark: above it, or beside it in a window wider than
   the film */
.theatre { width: min(1180px, calc(100vw - 32px), calc((100vh - 136px) * 16 / 9)); width: min(1180px, calc(100vw - 32px), calc((100dvh - 136px) * 16 / 9)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: var(--r-l); background: transparent; overflow: visible; transition: opacity .22s var(--ease), transform .26s var(--ease); }
.theatre::backdrop { background: rgb(243 249 255 / .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .22s var(--ease); }
@starting-style { .theatre[open] { opacity: 0; transform: scale(.985); } .theatre[open]::backdrop { opacity: 0; } }
.theatre.out { opacity: 0; transform: scale(.985); }
.theatre.out::backdrop { opacity: 0; }
.theatre .film { border: 0; box-shadow: 0 30px 80px rgb(0 40 96 / .2), 0 4px 14px rgb(0 40 96 / .08); }
/* closing, the film fades as it is: the mark and the line do not come back for it */
.theatre.out .film .film-hit > *, .theatre.out .film .film-line { opacity: 0; }
.theatre.out .film .film-seek { pointer-events: none; }
.theatre-x { position: absolute; right: -10px; bottom: calc(100% + 8px); width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; transition: background .18s var(--ease); }
.theatre-x::before, .theatre-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; margin: -1px 0 0 -10px; border-radius: 1px; background: var(--navy); transform: rotate(45deg); }
.theatre-x::after { transform: rotate(-45deg); }
.theatre-x:hover { background: var(--sky-4); }
/* in a high-contrast theme the theatre's cross takes the theme's text colour, so it shows on the theme's ground */
@media (forced-colors: active) { .theatre-x::before, .theatre-x::after { forced-color-adjust: none; background: CanvasText; } }
@media (min-aspect-ratio: 16 / 9) {
  .theatre { width: min(1180px, calc(100vw - 136px), calc((100vh - 32px) * 16 / 9)); width: min(1180px, calc(100vw - 136px), calc((100dvh - 32px) * 16 / 9)); }
  .theatre-x { right: auto; bottom: auto; left: calc(100% + 8px); top: -10px; }
}
@media (prefers-reduced-motion: reduce) { .theatre, .theatre::backdrop, .theatre-x { transition: none; } }
/* while the film is over it, the page behind holds still */
html:has(> body > dialog.theatre[open]) { overflow: hidden; }
/* a film that did not load over the page needs no name: the button that opened it carries it */
.theatre .film-err b { display: none; }
/* a button that plays a film over the page can do nothing without scripts, so it is not shown without them */
html:not(.js) [data-theatre] { display: none !important; }

/* ---- the foot of every page: where to go next, then the footer ---- */
.next { padding: clamp(48px, 5.6vw, 80px) 0; background: var(--navy); color: #fff; }
.next-in { display: grid; grid-template-columns: 1fr auto; gap: 30px 60px; align-items: end; }
.next .kick { color: #9cc6ff; }
.next h2 { color: #fff; max-width: 16em; }
.next h2 a { color: inherit; text-decoration: none; background: linear-gradient(var(--sky), var(--sky)) 0 100% / 100% 3px no-repeat; padding-bottom: 4px; }
.next h2 a:hover { background-size: 100% 6px; }
.next p { margin-top: 16px; font-size: 19px; color: #cfe0f5; max-width: 34em; }
.next-acts { display: flex; flex-wrap: wrap; align-items: center; align-content: end; gap: 12px; align-self: end; }
.next-acts .btn { flex: none; height: 50px; }
.next .btn.sec { background: transparent; color: #fff; border-color: rgb(255 255 255 / .4); box-shadow: none; }
.next .btn.sec:hover { border-color: #fff; color: #fff; }
@media (max-width: 800px) { .next-in { grid-template-columns: 1fr; } }

.foot { padding: 44px 0 calc(56px + var(--film-room, 0px)); border-top: 1px solid var(--line-2); background: #fff; }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: start; }
.foot img { height: 52px; width: auto; }
.foot p { margin: 0; max-width: 62em; font-size: 14.5px; line-height: 1.55; color: var(--text-3); }
.foot nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 28px; font: 600 14.5px/1.3 var(--display); }
.foot nav a { color: var(--navy); text-decoration: none; }
.foot nav a:hover { color: var(--azure-dd); }
/* an odd link at the end takes the row, so the two columns above it keep their widths */
.foot nav a:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* where a finger may press them, on a touch screen or in a narrow window, each link is as tall as a finger needs. The rows
   close up and the list gives back the room above and below, so its words keep their place beside the paragraph */
@media (any-pointer: coarse), (max-width: 860px) {
  .foot nav { gap: 0 28px; margin: -12.5px 0; }
  .foot nav a { display: flex; align-items: center; min-height: 44px; }
}
.foot .foot-c { max-width: none; }
.foot-c { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--text-3); }
.foot-rec { margin-left: 14px; padding: 0; border: 0; background: none; color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr; } }

/* ---- arrivals: a thing settles into place once, as it is first reached. Nothing moves while it is being read ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .rise.in { opacity: 1; transform: none; }
}

/* one page hands to the next. The header and the rail hold still; the page beneath moves the way the site is laid out:
   sideways between the pages of a set, up from below when going down into a page, down from above when going back up */
@view-transition { navigation: auto; }
.top { view-transition-name: top; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
@keyframes vt-to-l { to { transform: translateX(-44px); opacity: 0; } } @keyframes vt-from-r { from { transform: translateX(44px); opacity: 0; } }
@keyframes vt-to-r { to { transform: translateX(44px); opacity: 0; } } @keyframes vt-from-l { from { transform: translateX(-44px); opacity: 0; } }
@keyframes vt-to-up { to { transform: translateY(-30px); opacity: 0; } } @keyframes vt-from-low { from { transform: translateY(40px); opacity: 0; } }
@keyframes vt-to-low { to { transform: translateY(40px); opacity: 0; } } @keyframes vt-from-up { from { transform: translateY(-30px); opacity: 0; } }
html:active-view-transition-type(fwd)::view-transition-old(root) { animation: vt-to-l .2s cubic-bezier(.4, 0, 1, 1) both; }
html:active-view-transition-type(fwd)::view-transition-new(root) { animation: vt-from-r .34s cubic-bezier(.2, .7, .2, 1) .08s both; }
html:active-view-transition-type(back)::view-transition-old(root) { animation: vt-to-r .2s cubic-bezier(.4, 0, 1, 1) both; }
html:active-view-transition-type(back)::view-transition-new(root) { animation: vt-from-l .34s cubic-bezier(.2, .7, .2, 1) .08s both; }
html:active-view-transition-type(down)::view-transition-old(root) { animation: vt-to-up .2s cubic-bezier(.4, 0, 1, 1) both; }
html:active-view-transition-type(down)::view-transition-new(root) { animation: vt-from-low .36s cubic-bezier(.2, .7, .2, 1) .08s both; }
html:active-view-transition-type(up)::view-transition-old(root) { animation: vt-to-low .2s cubic-bezier(.4, 0, 1, 1) both; }
html:active-view-transition-type(up)::view-transition-new(root) { animation: vt-from-up .36s cubic-bezier(.2, .7, .2, 1) .08s both; }
::view-transition-group(rail-here) { animation-duration: .34s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* ---- without scripts a film cannot be played: its place, and the words that stand with it, give their room back ---- */
html:not(.js) .film:empty, html:not(.js) .whole:has(> .film:empty) { display: none; }

/* ---- the cookie: the word at the foot of every page (Cookies: on or off) and the small card it opens (js/page.js).
   The card sits under the header and its menus, over the page; its two answers carry equal weight ---- */
.foot-rec:hover { color: var(--azure-dd); }
.foot-rec:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
.rec { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 85; width: min(360px, calc(100vw - 32px)); padding: 16px 18px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-3); font: 400 15.5px/1.45 var(--ui); color: var(--text-2); animation: rec-in .3s var(--ease) both; }
.rec:focus { outline: none; }
.rec:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; }
.rec p { margin: 0 0 12px; }
.rec-q { font-weight: 600; color: var(--navy); }
.rec-what { font-size: 14.5px; color: var(--text-3); }
.rec-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rec-more { margin-right: auto; min-height: 44px; padding: 0 2px; border: 0; background: none; font: 600 15px/1.2 var(--ui); color: var(--azure-dd); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rec-more:hover { color: var(--navy); }
.rec-b { min-width: 76px; min-height: 44px; padding: 0 18px; border: 1px solid var(--edge); border-radius: var(--r); background: #fff; font: 700 15px/1 var(--display); color: var(--navy); box-shadow: var(--sh-1); transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease); }
.rec-b:hover { border-color: var(--azure); background: var(--sky-2); color: var(--azure-dd); }
.rec-b:active { transform: translateY(1px); }
@keyframes rec-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .rec { animation: none; } .rec-b:active { transform: none; } }
/* while the card is up, a control brought into view by the keyboard stops above it, not under it */
html:has(.rec) { scroll-padding-bottom: 190px; }
/* where a finger may press it, the word at the foot of the page is as tall as a finger needs */
@media (any-pointer: coarse) { .foot-rec { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin-left: 10px; vertical-align: middle; } }
/* ---- the open menu on a narrow window: with a list open inside it, every entry keeps its full height and the menu scrolls,
   so no entry, or the keyboard's ring around it, runs into the next ---- */
@media (max-width: 1040px) { .nav > a, .nav > .nav-btn, .nav > .panel { flex-shrink: 0; } .nav { scroll-padding: 16px 0; } }

/* the narrowest phones: what it holds on a line of its own, the two answers side by side under it */
@media (max-width: 379px) { .rec-more { flex: 1 0 100%; text-align: left; } .rec-b { flex: 1; } }
@media print { .rec { display: none; } }
