@import url('fonts.css'); /* self-hosted Inter (cw/fonts.css) in place of the system's Google Fonts line */
/* Cloudwalker Films — the films' stage stylesheet (base.css), re-pointed at tokens.css, and the interface on the premium material (v5: hairlines, soft depth, the call-to-action tones). A tone is a theme: set data-theme on any element. */
[hidden]:not([hidden="until-found"]) { display: none !important } /* hidden means hidden, whatever a component's own display */
.cwf-doc { margin: 0; padding: 18px; background: var(--ground); color: var(--fg); font-family: var(--font-sans); font-size: 14px; line-height: 1.45 }
.cwf-cap { font: 500 12px/1.4 var(--font-sans); letter-spacing: .02em; color: var(--fg-2); margin: 8px 0 0 }
.cwf-h { font: 500 13px/1.3 var(--font-display); letter-spacing: .08em; color: var(--fg); margin: 18px 0 10px; display: flex; gap: 10px; align-items: center }
.cwf-h::before { content: ''; width: 22px; height: 2px; background: var(--accent) }
.cwf-h:first-child { margin-top: 0 }
.cwf-grid { display: grid; gap: 14px }
.cwf-host { border-radius: 6px; box-shadow: 0 0 0 1px var(--rule) }
.cwf-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: var(--ground); color: var(--fg); font-family: var(--font-sans); font-weight: 400; font-kerning: normal; font-synthesis: none }
.cwf-stage .cw { position: absolute; inset: 0; overflow: hidden; color: var(--fg) }
.cwf-stage .cw-g { position: absolute; inset: 0; background: var(--ground) }
.cwf-stage .lay { position: absolute; inset: 0 }
.cwf-stage .art { position: absolute; left: 0; top: 0; overflow: visible }
.cwf-stage .words { position: absolute; margin: 0; display: flex; flex-direction: column; gap: 24px }
.cwf-stage .words > * { margin: 0 }
.cwf-stage .nm, .cwf-stage .big { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.02 }
.cwf-stage .big { letter-spacing: -0.03em; line-height: 0.92; font-variant-numeric: tabular-nums }
.cwf-stage .eb { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: 0.08em; color: var(--eyebrow); display: flex; align-items: center; gap: var(--eyebrow-gap) }
.cwf-stage .eb i { display: block; width: var(--eyebrow-dash); height: 2px; background: var(--accent); transform-origin: 0 50% }
.cwf-stage .tg { font-family: var(--font-display); font-size: 44px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.05; align-self: flex-start; justify-self: start; position: relative; padding: 12px var(--tag-pad-x) 14px; color: var(--on-accent) }
.cwf-stage .tg > i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50% }
.cwf-stage .tg > span { position: relative; display: block }
.cwf-stage .ds { font-size: 34px; line-height: 1.4; color: var(--fg-2); font-weight: 400 }
.cwf-stage .pfs { display: flex; gap: var(--proof-gap); padding-top: 30px; border-top: 1px solid var(--rule) }
.cwf-stage .pf { display: flex; flex-direction: column; gap: 12px; min-width: 250px }
.cwf-stage .pf .pl { max-width: 330px; font-size: 21px; letter-spacing: 0; line-height: 1.3 }
.cwf-stage .pn { font-family: var(--font-display); font-size: 88px; font-weight: 500; letter-spacing: -0.025em; line-height: 0.95; font-variant-numeric: tabular-nums; white-space: nowrap }
.cwf-stage .pl, .cwf-stage .mono { font-family: var(--font-sans); font-size: 18px; font-weight: 500; letter-spacing: 0.01em; line-height: 1.45; color: var(--fg-2) }
.cwf-stage .rw { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.14em 0.04em 0.3em; margin: -0.14em -0.04em -0.3em }
.cwf-stage .ri { display: inline-block }
.cwf-stage .hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--font-sans); font-size: 17px; font-weight: 500; letter-spacing: 0.02em; color: var(--fg) }
.cwf-stage .hud .k { position: absolute; width: var(--corner-tick); height: var(--corner-tick); border: 0 solid currentColor; opacity: var(--opacity-tick) }
.cwf-stage .hud .bx { position: absolute; width: var(--beat-square); height: var(--beat-square); border: 1.5px solid currentColor; box-sizing: border-box }
.cwf-stage .amb { overflow: hidden }
.cwf-stage .amb-g { position: absolute; left: -120px; top: -120px; width: 2160px; height: 1320px; background-image: radial-gradient(circle, var(--fg) 1.3px, transparent 1.8px); background-size: var(--ambient-grid) var(--ambient-grid); opacity: var(--opacity-grid) }
.cwf-stage .amb-l { position: absolute; width: 1500px; height: 1500px; margin: -750px 0 0 -750px; border-radius: 50%; background: radial-gradient(closest-side, var(--lit), transparent) }
.cwf-stage .vig { position: absolute; inset: 0; background: radial-gradient(130% 100% at 50% 42%, transparent 52%, var(--shade) 100%) }
.cwf-stage .gl { position: absolute; margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -0.005em; color: var(--fg); white-space: nowrap }
.cwf-stage .gs { position: absolute; margin: 0; font-size: 20px; font-weight: 500; color: var(--fg-2); white-space: nowrap }
.gx-chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px 7px 9px; border: var(--stroke-chip) solid var(--ink); border-radius: var(--radius-pill); background: var(--white); color: var(--ink); font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1.1; white-space: nowrap; box-shadow: var(--shadow-hard-m) }
.gx-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 10px; box-sizing: border-box; border: var(--stroke-pill) solid var(--ink); border-radius: var(--radius-pill); background: var(--cyan); color: var(--ink); font-family: var(--font-display); font-size: 17px; font-weight: 500; box-shadow: var(--shadow-hard-s); white-space: nowrap }
.gx-card { position: relative; background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--radius-card); box-shadow: var(--shadow-hard-l); font-family: var(--font-sans) }
.gx-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 2px solid var(--ink); border-radius: var(--radius-row); background: var(--white); font: 500 20px/1.2 var(--font-sans); color: var(--ink) }
.gx-code { background: var(--ink); border-radius: var(--radius-panel); padding: 20px 26px; font-family: var(--font-mono); font-size: 19px; line-height: 1.62; font-weight: 400; white-space: pre; color: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow-hard-l) }
.gx-kw { color: var(--cyan) } .gx-str { color: var(--amber) } .gx-cm { color: var(--grey-500) }

/* GSAP recipes (CWFilm.GX) — the structure each text recipe builds; colours from tokens */
.gx-w-mask, .gx-c-mask { padding: 0.14em 0.04em 0.3em; margin: -0.14em -0.04em -0.3em }
.gx-mark { position: relative; isolation: isolate; white-space: nowrap }
.gx-mark > i { position: absolute; left: -0.14em; right: -0.14em; top: 0.02em; bottom: -0.06em; z-index: -1; background: var(--accent); transform: scaleX(0); transform-origin: 0 50% }
.gx-swap { display: inline-block; position: relative; overflow: clip; vertical-align: top; white-space: nowrap; padding: 0.14em 0.04em 0.3em; margin: -0.14em -0.04em -0.3em }
.gx-swap > span { display: inline-block }
.gx-swap > span + span { position: absolute; left: 0.04em; top: 0.14em }
.gx-strike { position: relative; display: inline-block; white-space: nowrap }
.gx-odo { display: inline-flex; align-items: flex-start; font-variant-numeric: tabular-nums }
.gx-col { display: inline-block; height: 1.05em; overflow: clip }
.gx-stack { display: block }
.gx-stack > span { display: block; height: 1.05em; line-height: 1.05em }
.gx-tile { position: absolute; display: grid; place-items: center; background: var(--white); border: 4px solid var(--ink); border-radius: var(--radius-piece); box-shadow: 6px 6px 0 var(--ink) }

/* Standards for new work: the contrast-safe tones. Set data-contrast="aa" on the page or any ancestor of a stage; the films' previews stay on their measured tones. */
[data-contrast="aa"], [data-contrast="aa"] [data-theme] { --eyebrow: var(--eyebrow-aa); --fg-2: var(--fg-2-aa); --hi-2: var(--hi-2-aa); --ok: var(--ok-aa) }

/* ================= Interface — the same language for websites and product UI (guide: Interface) ================= */
/* Fluid type: the generated .ui-* classes grow between 360 and 1440px of width — the nearest container's (cqi), or the viewport's where none is set; rem keeps the reader's zoom. */
.ui-hero { font-size: clamp(2.25rem, 1.333rem + 4.074cqi, 5rem) }
.ui-h1 { font-size: clamp(2.25rem, 1.833rem + 1.852cqi, 3.5rem) }
.ui-h2 { font-size: clamp(1.75rem, 1.5rem + 1.111cqi, 2.5rem) }
.ui-h3 { font-size: clamp(1.375rem, 1.25rem + 0.556cqi, 1.75rem) }
.ui-figure { font-size: clamp(2.5rem, 2rem + 2.222cqi, 4rem); font-variant-numeric: tabular-nums }
.ui-marker { font-size: clamp(1.125rem, 1.042rem + 0.37cqi, 1.375rem) }
.ui-body-lg { font-size: clamp(1.125rem, 1.083rem + 0.185cqi, 1.25rem) }
.ui-hero, .ui-h1, .ui-h2, .ui-h3 { max-width: var(--measure-heading, 14em); text-wrap: balance }
/* at 320 px a long word in a display heading ("infrastructure,") is wider than the column: hyphenate there rather than scroll sideways (WCAG reflow) */
@container (max-width: 299px) { .ui-hero, .ui-h1, .ui-h2 { hyphens: auto; overflow-wrap: anywhere }
  .cw-rise .cw-rise__w, .cw-rise .cw-rise__w > span, .cw-rise.is-in .cw-rise__w > span, .is-in .cw-rise .cw-rise__w > span { display: inline; overflow: visible; transform: none; animation: none } }
.ui-body, .ui-body-lg { max-width: var(--measure-body, 36em); text-wrap: pretty }

/* Layout: the page margin is the films' 150px frame margin as a share of 1920. Every section is a container; the grid inside goes 4 → 8 → 12 columns at 520 and 840px of the section's inner width. Children span with --span (phone), --span-md, --span-lg and start with --start-md, --start-lg. */
.cw-page { padding-inline: clamp(var(--page-margin-min, 16px), 7.8125cqi, var(--page-margin-max, 150px)) }
.cw-container { width: 100%; max-width: var(--container-max, 1280px); margin-inline: auto }
.cw-cols { --gutter: var(--gutter-mobile, 16px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5, 24px) var(--gutter) }
.cw-cols > * { min-width: 0; grid-column: span var(--span, 4) }
@container (min-width: 520px) { .cw-cols { grid-template-columns: repeat(8, minmax(0, 1fr)) } .cw-cols > * { grid-column: var(--start-md, auto) / span var(--span-md, 8) } }
@container (min-width: 840px) { .cw-cols { --gutter: var(--gutter-desktop, 24px); grid-template-columns: repeat(12, minmax(0, 1fr)) } .cw-cols > * { grid-column: var(--start-lg, auto) / span var(--span-lg, 12) } }
.cw-section { container-type: inline-size; background: var(--ground); color: var(--fg); padding-block: clamp(var(--space-8, 64px), 2.667rem + 5.926cqi, var(--space-10, 128px)) }

/* The text column, interface size: the eyebrow after its hairline dash; the marker is a chip in the selected tint. */
.cw-eyebrow { display: inline-flex; align-items: center; gap: var(--space-3, 12px); color: var(--eyebrow); font: 600 12px/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase }
.cw-eyebrow::before { content: ''; flex: none; width: 24px; height: var(--stroke-line, 1px); background: var(--accent) }
.cw-marker { display: inline-block; background: var(--selected); color: var(--fg); border-radius: var(--radius-chip, 6px); padding: .2em .5em .26em }

/* Button: a calm, precise control — a solid face or a 1px line, radius-control corners, an Inter label. State shows in the face and the line, never in a hard shadow. */
.cw-btn { --b-face: var(--surface); --b-text: var(--fg); --b-line: var(--line-strong); --b-hover: var(--surface-2); --b-line-hover: var(--fg-2); --b-sh: var(--shadow-1); --b-h: var(--control-md, 44px); --b-px: var(--space-5, 24px);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2, 8px);
  box-sizing: border-box; min-height: var(--b-h); min-width: var(--b-h); margin: 0; padding: 0 var(--b-px);
  border: var(--stroke-line, 1px) solid var(--b-line); border-radius: var(--radius-control, 10px); background: var(--b-face); color: var(--b-text);
  font-family: var(--font-sans); font-weight: 600; font-size: 15px; line-height: 1; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: var(--b-sh); transform: translateY(0);
  transition-property: transform, box-shadow, background-color, border-color, color; transition-duration: var(--duration-fast, .2143s);
  transition-timing-function: var(--ease-soft, cubic-bezier(.2, 0, 0, 1)) }
.cw-btn > svg { flex: none; display: block }
.cw-btn--sm { --b-h: var(--control-sm, 36px); --b-px: var(--space-4, 16px); font-size: 14px }
.cw-btn--lg { --b-h: var(--control-lg, 56px); --b-px: var(--space-6, 32px); font-size: 16px }
.cw-btn--primary { --b-face: var(--cta); --b-text: var(--on-cta); --b-line: var(--cta); --b-hover: var(--cta-hover); --b-line-hover: var(--cta-hover) }
.cw-btn--destructive { --b-face: var(--coral); --b-text: var(--ink); --b-line: var(--coral); --b-hover: color-mix(in srgb, var(--coral) 86%, var(--ink)); --b-line-hover: var(--b-hover) }
.cw-btn--outline { --b-face: transparent; --b-text: var(--fg); --b-line: var(--line-strong); --b-hover: var(--hover); --b-sh: none }
.cw-btn--text { --b-face: transparent; --b-text: var(--fg); --b-line: transparent; --b-hover: transparent; --b-sh: none; --b-px: var(--space-1, 4px); border-radius: var(--radius-chip, 6px) }
.cw-btn--text::after { content: ''; position: absolute; left: var(--space-1, 4px); right: var(--space-1, 4px); bottom: var(--space-2, 8px); height: var(--stroke-line, 1px); background: currentColor; opacity: .35; transform-origin: 0 50%;
  transition: opacity var(--duration-normal, .3214s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)), background-color var(--duration-normal, .3214s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)) }
.cw-btn--icon { --b-px: 0px; width: var(--b-h) }
/* on indigo the ground's text is white, so a secondary button's white face keeps night text and a white line */
[data-theme="indigo"] .cw-btn:not(.cw-btn--primary, .cw-btn--destructive, .cw-btn--outline, .cw-btn--text) { --b-text: var(--night); --b-line: var(--white); --b-line-hover: var(--grey-200) }
/* hover: the face deepens a step and the line firms (only where hovering exists; .is-hover shows it in documentation) */
@media (hover: hover) {
  .cw-btn:where(:not(.cw-btn--text)):not(:disabled, [aria-disabled="true"], [aria-busy="true"]):hover { background: var(--b-hover); border-color: var(--b-line-hover) }
  .cw-btn--text:not(:disabled, [aria-disabled="true"]):hover::after { opacity: 1; background: var(--accent) }
}
.cw-btn.is-hover:where(:not(.cw-btn--text)) { background: var(--b-hover); border-color: var(--b-line-hover) }
.cw-btn--text.is-hover::after { opacity: 1; background: var(--accent) }
/* pressed: settles 1px and loses its lift */
.cw-btn:where(:not(.cw-btn--text)):not(:disabled, [aria-disabled="true"], [aria-busy="true"]):active,
.cw-btn.is-active:where(:not(.cw-btn--text)) { transform: translateY(1px); box-shadow: none;
  transition-duration: var(--duration-instant, .1071s); transition-timing-function: var(--ease-soft, cubic-bezier(.2, 0, 0, 1)) }
.cw-btn--text:not(:disabled, [aria-disabled="true"]):active, .cw-btn--text.is-active { transform: translateY(1px); transition-duration: var(--duration-instant, .1071s) }
/* focus: a 2px ring in the ground's focus colour, 2px outside */
.cw-btn:focus { outline: none }
.cw-btn:focus-visible, .cw-btn.is-focus { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: var(--focus-offset, 2px) }
/* disabled: no lift, quiet colours */
.cw-btn:disabled, .cw-btn[aria-disabled="true"] { --b-face: var(--surface-2); --b-text: var(--muted); --b-line: var(--line); box-shadow: none; transform: none; cursor: not-allowed }
.cw-btn--text:disabled, .cw-btn--text[aria-disabled="true"] { --b-face: transparent; --b-line: transparent }
.cw-btn--text:disabled::after, .cw-btn--text[aria-disabled="true"]::after { background: var(--line-strong); opacity: 1 }
/* loading: the label stays, three beat dots lit one per beat, like the HUD's squares */
.cw-btn[aria-busy="true"] { cursor: progress }
.cw-btn__dots { display: inline-flex; align-items: center; gap: 4px }
.cw-btn__dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .3; animation: cw-btn-beat calc(var(--beat, .4286s) * 3) steps(1, end) infinite }
.cw-btn__dots i:nth-child(2) { animation-delay: var(--beat, .4286s) }
.cw-btn__dots i:nth-child(3) { animation-delay: calc(var(--beat, .4286s) * 2) }
@keyframes cw-btn-beat { 0% { opacity: 1 } 33.333% { opacity: .3 } }
/* success: the ok mark settles in — a quarter turn of scale, no spring */
.cw-btn__tick { display: inline-flex; animation: cw-btn-pop var(--duration-normal, .3214s) var(--ease-arrive, cubic-bezier(.16, 1, .3, 1)) both }
@keyframes cw-btn-pop { from { transform: scale(.8); opacity: 0 } to { transform: scale(1); opacity: 1 } }

/* ---------- Forms: fields are quiet slots — a 1px control line, radius-control corners; the line firms on hover and a ring marks focus ---------- */
.cw-field { display: grid; gap: var(--space-2, 8px); max-width: var(--measure-body, 36em); min-width: 0 }
.cw-label { font: 500 14px/1.4 var(--font-sans); letter-spacing: .005em; color: var(--fg) }
.cw-label small { font: inherit; font-weight: 400; color: var(--fg-2) }
.cw-help { margin: 0; font: 500 12px/1.45 var(--font-sans); letter-spacing: .01em; color: var(--fg-2) }
.cw-control { position: relative }
.cw-input { box-sizing: border-box; width: 100%; min-height: var(--control-md, 44px); margin: 0; padding: var(--space-2, 8px) var(--space-4, 16px);
  border: var(--stroke-line, 1px) solid var(--line-strong); border-radius: var(--radius-control, 10px); background: var(--surface); color: var(--fg);
  font: 400 16px/1.5 var(--font-sans); caret-color: var(--fg); appearance: none; -webkit-appearance: none;
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--duration-fast, .2143s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)), border-color var(--duration-fast, .2143s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)) }
.cw-input::placeholder { color: var(--muted); opacity: 1 }
@media (hover: hover) { .cw-input:hover:not(:disabled, [readonly], :focus) { border-color: var(--fg-2) } }
.cw-input.is-hover { border-color: var(--fg-2) }
.cw-input:focus { outline: none }
.cw-input:focus-visible, .cw-input.is-focus { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: var(--focus-offset, 2px); border-color: var(--fg-2) }
.cw-input[aria-invalid="true"] { border-color: var(--coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 18%, transparent) }
.cw-input.is-valid, .cw-input[aria-invalid="true"] { padding-right: calc(var(--space-3, 12px) * 2 + 24px) }
.cw-control__mark { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; pointer-events: none }
.cw-input:disabled { background: var(--surface-2); color: var(--muted); border-color: var(--line); box-shadow: none; cursor: not-allowed }
.cw-input[readonly] { background: var(--surface-2); box-shadow: none }
textarea.cw-input { min-height: 128px; resize: vertical; line-height: 1.6 }
.cw-input--lg { min-height: var(--control-lg, 56px); font-size: 18px; padding-inline: var(--space-5, 24px) }
.cw-select { position: relative }
.cw-select > select.cw-input { padding-right: calc(var(--space-3, 12px) * 2 + 24px); cursor: pointer }
.cw-select::after { content: ''; position: absolute; right: calc(var(--space-5, 24px) - 4px); top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--fg-2); border-bottom: 1.5px solid var(--fg-2); border-radius: 1px; transform: translateY(-70%) rotate(45deg); pointer-events: none }
.cw-select:has(select:disabled)::after { border-color: var(--line-strong) }
.cw-search { position: relative }
.cw-search > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none }
.cw-input--search { padding-left: calc(var(--space-3, 12px) * 2 + 24px); padding-right: calc(var(--space-3, 12px) * 2 + 24px) }
.cw-input--search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none }
.cw-search__clear { position: absolute; right: 4px; top: 50%; width: 36px; height: 36px; margin: 0; padding: 0; transform: translateY(-50%); border: 0; border-radius: var(--radius-control, 10px); background: transparent; cursor: pointer }
.cw-search__clear::before, .cw-search__clear::after { content: ''; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; border-radius: var(--radius-pill, 999px); background: var(--fg-2); transform: translate(-50%, -50%) rotate(45deg) }
.cw-search__clear::after { transform: translate(-50%, -50%) rotate(-45deg) }
@media (hover: hover) { .cw-search__clear:hover { background: var(--hover) } }
.cw-search__clear:focus { outline: none }
.cw-search__clear:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: 0 }
.cw-msg { display: flex; align-items: flex-start; gap: var(--space-2, 8px); margin: 0; font: 500 14px/1.45 var(--font-sans); color: var(--fg) }
.cw-msg > svg { flex: none; margin-top: calc((1lh - 24px) / 2) }
.cw-fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-1, 4px); min-width: 0 }
.cw-fieldset > legend { padding: 0; margin-bottom: var(--space-2, 8px); font: 500 14px/1.4 var(--font-sans); color: var(--fg) }
/* checkbox and radio: a 1px box that fills with the call-to-action face; the tick draws on, the dot settles in */
.cw-check { position: relative; display: inline-flex; align-items: flex-start; --box: 24px; gap: var(--space-3, 12px); box-sizing: border-box; min-height: var(--control-md, 44px); padding: calc((var(--control-md, 44px) - var(--box)) / 2) 0; font: 400 16px/1.5 var(--font-sans); color: var(--fg); cursor: pointer }
.cw-check > input { position: absolute; left: 0; top: calc((var(--control-md, 44px) - var(--box)) / 2); width: var(--box); height: var(--box); margin: 0; opacity: 0; cursor: inherit }
.cw-check__box { position: relative; flex: none; box-sizing: border-box; width: var(--box); height: var(--box); border: var(--stroke-line, 1px) solid var(--line-strong); border-radius: var(--radius-chip, 6px); background: var(--surface); box-shadow: var(--shadow-1);
  transition: transform var(--duration-instant, .1071s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)), border-color var(--duration-fast, .2143s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)), background-color var(--duration-fast, .2143s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)) }
.cw-check--radio .cw-check__box { border-radius: 50% }
.cw-check__box svg { position: absolute; inset: calc(-1 * var(--stroke-line, 1px)); width: var(--box); height: var(--box); overflow: visible }
.cw-check__tick, .cw-check__minus { fill: none; stroke: var(--on-cta); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round }
.cw-check__tick { stroke-dasharray: 17; stroke-dashoffset: 17; transition: stroke-dashoffset var(--duration-fast, .2143s) var(--ease-draw, ease-in-out) }
.cw-check__minus { opacity: 0 }
.cw-check__dot { fill: var(--on-cta); transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform var(--duration-fast, .2143s) var(--ease-arrive, cubic-bezier(.16, 1, .3, 1)) }
.cw-check > input:checked + .cw-check__box, .cw-check > input:indeterminate + .cw-check__box { background: var(--cta); border-color: var(--cta) }
.cw-check > input:checked + .cw-check__box .cw-check__tick { stroke-dashoffset: 0 }
.cw-check > input:indeterminate + .cw-check__box .cw-check__tick { opacity: 0 }
.cw-check > input:indeterminate + .cw-check__box .cw-check__minus { opacity: 1 }
.cw-check > input:checked + .cw-check__box .cw-check__dot { transform: scale(1) }
@media (hover: hover) { .cw-check:not(:has(> input:disabled)):hover .cw-check__box { border-color: var(--fg-2) } .cw-check:not(:has(> input:disabled)):hover > input:checked + .cw-check__box { border-color: var(--cta-hover); background: var(--cta-hover) } }
.cw-check:not(:has(> input:disabled)):active .cw-check__box { transform: scale(.94) }
.cw-check > input:focus-visible + .cw-check__box, .cw-check.is-focus .cw-check__box { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: var(--focus-offset, 2px) }
.cw-check.is-invalid .cw-check__box { border-color: var(--coral) }
.cw-check:has(> input:disabled) { color: var(--fg-2); cursor: not-allowed }
.cw-check > input:disabled + .cw-check__box { background: var(--surface-2); border-color: var(--line); box-shadow: none }
.cw-check > input:disabled + .cw-check__box :is(.cw-check__tick, .cw-check__minus) { stroke: var(--muted) }
.cw-check > input:disabled + .cw-check__box .cw-check__dot { fill: var(--muted) }
/* switch: a quiet track that fills with the call-to-action face; the knob glides across on ease-arrive */
.cw-switch { position: relative; display: inline-flex; align-items: center; gap: var(--space-3, 12px); min-height: var(--control-md, 44px); font: 400 16px/1.5 var(--font-sans); color: var(--fg); cursor: pointer }
.cw-switch > input { position: absolute; left: 0; top: 50%; width: 52px; height: 32px; margin: -16px 0 0; opacity: 0; cursor: inherit }
.cw-switch__track { position: relative; flex: none; box-sizing: border-box; width: 52px; height: 32px; border: var(--stroke-line, 1px) solid var(--line-strong); border-radius: var(--radius-pill, 999px); background: var(--surface-2); transition: background-color var(--duration-fast, .2143s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)), border-color var(--duration-fast, .2143s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)) }
.cw-switch__knob { position: absolute; top: calc((32px - 2 * var(--stroke-line, 1px) - 24px) / 2); left: calc((32px - 2 * var(--stroke-line, 1px) - 24px) / 2); box-sizing: border-box; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-2); transition: transform var(--duration-normal, .3214s) var(--ease-arrive, cubic-bezier(.16, 1, .3, 1)), background-color var(--duration-fast, .2143s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)) }
.cw-switch > input:checked + .cw-switch__track { background: var(--cta); border-color: var(--cta) }
.cw-switch > input:checked + .cw-switch__track .cw-switch__knob { transform: translateX(calc(52px - 32px)); background: var(--on-cta) }
.cw-switch > input:focus-visible + .cw-switch__track, .cw-switch.is-focus .cw-switch__track { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: var(--focus-offset, 2px) }
.cw-switch:has(> input:disabled) { color: var(--fg-2); cursor: not-allowed }
.cw-switch > input:disabled + .cw-switch__track { background: var(--surface-2); border-color: var(--line); box-shadow: none }
.cw-switch > input:disabled + .cw-switch__track .cw-switch__knob { box-shadow: none; background: var(--line) }
/* slider: a thin track filled to --p in the call-to-action face, a white thumb on a soft lift */
.cw-range { --p: 50%; display: block; width: 100%; height: var(--control-md, 44px); margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none }
.cw-range::-webkit-slider-runnable-track { height: 4px; border: 0; border-radius: var(--radius-pill, 999px); background: linear-gradient(to right, var(--cta) var(--p), var(--line-strong) var(--p)) }
.cw-range::-moz-range-track { height: 4px; border: 0; border-radius: var(--radius-pill, 999px); background: var(--line-strong) }
.cw-range::-moz-range-progress { height: 4px; border-radius: var(--radius-pill, 999px); background: var(--cta) }
.cw-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: calc((4px - 22px) / 2); box-sizing: border-box; border: var(--stroke-line, 1px) solid var(--line-strong); border-radius: 50%; background: var(--white); box-shadow: var(--shadow-2); transition: transform var(--duration-instant, .1071s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)) }
.cw-range::-moz-range-thumb { width: 22px; height: 22px; box-sizing: border-box; border: var(--stroke-line, 1px) solid var(--line-strong); border-radius: 50%; background: var(--white); box-shadow: var(--shadow-2) }
.cw-range:active::-webkit-slider-thumb { transform: scale(1.08) }
.cw-range:active::-moz-range-thumb { transform: scale(1.08) }
.cw-range:focus { outline: none }
.cw-range:focus-visible::-webkit-slider-thumb { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: var(--focus-offset, 2px) }
.cw-range:focus-visible::-moz-range-thumb { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: var(--focus-offset, 2px) }
.cw-range-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3, 12px) }
.cw-value { font: 500 14px/1.4 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--fg) }

/* ---------- Cards: quiet surfaces — a 1px line, radius-surface corners, the ground's surface tone; no hard shadow ---------- */
/* On cyan and indigo grounds a card, menu, alert, toast, dialog or table keeps paper's tones (zero specificity, so data-theme on the surface itself still wins). On ink, night, paper and white it takes the ground's own surface tones. */
:where([data-theme="cyan"], [data-theme="indigo"]) :where(.cw-card, .cw-pop, .cw-alert, .cw-toast, .cw-dialog, .cw-table-frame) { --fg: var(--night); --fg-2: var(--ink-2); --muted: var(--grey-800); --eyebrow: var(--cyan-deep); --accent: var(--cyan); --on-accent: var(--ink);
  --cta: var(--night); --on-cta: var(--white); --cta-hover: var(--night-2); --link: var(--cyan-deep); --rule: var(--grey-300); --line: var(--grey-200); --line-strong: var(--grey-750);
  --surface: var(--white); --surface-2: var(--grey-050); --hover: var(--wash); --selected: var(--cyan-tint); --indicator: var(--cyan-deep); --focus: var(--night) }
.cw-card-grid { display: grid; gap: var(--space-5, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr)); align-items: start }
.cw-card { position: relative; display: flex; flex-direction: column; gap: var(--space-4, 16px); box-sizing: border-box; min-width: 0; padding: var(--space-6, 32px);
  border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-surface, 16px); background: var(--surface); color: var(--fg); box-shadow: none; text-decoration: none }
.cw-card :is(p, ul, blockquote, h2, h3, h4) { margin: 0 }
.cw-card p { color: var(--fg-2) }
.cw-card .cw-eyebrow { color: var(--eyebrow) }
.cw-card__head { display: flex; align-items: center; gap: var(--space-3, 12px) }
.cw-card__tile { flex: none; display: grid; place-items: center; width: 48px; height: 48px; box-sizing: border-box; border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-control, 10px); background: var(--surface-2); color: var(--fg) }
.cw-card__media { display: grid; place-items: center; aspect-ratio: 16 / 9; box-sizing: border-box; border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-control, 10px); background: var(--surface-2); overflow: hidden }
.cw-card__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3, 12px) }
.cw-card__rule { height: 0; border-top: var(--stroke-line, 1px) solid var(--line) }
@media (max-width: 639px) { .cw-card { padding: var(--space-5, 24px) } }
/* interactive: the whole card is the link; it rises 2px onto a soft shadow, its line firms, and its arrow makes the icon's right gesture */
.cw-card--link { cursor: pointer; transition: transform var(--duration-normal, .3214s) var(--ease-arrive, cubic-bezier(.16, 1, .3, 1)), box-shadow var(--duration-normal, .3214s) var(--ease-arrive, cubic-bezier(.16, 1, .3, 1)), border-color var(--duration-fast, .2143s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)) }
.cw-card__go > svg { display: block; transition: transform var(--duration-normal, .3214s) var(--ease-arrive, cubic-bezier(.16, 1, .3, 1)) }
@media (hover: hover) {
  .cw-card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--line) 50%, var(--line-strong)) }
  .cw-card--link:hover .cw-card__go > svg { transform: translateX(3px) }
}
.cw-card--link.is-hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--line) 50%, var(--line-strong)) }
.cw-card--link.is-hover .cw-card__go > svg { transform: translateX(3px) }
.cw-card--link:active, .cw-card--link.is-active { transform: translateY(0); box-shadow: var(--shadow-1); transition-duration: var(--duration-instant, .1071s); transition-timing-function: var(--ease-soft, cubic-bezier(.2, 0, 0, 1)) }
.cw-card--link:focus { outline: none }
.cw-card--link:focus-visible, .cw-card--link.is-focus { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: 3px }
/* featured: the one lifted surface on a page — the accent line and the tinted cloud shadow */
.cw-card--featured { border-color: var(--accent); box-shadow: var(--shadow-cloud) }
[data-theme="cyan"] .cw-card--featured { border-color: var(--night) } /* the accent is the ground itself on cyan */
.cw-card > .cw-marker, .cw-card > .cw-pill { align-self: flex-start }
.cw-card > .cw-pill { max-width: 100%; height: auto; min-height: var(--pill-height, 30px); padding-block: var(--space-1, 4px); white-space: normal; line-height: 1.2 }
.cw-card__flag { position: absolute; top: calc(var(--pill-height, 30px) / -2); left: var(--space-5, 24px) }
.cw-pill { display: inline-flex; align-items: center; gap: var(--space-2, 8px); box-sizing: border-box; height: var(--pill-height, 30px); padding: 0 var(--space-3, 12px); border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-chip, 6px); background: var(--surface-2); color: var(--fg); font: 500 13px/1 var(--font-sans); letter-spacing: .01em; white-space: nowrap; box-shadow: none }
.cw-pill--accent { background: var(--cta); border-color: var(--cta); color: var(--on-cta) }
.cw-price { display: flex; align-items: baseline; gap: var(--space-2, 8px); color: var(--fg) }
.cw-price small { font: 500 14px/1.4 var(--font-sans); color: var(--fg-2) }
.cw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3, 12px) }
.cw-list > li { display: flex; align-items: flex-start; gap: var(--space-2, 8px); font: 400 16px/1.5 var(--font-sans); color: var(--fg-2) }
.cw-list > li > svg { flex: none; margin-top: calc((1lh - 24px) / 2) }
.cw-quote { font: 400 20px/1.5 var(--font-sans); color: var(--fg) }
.cw-person { display: flex; align-items: center; gap: var(--space-3, 12px); font: 500 14px/1.4 var(--font-sans); color: var(--fg-2) }
.cw-person b { display: block; font: 600 15px/1.3 var(--font-sans); color: var(--fg) }
.cw-avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; box-sizing: border-box; border: 0; border-radius: 50%; background: var(--selected); font: 600 15px/1 var(--font-sans); color: var(--fg) }
.cw-delta { display: inline-flex; align-items: center; gap: var(--space-2, 8px); font: 500 14px/1.4 var(--font-sans); color: var(--fg-2) }
.cw-row { display: flex; align-items: center; gap: var(--space-3, 12px); box-sizing: border-box; min-height: 48px; padding: 8px 12px; border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-control, 10px); background: var(--surface); font: 500 14px/1.4 var(--font-sans); color: var(--fg) }
.cw-row > span { flex: 1; min-width: 0 }
.cw-row--ok { background: color-mix(in srgb, var(--emerald) 10%, var(--surface)) } .cw-row--warn { background: color-mix(in srgb, var(--amber) 14%, var(--surface)) } .cw-row--err { background: color-mix(in srgb, var(--coral) 10%, var(--surface)) }
.cw-track { height: 8px; box-sizing: border-box; border: 0; border-radius: var(--radius-pill, 999px); background: var(--line); overflow: hidden }
.cw-track > i { display: block; height: 100%; background: var(--indigo); border-radius: inherit }
/* a card that splits into media and text once it is wide enough (container query) */
.cw-card--split { container-type: inline-size }
.cw-card__split { display: grid; gap: var(--space-5, 24px) }
@container (min-width: 560px) { .cw-card__split { grid-template-columns: 1fr 1fr; align-items: center } }

/* ---------- Navigation ---------- */
.cw-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
/* The top bar sits on the section's ground and collapses by its own width (container query), not the viewport's. */
.cw-nav { container: cw-nav / inline-size; position: relative; z-index: 40; display: flex; align-items: center; gap: var(--space-6, 32px); box-sizing: border-box; min-height: var(--nav-height, 72px);
  padding-inline: clamp(var(--page-margin-min, 16px), 7.8125cqi, var(--page-margin-max, 150px)); background: var(--ground); color: var(--fg) }
.cw-nav__logo { flex: none; display: flex; align-items: center; min-height: var(--touch-target, 44px); width: var(--logo-min, 160px); line-height: 0; border-radius: var(--radius-chip, 6px) }
.cw-nav__logo img { display: block; width: 100%; height: auto }
.cw-nav__logo:focus { outline: none }
.cw-nav__logo:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: 6px }
.cw-nav__track { position: relative; flex: 1; min-width: 0; display: flex; align-items: center }
.cw-nav__links { display: flex; align-items: center; gap: var(--space-1, 4px); margin: 0; padding: 0; list-style: none }
.cw-nav__item--drop { position: relative }
.cw-nav__link { position: relative; display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; min-height: var(--control-md, 44px); margin: 0; padding: 0 var(--space-3, 12px); border: 0; border-radius: var(--radius-control, 10px);
  background: transparent; color: var(--fg-2); font: 500 15px/1 var(--font-sans); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: color var(--duration-fast, .2143s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)) }
@media (hover: hover) { .cw-nav__link:hover { color: var(--fg) } }
.cw-nav__link[aria-current="page"], .cw-nav__link[aria-expanded="true"] { color: var(--fg) }
.cw-nav__link:focus { outline: none }
.cw-nav__link:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: 0 }
.cw-nav__link[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1.5px; border-radius: 1px; background: var(--indicator) }
.cw-nav__track.has-ind .cw-nav__link::after { display: none }
/* the current-page dash follows the pointer and the focus, then returns */
.cw-nav__ind { position: absolute; left: 0; bottom: 6px; width: 0; height: 1.5px; border-radius: 1px; background: var(--indicator); pointer-events: none;
  transition: transform var(--duration-normal, .3214s) var(--ease-cut, cubic-bezier(.65, 0, .35, 1)), width var(--duration-normal, .3214s) var(--ease-cut, cubic-bezier(.65, 0, .35, 1)) }
.cw-nav__caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; border-radius: 1px; transform: translateY(-2px) rotate(45deg);
  transition: transform var(--duration-fast, .2143s) var(--ease-cut, ease-in-out) }
[aria-expanded="true"] > .cw-nav__caret { transform: translateY(2px) rotate(225deg) }
.cw-nav__cta { flex: none }
.cw-nav__menu { display: none }
/* folded: the links go into the menu and the call to action stays beside it — below 760 px of bar, or whenever UI.navFit finds the links
   would not fit; only on a phone-width bar does the call to action move into the menu too */
@container cw-nav (max-width: 759px) { .cw-nav__track { display: none } .cw-nav__menu { display: inline-flex } .cw-nav__cta { margin-left: auto; margin-right: calc(var(--space-3, 12px) - var(--space-6, 32px)) } }
.cw-nav[data-compact] .cw-nav__track { display: none }
.cw-nav[data-compact] .cw-nav__cta { margin-left: auto; margin-right: calc(var(--space-3, 12px) - var(--space-6, 32px)) }
.cw-nav[data-compact] .cw-nav__menu { display: inline-flex }
@container cw-nav (max-width: 479px) { .cw-nav__cta { display: none } .cw-nav__menu { margin-left: auto } }
@media (max-width: 639px) { .cw-nav { min-height: var(--nav-height-compact, 64px) } }
/* sticky: once the page moves, the bar draws its outline; it steps away while you read down and returns when you scroll up */
.cw-nav--sticky { position: sticky; top: 0; z-index: 50; box-shadow: 0 0 0 transparent;
  transition: box-shadow var(--duration-fast, .2143s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)), transform var(--duration-normal, .3214s) var(--ease-cut, ease-in-out) }
.cw-nav--sticky.is-stuck { box-shadow: 0 1px 0 var(--line) }
.cw-nav--sticky.is-hidden { transform: translateY(-100%) }
.cw-nav--sticky.is-hidden:focus-within { transform: none }
.cw-alert[hidden], .cw-toast[hidden] { display: none }
/* Floating panels (menus, mega menus): the ground's surface, a 1px line, radius-surface and shadow-3. They open in 3/4 beat and close in 1/2. */
.cw-pop { position: absolute; top: calc(100% + var(--space-2, 8px)); left: 0; z-index: 60; box-sizing: border-box; min-width: 240px; padding: var(--space-2, 8px);
  border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-surface, 16px); background: var(--surface); color: var(--fg); box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transform-origin: 24px 0;
  transition: opacity var(--duration-fast, .2143s) var(--ease-exit, ease-in), transform var(--duration-fast, .2143s) var(--ease-exit, ease-in), visibility 0s linear var(--duration-fast, .2143s) }
.cw-pop.is-open { opacity: 1; visibility: visible; transform: none;
  transition: opacity var(--duration-normal, .3214s) var(--ease-arrive, cubic-bezier(.16, 1, .3, 1)), transform var(--duration-normal, .3214s) var(--ease-arrive, cubic-bezier(.16, 1, .3, 1)), visibility 0s }
.cw-pop__list { display: grid; gap: var(--space-1, 4px); margin: 0; padding: 0; list-style: none }
.cw-pop__item { display: flex; align-items: flex-start; gap: var(--space-3, 12px); box-sizing: border-box; min-height: var(--control-md, 44px); padding: var(--space-2, 8px) var(--space-3, 12px); border-radius: var(--radius-control, 10px);
  color: var(--fg); font: 500 15px/1.3 var(--font-sans); text-decoration: none }
.cw-pop__item > svg { flex: none }
.cw-pop__item small { display: block; margin-top: var(--space-1, 4px); font: 400 14px/1.45 var(--font-sans); color: var(--fg-2) }
@media (hover: hover) { .cw-pop__item:hover { background: var(--hover) } }
.cw-pop__item[aria-current="page"] { background: var(--selected) }
.cw-pop__item:focus { outline: none }
.cw-pop__item:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: -2px }
.cw-pop__h { margin: 4px 12px 8px; font: 600 11px/1.45 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.cw-pop--mega { width: min(720px, calc(100vw - 40px)); padding: var(--space-5, 24px); display: grid; grid-template-columns: 1fr 1fr 210px; gap: var(--space-5, 24px); align-items: start }
.cw-pop--mega .cw-card { gap: var(--space-3, 12px); padding: var(--space-4, 16px); background: var(--surface-2); box-shadow: none }
/* Mobile menu: a full-screen sheet on its own ground that glides in from the right, led by a hairline edge. */
.cw-sheet { position: fixed; inset: 0; z-index: 70; box-sizing: border-box; background: var(--ground); color: var(--fg); transform: translateX(100%); visibility: hidden;
  transition: transform var(--duration-fast, .2143s) var(--ease-cut, ease-in-out), visibility 0s linear var(--duration-fast, .2143s) }
.cw-sheet.is-open { transform: none; visibility: visible; transition: transform var(--duration-normal, .3214s) var(--ease-cut, ease-in-out), visibility 0s }
.cw-sheet::before, .cw-sheet::after { content: ''; position: absolute; top: 0; bottom: 0; background: var(--line) }
.cw-sheet::before { display: none }
.cw-sheet::after { left: -1px; width: 1px }
.cw-sheet__inner { display: flex; flex-direction: column; gap: var(--space-6, 32px); box-sizing: border-box; height: 100%; overflow-y: auto;
  padding: max(var(--space-3, 12px), env(safe-area-inset-top, 0px)) clamp(var(--page-margin-min, 16px), 7.8125cqi, var(--page-margin-max, 150px)) max(var(--space-5, 24px), env(safe-area-inset-bottom, 0px)) }
.cw-sheet__top { display: flex; align-items: center; justify-content: space-between; min-height: 52px }
.cw-sheet__links { display: grid; margin: 0; padding: 0; list-style: none; border-top: var(--stroke-line, 1px) solid var(--line) }
.cw-sheet__links > li { border-bottom: var(--stroke-line, 1px) solid var(--line); opacity: 0; transform: translateY(12px) }
.cw-sheet.is-open .cw-sheet__links > li { opacity: 1; transform: none;
  transition: opacity var(--duration-normal, .3214s) var(--ease-arrive, ease-out), transform var(--duration-normal, .3214s) var(--ease-arrive, ease-out);
  transition-delay: calc(var(--duration-fast, .2143s) + var(--i, 0) * var(--beat, .4286s) / 8) }
.cw-sheet__link { display: flex; align-items: center; min-height: 64px; color: var(--fg); text-decoration: none; font: 500 clamp(1.75rem, 1.5rem + 1.111vw, 2.5rem)/1.06 var(--font-display); letter-spacing: -.015em }
.cw-sheet__link[aria-current="page"]::before { content: ''; flex: none; width: 24px; height: 1.5px; margin-right: var(--space-3, 12px); background: var(--indicator) }
.cw-sheet__link:focus { outline: none }
.cw-sheet__link:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: 2px; border-radius: var(--radius-chip, 6px) }
.cw-sheet__foot { margin-top: auto; display: grid; justify-items: start; gap: var(--space-3, 12px) }
/* Tabs: inactive in fg-2, the selected one in fg with the indicator dash, which slides to the next tab */
.cw-tabs { position: relative; display: flex; gap: var(--space-1, 4px); overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--line) }
.cw-tabs::-webkit-scrollbar { display: none }
.cw-tab { position: relative; flex: none; box-sizing: border-box; min-height: var(--control-md, 44px); margin: 0; padding: 0 var(--space-4, 16px); border: 0; border-radius: var(--radius-control, 10px) var(--radius-control, 10px) 0 0;
  background: transparent; color: var(--fg-2); font: 500 15px/1 var(--font-sans); white-space: nowrap; cursor: pointer }
@media (hover: hover) { .cw-tab:hover { color: var(--fg) } }
.cw-tab[aria-selected="true"] { color: var(--fg) }
.cw-tab[aria-selected="true"]::after { content: ''; position: absolute; left: var(--space-4, 16px); right: var(--space-4, 16px); bottom: 0; height: 1.5px; background: var(--indicator) }
.cw-tabs.has-ind .cw-tab::after { display: none }
.cw-tab:focus { outline: none }
.cw-tab:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: -2px }
.cw-tabs__ind { position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--indicator); pointer-events: none;
  transition: transform var(--duration-normal, .3214s) var(--ease-cut, ease-in-out), width var(--duration-normal, .3214s) var(--ease-cut, ease-in-out) }
.cw-tabpanel { padding-top: var(--space-5, 24px) }
.cw-tabpanel:focus { outline: none }
.cw-tabpanel:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: 4px; border-radius: var(--radius-chip, 6px) }
/* Segmented control: a quiet track, the chosen option a lifted surface */
.cw-seg { display: inline-flex; gap: var(--space-1, 4px); box-sizing: border-box; padding: var(--space-1, 4px); border: var(--stroke-line, 1px) solid var(--line); border-radius: calc(var(--radius-control, 10px) + 4px); background: var(--surface-2) }
.cw-seg__opt { box-sizing: border-box; min-height: var(--control-md, 44px); white-space: nowrap; margin: 0; padding: 0 16px; border: var(--stroke-line, 1px) solid transparent; border-radius: var(--radius-control, 10px); background: transparent; color: var(--fg-2);
  font: 500 14px/1 var(--font-sans); cursor: pointer; transition: background-color var(--duration-fast, .2143s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)), box-shadow var(--duration-fast, .2143s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)), color var(--duration-fast, .2143s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)), transform var(--duration-instant, .1071s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)) }
@media (hover: hover) { .cw-seg__opt:not([aria-checked="true"]):hover { color: var(--fg) } }
.cw-seg__opt[aria-checked="true"] { background: var(--surface); color: var(--fg); border-color: var(--line); box-shadow: var(--shadow-1) }
.cw-seg__opt[aria-checked="true"]:active { transform: translateY(1px) }
.cw-seg__opt:focus { outline: none }
.cw-seg__opt:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: 1px }
/* Breadcrumbs */
.cw-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1, 4px) var(--space-2, 8px); margin: 0; padding: 0; list-style: none; font: 500 14px/1.4 var(--font-sans) }
.cw-crumbs li { display: inline-flex; align-items: center; gap: var(--space-2, 8px); color: var(--fg-2) }
.cw-crumbs li + li::before { content: "/" / ""; color: var(--fg-3) }
.cw-crumbs a { display: inline-flex; align-items: center; min-height: 24px; color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; border-radius: var(--radius-chip, 6px) }
@media (hover: hover) { .cw-crumbs a:hover { color: var(--fg); text-decoration-color: currentColor } }
.cw-crumbs a:focus { outline: none }
.cw-crumbs a:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: 2px }
.cw-crumbs [aria-current="page"] { color: var(--fg) }
/* Pagination: the current page is a solid face in the call-to-action colours; the others are quiet. Under 520px it becomes "Page n of N" between previous and next. */
.cw-pages { container: cw-pages / inline-size }
.cw-pages ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2, 8px); margin: 0; padding: 0; list-style: none }
.cw-page-link { display: inline-grid; place-items: center; box-sizing: border-box; min-width: var(--control-md, 44px); height: var(--control-md, 44px); padding: 0 8px; border: var(--stroke-line, 1px) solid transparent; border-radius: var(--radius-control, 10px);
  color: var(--fg); font: 500 15px/1 var(--font-sans); font-variant-numeric: tabular-nums; text-decoration: none; transition: background-color var(--duration-fast, .2143s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)) }
@media (hover: hover) { .cw-page-link:not([aria-current]):hover { background: var(--hover) } }
.cw-page-link[aria-current="page"] { background: var(--cta); color: var(--on-cta); border-color: var(--cta); box-shadow: none }
.cw-page-link:focus { outline: none }
.cw-page-link:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: var(--focus-offset, 2px) }
.cw-pages__gap { min-width: 24px; text-align: center; color: var(--fg-2) }
.cw-pages__status { display: none; font: 500 14px/1.4 var(--font-sans); color: var(--fg-2); font-variant-numeric: tabular-nums }
.cw-flip > svg { transform: scaleX(-1) }
@container cw-pages (max-width: 519px) { .cw-pages__num { display: none } .cw-pages__status { display: inline } }
/* Sidebar for product UI: the current item is a lifted surface */
.cw-side { display: grid; gap: var(--space-6, 32px); align-content: start; box-sizing: border-box; width: 264px; padding: var(--space-5, 24px) var(--space-4, 16px); background: var(--ground); color: var(--fg) }
.cw-side__h { margin: 0 12px 8px; font: 600 11px/1.45 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.cw-side__list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none }
.cw-side__item { display: flex; align-items: center; gap: var(--space-3, 12px); box-sizing: border-box; min-height: var(--control-md, 44px); padding: 8px 12px; border: var(--stroke-line, 1px) solid transparent; border-radius: var(--radius-control, 10px);
  color: var(--fg-2); font: 500 15px/1.2 var(--font-sans); text-decoration: none; transition: background-color var(--duration-fast, .2143s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)), color var(--duration-fast, .2143s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)) }
.cw-side__item > svg { flex: none }
@media (hover: hover) { .cw-side__item:not([aria-current]):hover { background: var(--hover); color: var(--fg) } }
.cw-side__item[aria-current="page"] { background: var(--surface); color: var(--fg); border-color: var(--line); box-shadow: var(--shadow-1) }
.cw-side__item:focus { outline: none }
.cw-side__item:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: 2px }
.cw-badge { margin-left: auto; display: inline-grid; place-items: center; box-sizing: border-box; min-width: 22px; height: 22px; padding: 0 var(--space-2, 8px); border: 0; border-radius: var(--radius-pill, 999px);
  background: var(--coral); color: var(--ink); font: 600 12px/1 var(--font-sans); font-variant-numeric: tabular-nums }

/* ================= Feedback ================= */
/* Alerts, toasts and dialogs take the ground's surface tones; on cyan and indigo they keep paper's (the rule above Cards) */
/* A close cross: a control mark, 36px */
.cw-x { position: relative; flex: none; width: 36px; height: 36px; margin: calc((24px - 36px) / 2) calc((24px - 36px) / 2) 0 0; padding: 0; border: 0; border-radius: var(--radius-control, 10px); background: transparent; color: var(--fg-2); cursor: pointer }
.cw-x::before, .cw-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; border-radius: var(--radius-pill, 999px); background: currentColor; transform: translate(-50%, -50%) rotate(45deg) }
.cw-x::after { transform: translate(-50%, -50%) rotate(-45deg) }
@media (hover: hover) { .cw-x:hover { background: var(--hover); color: var(--fg) } }
.cw-x:focus { outline: none }
.cw-x:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: 0 }
/* Alerts: a quiet surface tinted by its meaning — a 1px line, radius-control, a status mark and words. Not pressable, so no lift. */
.cw-alert { --a-hue: var(--indigo); display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-1, 4px) var(--space-3, 12px); align-items: start; box-sizing: border-box; padding: var(--space-4, 16px) var(--space-4, 16px);
  border: var(--stroke-line, 1px) solid color-mix(in srgb, var(--a-hue) 30%, var(--line)); border-radius: var(--radius-control, 10px); background: color-mix(in srgb, var(--a-hue) 8%, var(--surface)); color: var(--fg) }
.cw-alert > svg { grid-row: 1 / span 3 }
.cw-alert__title { grid-column: 2; margin: 0; font: 600 15px/1.4 var(--font-sans) }
.cw-alert__text { grid-column: 2; margin: 0; font: 400 14px/1.5 var(--font-sans); color: var(--fg-2) }
.cw-alert__text a { color: var(--fg); text-underline-offset: 3px }
.cw-alert__acts { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--space-1, 4px) var(--space-4, 16px); margin-top: var(--space-1, 4px) }
.cw-alert > .cw-x { grid-column: 3; grid-row: 1 }
.cw-alert--ok { --a-hue: var(--emerald) } .cw-alert--warn { --a-hue: var(--amber) } .cw-alert--err { --a-hue: var(--coral) }
.cw-alert__list { grid-column: 2; margin: var(--space-1, 4px) 0 0; padding-left: var(--space-4, 16px); font: 400 14px/1.6 var(--font-sans); color: var(--fg-2) }
.cw-alert__list a { color: var(--fg); text-underline-offset: 3px }
/* Toasts: float on shadow-3; arrive rising in 3/4 beat, the mark settles in; leave lifting in 1/2; a hairline counts down (time is the one linear thing) */
.cw-toasts { position: fixed; z-index: var(--z-toast, 80); right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: grid; gap: var(--space-3, 12px);
  width: min(400px, calc(100vw - 32px)); margin: 0; padding: 0; list-style: none; pointer-events: none }
@media (max-width: 639px) { .cw-toasts { left: 16px; right: 16px; width: auto } }
.cw-toast { position: relative; pointer-events: auto; display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-1, 4px) var(--space-3, 12px); align-items: start; box-sizing: border-box; padding: var(--space-4, 16px); overflow: hidden;
  border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-surface, 16px); background: var(--surface); color: var(--fg); box-shadow: var(--shadow-3);
  animation: cw-toast-in var(--duration-normal, .3214s) var(--ease-arrive, cubic-bezier(.16, 1, .3, 1)) both }
.cw-toast > svg { grid-row: 1 / span 3; animation: cw-btn-pop var(--duration-normal, .3214s) var(--ease-arrive, cubic-bezier(.16, 1, .3, 1)) var(--duration-instant, .1071s) both }
.cw-toast__title { grid-column: 2; margin: 0; font: 600 15px/1.4 var(--font-sans) }
.cw-toast__text { grid-column: 2; margin: 0; font: 400 14px/1.5 var(--font-sans); color: var(--fg-2) }
.cw-toast__acts { grid-column: 2; display: flex; gap: var(--space-4, 16px); margin-top: var(--space-1, 4px) }
.cw-toast > .cw-x { grid-column: 3; grid-row: 1 }
.cw-toast__rail { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform-origin: 0 50%; animation: cw-toast-time var(--toast-time, 6.857s) linear both }
.cw-toast:hover .cw-toast__rail, .cw-toast:focus-within .cw-toast__rail { animation-play-state: paused }
.cw-toast.is-leaving { animation: cw-toast-out var(--duration-fast, .2143s) var(--ease-exit, ease-in) both }
@keyframes cw-toast-in { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }
@keyframes cw-toast-out { to { opacity: 0; transform: translateY(-8px) } }
@keyframes cw-toast-time { from { transform: scaleX(1) } to { transform: scaleX(0) } }
/* Tooltips: a night label with white text (19.5:1), an edge a step lighter so it shows on dark grounds, shadow-3; 1 beat delay on hover, none on focus; hoverable; Escape hides it */
.cw-tip { position: relative; display: inline-flex }
.cw-tooltip { position: absolute; left: 50%; bottom: calc(100% + var(--space-2, 8px)); z-index: var(--z-popover, 60); box-sizing: border-box; width: max-content; max-width: 240px; padding: var(--space-2, 8px) var(--space-3, 12px);
  border: var(--stroke-line, 1px) solid color-mix(in srgb, var(--white) 14%, var(--night)); border-radius: var(--radius-chip, 6px); background: var(--night); color: var(--white); font: 500 13px/1.4 var(--font-sans); text-align: left; box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 4px);
  transition: opacity var(--duration-fast, .2143s) var(--ease-arrive, ease-out), transform var(--duration-fast, .2143s) var(--ease-arrive, ease-out), visibility 0s linear var(--duration-fast, .2143s) }
.cw-tooltip::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px }
@media (hover: hover) { .cw-tip:hover .cw-tooltip { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
  transition: opacity var(--duration-fast, .2143s) var(--ease-arrive, ease-out) var(--beat, .4286s), transform var(--duration-fast, .2143s) var(--ease-arrive, ease-out) var(--beat, .4286s), visibility 0s linear var(--beat, .4286s) } }
.cw-tip:focus-within .cw-tooltip, .cw-tip.is-open .cw-tooltip { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s }
.cw-tip.is-dismissed .cw-tooltip { opacity: 0; visibility: hidden; transition: none }
/* The loader: four beat dots, one lit per beat. The only loader — no spinners. */
.cw-beat { display: inline-flex; align-items: center; gap: var(--space-3, 12px); font: 500 14px/1.4 var(--font-sans); color: var(--fg) }
.cw-beat__sq { display: inline-flex; gap: var(--space-2, 8px) }
.cw-beat__sq i { width: 7px; height: 7px; box-sizing: border-box; border: var(--stroke-line, 1px) solid currentColor; border-radius: 50%; background: transparent; animation: cw-beat-lit calc(var(--beat, .4286s) * 4) steps(1, end) infinite }
.cw-beat__sq i:nth-child(2) { animation-delay: var(--beat, .4286s) } .cw-beat__sq i:nth-child(3) { animation-delay: calc(var(--beat, .4286s) * 2) } .cw-beat__sq i:nth-child(4) { animation-delay: calc(var(--beat, .4286s) * 3) }
.cw-beat--lg .cw-beat__sq { gap: var(--space-3, 12px) } .cw-beat--lg .cw-beat__sq i { width: 10px; height: 10px; border-width: 1.5px }
@keyframes cw-beat-lit { 0% { background: currentColor } 25% { background: transparent } }
/* Progress: a thin track in the line tone, filled in indigo */
.cw-progress { display: grid; gap: var(--space-2, 8px) }
.cw-progress__head { display: flex; justify-content: space-between; gap: var(--space-3, 12px); font: 500 14px/1.4 var(--font-sans); color: var(--fg) }
.cw-progress__head > :last-child { font-variant-numeric: tabular-nums }
.cw-bar { position: relative; height: 6px; box-sizing: border-box; border: 0; border-radius: var(--radius-pill, 999px); background: var(--line); overflow: hidden }
.cw-bar > i { position: absolute; top: 0; bottom: 0; left: 0; width: var(--v, 0%); box-sizing: border-box; border-radius: inherit; background: var(--indigo); transition: width var(--duration-normal, .3214s) var(--ease-arrive, cubic-bezier(.16, 1, .3, 1)) }
.cw-bar.is-indeterminate > i { width: 32%; animation: cw-indet var(--bar, 1.7143s) var(--ease-cut, ease-in-out) infinite }
@keyframes cw-indet { from { left: -32% } to { left: 100% } }
.cw-bar--steps { display: flex; gap: 4px; height: auto; border: 0; background: none; overflow: visible }
.cw-bar--steps > i { position: static; flex: 1; width: auto; height: 6px; border: 0; border-radius: var(--radius-pill, 999px); background: var(--line); transition: background-color var(--duration-fast, .2143s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)) }
.cw-bar--steps > i.is-done { background: var(--indigo) }
/* Stepper: done steps carry the ok mark, the current step is a solid face, later steps are quiet */
.cw-stepper { display: flex; align-items: flex-start; margin: 0; padding: 0; list-style: none }
.cw-stepper > li { position: relative; flex: 1; display: grid; justify-items: center; gap: 8px; padding: 0 4px; text-align: center; font: 500 14px/1.3 var(--font-sans); color: var(--fg-2) }
.cw-stepper > li + li::before { content: ''; position: absolute; z-index: 0; top: calc(var(--dot, 36px) / 2 - .5px); right: calc(50% + var(--dot, 36px) / 2 + var(--space-1, 4px)); left: calc(-50% + var(--dot, 36px) / 2 + var(--space-1, 4px)); height: var(--stroke-line, 1px); background: var(--line-strong) }
.cw-stepper > li.is-done + li::before { background: var(--fg) }
.cw-stepper__dot { position: relative; z-index: 1; display: grid; place-items: center; width: var(--dot, 36px); height: var(--dot, 36px); box-sizing: border-box; border: var(--stroke-line, 1px) solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--fg); font: 600 14px/1 var(--font-sans) }
.cw-stepper > li.is-done .cw-stepper__dot { border: 0; background: none }
.cw-stepper > li[aria-current="step"] { color: var(--fg) }
.cw-stepper > li[aria-current="step"] .cw-stepper__dot { background: var(--cta); color: var(--on-cta); border-color: var(--cta); box-shadow: none }
/* Skeletons: line-tone bars breathing on a six-beat sine. No shimmer: that would be a moving gradient. */
.cw-skel { display: grid; gap: var(--space-3, 12px) }
.cw-skel > i { display: block; height: 14px; border-radius: var(--radius-chip, 6px); background: var(--line); animation: cw-breathe calc(var(--beat, .4286s) * 6) var(--ease-float, ease-in-out) infinite alternate }
.cw-skel > i.is-title { height: 22px; width: 62% } .cw-skel > i.is-short { width: 44% } .cw-skel > i.is-block { height: 112px; border-radius: var(--radius-control, 10px) }
@keyframes cw-breathe { from { opacity: 1 } to { opacity: .45 } }
/* A tile in CSS: the plinth an empty state's icon stands on — a 1px line, radius-surface, a soft lift (the films' extruded piece stays in the films) */
.cw-piece { position: relative; display: grid; place-items: center; box-sizing: border-box; width: 152px; height: 120px; margin-bottom: 0; border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-surface, 16px); background: var(--surface);
  box-shadow: var(--shadow-2) }
.cw-piece--cyan { background: var(--selected); border-color: transparent; box-shadow: var(--shadow-cloud) }
/* Empty states and page messages: one piece, one title, one sentence, one action */
.cw-empty { display: grid; justify-items: center; gap: var(--space-4, 16px); max-width: 30em; margin-inline: auto; padding: var(--space-6, 32px) var(--space-4, 16px); text-align: center; color: var(--fg) }
.cw-empty > :is(h2, h3, p) { margin: 0 }
.cw-empty > p { color: var(--fg-2) }
.cw-empty > .cw-piece { margin-bottom: var(--space-2, 8px); animation: cw-piece-in var(--duration-reveal, .6429s) var(--ease-arrive, cubic-bezier(.16, 1, .3, 1)) both }
.cw-empty__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3, 12px) }
@keyframes cw-piece-in { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
.cw-done__mark { position: relative; display: grid; place-items: center; width: 104px; height: 104px }
.cw-done__mark > svg { animation: cw-btn-pop var(--duration-normal, .3214s) var(--ease-arrive, cubic-bezier(.16, 1, .3, 1)) var(--duration-instant, .1071s) both }
.cw-done__mark > i { position: absolute; left: calc(50% - 1px); top: calc(50% - 8px); width: 2px; height: 16px; border-radius: var(--radius-pill, 999px); background: var(--accent); opacity: 0;
  animation: cw-ray calc(var(--beat, .4286s) * 1.5) var(--ease-arrive, ease-out) calc(var(--duration-instant, .1071s) + var(--beat, .4286s)) both }
@keyframes cw-ray { 0% { opacity: 0; transform: rotate(var(--a)) translateY(-46px) scaleY(.2) } 30% { opacity: 1; transform: rotate(var(--a)) translateY(-58px) scaleY(1) } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-70px) scaleY(.3) } }

/* ================= Overlays ================= */
/* Dialogs, drawers and bottom sheets are native <dialog> (focus trap, Escape, inert page). The ground's surface, a 1px line, radius-surface and shadow-4 over a flat scrim. Open in 3/4 beat, close in 1/2. */
.cw-dialog { box-sizing: border-box; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto;
  border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-surface, 16px); background: var(--surface); color: var(--fg); box-shadow: var(--shadow-4);
  opacity: 0; transform: translateY(8px) scale(.97);
  transition: opacity var(--duration-fast, .2143s) var(--ease-exit, ease-in), transform var(--duration-fast, .2143s) var(--ease-exit, ease-in), overlay var(--duration-fast, .2143s) allow-discrete, display var(--duration-fast, .2143s) allow-discrete }
.cw-dialog[open] { opacity: 1; transform: none; transition-duration: var(--duration-normal, .3214s); transition-timing-function: var(--ease-arrive, ease-out) }
@starting-style { .cw-dialog[open] { opacity: 0; transform: translateY(8px) scale(.97) } }
.cw-dialog::backdrop { background: var(--scrim); opacity: 0; transition: opacity var(--duration-fast, .2143s) linear, overlay var(--duration-fast, .2143s) allow-discrete, display var(--duration-fast, .2143s) allow-discrete }
.cw-dialog[open]::backdrop { opacity: 1; transition-duration: var(--duration-normal, .3214s) }
@starting-style { .cw-dialog[open]::backdrop { opacity: 0 } }
.cw-dialog__head { display: flex; align-items: flex-start; gap: var(--space-3, 12px); padding: var(--space-5, 24px) var(--space-5, 24px) 0 }
.cw-dialog__head > :is(h2, h3) { flex: 1; margin: calc((var(--control-md, 44px) - 1lh) / 2) 0 0 }
.cw-dialog__body { display: grid; gap: var(--space-3, 12px); padding: var(--space-3, 12px) var(--space-5, 24px) 0 }
.cw-dialog__body p { margin: 0; color: var(--fg-2) }
.cw-dialog__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-3, 12px); padding: var(--space-5, 24px) }
@media (max-width: 479px) { .cw-dialog__foot { flex-direction: column-reverse; align-items: stretch } }
/* drawer: from the right, moving between places, so ease-cut */
.cw-dialog--drawer { width: min(440px, 100vw); height: 100dvh; max-height: none; margin: 0 0 0 auto; border-width: 0 0 0 var(--stroke-line, 1px); border-radius: var(--radius-surface, 16px) 0 0 var(--radius-surface, 16px);
  display: flex; flex-direction: column; transform: translateX(100%); transition-timing-function: var(--ease-cut, ease-in-out) }
.cw-dialog--drawer:not([open]) { display: none }
.cw-dialog--drawer[open] { transform: none; transition-timing-function: var(--ease-cut, ease-in-out) }
@starting-style { .cw-dialog--drawer[open] { transform: translateX(100%) } }
.cw-dialog--drawer .cw-dialog__body { flex: 1; overflow-y: auto; align-content: start; padding-bottom: var(--space-5, 24px) }
.cw-dialog--drawer .cw-dialog__foot { border-top: var(--stroke-line, 1px) solid var(--line) }
/* bottom sheet: up from the bottom on phones, a grip as its signifier */
.cw-dialog--sheet { width: min(640px, 100vw); margin: auto auto 0; border-width: var(--stroke-line, 1px) var(--stroke-line, 1px) 0; border-radius: var(--radius-surface, 16px) var(--radius-surface, 16px) 0 0; transform: translateY(100%);
  padding-bottom: env(safe-area-inset-bottom, 0px); transition-timing-function: var(--ease-cut, ease-in-out) }
.cw-dialog--sheet[open] { transform: none; transition-timing-function: var(--ease-cut, ease-in-out) }
@starting-style { .cw-dialog--sheet[open] { transform: translateY(100%) } }
.cw-dialog__grip { width: 36px; height: 4px; margin: var(--space-3, 12px) auto 0; border-radius: var(--radius-pill, 999px); background: var(--line-strong) }
/* Popovers anchor a .cw-pop to its trigger; context menus are application menus (role="menu") in the same panel */
.cw-anchor { position: relative; display: inline-flex }
.cw-pop--note { width: 300px; padding: var(--space-4, 16px); display: grid; gap: var(--space-2, 8px) }
.cw-pop--note p { margin: 0; font: 400 14px/1.5 var(--font-sans); color: var(--fg-2) }
.cw-pop--right { left: auto; right: 0; transform-origin: calc(100% - 24px) 0 }
.cw-menu { min-width: 232px }
.cw-menu__item { display: flex; align-items: center; gap: var(--space-3, 12px); box-sizing: border-box; width: 100%; min-height: var(--control-md, 44px); margin: 0; padding: var(--space-2, 8px) var(--space-3, 12px); border: 0; border-radius: var(--radius-control, 10px);
  background: transparent; color: var(--fg); font: 500 15px/1.2 var(--font-sans); text-align: left; cursor: pointer }
.cw-menu__item > svg { flex: none }
.cw-menu__item:hover, .cw-menu__item:focus { background: var(--hover); outline: none }
.cw-menu__item:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: -2px }
.cw-menu__item kbd { margin-left: auto; padding-left: var(--space-4, 16px); font: 400 12px/1 var(--font-mono); color: var(--muted) }
.cw-menu__sep { height: 0; margin: var(--space-1, 4px); border: 0; border-top: var(--stroke-line, 1px) solid var(--line) }
/* "More": three beat dots as a control mark */
.cw-more { width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: -7px 0 0 currentColor, 7px 0 0 currentColor }

/* ================= Interface motion (guide: Interface motion; helpers: CWFilm.UI) ================= */
/* word rise: the films' text reveal */
.cw-rise__w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em }
.cw-rise__w > span { display: inline-block }
/* visible at rest (5 Nov 2026): a part waits hidden only while .is-wait says the view rule has made it ready (UI.reveal: confirmed out of
   view, or on screen and about to play); .is-in plays the entrance, whose first frame is the hidden state. Nothing waits on CSS alone */
.cw-rise.is-wait .cw-rise__w > span, .is-wait .cw-rise .cw-rise__w > span { transform: translateY(115%) }
.cw-rise.is-in .cw-rise__w > span, .is-in .cw-rise .cw-rise__w > span { animation: cw-rise var(--name-word, .85s) var(--ease-arrive, cubic-bezier(.16, 1, .3, 1)) both }
@keyframes cw-rise { from { transform: translateY(115%) } to { transform: none } }
/* reveal on scroll, eyebrow fade-up, marker wipe */
.cw-reveal { transition: opacity var(--duration-reveal, .6429s) var(--ease-arrive, cubic-bezier(.16, 1, .3, 1)), transform var(--duration-reveal, .6429s) var(--ease-arrive, cubic-bezier(.16, 1, .3, 1)); transition-delay: calc(var(--i, 0) * var(--beat, .4286s) / 8) }
.cw-reveal.is-wait { opacity: 0; transform: translateY(12px); transition: none }
.cw-reveal.is-in { opacity: 1; transform: none }
.is-wait .cw-fadeup, .cw-fadeup.is-wait { opacity: 0; transform: translateY(10px) }
.is-in .cw-fadeup, .cw-fadeup.is-in { animation: cw-fadeup var(--rise, .6s) var(--ease-arrive, ease-out) var(--d, 0s) both }
@keyframes cw-fadeup { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
.is-wait .cw-wipe, .cw-wipe.is-wait { clip-path: inset(0 100% 0 0) }
.is-in .cw-wipe, .cw-wipe.is-in { animation: cw-wipe calc(var(--beat, .4286s) * 1.2) var(--ease-cut, ease-in-out) var(--d, 0s) both }
@keyframes cw-wipe { from { clip-path: inset(0 100% 0 0) } to { clip-path: inset(0 0 0 0) } }
/* magnetic call to action */
.cw-magnetic { display: inline-block; transform: translate(var(--mx, 0px), var(--my, 0px)); transition: transform var(--duration-accent, .6s) var(--ease-arrive, cubic-bezier(.16, 1, .3, 1)) }
.cw-magnetic.is-pulled { transition: transform var(--duration-fast, .2143s) var(--ease-arrive, ease-out) }
/* hand-over between pages: the films' slide, in one beat */
.cw-handover { position: absolute; inset: 0; z-index: var(--z-overlay, 70); transform: translateX(100%); pointer-events: none }
.cw-handover.is-fixed { position: fixed }
.cw-handover.is-on { transform: none; transition: transform var(--duration-slow, .4286s) var(--ease-cut, ease-in-out) }
.cw-handover::before, .cw-handover::after { content: ''; position: absolute; top: 0; bottom: 0; background: var(--accent) }
.cw-handover::before { display: none } .cw-handover::after { left: -2px; width: 2px }
/* decorative halftone field (canvas). canvas.cw-field only: .cw-field is also the form field wrapper */
canvas.cw-field { display: block; width: 100%; height: 100%; color: var(--field) }
/* a field that dissolves toward its foot, so a band or the next section never cuts it with a hard edge */
canvas.cw-field--fade { -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 94%); mask-image: linear-gradient(to bottom, #000 40%, transparent 94%) }
/* accordion / expand and collapse: grid rows 0fr → 1fr */
.cw-acc { border-top: var(--stroke-line, 1px) solid var(--line) }
.cw-acc__item { border-bottom: var(--stroke-line, 1px) solid var(--line) }
.cw-acc__item > :is(h2, h3, h4) { margin: 0 }
.cw-acc__btn { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4, 16px); box-sizing: border-box; width: 100%; min-height: 56px; margin: 0; padding: 12px 4px;
  border: 0; background: transparent; color: var(--fg); font: 600 17px/1.35 var(--font-sans); letter-spacing: -0.01em; text-align: left; cursor: pointer }
.cw-acc__btn:focus { outline: none }
.cw-acc__btn:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: 2px; border-radius: var(--radius-chip, 6px) }
.cw-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--duration-fast, .2143s) var(--ease-exit, ease-in) }
.cw-acc__item.is-open > .cw-acc__panel { grid-template-rows: 1fr; transition: grid-template-rows var(--duration-normal, .3214s) var(--ease-arrive, ease-out) }
.cw-acc__panel > div { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear var(--duration-fast, .2143s) }
.cw-acc__item.is-open > .cw-acc__panel > div { visibility: visible; transition-delay: 0s }
.cw-acc__panel p { margin: 0; padding: 0 var(--space-1, 4px) var(--space-4, 16px); max-width: 36em; font: 400 16px/1.6 var(--font-sans); color: var(--fg-2) }
/* icon swap */
.cw-swap { display: inline-grid; place-items: center }
.cw-swap > * { grid-area: 1 / 1 }
.cw-swap > :first-child { transition: transform var(--duration-fast, .2143s) var(--ease-exit, ease-in), opacity var(--duration-fast, .2143s) linear }
.cw-swap > :last-child { transform: scale(.6); opacity: 0 }
.cw-swap.is-b > :first-child { transform: scale(.6); opacity: 0 }
.cw-swap.is-b > :last-child { transform: none; opacity: 1; transition: transform var(--duration-normal, .3214s) var(--ease-arrive, cubic-bezier(.16, 1, .3, 1)) var(--duration-instant, .1071s), opacity var(--duration-fast, .2143s) linear var(--duration-instant, .1071s) }
/* interface line icons (svg.cw-ico from SI.svg / UI.icons): stroke only in currentColor, 1.5px at 24px, never scaled with the drawing.
   The one accent part takes --icon-accent (currentColor unless a feature tile or piece sets the accent). Status marks keep their meaning colour:
   the deeper steps on light grounds (3:1 or more on white, grey-050 and paper), the lighter steps on ink and night */
.cw-ico [data-part="accent"] { color: var(--icon-accent, currentColor); stroke: currentColor }
.cw-card__tile, .cw-hub__tile, .cw-piece { --icon-accent: var(--accent) }
:root, [data-theme="ink"], [data-theme="ink-sol"], [data-theme="navy"] { --ok-mark: var(--emerald-mid); --err-mark: var(--coral); --warn-mark: var(--amber); --info-mark: var(--indigo-mid) }
[data-theme="white"], [data-theme="paper"], [data-theme="paper-sol"], [data-theme="cyan"], [data-theme="indigo"] { --ok-mark: var(--emerald); --err-mark: var(--coral); --warn-mark: color-mix(in srgb, var(--amber-dark) 85%, var(--night)); --info-mark: var(--indigo-dark) }
@media (forced-colors: active) { .cw-ico, .cw-ico [data-part="accent"] { color: CanvasText; stroke: CanvasText } }
/* a typing caret on the beat (UI mock-ups only) */
.cw-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: var(--space-1, 4px); vertical-align: text-bottom; background: currentColor; animation: cw-blink calc(var(--beat, .4286s) * 2) steps(1, end) infinite }
@keyframes cw-blink { 50% { opacity: 0 } }

/* ================= Responsive compositions (guide: Responsive). Each section is a container and recomposes by its own width, wherever it sits. ================= */
.cw-split { container: cw-split / inline-size }
.cw-split__grid { display: grid; gap: var(--space-6, 32px); align-items: center }
.cw-split__text { display: grid; gap: var(--space-4, 16px); justify-items: start; min-width: 0 }
.cw-split__art { display: grid; place-items: center; min-width: 0 }
.cw-split__art > * { max-width: min(100%, 360px) }
.cw-split__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3, 12px) var(--space-5, 24px); margin-top: var(--space-2, 8px) }
@container cw-split (max-width: 479px) { .cw-split__acts { width: 100% } .cw-split__acts > .cw-btn--primary { flex: 1 1 100% } }
@container cw-split (min-width: 720px) { .cw-split__grid { grid-template-columns: 7fr 5fr; gap: var(--space-7, 48px) } .cw-split__art > * { max-width: 100% } .cw-split--mirror .cw-split__grid { grid-template-columns: 5fr 7fr } .cw-split--mirror .cw-split__text { order: 2 } }
@container cw-split (min-width: 900px) { .cw-split__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8, 64px) } }
.cw-figs { container: cw-figs / inline-size }
.cw-figs > :is(h2, h3) { margin: 0 0 var(--space-6, 32px) }
.cw-figs__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6, 32px) var(--space-5, 24px); margin: 0; padding: var(--space-5, 24px) 0 0; list-style: none; border-top: var(--stroke-line, 1px) solid var(--line) }
.cw-figs__row > li { display: grid; gap: var(--space-2, 8px); align-content: start }
.cw-figs__row p { margin: 0 }
@container cw-figs (min-width: 600px) { .cw-figs__row { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)) } }
.cw-close { container: cw-close / inline-size }
.cw-close__grid { display: grid; gap: var(--space-6, 32px); align-items: end; justify-items: start }
.cw-close__line { margin: 0; max-width: 12em; font: 500 clamp(2.75rem, 1rem + 6.5cqi, 7.5rem)/0.94 var(--font-display); letter-spacing: -0.03em; text-wrap: balance }
.cw-close__line > span { display: block; color: var(--eyebrow) }
/* the end card: the line with its action under it; on wide closes an optional bookend (.cw-close__art, often the hero's piece) stands at the right */
@container cw-close (min-width: 900px) { .cw-close__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; column-gap: var(--space-8, 64px) } .cw-close__grid > :not(.cw-close__art) { grid-column: 1 } .cw-close__art { grid-column: 2; grid-row: 1 / span 2; justify-self: end } }
.cw-close__art { --piece-giant: clamp(168px, 18cqi, 280px) }
@container cw-close (min-width: 900px) { .cw-close__grid:has(.cw-close__art) .cw-close__line { font-size: clamp(2.75rem, 1rem + 4.5cqi, 5.5rem) } }
@container cw-close (max-width: 899px) { .cw-close__art { display: none } }
.cw-figs__title { margin: 0 0 var(--space-6, 32px) }

/* ================= Vertical rhythm — the films' text column, scaled: eyebrow → title 12, title → marker 16, marker → text 16, text → actions 24; a section head to its content 32, then 48 from 840px inside ================= */
.cw-flow, .cw-split__text { display: flex; flex-direction: column; align-items: flex-start; gap: 0 }
:is(.cw-flow, .cw-split__text) > * { margin-block: 0 }
:is(.cw-flow, .cw-split__text) > * + * { margin-top: var(--space-4, 16px) }
:is(.cw-flow, .cw-split__text) > .cw-eyebrow + * { margin-top: var(--space-3, 12px) }
:is(.cw-flow, .cw-split__text) > * + :is(.cw-split__acts, .cw-flow__acts) { margin-top: var(--space-5, 24px) }
.cw-flow__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3, 12px) var(--space-5, 24px) }
.cw-head, .cw-figs__title { margin: 0 0 var(--space-6, 32px) }
@container (min-width: 840px) { .cw-head, .cw-figs__title { margin-bottom: var(--space-7, 48px) } }
/* ================= Accessibility helpers ================= */
/* Skip link: the first focusable thing on every page, shown only when focused */
.cw-skip { position: fixed; left: var(--space-4, 16px); top: var(--space-4, 16px); z-index: var(--z-toast, 80); transform: translateY(calc(-100% - var(--space-6, 32px))) }
.cw-skip:focus, .cw-skip:focus-visible { transform: none }
/* Native controls and scrollbars follow the ground */
[data-theme="ink"], [data-theme="ink-sol"], [data-theme="indigo"], [data-theme="navy"] { color-scheme: dark }
[data-theme="paper"], [data-theme="paper-sol"], [data-theme="cyan"], [data-theme="white"] { color-scheme: light }
/* With a sticky top bar, focused or linked-to content never hides under it (WCAG 2.4.11): put this class on <html> */
.cw-sticky-page { scroll-padding-top: calc(var(--nav-height, 72px) + var(--space-4, 16px)) }

/* ================= Custom select (listbox): closed, it is the field's slot; open, the menu's panel ================= */
.cw-listbox { position: relative }
.cw-listbox__btn { display: flex; align-items: center; gap: var(--space-3, 12px); text-align: left; cursor: pointer; padding-right: calc(var(--space-3, 12px) * 2 + 24px) }
.cw-listbox__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.cw-listbox__value.is-placeholder { color: var(--muted) }
.cw-listbox__input { padding-right: calc(var(--space-3, 12px) * 2 + 24px) }
.cw-listbox::after { content: ''; position: absolute; right: calc(var(--space-5, 24px) - 4px); top: calc(var(--control-md, 44px) / 2); width: 7px; height: 7px; pointer-events: none;
  border-right: 1.5px solid var(--fg-2); border-bottom: 1.5px solid var(--fg-2); border-radius: 1px;
  transform: translateY(-70%) rotate(45deg); transition: transform var(--duration-fast, .2143s) var(--ease-cut, ease-in-out) }
.cw-listbox.is-open::after { transform: translateY(-30%) rotate(225deg) }
.cw-listbox:has(:disabled)::after { border-color: var(--line-strong) }
.cw-listbox__list { left: 0; right: 0; min-width: 100%; max-height: min(320px, 60vh); overflow-y: auto; margin: 0; list-style: none; padding: var(--space-2, 8px) }
.cw-option { display: flex; align-items: center; gap: var(--space-2, 8px); box-sizing: border-box; min-height: var(--control-md, 44px); padding: var(--space-2, 8px) var(--space-3, 12px) var(--space-2, 8px) 0;
  border-radius: var(--radius-control, 10px); color: var(--fg); font: 400 16px/1.4 var(--font-sans); cursor: pointer }
.cw-option::before { content: ''; flex: none; width: 6px; height: 12px; margin: 0 var(--space-2, 8px) var(--space-1, 4px) var(--space-3, 12px);
  border-right: 1.75px solid transparent; border-bottom: 1.75px solid transparent; transform: rotate(45deg) }
.cw-option[aria-selected="true"] { font-weight: 500 }
.cw-option[aria-selected="true"]::before { border-color: var(--fg) }
.cw-option small { margin-left: auto; padding-left: var(--space-4, 16px); font: 400 14px/1.4 var(--font-sans); color: var(--muted); white-space: nowrap }
@media (hover: hover) { .cw-option:not([aria-disabled="true"]):hover { background: var(--hover) } }
.cw-option.is-active { background: var(--hover); box-shadow: inset 0 0 0 2px var(--focus) }
.cw-option[aria-disabled="true"] { color: var(--muted); opacity: .7; cursor: not-allowed }
.cw-option--empty { color: var(--muted); cursor: default; padding-left: var(--space-3, 12px) }
.cw-option--empty::before { display: none }
.cw-option[hidden] { display: none }

/* ================= Data table: a quiet surface; a firm 1px line under the head, hairlines between rows ================= */
.cw-table-frame { container: cw-table / inline-size; box-sizing: border-box; min-width: 0; border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-surface, 16px); background: var(--surface); color: var(--fg); box-shadow: var(--shadow-1); overflow: hidden }
.cw-table-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3, 12px) var(--space-4, 16px); padding: var(--space-4, 16px) var(--space-5, 24px); border-bottom: var(--stroke-line, 1px) solid var(--line) }
.cw-table-bar > :is(h2, h3) { margin: 0 auto 0 0 }
.cw-table-bar .cw-search { flex: 1 1 220px; max-width: 320px }
.cw-table-bar [data-count]:empty { display: none }
.cw-table-scroll { overflow-x: auto }
.cw-table-scroll--tall { max-height: 480px; overflow: auto }
.cw-table { width: 100%; border-collapse: separate; border-spacing: 0; font: 400 14px/1.45 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--fg) }
.cw-table caption { padding: var(--space-4, 16px) var(--space-5, 24px) 0; text-align: left; font: 500 14px/1.4 var(--font-sans); color: var(--fg-2) }
.cw-table th { position: sticky; top: 0; z-index: 1; padding: var(--space-3, 12px) var(--space-4, 16px); border-bottom: var(--stroke-line, 1px) solid var(--line-strong); background: var(--surface); text-align: left; white-space: nowrap;
  font: 600 12px/1.45 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.cw-table td { padding: var(--space-3, 12px) var(--space-4, 16px); border-bottom: var(--stroke-line, 1px) solid var(--line); background: var(--surface); vertical-align: middle; white-space: nowrap }
.cw-table tbody tr:last-child td { border-bottom: 0 }
.cw-table :is(th, td).is-num { text-align: right }
.cw-table--compact td { padding-block: var(--space-2, 8px) }
@media (hover: hover) { .cw-table tbody tr:not(.cw-table__empty):hover td { background: color-mix(in srgb, var(--fg) 3%, var(--surface)) } }
.cw-table tbody tr.is-selected td { background: color-mix(in srgb, var(--accent) 10%, var(--surface)) }
.cw-table tr[hidden] { display: none }
.cw-table .cw-check { min-height: 0; padding: 0; vertical-align: middle }
.cw-table .cw-check > input { top: 0 }
.cw-table :is(th, td).is-select { width: 24px; padding-right: 0 }
.cw-table :is(th, td).is-act { width: 36px; padding-block: 0; text-align: right }
.cw-cell { display: inline-flex; align-items: center; gap: var(--space-2, 8px) }
.cw-cell .cw-avatar { width: 28px; height: 28px; font-size: 12px }
.cw-table__empty td { white-space: normal; text-align: center; padding: var(--space-7, 48px) var(--space-5, 24px) }
.cw-sort { display: inline-flex; align-items: center; gap: var(--space-2, 8px); margin: calc(-1 * var(--space-2, 8px)) calc(-1 * var(--space-3, 12px)); padding: var(--space-2, 8px) var(--space-3, 12px);
  border: 0; border-radius: var(--radius-chip, 6px); background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer }
.cw-sort::after { content: ''; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; border-radius: 1px; opacity: .35; transform: translateY(-2px) rotate(45deg);
  transition: transform var(--duration-fast, .2143s) var(--ease-cut, ease-in-out) }
.is-num .cw-sort { flex-direction: row-reverse }
th[aria-sort] .cw-sort { color: var(--fg) }
th[aria-sort] .cw-sort::after { opacity: 1 }
th[aria-sort="ascending"] .cw-sort::after { transform: translateY(2px) rotate(225deg) }
@media (hover: hover) { .cw-sort:hover { background: var(--hover) } }
.cw-sort:focus { outline: none }
.cw-sort:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: 0 }
/* below 640px of its own width the first column stays put while the rest scroll */
@container cw-table (max-width: 639px) {
  .cw-table-bar { padding-inline: var(--space-4, 16px) }
  .cw-table :is(th, td):is(:first-child) { position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--line) }
  .cw-table th:first-child { z-index: 3 }
}

/* Tooltip edge alignment: a control near the start or end of its container aligns its label to that edge, so it stays on screen */
.cw-tip--start .cw-tooltip { left: 0; transform: translate(0, 4px) }
.cw-tip--end .cw-tooltip { left: auto; right: 0; transform: translate(0, 4px) }
.cw-tip--start:hover .cw-tooltip, .cw-tip--start:focus-within .cw-tooltip, .cw-tip--start.is-open .cw-tooltip,
.cw-tip--end:hover .cw-tooltip, .cw-tip--end:focus-within .cw-tooltip, .cw-tip--end.is-open .cw-tooltip { transform: translate(0, 0) }

/* ================= Brand atmosphere — the brand book's gradient clouds and grain (guide: Colour → Gradients and clouds) =================
   A cloud is a soft shape, not a canvas: blurred radial stops from the primary and secondary palettes only (aqua, cyan, indigo, purple,
   a touch of magenta at the lower edge), dusted with grain. Decorative and aria-hidden; behind art and headings, never behind body text;
   at most two per view. On ink and night they run at about half strength — they are colour, not a glow. */
/* no stacking context of its own (z-index auto, no isolation): the grain must blend with the real ground under it, not with an empty layer */
.cw-atmos { position: absolute; inset: 0; overflow: hidden; pointer-events: none }
.cw-over { position: relative; z-index: 1 }
.cw-cloud { position: absolute; width: var(--cloud-w, min(46vw, 620px)); aspect-ratio: 1.3; inset: var(--cloud-at, auto); border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
  background:
    radial-gradient(40% 44% at 30% 30%, color-mix(in srgb, var(--aqua) 62%, transparent), transparent 72%),
    radial-gradient(46% 48% at 34% 50%, color-mix(in srgb, var(--cyan) 72%, transparent), transparent 72%),
    radial-gradient(52% 56% at 58% 48%, color-mix(in srgb, var(--indigo) 88%, transparent), transparent 74%),
    radial-gradient(40% 42% at 66% 70%, color-mix(in srgb, var(--purple) 66%, transparent), transparent 72%),
    radial-gradient(36% 30% at 42% 84%, color-mix(in srgb, var(--magenta) 34%, transparent), transparent 70%);
  filter: blur(var(--cloud-blur, 48px)); opacity: var(--opacity-cloud, .85); transform: rotate(var(--cloud-turn, 0deg)) }
.cw-cloud--cool { background:
    radial-gradient(44% 46% at 32% 34%, color-mix(in srgb, var(--aqua) 55%, transparent), transparent 72%),
    radial-gradient(50% 52% at 42% 52%, color-mix(in srgb, var(--cyan) 80%, transparent), transparent 74%),
    radial-gradient(50% 54% at 64% 56%, color-mix(in srgb, var(--indigo) 85%, transparent), transparent 74%) }
.cw-cloud--soft { opacity: calc(var(--opacity-cloud, .85) * .55) }
:where([data-theme="ink"], [data-theme="ink-sol"], [data-theme="navy"]) .cw-cloud { opacity: calc(var(--opacity-cloud, .85) * .5) }
/* grain: luminance noise centred on 50% grey, in soft-light against the ground. Soft-light leaves white and black untouched and a 50% grey
   changes nothing, so the grain shows only where there is colour (the cloud) and never veils white, paper or night (it was an overlay of
   grey specks on an isolated layer, which painted a grey veil wherever no cloud was; fixed 5 Nov 2026) */
.cw-grain { position: absolute; inset: 0; pointer-events: none; opacity: var(--opacity-grain, .22); mix-blend-mode: soft-light; background-size: 180px 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1.6 0 0 0 -.3 1.6 0 0 0 -.3 1.6 0 0 0 -.3 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E") }

/* =====================================================================================================================
   v4 · The cinematic layer (CWFilm.Stage, stage.js) and the page kit. Values come from tokens; fallbacks only keep a card
   readable before tokens.css loads. Decorative layers are aria-hidden, hidden in contrast themes, and still without motion.
   v5 material: the page kit wears the interface's hairlines and soft depth — 1px lines in line or line-strong, the ground's surface
   tones, radius-chip/control/surface/media, shadow-1…4 and one cloud per view. No ink outlines, offset shadows or extrusion here;
   the films keep theirs.
   ===================================================================================================================== */

/* Surfaces in this kit keep paper's tones on cyan and indigo grounds, as cards do (the rule above Cards). The credential card and the
   AWS piece stand on white wherever they are (the issued artwork's own ground), so they always take paper's tones. Zero specificity:
   data-theme on the surface itself still wins. */
:where([data-theme="cyan"], [data-theme="indigo"]) :where(.cw-steps__node, .cw-hub__node, .cw-planes__badge, .cw-film__screen, .cw-film__big, .cw-who, .cw-partner, .cw-case,
  .cw-alarm__bell, .cw-alarm__finds li, .cw-alarm__spend, .cw-form-summary, .cw-gallery[data-mode="pin"] .cw-gallery__bar),
:where(.cw-cred, .cw-awsmark) { --fg: var(--night); --fg-2: var(--ink-2); --muted: var(--grey-800); --eyebrow: var(--cyan-deep); --accent: var(--cyan); --on-accent: var(--ink);
  --cta: var(--night); --on-cta: var(--white); --cta-hover: var(--night-2); --link: var(--cyan-deep); --rule: var(--grey-300); --line: var(--grey-200); --line-strong: var(--grey-750);
  --surface: var(--white); --surface-2: var(--grey-050); --hover: var(--wash); --selected: var(--cyan-tint); --indicator: var(--cyan-deep); --focus: var(--night) }

/* the page's own motion switch (Stage.motionSwitch): motion off means every CSS animation and transition lands at once, like the system setting */

/* stage: a section that holds oversized art. The art bleeds off its edges and is clipped there; the content sits above it */
.cw-stage { position: relative; overflow: clip; isolation: isolate }
.cw-stage > .cw-container { position: relative; z-index: 1 }

/* giant: one oversized word, outlined in the display face at the scale of a title sequence — a 1px line-strong stroke, no offset depth. Decorative: aria-hidden, never the only copy */
.cw-giant { position: absolute; z-index: 0; left: 0; margin: 0; white-space: nowrap; pointer-events: none; user-select: none;
  font: 500 var(--type-giant, clamp(5.5rem, 1rem + 18cqi, 17rem))/0.84 var(--font-display); letter-spacing: -0.045em;
  color: transparent; -webkit-text-stroke: var(--stroke-line, 1px) var(--giant-ink, var(--line-strong)); text-shadow: none; paint-order: stroke fill }
.cw-giant--fill { color: var(--giant-ink, var(--wire)); -webkit-text-stroke: 0 }
.cw-giant__row { display: block }
.cw-giant--rows { position: relative; display: grid; font-size: var(--type-giant-rows, clamp(4rem, 0.5rem + 13cqi, 12rem)); line-height: 0.9 }
.cw-giant--rows > * { display: block }

/* band: the films' hand-over between two sections (Stage.band). Still, it is a strip of the next ground; with motion the next ground covers the last as it crosses.
   Its lead is cyan on every arrival, onto cyan too (no ink edge lines) */
/* It overlaps the sections on either side by space-8, less on narrow widths: the section above always keeps at least space-6 of its own
   bottom padding (a phone's 64px section padding was eaten whole). The grounds: the films' four and the interface's white and night */
.cw-band { position: relative; z-index: 1; display: block; height: var(--band-height, clamp(96px, 12vw, 176px)); margin-block: calc(var(--band-overlap, clamp(var(--space-6, 32px), .667rem + 5.926cqi, var(--space-8, 64px))) * -1); overflow: clip; background: var(--to, var(--ground)); pointer-events: none; contain: paint }
.cw-band[data-from="ink"] { --from: var(--ink) } .cw-band[data-from="paper"] { --from: var(--paper) } .cw-band[data-from="cyan"] { --from: var(--cyan) } .cw-band[data-from="indigo"] { --from: var(--indigo) }
.cw-band[data-from="white"] { --from: var(--white) } .cw-band[data-from="night"] { --from: var(--night) } .cw-band[data-from="navy"] { --from: var(--navy) }
.cw-band[data-to="ink"] { --to: var(--ink) } .cw-band[data-to="paper"] { --to: var(--paper) } .cw-band[data-to="cyan"] { --to: var(--cyan) } .cw-band[data-to="indigo"] { --to: var(--indigo) }
.cw-band[data-to="white"] { --to: var(--white) } .cw-band[data-to="night"] { --to: var(--night) } .cw-band[data-to="navy"] { --to: var(--navy) }
.cw-band[data-live] { background: var(--from) }
.cw-band[data-live][data-done] { background: var(--to) } .cw-band[data-done] .cw-band__s { visibility: hidden }
.cw-band__s { display: block; position: relative; background: var(--to) }
.cw-band[data-kind="blocks"][data-live] { display: grid; grid-template-columns: repeat(32, calc(var(--band-height, clamp(96px, 12vw, 176px)) / 2)); grid-template-rows: repeat(2, 1fr) }
.cw-band[data-kind="shutter"][data-live] { display: grid; grid-template-columns: repeat(8, 1fr) }
.cw-band[data-kind="stripes"][data-live] { display: grid; grid-template-rows: repeat(3, 1fr) }
.cw-band[data-kind="slide"] .cw-band__s { position: absolute; inset: 0 }
.cw-band[data-kind="slide"] .cw-band__s::before, .cw-band[data-kind="slide"] .cw-band__s::after { content: ""; position: absolute; top: 0; bottom: 0; background: var(--lead, var(--cyan)) }
.cw-band[data-kind="slide"] .cw-band__s::before { left: calc(var(--space-6, 32px) * -1); width: var(--space-3, 12px) }
.cw-band[data-kind="slide"] .cw-band__s::after { left: calc(var(--space-4, 16px) * -1); width: var(--space-1, 4px) }
.cw-band[data-kind="iris"] .cw-band__s { position: absolute; left: 50%; top: 50%; width: 112%; aspect-ratio: 1; border-radius: 50% }

/* the reading progress rail under a sticky bar (Stage.progress): 2px in the accent, like the toast's time rail */
.cw-nav__progress { position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none }

/* giant piece: the interface's piece (a hairline surface) at hero scale — the one lifted surface in its view, on the cloud shadow. No extrusion */
.cw-piece--giant { width: var(--piece-giant, clamp(208px, 30cqi, 440px)); height: auto; aspect-ratio: 19 / 15; border-radius: var(--radius-surface, 16px); box-shadow: var(--shadow-cloud) }
.cw-piece--giant > svg { width: 62%; height: auto }

/* planes: hero art in layers — a tinted plane, a drawn guide and the piece — each on its own depth ([data-depth] for Stage.depth; Stage.title builds them).
   The plane is a quiet hairline surface in the selected tint (--plane overrides it); only the piece carries a lift */
.cw-planes { position: relative; display: grid; place-items: center; width: calc(var(--piece-giant, clamp(208px, 30cqi, 440px)) * 1.25); max-width: 100%; aspect-ratio: 5 / 4 }
.cw-planes__plane { position: absolute; inset: 26% -10% -6% 30%; box-sizing: border-box; border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-surface, 16px); background: var(--plane, var(--selected)) }
.cw-planes__guide { position: absolute; inset: -2% 26% 30% -4% }
.cw-planes__guide svg { display: block; width: 100%; height: 100%; overflow: visible }
.cw-planes__guide path { fill: none; stroke: var(--guide, var(--cyan-mid)); stroke-width: var(--stroke-icon, 1.5px); vector-effect: non-scaling-stroke }
.cw-planes__lift { position: relative; z-index: 1 }
.cw-planes__badge { position: absolute; right: calc(var(--space-4, 16px) * -1); top: calc(var(--space-4, 16px) * -1); display: grid; place-items: center; box-sizing: border-box; width: var(--control-lg, 56px); height: var(--control-lg, 56px);
  border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-pill, 999px); background: var(--surface); color: var(--fg); box-shadow: var(--shadow-2) }
.cw-hub .cw-piece--giant { --piece-giant: clamp(168px, 18cqi, 232px) }

/* odometer (Stage.odometer): digits roll on reels; the real value is in .cw-sr */
.cw-odo { display: inline-flex; align-items: flex-start; line-height: 1 }
.cw-odo__col { display: inline-block; height: 1em; overflow: clip }
.cw-odo__reel { display: block } .cw-odo__reel > span, .cw-odo__ch { display: block; height: 1em; line-height: 1 }
.cw-odo__ch { display: inline-block }
.ui-figure-xl { font: 500 var(--type-figure-xl, clamp(3rem, 1.5rem + 6cqi, 7rem))/1 var(--font-display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; margin: 0 }

/* steps (Stage.steps): an ordered sequence on a 1px rail that draws as you read; a step lights when the rail reaches it — its node fills with the
   call-to-action face and its card rises 2px onto shadow-2 */
.cw-steps { --node: var(--control-sm, 36px); position: relative; padding-left: calc(var(--node) + var(--space-5, 24px)) }
.cw-steps__list { display: grid; gap: var(--space-6, 32px); margin: 0; padding: 0; list-style: none }
.cw-steps__track, .cw-steps__rail { position: absolute; left: calc(var(--node) / 2 - var(--stroke-line, 1px) / 2); top: var(--space-5, 24px); bottom: var(--space-5, 24px); width: var(--stroke-line, 1px); border-radius: var(--radius-pill, 999px) }
.cw-steps__track { background: var(--line) } .cw-steps__rail { background: var(--fg) }
.cw-steps__list > li { position: relative; min-width: 0 }
.cw-steps__node { position: absolute; left: calc((var(--node) + var(--space-5, 24px)) * -1); top: var(--space-5, 24px); z-index: 1; display: grid; place-items: center; box-sizing: border-box; width: var(--node); height: var(--node);
  border: var(--stroke-line, 1px) solid var(--line-strong); border-radius: var(--radius-pill, 999px); background: var(--surface); color: var(--fg); font: 600 14px/1 var(--font-sans); font-variant-numeric: tabular-nums;
  transition: background-color var(--duration-normal, .2143s) var(--ease-arrive, ease-out), border-color var(--duration-normal, .2143s) var(--ease-arrive, ease-out), color var(--duration-normal, .2143s) var(--ease-arrive, ease-out) }
.cw-steps__list > li[data-on] .cw-steps__node { background: var(--cta); border-color: var(--cta); color: var(--on-cta) }
.cw-steps__list > li > .cw-card { transition: box-shadow var(--duration-normal, .2143s) var(--ease-arrive, ease-out), translate var(--duration-normal, .2143s) var(--ease-arrive, ease-out), border-color var(--duration-normal, .2143s) var(--ease-arrive, ease-out) }
.cw-steps__list > li[data-on] > .cw-card { translate: 0 -2px; box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--line) 50%, var(--line-strong)) }

/* hub: one centre, many parts — the coverage diagram. A list of parts (cards) around a core piece; 1px connectors in line-strong are drawn by Stage.hub
   from where they really are, and a lit connector takes the indicator tone */
.cw-hub { container: cw-hub / inline-size; position: relative }
.cw-hub__core { display: grid; place-items: center; padding: var(--space-5, 24px) 0 var(--space-7, 48px) }
.cw-hub__nodes { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--space-4, 16px); margin: 0; padding: 0; list-style: none }
.cw-hub__node { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-1, 4px) var(--space-4, 16px); align-items: start; box-sizing: border-box; padding: var(--space-4, 16px);
  border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-surface, 16px); background: var(--surface); color: var(--fg); box-shadow: none }
.cw-hub__node > :first-child { grid-row: span 2 }
.cw-hub__node h3, .cw-hub__node p { margin: 0 } .cw-hub__node h3 { align-self: end } .cw-hub__node p { color: var(--fg-2) }
.cw-hub__tile { display: grid; place-items: center; width: 48px; height: 48px; box-sizing: border-box; border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-control, 10px); background: var(--surface-2); color: var(--fg) }
.cw-hub__lines { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; display: none }
.cw-hub__line { fill: none; stroke: var(--line-strong); stroke-width: var(--stroke-line, 1px); stroke-linecap: round; transition: stroke var(--duration-fast, .1071s) var(--ease-arrive, ease-out) }
.cw-hub__line.is-lit { stroke: var(--indicator) }
.cw-hub__packet { fill: var(--surface); stroke: var(--line-strong); stroke-width: var(--stroke-line, 1px); opacity: 0 }
/* a socket where each line meets its part: the joint is drawn, never a line that seems to cut into a card */
.cw-hub__socket { fill: var(--line-strong) }
@container cw-hub (min-width: 960px) {
  .cw-hub__nodes { grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr) minmax(0, 1fr); grid-template-rows: repeat(3, auto); gap: var(--space-5, 24px) var(--space-4, 16px); align-items: center }
  .cw-hub__nodes > li { grid-column: 1 } .cw-hub__nodes > li:nth-child(n+4) { grid-column: 3 }
  .cw-hub__nodes > li:nth-child(1), .cw-hub__nodes > li:nth-child(4) { grid-row: 1 } .cw-hub__nodes > li:nth-child(2), .cw-hub__nodes > li:nth-child(5) { grid-row: 2 } .cw-hub__nodes > li:nth-child(3), .cw-hub__nodes > li:nth-child(6) { grid-row: 3 }
  .cw-hub__core { position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%; padding: 0 }
  .cw-hub__lines { display: block } }

/* film (UI.film + Stage.film): a film on the page at screen scale — a surface bezel with a 1px line, radius-media corners and the cloud shadow (the one
   lifted surface in its view; no slab behind it), the picture's corners concentric with the bezel's. Under it the controls on the section's ground:
   play/pause, a seek slider (the interface slider, with a tick at each chapter), the time and the chapter now playing; then, in a disclosure, every
   chapter as a button beside what it shows. Nothing scrolls sideways and nothing is cut at an edge. The poster is a frame of the film itself */
.cw-film { container: cw-film / inline-size; display: grid; gap: var(--space-4, 16px); min-width: 0; margin: 0 }
.cw-film__screen { --film-bezel: clamp(6px, 1.1cqi, 14px); position: relative; isolation: isolate; box-sizing: border-box; padding: var(--film-bezel);
  border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-media, 24px); background: var(--surface); box-shadow: var(--shadow-cloud) }
.cw-film__screen::before { content: none }   /* the films' offset plane behind the frame stays in the films; the cloud shadow is the lift */
.cw-film__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: calc(var(--radius-media, 24px) - var(--film-bezel, 14px)); background: var(--surface-2); object-fit: cover; cursor: pointer }
.cw-film__big { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; box-sizing: border-box; width: 64px; aspect-ratio: 1; padding: 0;
  border: var(--stroke-line, 1px) solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--fg); box-shadow: var(--shadow-3); cursor: pointer;
  transition: background-color var(--duration-fast, .2143s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)) }
@media (hover: hover) { .cw-film__big:hover { background: var(--surface-2) } }
.cw-film__big > svg { width: 52%; height: auto }
.cw-film__big:focus { outline: none } .cw-film__big:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: var(--focus-offset, 2px) }
.cw-film[data-started] .cw-film__big { display: none }
.cw-film__bar { display: flex; align-items: center; gap: var(--space-3, 12px) var(--space-4, 16px); min-width: 0 }
.cw-film__toggle { flex: none }
.cw-film__seek { --p: 0%; flex: 1; min-width: 0; height: var(--touch-target, 44px); margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none }
.cw-film__seek::-webkit-slider-runnable-track { height: 4px; border: 0; border-radius: var(--radius-pill, 999px); background: linear-gradient(to right, var(--cta) var(--p), var(--line-strong) var(--p)) }
.cw-film__seek::-moz-range-track { height: 4px; border: 0; border-radius: var(--radius-pill, 999px); background: var(--line-strong) }
.cw-film__seek::-moz-range-progress { height: 4px; border-radius: var(--radius-pill, 999px); background: var(--cta) }
.cw-film__seek::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: calc((4px - 22px) / 2); box-sizing: border-box; border: var(--stroke-line, 1px) solid var(--line-strong); border-radius: 50%; background: var(--white); box-shadow: var(--shadow-2); -webkit-appearance: none; appearance: none;
  transition: transform var(--duration-instant, .1071s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)) }
.cw-film__seek::-moz-range-thumb { width: 22px; height: 22px; box-sizing: border-box; border: var(--stroke-line, 1px) solid var(--line-strong); border-radius: 50%; background: var(--white); box-shadow: var(--shadow-2) }
.cw-film__seek:active::-webkit-slider-thumb { transform: scale(1.08) }
.cw-film__seek:active::-moz-range-thumb { transform: scale(1.08) }
.cw-film__seek:focus { outline: none } .cw-film__seek:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: var(--focus-offset, 2px); border-radius: var(--radius-control, 10px) }
.cw-film__time { flex: none; font-variant-numeric: tabular-nums; color: var(--fg-2) }
.cw-film__track { position: relative; flex: 1; min-width: 0; display: grid }
.cw-film__track > .cw-film__seek { grid-area: 1 / 1 }
/* the ticks are inset by half the 22px thumb, so each sits where the thumb's centre stops for its chapter */
.cw-film__marks { grid-area: 1 / 1; position: relative; align-self: center; height: 14px; margin-inline: 11px; pointer-events: none }
.cw-film__marks > i { position: absolute; top: 0; width: 2px; height: 100%; margin-left: -1px; border-radius: 1px; background: var(--fg-2) }
.cw-film__now { margin: 0; color: var(--fg-2) }
.cw-film__chapters { display: grid; gap: var(--space-3, 12px); margin: var(--space-3, 12px) 0 0; padding: 0; list-style: none }
.cw-film__chapters > li { display: grid; gap: var(--space-2, 8px); align-items: start; max-width: calc(var(--measure-body, 36em) * 1.6) }
.cw-film__chapters p { margin: 0; color: var(--fg-2) }
@container cw-film (min-width: 640px) { .cw-film__chapters > li { grid-template-columns: calc(var(--space-10, 128px) * 1.4) minmax(0, 1fr); gap: var(--space-4, 16px) } .cw-film__chapters p { padding-top: var(--space-2, 8px) } }
/* a chapter is a quiet 1px-line button; the line firms on hover; the chapter playing wears the call-to-action face */
.cw-film__ch { display: grid; gap: var(--space-1, 4px); justify-items: start; box-sizing: border-box; min-height: var(--touch-target, 44px); margin: 0; padding: var(--space-2, 8px) var(--space-3, 12px);
  border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-control, 10px); background: transparent; color: var(--fg); font: 500 14px/1.2 var(--font-sans); text-align: left; cursor: pointer;
  transition: border-color var(--duration-fast, .1071s) var(--ease-arrive, ease-out), background-color var(--duration-fast, .1071s) var(--ease-arrive, ease-out), color var(--duration-fast, .1071s) var(--ease-arrive, ease-out) }
.cw-film__ch > span { font: 500 12px/1 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--muted) }
@media (hover: hover) { .cw-film__ch:not([aria-current="true"]):hover { border-color: var(--fg-2); background: var(--hover) } }
.cw-film__ch[aria-current="true"] { border-color: var(--cta); background: var(--cta); color: var(--on-cta) } .cw-film__ch[aria-current="true"] > span { color: var(--on-cta) }
.cw-film__ch:focus { outline: none } .cw-film__ch:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: var(--focus-offset, 2px) }
.cw-film__text > summary { list-style: none } .cw-film__text > summary::-webkit-details-marker { display: none }
.cw-film__text[open] > summary > .cw-nav__caret { transform: translateY(2px) rotate(225deg) }
.cw-film__text > summary { display: inline-flex; align-items: center; gap: var(--space-2, 8px); min-height: var(--touch-target, 44px); font: 600 15px/1.2 var(--font-sans); color: var(--fg); cursor: pointer; border-radius: var(--radius-chip, 6px) }
.cw-film__text > summary:focus { outline: none } .cw-film__text > summary:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: var(--focus-offset, 2px) }
@container cw-film (max-width: 479px) { .cw-film__time { display: none } }

/* roles: who does what in each engagement model. One table (a firm head line, hairline rows); a segmented control switches the model and the owners
   travel (Stage.flip). An owner is a chip: Cloudwalker in the selected tint, your team on the quiet surface, both split between them */
.cw-roles { container: cw-roles / inline-size; display: grid; gap: var(--space-5, 24px); justify-items: start }
.cw-roles > .cw-seg { max-width: 100% } .cw-roles > .cw-seg > .cw-seg__opt { flex: 1 1 auto }
.cw-roles__table { width: 100%; border-collapse: collapse; color: var(--fg) }
.cw-roles__table th, .cw-roles__table td { padding: var(--space-3, 12px) 0; border-bottom: var(--stroke-line, 1px) solid var(--line); text-align: left; vertical-align: middle }
.cw-roles__table thead th { padding-top: 0; border-bottom-color: var(--line-strong); font: 600 12px/1.45 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.cw-roles__table tbody th { width: 34%; padding-right: var(--space-4, 16px); font: 500 16px/1.4 var(--font-sans) }
.cw-roles__act { display: inline-flex; align-items: center; gap: var(--space-2, 8px) }
.cw-roles__lanes, .cw-roles__lane { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3, 12px); align-items: center }
.cw-roles__lane { min-height: var(--control-md, 44px) }
.cw-who { display: inline-flex; align-items: center; justify-self: start; gap: var(--space-2, 8px); min-height: var(--pill-height, 30px); padding: 0 var(--space-3, 12px); box-sizing: border-box;
  border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-chip, 6px); color: var(--fg); font: 500 14px/1 var(--font-sans); white-space: nowrap; box-shadow: none }
.cw-who[data-who="cw"] { grid-column: 1; background: var(--selected); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)) }
.cw-who[data-who="team"] { grid-column: 2; background: var(--surface-2) }
.cw-who[data-who="both"] { grid-column: 1 / -1; justify-self: stretch; justify-content: center; background: linear-gradient(90deg, var(--selected) 50%, var(--surface-2) 50%) }
.cw-who[data-who="both"] > span { padding: 0 var(--space-2, 8px); border-radius: calc(var(--radius-chip, 6px) - 2px); background: var(--surface) }
.cw-roles__note { margin: 0; color: var(--fg-2) }
/* in a narrow card the owner sits beside its activity; the lane headings step aside (after the rules above, so it wins) */
@container cw-roles (max-width: 479px) { .cw-roles > .cw-seg { width: 100% } .cw-roles__lanes { display: none } .cw-roles__lane { grid-template-columns: minmax(0, 1fr) } .cw-roles__lane > .cw-who { grid-column: 1; justify-self: end } .cw-roles__lane > .cw-who[data-who="both"] { justify-self: end } .cw-roles__table tbody th { width: auto } .cw-roles > .cw-seg > .cw-seg__opt { padding-inline: var(--space-3, 12px) } .cw-roles__lane { padding-left: var(--space-2, 8px) } }
@container cw-roles (max-width: 269px) { .cw-roles > .cw-seg { flex-direction: column; border-radius: calc(var(--radius-control, 10px) + 4px) } .cw-roles > .cw-seg > .cw-seg__opt { border-radius: var(--radius-control, 10px) } }

/* partner mark: one credential, placed once, with weight — a resting surface whose seal is a tile in the selected tint */
.cw-partner { display: inline-flex; align-items: center; gap: var(--space-3, 12px); box-sizing: border-box; min-height: var(--control-lg, 56px); padding: var(--space-2, 8px) var(--space-5, 24px) var(--space-2, 8px) var(--space-2, 8px);
  border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-surface, 16px); background: var(--surface); color: var(--fg); box-shadow: var(--shadow-1); font: 500 16px/1.2 var(--font-sans) }
.cw-partner__seal { flex: none; display: grid; place-items: center; width: var(--control-md, 44px); height: var(--control-md, 44px); box-sizing: border-box;
  border: var(--stroke-line, 1px) solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: var(--radius-control, 10px); background: var(--selected) }
.cw-partner small { display: block; font: 400 14px/1.3 var(--font-sans); color: var(--fg-2) }

/* case study: one client, one problem, what was done, one sourced figure. Built for real stories only. A card on the cloud shadow */
.cw-case { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); display: grid; gap: var(--space-5, 24px); box-sizing: border-box; padding: var(--space-6, 32px);
  border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-surface, 16px); background: var(--surface); color: var(--fg); box-shadow: var(--shadow-cloud) }
.cw-case > *, .cw-case__body > *, .cw-case__fig > * { margin: 0 }
.cw-case__body { display: grid; gap: var(--space-3, 12px); align-content: start }
.cw-case__body p { color: var(--fg-2) }
.cw-case__fig { display: grid; gap: var(--space-2, 8px); align-content: start; padding-top: var(--space-4, 16px); border-top: var(--stroke-line, 1px) solid var(--line) }
.cw-case__fig cite { font: 400 14px/1.4 var(--font-sans); font-style: normal; color: var(--muted) }

/* FAQ: questions buyers ask, answered on the page. The accordion is .cw-acc (UI.accordion); this only lays it out beside its heading */
.cw-faq { display: grid; gap: var(--space-6, 32px) }
@container (min-width: 880px) { .cw-faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8, 64px); align-items: start } }

/* scene kit · alarm: the challenge drawn in pieces — the alert bell, the pile of findings, spend climbing. role="img" with a label.
   Hairline surfaces in three depths: the spend card raised, the findings resting on it, the bell floating above; the bell is tinted by its meaning */
.cw-alarm { position: relative; display: grid; gap: var(--space-4, 16px); width: min(100%, 360px); padding-top: var(--space-5, 24px) }
.cw-alarm__bell { position: absolute; left: calc(var(--space-3, 12px) * -1); top: calc(var(--space-2, 8px) * -1); z-index: 2; display: grid; place-items: center; box-sizing: border-box;
  width: var(--space-8, 64px); height: var(--space-8, 64px); border: var(--stroke-line, 1px) solid color-mix(in srgb, var(--amber) 30%, var(--line)); border-radius: var(--radius-control, 10px);
  background: color-mix(in srgb, var(--amber) 14%, var(--surface)); color: var(--fg); box-shadow: var(--shadow-3) }
.cw-alarm__count { position: absolute; right: calc(var(--space-5, 24px) * -1); top: calc(var(--space-3, 12px) * -1); font-variant-numeric: tabular-nums }
.cw-alarm__finds { display: grid; gap: var(--space-2, 8px); margin: 0 0 0 auto; padding: 0; list-style: none; width: 64% }
.cw-alarm__finds li { display: flex; align-items: center; gap: var(--space-3, 12px); padding: var(--space-3, 12px); border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-control, 10px); background: var(--surface); color: var(--fg); box-shadow: var(--shadow-1) }
.cw-alarm__finds li:nth-child(2) { margin-left: calc(var(--space-3, 12px) * -1); margin-right: var(--space-3, 12px) }
.cw-alarm__finds li::before { content: ""; flex: none; width: var(--space-3, 12px); height: var(--space-3, 12px); border-radius: var(--radius-pill, 999px); background: var(--coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 18%, transparent) }
.cw-alarm__finds li::after { content: ""; flex: 1; height: var(--space-2, 8px); border-radius: var(--radius-pill, 999px); background: var(--line) }
.cw-alarm__spend { display: grid; gap: var(--space-2, 8px); padding: var(--space-4, 16px); border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-surface, 16px); background: var(--surface); color: var(--fg); box-shadow: var(--shadow-2) }
.cw-alarm__dots { display: flex; gap: var(--space-1, 4px) } .cw-alarm__dots i { width: var(--space-2, 8px); height: var(--space-2, 8px); border-radius: var(--radius-pill, 999px); background: var(--line) }
.cw-alarm__spend .ui-label { color: var(--fg-2) }
.cw-alarm__spend svg { display: block; width: 100%; height: auto }

/* footer: logo, the page's chapters, the one help route, the motion switch. Links underline in the control line and firm to the text colour on hover */
.cw-foot { display: grid; gap: var(--space-5, 24px); margin-top: var(--space-9, 96px); padding-top: var(--space-6, 32px); border-top: var(--stroke-line, 1px) solid var(--line); color: var(--fg) }
.cw-foot__top, .cw-foot__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4, 16px) var(--space-6, 32px) }
.cw-foot__logo { display: block; width: calc(var(--space-10, 128px) + var(--space-6, 32px)); min-width: var(--logo-min, 160px); height: auto }
.cw-foot ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-5, 24px); margin: 0; padding: 0; list-style: none }
.cw-foot a { display: inline-flex; align-items: center; min-height: var(--touch-target, 44px); color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: .25em;
  transition: text-decoration-color var(--duration-fast, .2143s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)) }
@media (hover: hover) { .cw-foot a:hover { text-decoration-color: currentColor } }
.cw-foot a:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: var(--focus-offset, 2px); border-radius: var(--radius-chip, 6px) }
.cw-foot__meta p { margin: 0; color: var(--fg-2) }

/* forms · the error summary takes focus on a bad submit (UI.form): an error alert — coral-tinted surface, a 1px line mixed with coral */
.cw-form-summary { display: grid; gap: var(--space-2, 8px); padding: var(--space-3, 12px) var(--space-4, 16px); border: var(--stroke-line, 1px) solid color-mix(in srgb, var(--coral) 30%, var(--line)); border-radius: var(--radius-control, 10px);
  background: color-mix(in srgb, var(--coral) 8%, var(--surface)); color: var(--fg) }
.cw-form-summary:focus { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: var(--focus-offset, 2px) }
.cw-form-summary ul { margin: 0; padding-left: var(--space-5, 24px) } .cw-form-summary p { margin: 0 } .cw-form-summary a { color: var(--fg); text-underline-offset: 3px }

/* =====================================================================================================================
   v5 · Choreography (Stage, part two) and the credentials kit. Values from tokens; fallbacks only keep a card readable before tokens.css loads.
   ===================================================================================================================== */

/* gallery (UI.gallery + Stage.gallery): a row of slides. Still, it is a native sideways scroller with snap, buttons, one mark per slide and a counter.
   data-mode="pin" (desktop): the row travels while the gallery holds the screen; the marks become a lateral indicator in the left margin, with a fill.
   data-mode="loop" (touch and narrower): the slides share one place and the loop places them; you swipe or drag. --inset lines the first slide up
   with the page's container when the gallery bleeds to the screen's edges. */
.cw-gallery { --gap: var(--space-5, 24px); --inset: 0px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4, 16px) }
.cw-gallery__view { min-width: 0; overflow-x: auto; overflow-y: clip; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--inset); scrollbar-width: thin; padding-block: var(--space-4, 16px) var(--space-5, 24px) }
.cw-gallery__view:focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: calc(var(--focus-ring, 2px) * -1) }
.cw-gallery__track { display: flex; column-gap: var(--gap); width: max-content; margin: 0; padding: 0 var(--inset); list-style: none }
.cw-gallery__item { flex: none; width: var(--slide, clamp(15rem, 13rem + 8cqi, 19.5rem)); scroll-snap-align: start; min-width: 0 }
.cw-gallery__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2, 8px) var(--space-4, 16px); padding-inline: var(--inset) }
.cw-gallery__count { min-width: 7ch; font: 500 14px/1 var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--fg) }
.cw-gallery__marks { position: relative; display: flex; flex-wrap: wrap; align-items: center }
.cw-gallery__line { display: none }
/* a mark is a step dot: a 1px line-strong ring while waiting, filled in the indicator colour and a step larger when it is the slide shown. Hit area 28 × 44 */
.cw-gallery__mark { position: relative; flex: none; width: 28px; height: var(--touch-target, 44px); margin: 0; padding: 0; border: 0; background: none; cursor: pointer }
.cw-gallery__mark::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; box-sizing: border-box; translate: -50% -50%;
  border: var(--stroke-line, 1px) solid var(--line-strong); border-radius: 50%; background: transparent;
  transition: background-color var(--duration-fast, .2143s) var(--ease-arrive, ease-out), border-color var(--duration-fast, .2143s) var(--ease-arrive, ease-out), scale var(--duration-normal, .3214s) var(--ease-soft, cubic-bezier(.2, 0, 0, 1)) }
.cw-gallery__mark[aria-current="true"]::before { background: var(--indicator); border-color: var(--indicator); scale: 1.34 }
@media (hover: hover) { .cw-gallery__mark:not([aria-current="true"]):hover::before { background: var(--line) } }
.cw-gallery__mark:focus { outline: none }
.cw-gallery__mark:focus-visible::before { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: var(--focus-offset, 2px) }
.cw-gallery__nav { display: flex; gap: var(--space-2, 8px); margin-left: auto }
.cw-mirror { display: inline-grid; transform: scaleX(-1) }

/* loop: one place for every slide; the view clips the row and hands sideways drags to the loop (vertical ones stay the page's) */
.cw-gallery[data-mode="loop"] .cw-gallery__view { overflow: clip; scroll-snap-type: none; touch-action: pan-y }
.cw-gallery[data-mode="loop"] .cw-gallery__view[data-drag] { cursor: grab; user-select: none; -webkit-user-select: none }
.cw-gallery[data-mode="loop"] .cw-gallery__view[data-drag]:active { cursor: grabbing }
.cw-gallery[data-mode="loop"] img { pointer-events: none; -webkit-user-drag: none }   /* a drag moves the loop, never the picture */
.cw-gallery[data-mode="loop"] .cw-gallery__track { display: grid; width: auto }
.cw-gallery[data-mode="loop"] .cw-gallery__item { grid-area: 1 / 1; will-change: transform }

/* pin: the gallery holds the screen; the row is moved, not scrolled; the marks stand in the left margin on a raised surface, a 1px rail with a fill */
.cw-gallery[data-mode="pin"] .cw-gallery__view { overflow: clip; scroll-snap-type: none }
.cw-gallery[data-mode="pin"] .cw-gallery__track { will-change: transform }
.cw-gallery[data-mode="pin"] .cw-gallery__bar { position: absolute; z-index: 2; left: max(var(--space-2, 8px), calc(var(--inset) / 2 - 24px)); top: 50%; translate: 0 -50%;
  flex-direction: column; flex-wrap: nowrap; gap: var(--space-2, 8px); padding: var(--space-3, 12px) 0; box-sizing: border-box; width: 48px;
  border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-surface, 16px); background: var(--surface); color: var(--fg); box-shadow: var(--shadow-2) }
.cw-gallery[data-mode="pin"] .cw-gallery__count, .cw-gallery[data-mode="pin"] .cw-gallery__mark::before { color: var(--fg) }
.cw-gallery[data-mode="pin"] .cw-gallery__fill { background: var(--fg) }
.cw-gallery[data-mode="pin"] .cw-gallery__line { background: var(--line) }
.cw-gallery[data-mode="pin"] .cw-gallery__count { min-width: 0; writing-mode: vertical-rl; rotate: 180deg; font-size: 14px }
.cw-gallery[data-mode="pin"] .cw-gallery__marks { flex-direction: column; flex-wrap: nowrap }
.cw-gallery[data-mode="pin"] .cw-gallery__mark { width: 44px; height: 28px }
.cw-gallery[data-mode="pin"] .cw-gallery__line { display: block; position: absolute; left: 50%; top: 14px; bottom: 14px; width: var(--stroke-line, 1px); translate: -50% 0; background: var(--line) }
.cw-gallery__fill { position: absolute; inset: 0; background: var(--fg); transform-origin: 50% 0; transform: scaleY(0) }
.cw-gallery[data-mode="pin"] .cw-gallery__nav { display: none }

/* credential: one official badge or certificate, shown exactly as issued — on a white card, never recoloured, cropped, filtered or redrawn.
   Only its displayed size and place change. The badge's own white ground meets the card's white face, so no edge shows. The face is white
   on every ground (the one literal white here, by the issuer's rules), with paper's text tones and a 1px line; no shadow at rest, like a card. */
.cw-cred { display: grid; grid-template-rows: auto 1fr; gap: var(--space-4, 16px); box-sizing: border-box; height: 100%; margin: 0; padding: var(--space-4, 16px) var(--space-4, 16px) var(--space-5, 24px);
  border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-surface, 16px); background: var(--white); color: var(--fg); box-shadow: none }
.cw-cred__badge { display: grid; place-items: center; aspect-ratio: 1; min-width: 0 }
.cw-cred__badge img { display: block; width: 100%; height: 100%; object-fit: contain }
.cw-cred figcaption { display: grid; gap: var(--space-1, 4px); align-content: start }
.cw-cred figcaption > * { margin: 0 }
.cw-cred figcaption .ui-label { color: var(--fg-2) }

/* the AWS logo: the official file on a white piece (white on every ground), with the file's own clear space; shown, never altered */
.cw-awsmark { display: inline-grid; place-items: center; box-sizing: border-box; width: calc(var(--space-10, 128px) + var(--space-6, 32px)); padding: var(--space-2, 8px) var(--space-3, 12px);
  border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-control, 10px); background: var(--white); box-shadow: var(--shadow-1) }
.cw-awsmark img { display: block; width: 100%; height: auto }
.cw-creds__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5, 24px) var(--space-6, 32px); margin-bottom: var(--space-5, 24px) }
.cw-creds__head > div { display: grid; gap: var(--space-3, 12px); max-width: var(--measure-body, 36em) }
.cw-creds__head p { margin: 0; color: var(--fg-2) }

/* footer marks: the two marks made for dark grounds (white artwork), at their own proportions */
.cw-foot__creds { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5, 24px); margin: 0; padding: 0; list-style: none }
.cw-foot__creds img { display: block; width: auto; height: var(--space-9, 96px) }   /* near the live site's 86 px, so a badge's small print stays legible */

/* filter (UI.filter + Stage.flip): chips over a wrap of items; leaving items shrink away, arriving ones spring in */
.cw-filter { display: grid; gap: var(--space-5, 24px) }
.cw-filter__items { display: flex; flex-wrap: wrap; gap: var(--space-4, 16px); margin: 0; padding: 0; list-style: none }
.cw-filter__items > li { width: clamp(11.5rem, 8rem + 8cqi, 13rem) }   /* wide enough for a one-word card title at ui-h3 */

/* band, data-kind="arc": the closing ground arrives as a logo arc and lands flat (Stage.band). Still: a strip of the next ground.
   The lead keeps the band's film edge (the films' 4px giant stroke): a hand-over between grounds, not an interface border */
.cw-band__arc { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none }
.cw-band__fill { fill: var(--to) }
.cw-band__lead { fill: none; stroke: var(--lead, var(--cyan)); stroke-width: var(--stroke-piece-giant, 4px); vector-effect: non-scaling-stroke }
.cw-band[data-done] .cw-band__arc { visibility: hidden }

/* transit (Stage.transit): the cover for a long jump inside the page — above the bar and the sheet, below nothing; never takes a press */
.cw-transit { position: fixed; inset: 0; z-index: 85; pointer-events: none; visibility: hidden }
.cw-transit svg { display: block; width: 100%; height: 100% }

/* the mobile sheet, orchestrated by Stage.sheet (easeReverse): GSAP owns its place and its parts while motion is on */
.cw-sheet[data-live], .cw-sheet[data-live].is-open { transform: none; transition: none; visibility: hidden }
.cw-sheet[data-live] .cw-sheet__links > li { opacity: 1; transform: none; transition: none }

/* between pages: the next page rises over the last with an arched edge (cross-document view transitions, where the browser has them).
   Nothing holds navigation: the browser shows the new page as soon as it is ready, and the rise plays over it */
@view-transition { navigation: auto }
::view-transition-old(root) { animation: none }
::view-transition-new(root) { animation: cw-transit-rise .6s cubic-bezier(.65, 0, .35, 1) both }
@keyframes cw-transit-rise {
  0% { clip-path: polygon(0% 100%, 0.00% 100.00%, 6.25% 100.00%, 12.50% 100.00%, 18.75% 100.00%, 25.00% 100.00%, 31.25% 100.00%, 37.50% 100.00%, 43.75% 100.00%, 50.00% 100.00%, 56.25% 100.00%, 62.50% 100.00%, 68.75% 100.00%, 75.00% 100.00%, 81.25% 100.00%, 87.50% 100.00%, 93.75% 100.00%, 100.00% 100.00%, 100% 100%) }
  60% { clip-path: polygon(0% 100%, 0.00% 52.00%, 6.25% 46.15%, 12.50% 40.52%, 18.75% 35.33%, 25.00% 30.79%, 31.25% 27.06%, 37.50% 24.28%, 43.75% 22.58%, 50.00% 22.00%, 56.25% 22.58%, 62.50% 24.28%, 68.75% 27.06%, 75.00% 30.79%, 81.25% 35.33%, 87.50% 40.52%, 93.75% 46.15%, 100.00% 52.00%, 100% 100%) }
  100% { clip-path: polygon(0% 100%, 0.00% 0.00%, 6.25% 0.00%, 12.50% 0.00%, 18.75% 0.00%, 25.00% 0.00%, 31.25% 0.00%, 37.50% 0.00%, 43.75% 0.00%, 50.00% 0.00%, 56.25% 0.00%, 62.50% 0.00%, 68.75% 0.00%, 75.00% 0.00%, 81.25% 0.00%, 87.50% 0.00%, 93.75% 0.00%, 100.00% 0.00%, 100% 100%) } }

/* contrast themes (Windows): the browser drops every box-shadow and background, so edges become 1px borders and decoration steps aside */
@media (forced-colors: active) {
  .cw-giant, .cw-band, canvas.cw-field, .cw-hub__lines, .cw-nav__progress, .cw-planes__guide, .cw-planes__plane { display: none }
  .cw-marker, .cw-hub__node, .cw-partner, .cw-case, .cw-who, .cw-alarm__spend, .cw-alarm__finds li { border: var(--stroke-line, 1px) solid CanvasText }
  .cw-who[data-who="both"] { background: Canvas }
  .cw-seg__opt[aria-checked="true"], .cw-page-link[aria-current="page"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; box-shadow: none }
  .cw-nav__ind, .cw-steps__rail, .cw-steps__track { background: CanvasText }
  .cw-steps__list > li[data-on] .cw-steps__node { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight }
  .cw-piece, .cw-film__screen, .cw-film__big { border-color: CanvasText }
  .cw-film__screen::before, .cw-film__marks { display: none }
  .cw-film__ch[aria-current="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight } .cw-film__ch[aria-current="true"] > span { color: HighlightText }
  .cw-film__seek { -webkit-appearance: auto; appearance: auto }   /* the native slider, drawn in system colours */
  .cw-transit, .cw-band__arc { display: none }
  .cw-cred, .cw-awsmark { border: var(--stroke-line, 1px) solid CanvasText }
  .cw-gallery__mark::before { border-color: CanvasText }
  .cw-gallery__mark[aria-current="true"]::before { forced-color-adjust: none; background: Highlight; border-color: Highlight }
  .cw-gallery__fill { background: CanvasText }
  .cw-foot__creds li { forced-color-adjust: none; background: var(--night) }   /* the marks are white artwork: keep their dark ground */
  :focus-visible { outline-color: Highlight !important }
}

/* =====================================================================================================================
   v6 · the service page's parts (5 Nov 2026), promoted from the Cloud Operations page: the bar over a photograph, the photographic hero
   and its light lines, the kinetic headline, the console preview, the line graphics, figures with a measure drawing, the film dialog.
   Values from tokens; component-level custom properties (--cw-*) are the knobs a page may set. Motion: CWFilm.Stage (v6 section).
   ===================================================================================================================== */

/* the bar over a photograph (cw-nav--over + UI.bar { over: hero }): transparent with white words, the white logo and a white call to action
   while the hero lies under it; then the solid sticky bar on its ground. Two logo images stacked (.cw-nav__mark--ink, --white) swap by
   opacity, or one runtime logo (CWFilm.logoSVG('white')) */
.cw-nav--over { transition: background-color var(--duration-normal, .3214s) var(--ease-soft, ease), color var(--duration-normal, .3214s) var(--ease-soft, ease),
  box-shadow var(--duration-fast, .2143s) var(--ease-soft, ease), transform var(--duration-normal, .3214s) var(--ease-cut, ease-in-out) }
.cw-nav__logo { position: relative }
.cw-nav__mark { display: block; width: 100%; height: auto; transition: opacity var(--duration-normal, .3214s) var(--ease-soft, ease) }
.cw-nav__mark--white { position: absolute; left: 0; top: 50%; translate: 0 -50%; opacity: 0 }
/* the over state recolours only the bar's own parts, so an open menu keeps its surface tones and focus ring */
.cw-nav--over.is-over { background: transparent; box-shadow: none }
.cw-nav--over.is-over > .cw-nav__logo, .cw-nav--over.is-over .cw-nav__link, .cw-nav--over.is-over > .cw-nav__cta, .cw-nav--over.is-over > .cw-nav__menu {
  --focus: var(--white); --fg: var(--white); --fg-2: color-mix(in srgb, var(--white) 80%, transparent); --indicator: var(--cyan) }   /* 80% white on navy 11.8:1 */
.cw-nav--over.is-over .cw-nav__ind { background: var(--cyan) }
.cw-nav--over.is-over .cw-nav__mark--ink { opacity: 0 }
.cw-nav--over.is-over .cw-nav__mark--white { opacity: 1 }
.cw-nav--over.is-over > .cw-nav__cta { --cta: var(--white); --on-cta: var(--navy); --cta-hover: var(--grey-200) }
.cw-nav--over.is-over > .cw-nav__menu { --line-strong: color-mix(in srgb, var(--white) 40%, transparent) }   /* 3.8:1 on navy */
.cw-nav--over.is-over .cw-nav__progress { opacity: 0 }
/* the hero slides under the bar and its hairline */
.cw-nav--over + * .cw-photo-hero:first-child, .cw-nav--over ~ main > .cw-photo-hero:first-child { margin-top: calc(-1 * var(--nav-height, 72px)) }

/* the photographic hero (Stage.photoHero). The frame keeps the photograph's proportions (--cw-photo-ratio, width ÷ height), so the <img>
   (object-fit: cover) and the light-line <svg> (viewBox = the photo's pixels, xMidYMid slice) share one coordinate system. It is placed so
   the subject (--cw-photo-tip: its x as a share of the photo) lands just right of the text column at every width. Under 880 px of hero the
   photograph sits above and the words below it on the navy; --cw-photo-x0 and --cw-photo-vis choose the slice shown (shares of the photo) */
.cw-photo-hero { --cw-photo-ratio: 1.7768; --cw-photo-tip: .44; --cw-photo-x0: .402; --cw-photo-vis: .598; --cw-hero-h: clamp(680px, 100svh, 1000px);
  --cw-margin: clamp(20px, 4vw, 40px); --cw-glow: 5px; --cw-glow-2: 8px;
  position: relative; z-index: 0; isolation: isolate; overflow: clip; container-type: inline-size; box-sizing: border-box; display: flex; align-items: center;
  min-height: var(--cw-hero-h); padding: calc(var(--nav-height, 72px) + clamp(32px, 5vh, 72px)) var(--cw-margin) clamp(72px, 10vh, 128px);
  background: var(--navy); color: var(--fg) }
.cw-photo-hero__media { position: absolute; inset: 0; z-index: -1; pointer-events: none }
.cw-photo-hero__media, .cw-photo-hero__in { --cw-full: calc(100cqw + 2 * var(--cw-margin)); --cw-text-w: clamp(400px, 36cqw, 560px);
  --cw-wl: calc(var(--cw-margin) + max(0px, (100cqw - var(--container-max, 1280px)) / 2)) }
.cw-photo-hero__frame { --cw-tip: calc(var(--cw-wl) + var(--cw-text-w) + clamp(24px, 3cqw, 56px));
  --cw-fw: max(calc(var(--cw-tip) / var(--cw-photo-tip)), calc((var(--cw-full) - var(--cw-tip)) / (1 - var(--cw-photo-tip))), calc(var(--cw-hero-h) * var(--cw-photo-ratio)));
  position: absolute; top: 0; left: calc(var(--cw-tip) - var(--cw-photo-tip) * var(--cw-fw)); width: var(--cw-fw); aspect-ratio: var(--cw-photo-ratio); transform-origin: 62% 40%; will-change: transform }
.cw-photo-hero__img, .cw-photo-hero__lines, .cw-photo-hero__veil { position: absolute; inset: 0; display: block; width: 100%; height: 100% }
.cw-photo-hero__img { object-fit: cover; object-position: 50% 50% }
.cw-photo-hero__veil { background: var(--navy); opacity: 0 }
.cw-photo-hero__lines { overflow: visible }
/* the scrim: the left third holds the words, the top holds the bar, the bottom hands over to the next section */
.cw-photo-hero__shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--navy) 90%, transparent) 0%, color-mix(in srgb, var(--navy) 76%, transparent) 28%, color-mix(in srgb, var(--navy) 30%, transparent) 46%, transparent 60%),
              linear-gradient(180deg, color-mix(in srgb, var(--navy) 55%, transparent) 0, transparent 160px),
              linear-gradient(0deg, color-mix(in srgb, var(--navy) 70%, transparent) 0%, transparent 26%) }
.cw-photo-hero__in { position: relative; z-index: 1; width: 100%; max-width: var(--container-max, 1280px); margin-inline: auto }
.cw-photo-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5, 24px); width: var(--cw-text-w); max-width: 100% }
.cw-photo-hero__text .cw-eyebrow { color: var(--cyan-mid) }
.cw-photo-hero .cw-kinetic { --cw-kinetic-size: calc(var(--cw-text-w) / 7.4) }
/* the parallax: the photograph drifts down at 18% of the scroll while the hero leaves — a scroll-driven animation (the compositor); a page
   that cannot scroll itself (a content-height frame) stays still */
@supports (animation-timeline: scroll()) { .cw-photo-hero__media { animation: cw-photo-drift linear both; animation-timeline: scroll(root block); animation-range: 0 100svh } }
@keyframes cw-photo-drift { to { transform: translate3d(0, 18%, 0) } }
@container (max-width: 879px) {
  .cw-photo-hero__media, .cw-photo-hero__in { --cw-text-w: 100% }
  .cw-photo-hero__frame { left: calc(var(--cw-full) * var(--cw-photo-x0) / var(--cw-photo-vis) * -1); width: calc(var(--cw-full) / var(--cw-photo-vis)) }
  .cw-photo-hero__in { padding-top: calc(var(--cw-full) / (var(--cw-photo-ratio) * var(--cw-photo-vis)) * 0.6 - var(--nav-height, 72px) - clamp(32px, 5vh, 72px)) }
  .cw-photo-hero__text { width: auto; max-width: 40rem }
  .cw-photo-hero .cw-kinetic { --cw-kinetic-size: min(64px, 13cqw) }
  .cw-photo-hero__shade { --cw-fh: calc(var(--cw-full) / (var(--cw-photo-ratio) * var(--cw-photo-vis)));
    background: linear-gradient(180deg, color-mix(in srgb, var(--navy) 50%, transparent) 0, transparent 120px),
      linear-gradient(180deg, transparent 0, transparent calc(var(--cw-fh) * 0.56), color-mix(in srgb, var(--navy) 82%, transparent) calc(var(--cw-fh) * 0.8), var(--navy) calc(var(--cw-fh) - 1px)) } }
@container (max-width: 599px) { .cw-photo-hero__media, .cw-photo-hero__in { --cw-photo-x0: .4187; --cw-photo-vis: .5144 } }
/* the hero is its own container, so its own box answers to the viewport: 955 px is an 880 px hero plus its margins */
@media (max-width: 955px) { .cw-photo-hero { align-items: flex-start; min-height: 0; padding-bottom: calc(var(--space-9, 96px) + var(--space-5, 24px)) } }

/* light lines: traced on a photograph's own pixels (or drawn on a ground) — a soft cyan halo and a hot core per line, and the pulse that
   runs them (Stage.light). Strokes never scale with the drawing */
.cw-light__halo { fill: none; stroke: var(--cyan); stroke-width: var(--cw-glow, 5px); stroke-linecap: round; opacity: .2; vector-effect: non-scaling-stroke }
.cw-light__core { fill: none; stroke: var(--light-core); stroke-width: 1.25px; stroke-linecap: round; opacity: .8; vector-effect: non-scaling-stroke }
.cw-light__pulse { fill: none; stroke: var(--white); stroke-width: 2px; stroke-linecap: round; opacity: 0; vector-effect: non-scaling-stroke }
.cw-light__pulse--halo { stroke: var(--cyan); stroke-width: var(--cw-glow-2, 8px) }

/* the kinetic headline (Stage.kinetic): set lines that rise from masks, a light line under the marked phrase, a quiet clause that resolves
   from loose tracking into the muted tone. The display face from 34 px up. Set the size with --cw-kinetic-size; it never exceeds 13% of its
   container's width (--cw-kinetic-cap), so the longest word of a line still fits on a phone */
.cw-kinetic { position: relative }
.cw-kinetic__text { margin: 0; font: 500 min(var(--cw-kinetic-size, clamp(46px, 4.2vw + 14px, 80px)), var(--cw-kinetic-cap, 13cqi))/0.98 var(--font-display); letter-spacing: -0.04em; color: var(--fg) }
.cw-kinetic__l { display: block; white-space: nowrap }
.cw-kinetic__l--wrap { white-space: normal }
.cw-kinetic__opt { color: var(--muted) }
.cw-kinetic .cw-kinetic__line-mask { padding: .06em 0 .18em; margin: -.06em 0 -.18em }   /* SplitText's masks keep the descenders */
.cw-kinetic__beam { position: absolute; left: 0; top: 0; width: 0; height: 12px; pointer-events: none; overflow: hidden; opacity: 0 }
.cw-kinetic__beam > i { position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--cyan) 60%, transparent) 55%, var(--cyan) 82%, var(--light-core) 97%, var(--white) 100%) center / 100% 2px no-repeat,
              linear-gradient(90deg, transparent 25%, color-mix(in srgb, var(--cyan) 30%, transparent) 80%, color-mix(in srgb, var(--cyan) 60%, transparent) 100%) center / 100% 5px no-repeat }
@container (max-width: 299px) { .cw-kinetic__text { hyphens: auto; overflow-wrap: anywhere } .cw-kinetic__l { white-space: normal } }

/* the console preview (Stage.consolePreview): a product preview with illustrative data, as a figure with role="img" */
.cw-console { container-type: inline-size; overflow: hidden; background: var(--surface); border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-surface, 16px); box-shadow: var(--shadow-3); color: var(--fg) }
.cw-console--lift { box-shadow: 0 2px 6px color-mix(in srgb, var(--navy) 12%, transparent), 0 40px 80px -32px color-mix(in srgb, var(--navy) 45%, transparent) }   /* over a photograph's edge */
.cw-console__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3, 12px); padding: var(--space-4, 16px) var(--space-5, 24px); border-bottom: var(--stroke-line, 1px) solid var(--line) }
.cw-console__name { font: 600 14px/normal var(--font-sans) }
.cw-console__status { display: inline-flex; align-items: center; gap: var(--space-2, 8px); padding: 6px 10px; border-radius: var(--radius-chip, 6px); background: var(--emerald-tint); color: var(--emerald-dark); font: 500 12px/1 var(--font-sans); white-space: nowrap }
.cw-console__status > i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald) }
.cw-console__chart { padding: var(--space-5, 24px) var(--space-5, 24px) var(--space-3, 12px) }
.cw-console__head { display: flex; justify-content: space-between; gap: var(--space-3, 12px); padding-bottom: var(--space-3, 12px); font: 500 12px/normal var(--font-sans); color: var(--muted) }
.cw-console__head :last-child { color: var(--fg) }
.cw-chart { display: block; width: 100%; height: auto; overflow: visible }
.cw-chart * { vector-effect: non-scaling-stroke }
.cw-chart__grid { fill: none; stroke: var(--line); stroke-width: 1px }
.cw-chart__area { fill: var(--cyan); fill-opacity: .06; stroke: none }
.cw-chart__line { fill: none; stroke: var(--cyan-dark); stroke-width: 1.5px; stroke-linejoin: round; stroke-linecap: round }
.cw-chart__mark { fill: none; stroke: var(--wire); stroke-width: 1px; stroke-dasharray: 3 3 }
.cw-chart__ping { fill: none; stroke: var(--cyan); stroke-width: 1px; opacity: 0 }
.cw-chart__dot { fill: var(--surface); stroke: var(--fg); stroke-width: 1.5px }
.cw-console__ticks { display: flex; justify-content: space-between; padding-top: var(--space-2, 8px); font: 500 11px/normal var(--font-sans); color: var(--muted) }
.cw-console__rows { list-style: none; margin: 0; padding: var(--space-1, 4px) var(--space-5, 24px) var(--space-2, 8px) }
.cw-console__rows > li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3, 12px); padding: var(--space-3, 12px) 0; border-top: var(--stroke-line, 1px) solid var(--line); font: 500 14px/normal var(--font-sans) }
.cw-console__state { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/normal var(--font-mono); color: var(--muted); white-space: nowrap }
.cw-console__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2, 8px); padding: var(--space-3, 12px) var(--space-5, 24px); background: var(--surface-2); border-top: var(--stroke-line, 1px) solid var(--line); font: 500 12px/1.4 var(--font-sans); color: var(--fg-2) }
.cw-tick { display: block; flex: none }
.cw-tick path { fill: none; stroke: var(--ok-mark, var(--emerald)); stroke-width: 1.5px; stroke-linecap: round; stroke-linejoin: round }
@container (max-width: 359px) { .cw-console__top, .cw-console__chart, .cw-console__rows, .cw-console__foot { padding-inline: var(--space-4, 16px) } }

/* line graphics (CWFilm.GR, Stage.graphics): inline SVG in the interface line family, drawn at rest as their final state; hairline ink and one
   cyan accent. .ln drawing (1.25) · .st structure (1.5) · .gd wire (1) · .fa faint guide (1) · .da dashed · .ac the accent (1.5) ·
   .inf/.wf/.acf fills · .lbl a mono label. Strokes never scale with the drawing */
.cw-g { display: block; overflow: visible; max-width: 100%; height: auto }
.cw-g path, .cw-g rect, .cw-g circle, .cw-g line { vector-effect: non-scaling-stroke }
.cw-g .ln { fill: none; stroke: var(--fg-2); stroke-width: 1.25px; stroke-linecap: round; stroke-linejoin: round }
.cw-g .st { fill: none; stroke: var(--fg); stroke-width: 1.5px; stroke-linecap: round }
.cw-g .gd { fill: none; stroke: var(--wire); stroke-width: 1px; stroke-linecap: round }
.cw-g .fa { fill: none; stroke: var(--line); stroke-width: 1px }
.cw-g .da { stroke-dasharray: 3 3 }
.cw-g .ac { fill: none; stroke: var(--cyan); stroke-width: 1.5px; stroke-linecap: round; stroke-linejoin: round }
.cw-g .inf { fill: var(--fg-2) }
.cw-g .wf { fill: var(--surface) }
.cw-g .acf { fill: var(--cyan); stroke: none }
.cw-g .lbl { font: 500 10.5px var(--font-mono); fill: var(--muted) }
/* a well that holds a graphic inside a card */
.cw-well { display: grid; place-items: center; box-sizing: border-box; padding: var(--space-2, 8px); border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-control, 10px); background: var(--surface-2) }
.cw-well--fill .cw-g { width: 100%; max-width: calc(var(--cw-g-w, 9999px) * 1.5) }   /* the drawing fills the well (steps, panels) up to 1.5× its own size, so its
   labels stay near 16 px; by default it keeps its own size, never wider than the well */

/* a figure with a measure drawing: a hairline rule that draws, the number (an odometer), the label, and optionally the drawing of what it measures */
.cw-fig { position: relative; display: flex; flex-direction: column; gap: var(--space-3, 12px); padding-top: var(--space-6, 32px) }
.cw-fig__rule { position: absolute; left: 0; right: 0; top: 0; display: block; height: 1px; background: var(--line); transform-origin: 0 50% }
.cw-fig__n { margin: 0; font: 500 clamp(48px, 1.6vw + 32px, 60px)/1 var(--font-display); letter-spacing: -0.035em; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap }
.cw-fig__n small { font-size: .42em; letter-spacing: -0.01em; margin-left: var(--space-1, 4px) }
.cw-fig__g { width: 100%; max-width: 280px; margin: var(--space-2, 8px) 0 var(--space-1, 4px) }
.cw-fig__l { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fg-2); max-width: 22em }

/* the film dialog (UI.filmDialog): the film in a native dialog, at most 1040 px wide */
.cw-filmdlg { width: min(1040px, calc(100vw - 32px)) }
.cw-filmdlg__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4, 16px); padding: var(--space-5, 24px) var(--space-5, 24px) var(--space-4, 16px) }
.cw-filmdlg__title { margin: 0; font: 500 clamp(24px, 2.4vw, 32px)/1.1 var(--font-display); letter-spacing: -0.02em }
.cw-filmdlg__meta { margin: var(--space-2, 8px) 0 0; font: 500 13px/1.4 var(--font-sans); color: var(--muted) }
.cw-filmdlg__body { padding: 0 var(--space-5, 24px) var(--space-5, 24px) }
.cw-filmdlg .cw-film__screen { --film-bezel: 0px; padding: 0; border: var(--stroke-line, 1px) solid var(--line); border-radius: var(--radius-control, 10px); background: var(--surface-2); box-shadow: none; overflow: hidden }
.cw-filmdlg .cw-film__video { border-radius: 0 }

/* the intro's first frame (html.cw-intro, added by a one-line script in <head>; Stage.photoHero removes it as the intro starts, the script
   after 1.5 s at the latest) and print */
.cw-intro .cw-photo-hero__text > *, .cw-intro [data-cw-follow] { opacity: 0 }
.cw-intro .cw-photo-hero__frame { transform: scale(1.06) }
.cw-intro .cw-photo-hero__veil { opacity: .55 }
.cw-intro .cw-light__core, .cw-intro .cw-light__halo { opacity: 0 }
@media print { .cw-photo-hero__media { display: none !important } .cw-photo-hero { background: none; color: var(--night) } }
@media (forced-colors: active) { .cw-photo-hero__shade, .cw-photo-hero__lines, .cw-kinetic__beam { display: none } .cw-console, .cw-well { border-color: CanvasText } }
