/* Lebara proposal — Co-team. Built on the ClickHouse proposal's layout; Lebara's brand on top:
   Smarter Blue, Brainy Navy for dark sections, Savvy Sand for light ones, Sharp Sky and Think Pink as
   accents; Lebara Sans Bold for headings (sentence case only), Vanilla Sans for text. */
@font-face { font-family: 'Lebara Sans'; src: url(fonts/lebara-sans-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Vanilla Sans'; src: url(fonts/vanilla-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vanilla Sans'; src: url(fonts/vanilla-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Vanilla Sans'; src: url(fonts/vanilla-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Vanilla Sans'; src: url(fonts/vanilla-700.woff2) format('woff2'); font-weight: 700 800; font-display: swap; }
@font-face { font-family: 'Vanilla Sans'; src: url(fonts/vanilla-900.woff2) format('woff2'); font-weight: 900; font-display: swap; }
:root {
  --y: #D8E3FF; --y-soft: #c5d7ff; --ink: #0E1257; --card: #131866; --card-2: #1A2179;
  --line: #252D8A; --line-2: #363EA0; --mute: #A0A6E0; --olive: #5b5f93; --white: #fff;
  --blue: #242EE0; --pink: #DB00AF; --sand: #F4F0ED; --black: #070723;
  --r-m: 14px; --r-l: 22px; --wrap: 1320px; --gut: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --mono: 'Vanilla Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --sans: 'Vanilla Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --head: 'Lebara Sans', 'Figtree', 'Segoe UI', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg, video, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; border-radius: 4px; }
.band :focus-visible { outline-color: var(--ink); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.num { font-variant-numeric: tabular-nums; }
.small { font-size: 14px; line-height: 1.45; }
.mute { color: var(--mute); }
.band .mute { color: var(--olive); }
section { position: relative; }
.dark { background: var(--ink); color: var(--white); }
.band { background: var(--y); color: var(--ink); }
.pad { padding-block: clamp(72px, 9vw, 136px); }

/* top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; height: 64px; display: flex; align-items: center; background: rgba(14,18,87,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
.top .wrap { display: flex; align-items: center; gap: 16px; }
.lockup { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.lockup .ch { width: 118px; height: 35px; color: var(--white); }
.lockup .x { width: 1px; height: 22px; background: var(--line-2); }
.lockup .ct { width: 86px; height: 14px; color: var(--white); opacity: .9; }
.top .meta { color: var(--mute); font-size: 14px; margin-left: auto; }
.top .btn { margin-left: 18px; }
@media (max-width: 720px) { .top .meta { display: none; } .top .btn { margin-left: auto; } .lockup .ch { width: 96px; } .lockup .ct { width: 70px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background .2s, color .2s; }
.btn:active { transform: scale(.98); }
.btn-y { background: var(--y); color: var(--ink); } .btn-y:hover { background: #fff; }
.btn-k { background: var(--ink); color: var(--y); } .btn-k:hover { background: #222A88; }
.btn-line { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); } .btn-line:hover { box-shadow: inset 0 0 0 1px var(--white); }
.band .btn-line { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); } .band .btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-s { height: 40px; padding: 0 16px; font-size: 15px; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 15px; font-weight: 500; }

/* type */
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.h1 { font-size: clamp(44px, 6.6vw, 108px); line-height: .9; letter-spacing: -.01em; max-width: 13ch; }
.h2 { font-size: clamp(38px, 5vw, 76px); line-height: .94; letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; max-width: 34em; margin: 0; }

/* hero */
.hero { padding-block: clamp(64px, 9vw, 140px) clamp(64px, 8vw, 120px); overflow: hidden; }
.hero-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 48px; margin-top: clamp(28px, 3.5vw, 44px); }
.hero-row .lead { color: #D3D7F6; flex: 1 1 420px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-field { position: relative; height: clamp(200px, 32vh, 380px); margin-top: clamp(48px, 6vw, 88px); }
.hero-field canvas { width: 100%; height: 100%; }
.hero-read { position: absolute; left: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); top: -30px; font: 13px var(--mono); color: var(--mute); }
.hero-read b { color: var(--y); font-weight: 400; }

/* hero globe */
.hero { --hero-gap: clamp(24px, 4vw, 64px); --globe: min(58vw, 880px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--hero-gap); align-items: center; }
.hero-text { position: relative; z-index: 1; }
.hero-text .lead { color: #D3D7F6; margin-top: clamp(24px, 3vw, 40px); }
.hero-text .hero-cta { margin-top: clamp(24px, 3vw, 36px); }
/* The globe is about two and a half times the size it had. Its canvas is square, the earth fills 92%
   of it, and the earth starts 16px after the text column ends. Where the screen is narrower than the
   globe needs, it runs off the right edge (the hero clips it) instead of shrinking; globe.js keeps the
   five market pills inside the visible part. It never adds height to the hero. */
.hero-globe { position: relative; align-self: stretch; width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.globe-box { position: absolute; top: 50%; left: calc(16px - var(--hero-gap) - var(--globe) * .04); width: var(--globe); aspect-ratio: 1; transform: translateY(-50%); }
.globe-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fact { position: absolute; display: flex; align-items: center; gap: 12px; max-width: 46%; padding: 10px 14px 10px 12px; border-radius: 12px; background: rgba(19,24,102,.94); border: 1px solid var(--line); }
.fact b { flex: none; font-size: clamp(30px, 2.8vw, 40px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--y); }
.fact span { font-size: 14px; line-height: 1.3; color: #D3D7F6; }
.fact.f1 { left: 0; top: 0; } .fact.f2 { right: 0; bottom: 0; }
.globe-cap { font: 14px var(--mono); color: var(--mute); white-space: nowrap; min-height: 1.4em; text-align: center; }
.globe-cap b { color: var(--y); font-weight: 500; margin-right: .6em; }
/* 900-1100: two equal columns; the facts stand number over text so they stay narrow */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fact { flex-direction: column; align-items: flex-start; gap: 4px; max-width: 42%; }
}
/* one column below 900: the globe under the text, its two facts side by side under the globe */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-globe { justify-self: center; max-width: 640px; }
  .globe-box { position: static; width: auto; transform: none; aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .globe-box canvas { position: static; grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 1; }
  .fact { position: static; max-width: none; align-items: flex-start; flex-direction: column; gap: 4px; }
}
/* phones: the globe uses the whole screen width, the gutters included */
@media (max-width: 640px) { .hero-globe { justify-self: stretch; width: auto; max-width: none; margin-inline: calc(-1 * var(--gut)); } }

/* demo tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: clamp(28px, 3vw, 44px); }
.tab { height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: #BEC3EF; cursor: pointer; font-size: 16px; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.tab:hover { color: #fff; border-color: #5058B8; }
.tab[aria-selected="true"] { background: var(--y); color: var(--ink); border-color: var(--y); }
.demo-body { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); grid-template-areas: 'p s'; gap: clamp(20px, 2.4vw, 32px) clamp(20px, 3vw, 44px); margin-top: 24px; align-items: start; }
.player-col { grid-area: p; } .demo-side { grid-area: s; }
.player { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--r-l); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player .vposter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; pointer-events: none; }
.player.vplaying .vposter { opacity: 0; }
.vbar { position: absolute; right: 12px; top: 12px; display: flex; gap: 8px; opacity: 0; transition: opacity .2s; }
.player:hover .vbar, .vbar:focus-within { opacity: 1; }
@media (hover: none) { .vbar { opacity: 1; } }
.vbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(14,18,87,.62); color: var(--white); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.vbtn svg { width: 20px; height: 20px; fill: currentColor; }
.vbtn:focus-visible { outline: 2px solid var(--y); outline-offset: 2px; }
.player:fullscreen { border-radius: 0; background: #000; }
.player:fullscreen video, .player:fullscreen .vposter { object-fit: contain; }
.player:-webkit-full-screen { border-radius: 0; background: #000; }
.player:-webkit-full-screen video, .player:-webkit-full-screen .vposter { object-fit: contain; }
.player .pending { position: absolute; inset: 0; display: grid; place-items: center; }
.player .pending canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.player .pending span { position: relative; background: rgba(14,18,87,.8); color: #DDE0F8; padding: 8px 14px; border-radius: 999px; font-size: 15px; }
.demo-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.demo-lead { margin: 0; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; color: #E7E9FB; letter-spacing: -.01em; }
.demo-tools { display: flex; flex-direction: column; gap: 10px; }
.toolchips { display: flex; flex-wrap: wrap; gap: 8px; }

/* chapters */
.player-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.chapbar { display: flex; gap: 4px; height: 18px; align-items: center; }
.chapbar .seg { position: relative; height: 18px; padding: 0; border: 0; background: transparent; cursor: pointer; min-width: 0; }
.chapbar .seg::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: var(--line-2); transition: height .15s, top .15s; }
.chapbar .seg i { position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: var(--y); transform-origin: 0 50%; transform: scaleX(0); transition: height .15s, top .15s; }
.chapbar .seg:hover::before, .chapbar .seg:hover i { top: 5px; height: 8px; }
.chapbar .seg:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; border-radius: 4px; }
.chap-head { display: flex; justify-content: space-between; padding: 0 2px; }
.chaps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.chaps li { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.chaps .seek { display: flex; align-items: baseline; gap: 12px; min-width: 0; padding: 6px 0; border: 0; background: none; color: #D0D4F5; cursor: pointer; text-align: left; font: 600 16px/1.25 var(--sans); }
.chaps .seek .ts { font: 500 13px var(--mono); color: var(--mute); width: 34px; flex: none; }
.chaps .seek:hover .nm { color: var(--white); }
.chaps li.on .seek { color: var(--white); } .chaps li.on .seek .ts { color: var(--y); }
.chaps .cd { grid-column: 1 / -1; margin: 0 0 6px 46px; font-size: 14px; line-height: 1.45; color: var(--mute); display: none; }
.chaps li.on .cd { display: block; }
.chaps .fmt { margin: 0 0 6px 46px; font: 500 12.5px/1.4 var(--mono); color: #B9C8FF; display: none; }
.chaps li.on .fmt { display: block; }
.tdesc { font-size: 15px; color: var(--mute); margin: 4px 0 0; min-height: 4.4em; }
@media (max-width: 960px) { .demo-body { grid-template-columns: 1fr; grid-template-areas: 'p' 's'; } .tdesc { min-height: 0; } }

/* Try it: the Column Art lab */
.try-head { margin-bottom: clamp(16px, 2vw, 28px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; }
.try-head .lead { color: #D0D4F5; flex: 0 1 32em; margin: 0; }
#labHost { min-height: 320px; }
.chaps .cd a { color: var(--y); }
.lab { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
.lab-stage { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 21 / 9; max-width: 100%; background: var(--ink); border: 1px solid var(--line); }
.lab-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lab-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.lab-tile { position: relative; padding: 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: var(--y); cursor: pointer; aspect-ratio: 4 / 3; transition: transform .2s var(--ease), border-color .2s; }
.lab-tile canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab-tile span { position: absolute; left: 6px; bottom: 6px; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 600; }
.lab-tile.dark { background: var(--ink); }
.lab-tile.dark span { background: var(--y); color: var(--ink); }
.lab-tile:hover { transform: translateY(-2px); }
.lab-tile[aria-pressed="true"] { outline: 2px solid var(--y); outline-offset: 3px; }
.lab-tile:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.seg button:disabled { opacity: .35; cursor: not-allowed; }
.lab-stage .readout { position: absolute; left: 14px; bottom: 12px; font: 12px/1.4 var(--mono); color: var(--mute); }
.lab-stage.on-y .readout { color: #53561b; background: rgba(250,255,105,.88); }
.lab-stage .readout { background: rgba(14,18,87,.8); padding: 3px 7px; border-radius: 5px; left: 10px; bottom: 10px; }
.lab-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.lab-panel .lbl { font-size: 13px; font-weight: 600; color: #D0D4F5; display: block; margin-bottom: 6px; }
.field { width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: #0A0E45; padding: 0 12px; font: 600 16px var(--sans); color: #fff; }
.seg { display: flex; background: #0A0E45; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { flex: 1; height: 32px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; font-size: 14px; font-weight: 600; color: #BEC3EF; }
.seg button[aria-pressed="true"] { background: var(--y); color: var(--ink); }
.lab-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lab-count { margin: 6px 0 0; font-size: 12px; }
@media (max-width: 900px) { .lab { grid-template-columns: 1fr; } .lab-stage { aspect-ratio: 4 / 3; } }
@media (max-width: 600px) {
  .lab-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lab-tiles .lab-tile { grid-column: span 2; }
  .lab-tiles .lab-tile:nth-child(n+4) { grid-column: span 3; aspect-ratio: 16 / 9; }
  .lab-stage .readout { font-size: 11px; right: 14px; }
}

/* stack */
.stack-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; }
.stack-head .h2 { max-width: 13ch; }
.stack-head .lead { color: #1A2179; flex: 0 1 30em; }
.more { margin-top: 16px; }
.more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: '+'; font-size: 18px; line-height: 1; }
.more[open] > summary::after { content: '−'; }
.dark-more > summary { box-shadow: inset 0 0 0 1px var(--line-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; height: 34px; padding: 0 13px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(0,0,0,.28); background: transparent; color: #26280a; font-size: 14px; font-weight: 500; }
.chip:hover { background: rgba(0,0,0,.06); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--y); font-weight: 600; }
.chip.seen::after { content: ''; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--y); }
.chip.seen[aria-pressed="true"]::after { background: var(--y); box-shadow: 0 0 0 2px var(--ink); }
.chip.add { border-style: dashed; }
.chip-input { height: 34px; width: 150px; border-radius: 999px; border: 1px solid var(--ink); background: rgba(255,255,255,.4); color: var(--ink); padding: 0 13px; font-size: 14px; }
.legend { grid-column: 1 / -1; font-size: 13px; color: var(--olive); }
.mv-line { margin: 28px 0 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.01em; max-width: 36em; }

/* time and money back, under the tool picker */
.row-actions { display: flex; gap: 20px; flex-wrap: wrap; }

/* calculator (inside "Adjust the numbers") */
.rate { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 15px; color: #D0D4F5; }
.rate .field { width: 86px; height: 38px; }


footer { padding-block: 48px 64px; color: var(--mute); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
footer span { max-width: 44em; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }


@media (hover: none) {
  .chaps .add { height: 44px; padding: 0 14px 0 8px; }
  .chaps .seek { min-height: 44px; align-items: center; }
  .chapbar { height: 28px; } .chapbar .seg { height: 28px; }
  .chapbar .seg::before, .chapbar .seg i { top: 12px; }
  .seg button { min-height: 44px; }
}

/* how we work */
.how-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(24px, 4vw, 64px); align-items: end; }
.how-head .lead { color: #1A2179; }

/* moments from tools already running */
.cases-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 3.4vw, 48px); }
.cases-h { font-family: var(--head); font-size: clamp(36px, 4.4vw, 60px); font-weight: 700; letter-spacing: -.01em; line-height: 1; margin: 0; text-wrap: balance; }
.cases-head .lead { margin: 0; color: #D0D4F5; }
.mo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 2vw, 24px); }
.mo { margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mo-w { grid-column: 1 / -1; }
.mo-v { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--r-l); overflow: hidden; background: #1A2179; }
.mo-v video, .mo-v .vposter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mo-v .vposter { z-index: 1; transition: opacity .4s; pointer-events: none; } .mo-v.vplaying .vposter { opacity: 0; }
.mo-v .vbtn { position: absolute; z-index: 2; right: 12px; top: 12px; opacity: 0; transition: opacity .2s; }
.mo-v:hover .vbtn, .mo-v .vbtn:focus-visible { opacity: 1; }
@media (hover: none) { .mo-v .vbtn { opacity: 1; } }
.mo-v:fullscreen video { object-fit: contain; } .mo-v:-webkit-full-screen video { object-fit: contain; }
.mo figcaption { display: grid; gap: 4px; max-width: 40em; }
.mo-k { font: 500 12px/1.4 var(--mono); color: var(--mute); }
.mo figcaption b { font-size: 17px; letter-spacing: -.015em; line-height: 1.3; }
.mo figcaption p { margin: 0; color: #B7BCEB; font-size: 14px; line-height: 1.5; }
.mo-w figcaption { max-width: 52em; }
@media (max-width: 760px) { .cases-head, .mo-grid { grid-template-columns: 1fr; } }


.cases-sec + #demo { border-top: 1px solid var(--line); }
.demo-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(24px, 4vw, 64px); align-items: end; }
.demo-head .lead { color: #D0D4F5; margin: 0; }
@media (max-width: 900px) { .demo-head { grid-template-columns: 1fr; } }
footer .wrap { display: flex; justify-content: center; }
.totop { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--white); text-decoration: none; font-weight: 600; }
.totop:hover { border-color: var(--y); color: var(--y); }
.totop svg { width: 18px; height: 18px; }


/* ---------- design at scale: the film (shared parts; the frame and the scheme are at the end) ---------- */
@media (max-width: 900px) { .how-head { grid-template-columns: 1fr; } }
.film { margin-top: clamp(28px, 3vw, 44px); }
.film-ch { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.film-ch button { position: relative; display: flex; align-items: flex-start; gap: 8px; min-height: 64px; padding: 12px 14px 16px; border-radius: 14px; border: 1px solid rgba(14,18,87,.22); background: transparent; color: var(--ink); text-align: left; font: 600 15px/1.25 var(--sans); cursor: pointer; overflow: hidden; transition: background .2s, color .2s, border-color .2s; }
.film-ch button:hover { border-color: var(--ink); }
.film-ch .num { font: 500 12px/1.6 var(--mono); opacity: .55; flex: none; }
.film-ch .t { min-width: 0; text-wrap: balance; }
.film-ch .bar { position: absolute; left: 14px; right: 14px; bottom: 8px; height: 3px; border-radius: 2px; background: rgba(14,18,87,.14); overflow: hidden; }
.film-ch .bar b { position: absolute; inset: 0; background: currentColor; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.film-ch button[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.film-ch button[aria-selected="true"] .bar { background: rgba(255,255,255,.18); }
.film-ch button[aria-selected="true"] .bar b { background: var(--y); }
.film-box { margin-top: 10px; background: var(--ink); color: var(--white); border-radius: var(--r-l); overflow: hidden; }
.film-view { position: relative; overflow: hidden; }
.film-vid { position: absolute; z-index: 20; transform-origin: 0 0; overflow: hidden; background: #242EE0; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.film-vid video, .film-vid .vposter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.film-vid .vposter { z-index: 1; transition: opacity .4s; pointer-events: none; } .film-vid.vplaying .vposter { opacity: 0; }
.film-vid .vbtn { position: absolute; z-index: 2; right: 12px; top: 12px; opacity: 0; transition: opacity .2s; }
.film-vid:hover .vbtn, .film-vid .vbtn:focus-visible { opacity: 1; }
@media (hover: none) { .film-vid .vbtn { opacity: 1; } }
.film-vid:fullscreen { border-radius: 0 !important; transform: none !important; } .film-vid:-webkit-full-screen { border-radius: 0 !important; transform: none !important; }
@media (max-width: 1100px) { .film-ch { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .film-ch { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .film-ch button { min-height: 58px; font-size: 14px; padding: 10px 11px 15px; } .film-ch .bar { left: 11px; right: 11px; } }

/* the demo categories run as one film: bars that fill and switch on their own */
.demo-ch { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(28px, 3vw, 44px); }
.demo-ch button { border-color: #2E3696; color: #BEC3EF; }
.demo-ch button:hover { border-color: #6067C0; color: var(--white); }
.demo-ch .bar { background: #252D8A; }
.demo-ch button[aria-selected="true"] { background: #1A2179; color: var(--white); border-color: #1A2179; }
.demo-ch button[aria-selected="true"] .bar { background: #2E3696; }
.demo-ch button[aria-selected="true"] .bar b { background: var(--y); }
@media (max-width: 1100px) { .demo-ch { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .demo-ch { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* two dark sections in a row share one gap, not two */
.dark.pad + .dark.pad { padding-top: clamp(32px, 4vw, 64px); }
#demo { padding-bottom: clamp(40px, 4.5vw, 72px); }

.lab-msg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* design at scale: the heading on one line, the second half the brighter */
.how-head .h2 { grid-column: 1 / -1; color: rgba(14,18,87,.36); }
.h2-sub { display: block; white-space: nowrap; color: var(--ink); }   /* one line, and the brighter of the two */
/* phones: the subline wraps at the heading's full size; on one line it is wider than the frame under ~650px */
@media (max-width: 700px) { .h2-sub { white-space: normal; text-wrap: balance; } }

/* a tool, opened in the app it lives in: light Teams and Outlook windows, as in the films (films/scenes/team.html) */
.cy-shot { position: absolute; z-index: 25; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: clamp(12px, 3vw, 40px); background: rgba(14,18,87,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cy-shot .cy-x { position: absolute; right: 14px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #222A88; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.cy-sc { width: min(100%, 860px); margin: 0 0 10px; font-size: 14px; color: #DCDFF8; } .cy-sc b { color: #fff; font-weight: 600; } .cy-sc span { color: #A9AEE6; }
.cy-ui { flex: none; width: min(100%, 860px); border-radius: 14px; overflow: hidden; background: #fff; color: #242424; box-shadow: 0 30px 80px rgba(0,0,0,.45); container-type: inline-size; cursor: default; transform-origin: 50% 0; }
.ui-win { --tp: #5B5FC7; --ln: #E6E7EE; --mt: #6B6B7B; --ol: #0F6CBD; font: 500 13px/1.35 var(--sans); }
.ui-win p { margin: 0; }
.ui-win .ri { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ui-win .cy-mono { width: 18px; height: 18px; font-size: 18px; }
.ui-lt { flex: none; width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; background: var(--blue); }
.ui-lt svg { width: 32%; height: auto; fill: #fff; }
.ui-av { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--y); color: var(--ink); font: 600 10.5px/1 var(--sans); font-style: normal; }
.ui-src { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--mt); white-space: nowrap; }
.ui-win .ui-src .cy-mono { width: 13px; height: 13px; font-size: 13px; }
.ui-btn { align-self: flex-start; white-space: nowrap; height: 32px; padding: 0 16px; border-radius: 99px; background: var(--pink); color: #fff; font: 600 13px/32px var(--sans); transition: box-shadow .3s; }
/* title bar; Outlook's is blue */
.ui-wt { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 14px; border-bottom: 1px solid var(--ln); }
.ui-wt > b { font-weight: 600; }
.ui-q { margin: 0 auto; display: flex; align-items: center; gap: 8px; width: min(42%, 300px); height: 26px; padding: 0 10px; border-radius: 6px; background: #F0F0F4; color: #8A8A99; font-size: 12px; }
.ui-win .ui-q .ri { width: 14px; height: 14px; }
.ui-ol .ui-wt { background: var(--ol); border-color: var(--ol); color: #fff; }
.ui-ol .ui-wt > .ri { stroke-width: 3.2; }
.ui-ol .ui-q { background: rgba(255,255,255,.2); color: #E3EEF9; }
/* app rail, side list, main column */
.ui-tb { display: flex; height: 384px; }
.ui-rail { flex: none; width: 64px; padding-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; background: #EEEEF4; }
.ui-rail > span { position: relative; width: 56px; padding: 7px 0 5px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #616161; }
.ui-rail em { font: 500 10px/1 var(--sans); font-style: normal; }
.ui-win .ui-rail .ri { width: 20px; height: 20px; }
.ui-rail .on { color: var(--tp); }
.ui-rail .on::before { content: ''; position: absolute; left: -4px; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--tp); }
.ui-rail .pin { margin-top: 4px; padding-top: 10px; border-top: 1px solid #DCDCE6; }
.ui-rail .ui-lt { width: 20px; height: 20px; }
.ui-ol .ui-rail { width: 48px; padding-top: 10px; gap: 6px; background: #F5F5F7; border-right: 1px solid var(--ln); }
.ui-ol .ui-rail > span { width: 40px; padding: 8px 0; }
.ui-ol .ui-rail .on { color: var(--ol); } .ui-ol .ui-rail .on::before { background: var(--ol); }
.ui-side { flex: none; width: 184px; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; background: #F7F7FA; border-right: 1px solid var(--ln); }
.ui-side > b { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; font-size: 13.5px; font-weight: 600; }
.ui-side > small { margin: 0 4px 4px; font-size: 11px; color: var(--mt); }
.ui-side > span { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; color: #424242; white-space: nowrap; }
.ui-side > span.on { background: #fff; color: #242424; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ui-side > span > span { display: grid; min-width: 0; overflow: hidden; font-size: 11.5px; font-weight: 500; color: var(--mt); }
.ui-side > span > span b { font-size: 13px; font-weight: 600; color: #242424; }
.ui-side .ui-av, .ui-side > span > .ui-lt { width: 28px; height: 28px; }
.ui-side > span > .ui-lt { border-radius: 6px; }
.ui-main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ui-mh { flex: none; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--ln); }
.ui-mh > b { margin-right: 8px; font-size: 14px; font-weight: 600; }
.ui-tabs { align-self: stretch; display: flex; gap: 18px; }
.ui-tabs span { position: relative; display: flex; align-items: center; gap: 6px; color: #616161; white-space: nowrap; }
.ui-tabs .on { color: #242424; font-weight: 600; }
.ui-tabs .on::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--tp); }
.ui-tabs .ui-lt { width: 16px; height: 16px; border-radius: 4px; }
.ui-pane { flex: 1; min-height: 0; padding: 14px 18px; overflow: hidden; }

/* Business cards: a tab in the channel. Step 0: signed in, empty fields; 1: they fill one by one, the card with them */
.ui-bcs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-content: start; gap: 12px 20px; }
.ui-in { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #424242; }
.ui-ok { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); }
.ui-ok svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ui-fields { display: flex; flex-direction: column; gap: 9px; }
.ui-fields label { display: grid; gap: 4px; }
.ui-fields label > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--mt); }
.ui-fields label > b { display: block; height: 32px; padding: 0 10px; border: 1px solid #DDDDE6; border-radius: 6px; font: 500 13px/30px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-fields em { display: inline-block; font-style: normal; }
.ui-fields em, .ui-fields .ui-src { transition: opacity .35s var(--ease) calc(var(--i) * .16s), transform .35s var(--ease) calc(var(--i) * .16s); }
.cy-shot[data-s="0"] .ui-fields em { opacity: 0; transform: translateX(-6px); }
.cy-shot[data-s="0"] .ui-fields .ui-src { opacity: 0; }
.ui-out { align-self: start; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 10px; background: var(--sand); }
.ui-out .ui-bc { box-shadow: 0 6px 18px rgba(14,18,87,.12); }
.ui-bc > :not(.l) { transition: opacity .4s var(--ease) .5s; }
.cy-shot[data-s="0"] .ui-bc > :not(.l) { opacity: 0; }
.ui-go { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .ui-go small { font-size: 11.5px; color: var(--mt); }
.cy-shot[data-s="2"] .ui-go .ui-btn { box-shadow: 0 0 0 4px rgba(219,0,175,.2); }
.ui-bc { position: relative; aspect-ratio: 85 / 55; border-radius: 8px; background: #fff; color: var(--blue); padding: 7% 8%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.ui-bc .l { position: absolute; left: 8%; top: 12%; width: 13%; aspect-ratio: 1; display: grid; place-items: center; background: var(--blue); }
.ui-bc .l svg { width: 42%; height: auto; fill: #fff; }
.ui-bc b { font: 700 18px/1.1 var(--head); } .ui-bc span { font-size: 11px; } .ui-bc em { font-style: normal; font-size: 10px; color: #4a4f7a; }

/* Email signatures: an Outlook add-in. Step 1: "Add to every new email" turns on; 2: the signature drops into the email */
.ui-rib { flex: none; display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--ln); background: #FAFAFC; color: #424242; white-space: nowrap; }
.ui-rib > span { display: flex; align-items: center; gap: 6px; }
.ui-rib em { font-style: normal; }
.ui-win .ui-rib .ri { width: 16px; height: 16px; }
.ui-rib .send { padding: 5px 12px; border-radius: 6px; background: var(--ol); color: #fff; font-weight: 600; }
.ui-rib .ours { margin-left: auto; padding: 4px 10px 4px 5px; border-radius: 6px; background: var(--y); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--blue); }
.ui-rib .ui-lt { width: 18px; height: 18px; border-radius: 4px; }
.ui-olb { flex: 1; min-height: 0; display: flex; }
.ui-mail { flex: 1; min-width: 0; padding: 2px 16px 0; }
.ui-of { display: flex; align-items: center; gap: 12px; height: 38px; border-bottom: 1px solid #EFEFF4; }
.ui-of .k { width: 52px; color: var(--mt); }
.ui-of .rcp { padding: 3px 10px; border-radius: 99px; background: #EEF0F8; font-size: 12.5px; }
.ui-txt { padding-top: 12px; font: 400 13px/1.5 Arial, sans-serif; color: #070723; }
.ui-win .ui-txt p { margin-bottom: 8px; }
.ui-sig { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border-radius: 8px; background: #F2F5FF; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.cy-shot[data-s="0"] .ui-sig, .cy-shot[data-s="1"] .ui-sig { opacity: 0; transform: translateY(-14px); }
.ui-sig > i.l { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 0 4px 0 4px; background: var(--blue); }
.ui-sig > i.l svg { width: 12px; height: auto; fill: #fff; }
.ui-sig b { display: block; font: 700 15px/1.2 var(--head); color: var(--blue); }
.ui-sig span { display: block; font: 500 12px/1.3 var(--sans); color: var(--blue); }
.ui-sig em { display: block; margin-top: 3px; font: 500 11px/1.3 var(--sans); font-style: normal; color: #4a4f7a; }
.ui-tp { flex: none; width: 214px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: #FAFAFC; border-left: 1px solid var(--ln); }
.ui-tph { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.ui-tph .cl { margin-left: auto; font-style: normal; font-size: 16px; color: var(--mt); }
.ui-me { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; background: #fff; border: 1px solid var(--ln); }
.ui-me span { display: grid; font-size: 11.5px; color: var(--mt); } .ui-me b { font-size: 13px; font-weight: 600; color: #242424; }
.ui-tg { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.ui-tg i { flex: none; position: relative; width: 34px; height: 18px; border-radius: 99px; background: var(--blue); transition: background .3s; }
.ui-tg i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: translateX(16px); transition: transform .3s var(--ease); }
.cy-shot[data-s="0"] .ui-tg i { background: #C8C8D2; } .cy-shot[data-s="0"] .ui-tg i::after { transform: none; }
.cy-shot[data-s="1"] .ui-tp .ui-btn { box-shadow: 0 0 0 4px rgba(219,0,175,.2); }

/* Presentations: the Brand bot in a Teams chat. Step 1: Brand is typing; 2: the deck arrives */
.ui-chat { display: flex; flex-direction: column; gap: 8px; padding-block: 8px; background: #F5F5F8; }
.ui-msg { display: flex; align-items: flex-start; gap: 10px; }
.ui-msg > div { min-width: 0; max-width: 480px; padding: 7px 12px 9px; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ui-msg.me { align-self: flex-end; } .ui-msg.me > div { background: #E8EBFA; } .ui-win .ui-msg.me .ui-mhd { margin-bottom: 2px; }
.ui-msg > .ui-lt { width: 28px; height: 28px; border-radius: 6px; }
.ui-msg u { text-decoration: none; font-weight: 600; color: var(--tp); }
.ui-win .ui-mhd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 11.5px; color: var(--mt); }
.ui-mhd b { font-size: 12.5px; font-weight: 600; color: #242424; }
.ui-mhd em { padding: 3px 5px; border-radius: 3px; background: #EDEDF2; color: #616161; font: 600 9.5px/1 var(--sans); font-style: normal; letter-spacing: .05em; }
.ui-rep { position: relative; }
.ui-typ { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mt); opacity: 0; transition: opacity .25s; }
.ui-typ span i { display: inline-block; width: 5px; height: 5px; margin-right: 3px; border-radius: 50%; background: var(--mt); animation: ui-dot 1s infinite; }
.ui-typ span i:nth-child(2) { animation-delay: .15s; } .ui-typ span i:nth-child(3) { animation-delay: .3s; margin-right: 8px; }
@keyframes ui-dot { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.cy-shot[data-s="1"] .ui-typ { opacity: 1; }
.ui-rep > .ui-msg { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.cy-shot[data-s="0"] .ui-rep > .ui-msg, .cy-shot[data-s="1"] .ui-rep > .ui-msg { opacity: 0; transform: translateY(10px); }
.ui-ac { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--ln); border-radius: 8px; }
.ui-file { display: flex; align-items: center; gap: 10px; }
.ui-win .ui-file .cy-mono { width: 26px; height: 26px; font-size: 26px; }
.ui-ac .ui-src { white-space: normal; align-items: flex-start; } .ui-ac .ui-src .cy-mono { margin-top: 1px; }
.ui-file span { display: grid; font-size: 11.5px; color: var(--mt); } .ui-file b { font-size: 13px; font-weight: 600; color: #242424; }
.ui-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ui-grid canvas { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 4px; box-shadow: 0 0 0 1px var(--ln); }
.ui-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ui-acts span { padding: 4px 12px; border-radius: 6px; border: 1px solid #D1D1DB; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ui-acts .pri { background: var(--tp); border-color: var(--tp); color: #fff; }
.ui-type { flex: none; margin-top: auto; height: 36px; padding: 0 12px; border-radius: 6px; background: #fff; border: 1px solid var(--ln); color: #8A8A99; font-size: 12.5px; line-height: 34px; }
@media (prefers-reduced-motion: reduce) { .ui-typ span i { animation: none; } }

/* narrower windows: no side list. Phones: the rail keeps its icons, the panes stack, the window takes its own height */
@container (max-width: 760px) { .ui-side { display: none; } }
@container (max-width: 560px) {
  .ui-tb { height: auto; }
  .ui-q, .ui-mh > b, .ui-tabs .x, .ui-rib em { display: none; }
  .ui-wt > b { margin-right: auto; }
  .ui-rail { width: 46px; } .ui-rail > span { width: 40px; padding: 8px 0; } .ui-rail em { display: none; }
  .ui-mh { padding: 0 12px; } .ui-pane { padding: 12px; }
  .ui-bcs { grid-template-columns: 1fr; }
  .ui-olb { flex-direction: column; } .ui-mail { padding: 2px 12px 12px; } .ui-tp { width: auto; border-left: 0; border-top: 1px solid var(--ln); }
  .ui-rib { gap: 14px; padding: 0 10px; }
  .ui-msg > div { max-width: none; } .ui-grid { grid-template-columns: repeat(2, 1fr); }
  .ui-type { margin-top: 2px; }
}
/* phones: the caption keeps clear of the close button */
.film-view.is-tall .cy-sc { padding-right: 52px; }
/* phones: a 9:16 film can be narrower than the frame; the scheme steps back behind it */
.film-view.is-tall .cy-stage { transition: opacity .5s; }
.film-view.is-tall.film-open .cy-stage { opacity: .12; }

/* player: a tap pauses or plays (a large sign shows, then fades), one bar scrubs the whole film */
.film-view { cursor: pointer; }
.cy-tap { position: absolute; z-index: 30; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; display: grid; place-items: center; background: rgba(14,18,87,.6); color: #fff; opacity: 0; pointer-events: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cy-tap svg { width: 40px; height: 40px; fill: currentColor; }
.cy-tap.go { animation: cy-tap .8s ease-out both; }
@keyframes cy-tap { 0% { opacity: 0; transform: scale(.7); } 20% { opacity: 1; transform: scale(1); } 60% { opacity: 1; } 100% { opacity: 0; transform: scale(1.15); } }
.film-ctl { display: flex; align-items: center; gap: 14px; padding: 6px clamp(14px, 2vw, 24px) 16px; }
.film-ctl .vbtn { flex: none; background: #1A2179; } .film-ctl .vbtn:hover { background: #252D8A; }
.film-ctl .vbtn svg { width: 18px; height: 18px; fill: currentColor; }
.cy-scrub { position: relative; flex: 1; height: 28px; cursor: pointer; touch-action: none; }
.cy-scrub .tr, .cy-scrub .fl { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: #2E3696; transition: height .15s, top .15s; }
.cy-scrub .fl { background: var(--y); transform-origin: 0 50%; transform: scaleX(0); }
.cy-scrub .mk i { position: absolute; top: 9px; width: 2px; height: 10px; margin-left: -1px; border-radius: 1px; background: #0E1257; box-shadow: 0 0 0 1px #4A52B5; }
.cy-scrub .kn { position: absolute; top: 7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .15s; }
.cy-scrub:hover .tr, .cy-scrub:hover .fl, .cy-scrub.drag .tr, .cy-scrub.drag .fl { top: 11px; height: 6px; }
.cy-scrub:hover .kn, .cy-scrub.drag .kn, .cy-scrub:focus-visible .kn { opacity: 1; }
.cy-tm { flex: none; font: 500 13px var(--mono); color: #A0A6E0; }
@media (hover: none) { .cy-scrub .kn { opacity: 1; } }

/* the dark film block runs wider than the text column: less yellow either side */
.how .film { width: min(1600px, calc(100vw - 32px)); margin-left: calc(50% - min(800px, 50vw - 16px)); }
@media (max-width: 720px) { .how .film { width: calc(100vw - 20px); margin-left: calc(50% - 50vw + 10px); } }
/* every player: a sign for pause and play, and a simple line along the bottom */
.vt-tap { position: absolute; z-index: 30; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; display: grid; place-items: center; background: rgba(14,18,87,.6); color: #fff; opacity: 0; pointer-events: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vt-tap svg { width: 36px; height: 36px; fill: currentColor; }
.vt-tap.go { animation: cy-tap .8s ease-out both; }
.vt-bar { position: absolute; z-index: 25; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 18px 14px 10px; background: linear-gradient(to top, rgba(7,7,35,.55), rgba(7,7,35,0)); border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.vt-play { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.16); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vt-play:hover { background: rgba(255,255,255,.26); }
.vt-play svg { width: 18px; height: 18px; fill: currentColor; }
.vt-play:focus-visible, .vt-line:focus-visible { outline: 2px solid var(--y); outline-offset: 2px; }
.vt-line { position: relative; flex: 1; height: 24px; cursor: pointer; touch-action: none; }
.vt-line .tr, .vt-line .fl { position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.32); transition: height .15s, top .15s; }
.vt-line .fl { background: var(--y); transform-origin: 0 50%; transform: scaleX(0); }
.vt-line .mk i { position: absolute; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: rgba(14,18,87,.7); }
.vt-line .kn { position: absolute; top: 5px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.vt-line:hover .tr, .vt-line:hover .fl, .vt-line.drag .tr, .vt-line.drag .fl { top: 9px; height: 6px; }
.vt-time { flex: none; min-width: 74px; font: 500 12px/1 var(--sans); color: #fff; text-align: right; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
@media (max-width: 520px) { .vt-time { display: none; } .vt-bar { padding: 14px 10px 8px; } }
.player, .mo-v { cursor: pointer; }
.chapbar { display: none; }

/* ---------- Design at scale: the film's frame ---------- */
/* the parts are a line of text at the top of the black window: the active one is yellow */
.how-head .lead { grid-column: 1 / -1; max-width: 40em; }
.how .film { margin-top: clamp(20px, 2.2vw, 32px); }
.how .film-box { margin-top: 0; padding: 0; border-radius: 20px; }
.how .film-ch { display: flex; gap: clamp(18px, 2.2vw, 34px); padding: 16px 24px 10px; overflow-x: auto; scrollbar-width: none; }
.how .film-ch::-webkit-scrollbar { display: none; }
.how .film-ch button, .how .film-ch button:hover, .how .film-ch button[aria-selected="true"] { flex: none; display: inline-flex; align-items: baseline; gap: 8px; min-height: 0; padding: 4px 0; border: 0; border-radius: 0; background: none; overflow: visible; white-space: nowrap; font: 600 17px/1.3 var(--sans); }
.how .film-ch button { color: #7C82CC; }
.how .film-ch button:hover { color: #E7E9FB; }
.how .film-ch button[aria-selected="true"] { color: var(--y); }
.how .film-ch .num { font: 500 12px/1 var(--mono); opacity: .75; }
.how .film-ctl { padding: 4px 16px 12px; }
@media (max-width: 1100px) { .how .film-ch button, .how .film-ch button:hover, .how .film-ch button[aria-selected="true"] { font-size: 15px; } }
@media (max-width: 720px) { .how .film-ch { padding: 12px 16px 8px; } .how .film-ch button, .how .film-ch button:hover, .how .film-ch button[aria-selected="true"] { font-size: 15px; } }

/* ---------- Design at scale: the scheme ----------
   A grid of real-size blocks that fills the frame (cycle.js sets the stage to the frame's size);
   the connectors are drawn from the blocks' measured positions. */
.cy { position: absolute; inset: 0; overflow: hidden; color: var(--white); }
.cy-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; display: grid; }
.cy-wide .cy-stage { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1.45fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "L P H F" "R R R F"; gap: 28px 48px; padding: 22px 26px; }
.cy-tall .cy-stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "L" "P" "H" "F" "R"; align-content: start; gap: 44px; padding: 24px 22px 32px; }
.cy-L { grid-area: L; } .cy-P { grid-area: P; } .cy-H { grid-area: H; } .cy-F { grid-area: F; } .cy-R { grid-area: R; }
.cy-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cy-wires { opacity: .16; }
.cy-ln { fill: none; stroke: #fff; stroke-width: var(--sw, 1.5); stroke-linecap: round; }
.cy-dot { fill: var(--y); opacity: 0; }

/* blocks: one type scale in every block */
.cy-n { position: relative; z-index: 2; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 20px 20px 18px; border-radius: 20px; background: #141A68; border: 1px solid #252D8A; opacity: 0; cursor: pointer; transition: border-color .3s; }
.cy-n:hover { border-color: #4049AE; }
.cy-hd { flex: none; }
.cy-eb { display: block; font: 500 13px/1.45 var(--mono); color: #8F95D6; }
.cy-tt { display: block; margin-top: 6px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.cy-ds { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: #B3B8EA; max-width: 34em; }

/* a service name that scrolls through the alternatives */
.cy-tk { display: inline-block; vertical-align: bottom; height: 1.45em; overflow: hidden; padding: 0; border: 0; background: none; color: var(--y); font: inherit; line-height: 1.45em; cursor: pointer; text-align: left; }
.cy-tkw { display: block; }
.cy-tkw > span { display: flex; align-items: center; gap: .35em; width: max-content; height: 1.45em; white-space: nowrap; }
.cy-si { width: 1em; height: 1em; flex: none; } .cy-si.ln { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cy-mono { display: grid; place-items: center; width: 1em; height: 1em; border-radius: .22em; font: 800 .62em/1 var(--sans); font-style: normal; flex: none; }

/* software windows: Figma for the library and the templates */
.cy-fig { position: relative; flex: 1 1 0; min-height: 130px; margin-top: 16px; border-radius: 10px; overflow: hidden; background: #1e1e1e; border: 1px solid #333; container-type: inline-size; }
.cy-tall .cy-fig { flex: none; height: 270px; }
.cy-wt { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; background: #2c2c2c; border-bottom: 1px solid #383838; font: 500 12px/1 var(--sans); color: #cfcfcf; white-space: nowrap; }
.cy-wt i.d { width: 8px; height: 8px; border-radius: 50%; background: #555; flex: none; }
.cy-wt .cy-si, .cy-wt .cy-mono { width: 13px; height: 13px; margin-left: 4px; }
.cy-wt span { overflow: hidden; text-overflow: ellipsis; }
.cy-wt b { margin-left: auto; height: 18px; padding: 0 9px; border-radius: 5px; background: #0d99ff; color: #fff; font: 600 11px/18px var(--sans); }
.cy-figma .cy-wt .av { margin-left: auto; width: 16px; height: 16px; border-radius: 50%; background: #9747ff; color: #fff; font: 700 8px/16px var(--sans); text-align: center; font-style: normal; flex: none; }
.cy-figma .cy-wt b { margin-left: 6px; }
.fg-side { position: absolute; left: 0; top: 28px; bottom: 0; width: 76px; padding: 8px 5px; display: flex; flex-direction: column; gap: 1px; background: #2c2c2c; border-right: 1px solid #383838; font: 500 10px/1.2 var(--sans); color: #c4c4c4; overflow: hidden; }
.fg-side span { padding: 3px 5px; border-radius: 3px; white-space: nowrap; }
.fg-side .fg-h { padding-top: 6px; font-weight: 600; font-size: 9px; color: #8a8a8a; }
.fg-side .fg-h:first-child { padding-top: 0; }
.fg-side .on { background: #444; color: #fff; }
.fg-side .fr::before { content: '#'; margin-right: 4px; color: #8a8a8a; }
.fg-tools { position: absolute; z-index: 1; bottom: 9px; left: calc(76px + (100% - 76px) / 2); transform: translateX(-50%); display: flex; gap: 4px; padding: 4px 6px; border-radius: 8px; background: #2c2c2c; border: 1px solid #3c3c3c; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.fg-tools svg { width: 18px; height: 18px; padding: 3px; border-radius: 4px; fill: none; stroke: #e0e0e0; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.fg-tools svg:first-child { background: #0d99ff; stroke: #fff; }
.cy-tiles { position: absolute; left: 90px; right: 14px; top: 34px; bottom: 0; padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: auto; align-content: start; gap: 24px 12px; overflow: hidden; }
.cy-tile { position: relative; aspect-ratio: 5 / 4; border-radius: 2px; background: #2c2c2c; }
.cy-tile::before { content: attr(data-n); position: absolute; left: 0; top: -15px; font: 500 10px/1 var(--sans); color: #9a9a9a; }
.cy-tile:first-child { box-shadow: 0 0 0 1.5px #0d99ff; }
.cy-tile:first-child::before { color: #0d99ff; }
.cy-tile:first-child::after { content: '144 × 116'; position: absolute; right: 6px; bottom: 6px; padding: 1px 5px; border-radius: 3px; background: #0d99ff; color: #fff; font: 600 9px/1.4 var(--sans); }
.cy-tile:first-child .tc { display: none; }
.cy-tile .tc { position: absolute; right: 6px; bottom: 5px; font: 500 10px var(--mono); color: #8d8d8d; }
.cy-lg { position: absolute; left: 0; right: 0; top: 9px; display: grid; justify-items: center; gap: 6px; }
.cy-lg img { height: 15px; width: auto; filter: brightness(0) invert(1); }
.cy-ics { position: absolute; left: 8px; right: 8px; top: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 2px; justify-items: center; }
.cy-ics svg, .cy-row .th svg { width: 19px; height: 19px; fill: none; stroke: var(--y); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cy-ph { position: absolute; left: 8px; right: 8px; top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.cy-ph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.cy-tags { position: absolute; left: 7px; right: 6px; top: 8px; display: flex; flex-wrap: wrap; gap: 3px; }
.cy-tags span { font: 600 10px/1 var(--sans); padding: 4px 6px; border-radius: 99px; border: 1px solid #363EA0; color: #D1D5F5; }
.cy-tags span.c { background: var(--y); color: var(--ink); border-color: var(--y); }
.cy-tags span.a { background: #fff; color: var(--ink); border-color: #fff; }
.cy-sw { position: absolute; left: 8px; right: 8px; top: 8px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.cy-sw i { aspect-ratio: 2 / 1; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.cy-ty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.cy-ty b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1; } .cy-ty span { font: 500 10px var(--mono); color: #A0A6E0; margin-top: 4px; }
@container (max-width: 280px) { .fg-side { display: none; } .cy-tiles { left: 12px; } .fg-tools { left: 50%; } }
@container (max-width: 300px) { .cy-tile:first-child::after { display: none; } }
/* the template: an artboard centred on Figma's grey canvas */
.cy-fig-tp { display: flex; flex-direction: column; }
.cy-cv { flex: 1 1 0; min-height: 0; container-type: size; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: #1e1e1e; }
.cy-ab { display: flex; flex-direction: column; gap: 4px; }
.cy-ab > span { font: 500 10px/1 var(--sans); color: #9a9a9a; } .cy-ab:first-child > span { color: #0d99ff; }
.cy-tp { position: relative; width: 160px; width: min(100cqw - 28px, (50cqh - 32px) * 1.6); aspect-ratio: 16 / 10; background: var(--y); outline: 1.5px solid #0d99ff; }
.cy-tp2 { outline: 0; background: #0a0a0a; }
.cy-tp img { width: 100%; height: 100%; object-fit: cover; }
.cy-tp .g { position: absolute; inset: 7%; background: repeating-linear-gradient(90deg, rgba(255,0,90,.18) 0 1px, transparent 1px calc(100% / 12)); }
.cy-tp .sl { position: absolute; border: 1.5px dashed #ff2d7a; border-radius: 3px; }
.cy-tp .s1 { left: 7%; top: 18%; width: 48%; height: 34%; } .cy-tp .s2 { left: 7%; bottom: 7%; width: 22%; height: 13%; }
.cy-tp .an { position: absolute; z-index: 1; font: 600 10px/1 var(--mono); padding: 4px 6px; border-radius: 4px; background: #ff2d7a; color: #fff; white-space: nowrap; }
.cy-tp .a1 { left: 58%; top: 21%; } .cy-tp .a2 { left: 31%; bottom: 8%; }

/* Workflow integrations: example tools, each in its app and filled from its data */
.cy-H { background: var(--y); color: var(--ink); border-color: var(--y); }
.cy-H:hover { border-color: var(--y); }
.cy-H .cy-ds { color: #3f4213; }
.cy-apps { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(54px, 1fr); gap: 6px; margin-top: 16px; }
.cy-app { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; padding: 10px 28px 10px 14px; border-radius: 12px; border: 0; background: var(--ink); color: #fff; text-align: left; font: inherit; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; }
.cy-app b { font-size: 15px; font-weight: 700; line-height: 1.2; }
.cy-app .mt { display: block; font-size: 12px; line-height: 1.4; color: #A0A6E0; }
.cy-app .mt .nm { white-space: nowrap; }
.cy-app .mt .nm { display: inline-flex; align-items: center; gap: 4px; vertical-align: -2px; color: #E3E5FA; }
.cy-app .cy-si, .cy-app .cy-mono { width: 12px; height: 12px; font-size: 12px; }
.cy-app::after { content: '↗'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--y); font-size: 13px; }
.cy-app:hover, .cy-app.on { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--y); }
.cy-app.fire { box-shadow: 0 0 0 2px #fff; }
.cy-more { align-self: center; justify-self: end; padding: 0 4px; font: 500 13px/1.45 var(--mono); color: #4b4d16; }
.cy-more .cy-tk { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* files ready for production: no box of their own, a list down the last column */
.cy-F { padding: 2px 0 0; background: none; border: 0; border-radius: 0; overflow: visible; opacity: 1; }
.cy-make { flex: none; opacity: 0; }
.cy-land { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; color: #E1E4FA; }
.cy-outs { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; min-height: 0; margin-top: 14px; }
.cy-out { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; opacity: 0; }
.cy-out .th { flex: none; width: 70px; height: 44px; border-radius: 7px; overflow: hidden; background: #131866; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 22px rgba(0,0,0,.45); will-change: transform; }
.cy-out .th img { width: 100%; height: 100%; object-fit: cover; }
.cy-out .fm { display: grid; gap: 2px; min-width: 0; }
.cy-out .fm b { font-size: 14px; font-weight: 600; line-height: 1.25; color: #F3F4FD; }
.cy-out .fm span { font: 500 12px/1.3 var(--mono); color: #A3A9E2; }
.cy-tall .cy-F { padding-left: 34px; }
.cy-tall .cy-outs { justify-content: flex-start; gap: 12px; }

/* review: a low strip under the library, the templates and the integrations. Its window reads as the
   way back: a tool made something new, the designers approve it, it is in the library for every tool. */
.cy-R { flex-direction: row; align-items: center; gap: 28px; padding: 16px 22px; cursor: default; }
.cy-R:hover { border-color: #252D8A; }
.cy-R .cy-hd { flex: 1 1 auto; min-width: 0; }
.cy-flow { display: flex; align-items: flex-end; gap: 34px; flex: none; margin: 0; padding: 0; list-style: none; }
.cy-st { position: relative; display: flex; flex-direction: column; gap: 7px; min-width: 0; opacity: 0; }
.cy-st + .cy-st::before { content: '→'; position: absolute; left: -26px; bottom: 12px; font: 500 17px/1 var(--sans); color: #6268C2; }
.cy-sl { font: 500 11px/1 var(--mono); color: #8F95D6; white-space: nowrap; }
.cy-sl i { font-style: normal; color: var(--y); margin-right: 6px; }
.cy-row { position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 9px; border-radius: 10px; background: #1C237C; }
.cy-row .th { width: 26px; height: 26px; border-radius: 6px; overflow: hidden; display: grid; place-items: center; background: #fff; flex: none; }
.cy-row .th img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.cy-row .th.lb { background: #2c2c2c; }
.cy-row .th.lb svg { width: 17px; height: 17px; }
.cy-row .nm { display: grid; gap: 2px; white-space: nowrap; }
.cy-row .nm b { font-size: 14px; font-weight: 600; line-height: 1.15; }
.cy-row .nm em { font: 500 11px/1.2 var(--mono); font-style: normal; color: #A0A6E0; }
.cy-row .av { width: 22px; height: 22px; border-radius: 50%; background: #9747ff; color: #fff; font: 700 9px/22px var(--sans); font-style: normal; text-align: center; flex: none; }
.cy-row .bt, .cy-row .ok { height: 26px; border-radius: 99px; font: 600 12px/26px var(--sans); padding: 0 12px; }
.cy-row .bt { background: #2E3696; color: #fff; }
.cy-row .ok { display: none; background: var(--y); color: var(--ink); align-items: center; gap: 5px; padding-left: 8px; }
.cy-row .ok svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cy-row.done .bt { display: none; } .cy-row.done .ok { display: inline-flex; }
.cy-tall .cy-R { flex-direction: column; align-items: stretch; gap: 18px; }
.cy-tall .cy-flow { flex-direction: column; align-items: stretch; gap: 30px; }
.cy-tall .cy-st + .cy-st::before { content: '↓'; left: 14px; top: -24px; bottom: auto; }
/* the approved logo on its way up, and where it lands: the Logos tile in the library's window */
.cy-fly { position: absolute; left: 0; top: 0; z-index: 3; width: 26px; height: 26px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 2px var(--y), 0 10px 24px rgba(0,0,0,.5); opacity: 0; pointer-events: none; will-change: transform; }
.cy-fly img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.cy-lg .nw { display: flex; align-items: center; gap: 5px; opacity: 0; transform: scale(.6); transition: opacity .35s, transform .45s var(--ease); }
.cy-lg .nw b { padding: 1px 5px; border-radius: 99px; background: var(--y); color: var(--ink); font: 700 9px/1.3 var(--sans); }
.cy-L.got .cy-lg .nw { opacity: 1; transform: none; }
.cy-L.got .cy-tile:first-child::after { opacity: 0; }

/* a part in focus: everything else steps back and stops taking clicks */
.cy-fx .cy-stage > * { transition: opacity .7s; }
.cy-focus .cy-stage > :not(.cy-f) { opacity: 0 !important; pointer-events: none; }
.cy-focus .cy-stage > .cy-lines { opacity: .06 !important; }

/* ================= Lebara ================= */
.lockup .lb { width: 104px; height: 23px; color: var(--white); }
@media (max-width: 720px) { .lockup .lb { width: 88px; height: 20px; } }
.btn-p { background: var(--pink); color: #fff; } .btn-p:hover { background: #BB0096; }
.btn:disabled { opacity: .6; cursor: progress; }

/* hero: Smarter Blue, the L-globe in white */
.blue { background: var(--blue); color: #fff; }
.hero.blue :focus-visible { outline-color: #fff; }
.hero-text .lead { color: rgba(255,255,255,.9); }
.globe-box canvas { cursor: grab; } .globe-box canvas.drag { cursor: grabbing; }

/* design at scale: Savvy Sand around the navy film */
.band { background: var(--sand); color: var(--black); }
.how-head .h2 { color: rgba(36,46,224,.4); }
.h2-sub { color: var(--blue); }
.how-head .lead { color: var(--black); }
.cy-H { background: var(--blue); color: #fff; border-color: var(--blue); }
.cy-H:hover { border-color: var(--blue); }
.cy-H .cy-ds { color: rgba(255,255,255,.86); }
.cy-more { color: rgba(255,255,255,.78); }
.cy-more .cy-tk { color: #fff; }
.cy-tk1 { display: inline-flex; align-items: center; gap: .35em; height: auto; vertical-align: baseline; color: var(--y); }
/* the library is a Frontify window: light, as Frontify is */
.cy-fy { background: #fff; border-color: #dfe2f2; }
.cy-fy .cy-wt { background: #f3f4fb; color: #3b3f6b; border-bottom-color: #e2e4f1; }
.cy-fy .cy-wt i.d { background: #c9cce0; }
.cy-fy .cy-wt b { background: var(--blue); }
.cy-fy .fg-side { background: #f7f8fc; border-right-color: #e4e6f2; color: #4a4f7a; }
.cy-fy .fg-side .fg-h { color: #8c90b8; }
.cy-fy .fg-side .on { background: #e7ebff; color: var(--blue); }
.cy-fy .fg-side .fr::before { color: #a3a7c8; }
.cy-fy .cy-tiles { gap: 18px 10px; }
.cy-fy .cy-tile { aspect-ratio: 16 / 10; background: #f3f4fb; border-radius: 4px; overflow: hidden; }
.cy-fy .cy-tile::before { color: #6b70a8; }
.cy-fy .cy-tile:first-child { box-shadow: 0 0 0 1.5px var(--blue); }
.cy-fy .cy-tile:first-child::before { color: var(--blue); }
.cy-fy .cy-tile:first-child::after { content: none; }
.cy-fy .cy-tile:first-child .tc { display: block; }
.cy-fy .cy-tile .tc { color: #6b70a8; }
.cy-fy .cy-tile { overflow: visible; }
.cy-lg { inset: 0; top: 0; align-content: center; gap: 5px; }
.cy-lg svg.w { width: 58%; height: auto; color: var(--blue); fill: currentColor; }
.cy-lg .sec { display: block; width: 52%; padding: 3px 5px; border-radius: 0 2px 0 2px; background: var(--blue); color: #fff; }
.cy-lg .sec svg { width: 100%; height: auto; fill: currentColor; }
.cy-bi { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6%; }
.cy-bi > span { display: grid; place-items: center; width: 26%; aspect-ratio: 1; border-radius: 0 2px 0 2px; background: var(--blue); color: #fff; font: 700 11px/1 var(--head); }
.cy-bi .nw { position: relative; opacity: 0; transform: scale(.6); transition: opacity .35s, transform .45s var(--ease); }
.cy-bi .nw svg { width: 62%; height: 62%; fill: #fff; }
.cy-bi .nw b { position: absolute; right: -9px; top: -8px; padding: 1px 5px; border-radius: 99px; background: var(--pink); color: #fff; font: 700 9px/1.3 var(--sans); }
.cy-L.got .cy-bi .nw { opacity: 1; transform: none; }
.cy-ics { top: 50%; transform: translateY(-50%); gap: 6px 2px; }
.cy-ics svg { width: 17px; height: 17px; fill: var(--blue); stroke: none; }
.cy-ph { inset: 6px; top: 6px; align-content: center; }
.cy-ph img { background: var(--blue); object-position: 50% 12%; border-radius: 0 3px 0 3px; }
.cy-il { position: absolute; inset: 4px; display: grid; place-items: center; }
.cy-il img { max-height: 100%; width: auto; }
.cy-mo { position: absolute; inset: 0; display: grid; place-items: center; }
.cy-mo svg { grid-area: 1 / 1; height: 62%; width: auto; fill: var(--blue); }
.cy-mo .a { animation: cy-mo-a 3.2s var(--ease) infinite; } .cy-mo .b { transform: rotate(180deg); animation: cy-mo-b 3.2s var(--ease) infinite; }
@keyframes cy-mo-a { 0%, 20%, 100% { transform: translate(-14%, 8%); } 50%, 70% { transform: translate(-60%, 18%); } }
@keyframes cy-mo-b { 0%, 20%, 100% { transform: translate(14%, -8%) rotate(180deg); } 50%, 70% { transform: translate(60%, -18%) rotate(180deg); } }
.cy-sw { grid-template-columns: repeat(3, 1fr); inset: 8px; top: 50%; transform: translateY(-50%); }
.cy-sw i { aspect-ratio: 2 / 1; box-shadow: 0 0 0 1px rgba(14,18,87,.12); border-radius: 0 2px 0 2px; }
.cy-ty b { font-family: var(--head); color: var(--blue); font-size: 24px; letter-spacing: 0; }
.cy-ty span { font: 500 9px var(--sans); color: #6b70a8; }
/* the templates: one post at three volumes, side by side on Figma's canvas */
.cy-cv3 { flex-direction: row; align-items: flex-start; justify-content: center; gap: 10px; padding: 14px 10px 0; }
.cy-cv3 .cy-ab { flex: 1 1 0; min-width: 0; max-width: calc((100cqh - 60px)); }
.cy-cv3 .cy-tp { width: 100%; aspect-ratio: 1; background: #fff; outline: 0; }
.cy-cv3 .cy-ab:first-child .cy-tp { outline: 1.5px solid #0d99ff; }
.cy-cv3 .cy-ab:first-child > span:first-child { color: #0d99ff; }
.cy-tp canvas { display: block; width: 100%; height: 100%; }
.cy-cv3 .an { position: static; display: inline-block; margin-top: 6px; padding: 3px 5px; white-space: normal; font: 600 9px/1.25 var(--sans); background: var(--pink); color: #fff; border-radius: 3px; }
.cy-cv3 .an + .an { margin-top: 4px; }
/* files and the review */
.cy-out .th { background: var(--blue); }
.cy-out .th canvas { display: block; width: 100%; height: 100%; }
.cy-row .th.ic { background: var(--blue); }
.cy-row .th.ic svg, .cy-fly svg { width: 17px; height: 17px; fill: #fff; }
.cy-row .th.lb svg { fill: var(--y); stroke: none; }
.cy-fly { display: grid; place-items: center; background: var(--blue); }
.cy-fly svg { width: 70%; height: 70%; }

/* demo: a still from the banner engine while a category's film is in production */
.player.is-pending { cursor: default; }
.player .pending canvas { opacity: 1; }
.player .pending span { position: absolute; right: 14px; top: 14px; background: rgba(14,18,87,.82); color: #fff; font-size: 14px; font-weight: 600; }
#toolChips.no-ts .ts { display: none; }
#toolChips.no-ts .cd, #toolChips.no-ts .fmt { margin-left: 0; }

/* Try it: the banner generator */
.lab { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; }
.lab-main { gap: 12px; }
.lab-stage { position: relative; height: clamp(440px, 64vh, 700px); aspect-ratio: auto; display: grid; place-items: center; border-radius: var(--r-l); background: #0A0E45; border: 1px solid var(--line); overflow: hidden; }
.lab-art { position: relative; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.lab-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the rules that held: a quiet caption, not a checklist */
.lab-rules { list-style: none; margin: 0; padding: 0 4px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; line-height: 1.45; color: rgba(160,166,224,.75); }
.lab-rules li { display: inline-flex; align-items: flex-start; gap: 5px; }
.lab-rules svg { flex: none; width: 11px; height: 11px; margin-top: 3px; opacity: .6; }
.lab-panel, .lab-ctrl { gap: 16px; }
.lab-ctrl { display: flex; flex-direction: column; }
.lab-ideas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lab .chip { height: 32px; padding: 0 12px; border: 1px solid var(--line-2); color: #D0D4F5; font-weight: 600; }
.lab .chip:hover { background: rgba(255,255,255,.06); }
.lab .chip[aria-pressed="true"] { background: var(--y); border-color: var(--y); color: var(--ink); }
.vol input[type="range"] { width: 100%; margin: 4px 0 0; accent-color: var(--pink); }
.vol-k { display: flex; justify-content: space-between; }
.vol-k button { padding: 4px 0; border: 0; background: none; color: var(--mute); font-size: 13px; font-weight: 600; cursor: pointer; }
.vol-k button.on { color: #fff; }
.lab-subjs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
/* Lebara's Smart Container, wherever the page draws one: top-right and bottom-left corners rounded, the
   radius 10% of the long side but at most 20% of the short one (Try it's offers are 19%; a long strip at
   10% of its length would turn into a half-circle) */
.lab-subj { aspect-ratio: 1; padding: 0; border: 0; border-radius: 0 7px 0 7px; overflow: hidden; background: var(--blue); cursor: pointer; transition: transform .2s var(--ease); }
.lab-subj img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.lab-subj:hover { transform: translateY(-2px); }
.lab-subj[aria-pressed="true"] { outline: 2px solid var(--y); outline-offset: 2px; }
.seg-4 { display: grid; grid-template-columns: 1fr 1fr; }
.seg-4 button { height: auto; min-height: 44px; padding: 5px 4px; display: grid; gap: 1px; }
.seg-4 button b { font-size: 13px; font-weight: 700; } .seg-4 button span { font-size: 11px; font-weight: 500; opacity: .75; }
@media (max-width: 960px) {
  /* one column: the controls, then the picture with its download buttons right under it, then the
     rules and the note */
  .lab { grid-template-columns: 1fr; }
  .lab-main, .lab-panel { display: contents; }
  .lab-ctrl { order: 1; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; }
  .lab-stage { order: 2; }
  .lab-row { order: 3; flex-wrap: nowrap; }
  .lab-row .btn { flex: 1 1 0; min-width: 0; }
  .lab-rules { order: 4; }
  .lab-stage { height: auto; aspect-ratio: 1; }
  .lab-stage[data-fmt="story"] { aspect-ratio: 4 / 5; }
  .lab-stage[data-fmt="land"] { aspect-ratio: 4 / 3; }
  .lab-stage[data-fmt="web"] { aspect-ratio: 16 / 9; }
}
/* the library window: Frontify's libraries as a grid of cards, three across */
.cy-fy .cy-tiles { left: 12px; right: 12px; top: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px 8px; }
.cy-fy .cy-tile::before { white-space: nowrap; font-size: 9.5px; }
.cy-il img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cy-ics { left: 6px; right: 6px; gap: 5px 0; }
.cy-ics svg { width: 15px; height: 15px; }
.cy-lg svg.w { width: 64%; } .cy-lg .sec { width: 58%; }
.cy-at { position: absolute; inset: 0; display: grid; place-items: center; }
.cy-at i { display: grid; place-items: center; height: 70%; aspect-ratio: 1; background: var(--blue); border-radius: 18%; }
.cy-at svg { height: 60%; width: auto; fill: #fff; }
.cy-ty b { font-size: 20px; } .cy-ty span { font-size: 8px; }
.cy-mo svg { height: 58%; }
@container (max-width: 280px) { .cy-fy .cy-tiles { left: 12px; } }
.cy-fy .cy-tile { aspect-ratio: 4 / 3; }
.cy-fy .cy-tile .tc { display: block; right: 4px; bottom: 3px; font: 600 8.5px/1 var(--sans); color: #6b70a8; background: rgba(243,244,251,.9); padding: 1px 3px; border-radius: 3px; }
/* the templates: one post at three volumes on Figma's canvas, and the rules it keeps */
.cy-cv3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; justify-content: stretch; align-items: start; gap: 12px 10px; padding: 10px 12px; }
.cy-cv3 .cy-ab { max-width: none; width: min(100%, 50cqh - 26px); justify-self: center; }
.cy-cv3 .cy-ab > span { font-size: 9.5px; }
.cy-notes { margin: 13px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; align-self: start; }
.cy-notes li { position: relative; padding-left: 10px; font: 600 9px/1.25 var(--sans); color: #e9e9ef; }
.cy-notes li::before { content: ''; position: absolute; left: 0; top: 3px; width: 5px; height: 5px; border-radius: 0 .5px 0 .5px; background: var(--pink); }
.cy-tall .cy-fy { height: 344px; }
.cy-bi > span svg { width: 60%; height: 60%; fill: #fff; }
.cy-ics path, .cy-row .th.lb path { fill-rule: nonzero; }
.seg-g { display: grid; grid-template-columns: repeat(5, 1fr); }
.seg-g button { height: 36px; display: grid; place-items: center; }
.seg-g button i { width: 22px; height: 22px; border-radius: 0 2px 0 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
