/* bbs3 "Bold brand": shared tokens and components for every page.
   BBS purple, yellow, sky and blue at full strength. Montserrat. The logo's arcs are
   the graphic system, and every arc lives in its own reserved area, never behind text.
   Pairings and bans: sites/bbs3/DESIGN.md section 1. */

:root {
  --purple: #8A61EA; --purple-deep: #6136C7; --blue: #2149AC; --yellow: #FBE401; --sky: #56CDF5;
  --navy: #18367F; --purple-ink: #2A1466; --purple-tint: #E9E1FC; --yellow-tint: #FFF8B8;
  --sky-tint: #DDF4FD; --sky-deep: #0B6F98; --ink: #0F1638; --paper: #FFFFFF; --mist: #F4F2FB;

  --font: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-zh: 'Noto Sans SC Hello', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --font-ja: 'Noto Sans JP Hello', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, 'Noto Sans CJK JP', sans-serif;
  --font-ko: 'Noto Sans KR Hello', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans CJK KR', sans-serif;
  --font-hi: 'Noto Sans Devanagari Hello', 'Kohinoor Devanagari', 'Devanagari Sangam MN', 'Nirmala UI', 'Noto Sans Devanagari', Mangal, sans-serif;
  --font-ar: 'Noto Sans Arabic Hello', 'Geeza Pro', 'SF Arabic', 'Segoe UI', 'Noto Sans Arabic', Tahoma, sans-serif;

  --t-poster: clamp(3.5rem, 15vw, 13rem);
  --t-display: clamp(2.5rem, 7.4vw, 7rem);
  --t-h2: clamp(2rem, 4.4vw, 4rem);
  --t-h3: clamp(1.25rem, 1.9vw, 1.75rem);
  --t-lede: clamp(1.1875rem, 1.5vw, 1.5rem);
  --t-body: 1.0625rem;
  --t-small: 1rem;
  --track-poster: -0.05em; --track-display: -0.04em; --track-h2: -0.03em; --track-h3: -0.015em;

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --gutter: clamp(1rem, 4.4vw, 4.5rem);
  --section: clamp(3.5rem, 9vw, 8rem);
  --measure: 66ch;
  --bar-h: 4.5rem;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* the scroll-craft engine reads these on the home page */
  --sc-canvas: var(--purple-deep); --sc-surface: var(--navy); --sc-ink: var(--paper); --sc-ink-soft: var(--purple-tint);
  --sc-accent: var(--yellow); --sc-accent-ink: var(--ink); --sc-font-display: var(--font); --sc-font-text: var(--font);
}
@media (max-width: 760px) { :root { --bar-h: 4rem; } }

/* ---- grounds: each sets its ground and inks together, and restates color ---------- */
.g-purple { --bg: var(--purple-deep); --fg: var(--paper); --fg-soft: var(--purple-tint); --accent: var(--yellow); --accent-ink: var(--ink); --focus: var(--yellow); --arc-1: var(--purple); --arc-2: var(--sky); --dotc: var(--yellow); --rule: rgba(255,255,255,.3); }
.g-blue   { --bg: var(--blue); --fg: var(--paper); --fg-soft: var(--sky-tint); --accent: var(--yellow); --accent-ink: var(--ink); --focus: var(--yellow); --arc-1: var(--sky); --arc-2: var(--yellow); --dotc: var(--yellow); --rule: rgba(255,255,255,.3); }
.g-navy   { --bg: var(--navy); --fg: var(--paper); --fg-soft: var(--sky-tint); --accent: var(--yellow); --accent-ink: var(--ink); --focus: var(--yellow); --arc-1: var(--sky); --arc-2: var(--purple); --dotc: var(--yellow); --rule: rgba(255,255,255,.26); }
.g-yellow { --bg: var(--yellow); --fg: var(--ink); --fg-soft: var(--navy); --accent: var(--purple-deep); --accent-ink: var(--paper); --focus: var(--ink); --arc-1: var(--sky); --arc-2: var(--purple); --dotc: var(--purple-deep); --rule: rgba(15,22,56,.24); }
.g-sky    { --bg: var(--sky); --fg: var(--ink); --fg-soft: var(--navy); --accent: var(--ink); --accent-ink: var(--paper); --focus: var(--ink); --arc-1: var(--yellow); --arc-2: var(--paper); --dotc: var(--purple-deep); --rule: rgba(15,22,56,.26); }
.g-paper  { --bg: var(--paper); --fg: var(--ink); --fg-soft: var(--navy); --accent: var(--purple-deep); --accent-ink: var(--paper); --focus: var(--purple-deep); --arc-1: var(--yellow); --arc-2: var(--sky); --dotc: var(--purple-deep); --rule: rgba(15,22,56,.16); }
.g-mist   { --bg: var(--mist); --fg: var(--ink); --fg-soft: var(--navy); --accent: var(--purple-deep); --accent-ink: var(--paper); --focus: var(--purple-deep); --arc-1: var(--yellow); --arc-2: var(--sky); --dotc: var(--purple-deep); --rule: rgba(15,22,56,.16); }
.g-purple, .g-blue, .g-navy, .g-yellow, .g-sky, .g-paper, .g-mist { background-color: var(--bg); color: var(--fg); }

/* ---- base ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); font-size: var(--t-body); line-height: 1.6; font-weight: 450;
  background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.06; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--focus, var(--purple-deep)); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--ink); }
input, select, textarea, button { font: inherit; color: inherit; }
[lang|="zh"] { font-family: var(--font-zh); }
[lang="ja"] { font-family: var(--font-ja); }
[lang="ko"] { font-family: var(--font-ko); }
[lang="hi"] { font-family: var(--font-hi); }
[lang="ar"] { font-family: var(--font-ar); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: var(--s-3); top: var(--s-3); z-index: 300; padding: var(--s-3) var(--s-4); background: var(--yellow); color: var(--ink); font-weight: 800; border-radius: 999px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: 90rem; margin-inline: auto; padding-inline: var(--gutter); }
main:focus { outline: none; }

/* ---- the arc system: half rings at the mark's own proportion, coloured by --arc --- */
.deco { display: block; pointer-events: none; }
.arc { aspect-ratio: 2 / 1; background-color: var(--arc, var(--arc-1));
  -webkit-mask: url('../img/arc-top.svg') center / 100% 100% no-repeat; mask: url('../img/arc-top.svg') center / 100% 100% no-repeat; }
.arc--down { -webkit-mask-image: url('../img/arc-bottom.svg'); mask-image: url('../img/arc-bottom.svg'); }
.ring { aspect-ratio: 1; background-color: var(--arc, var(--arc-2));
  -webkit-mask: url('../img/ring.svg') center / 100% 100% no-repeat; mask: url('../img/ring.svg') center / 100% 100% no-repeat; }
.dot { aspect-ratio: 1; border-radius: 50%; background: var(--arc, var(--dotc)); }

/* ---- buttons and links ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 0.7rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent; font-weight: 800; font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--yellow { background: var(--yellow); color: var(--ink); --focus: var(--yellow); }
.g-yellow .btn--yellow { background: var(--ink); color: var(--yellow); }
.btn--ghost { border-color: currentColor; background: transparent; color: var(--fg); }
@media (hover: hover) and (pointer: fine) {
  .btn--yellow:hover, .btn--accent:hover { transform: translateY(-2px); }
  .btn--ghost:hover { background: var(--fg); color: var(--bg); }
}
.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em; display: inline-block; padding-block: 0.6rem; }
.link:hover { text-decoration-thickness: 4px; }

/* ---- the loud bar ------------------------------------------------------------------- */
.bar { position: sticky; top: 0; z-index: 100; height: var(--bar-h); display: flex; align-items: center; gap: var(--s-5);
  padding-inline: var(--gutter); border-bottom: 4px solid var(--yellow); }
.bar__logo { flex: none; display: block; width: clamp(9.5rem, 13vw, 12rem); }
.bar__logo img { width: 100%; }
.bar__nav { display: flex; gap: clamp(0.75rem, 1.4vw, 1.6rem); margin-inline: auto; }
.bar__nav a { font-weight: 750; font-size: 1rem; text-decoration: none; padding-block: 0.6rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.bar__nav a:hover, .bar__nav a[aria-current] { border-bottom-color: var(--yellow); }
.bar__actions { display: flex; gap: var(--s-3); margin-inline-start: auto; }
.bar__nav + .bar__actions { margin-inline-start: 0; }
.bar .btn { min-height: 44px; padding: 0.5rem 1.15rem; }
@media (max-width: 1240px) { .bar__nav { display: none; } .bar__nav + .bar__actions { margin-inline-start: auto; } }
@media (max-width: 440px) { .bar { gap: var(--s-3); } .bar__actions { gap: var(--s-2); } .bar .btn { padding-inline: 0.75rem; } .bar__logo { width: 7rem; } }
@media (max-width: 380px) { .bar__logo { width: 6.25rem; } .bar .btn { padding-inline: 0.6rem; } }
@media (max-width: 340px) { .bar { gap: var(--s-2); } .bar__logo { width: 5.75rem; } .bar .btn { padding-inline: 0.55rem; font-size: 0.875rem; } }

/* ---- full-screen menu (works without JavaScript through :target) -------------------- */
.menu { position: fixed; inset: 0; z-index: 200; display: none; overflow-y: auto; overscroll-behavior: contain; }
.menu:target, .menu.is-open { display: block; }
.menu__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: var(--bar-h); padding-inline: var(--gutter); background: var(--bg); }
.menu__head img { width: clamp(9.5rem, 13vw, 12rem); }
.menu__body { padding: var(--s-6) var(--gutter) var(--s-9); display: grid; gap: var(--s-7) var(--s-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); max-width: 90rem; margin-inline: auto; }
.menu__group h2 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); letter-spacing: var(--track-h2); }
.menu__group h2 a { text-decoration: none; display: inline-block; padding-block: 0.25rem; }
.menu__group h2 a:hover { text-decoration: underline; text-decoration-thickness: 4px; }
.menu__group ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.menu__group li a { display: block; padding-block: 0.65rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule); }
.menu__group li a:hover, .menu__group li a[aria-current] { text-decoration: underline; }
.menu__aside { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 var(--s-6); padding-top: var(--s-5); border-top: 2px solid var(--fg); font-weight: 700; }
.menu__aside a { text-decoration: none; padding-block: 0.7rem; }
.menu__aside a:hover { text-decoration: underline; }
body.menu-open { overflow: hidden; }
@media (max-width: 600px) { .menu__body { gap: var(--s-6); } }

/* ---- breadcrumbs ------------------------------------------------------------------ */
.crumbs { font-size: var(--t-small); font-weight: 600; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--s-2); margin: 0; padding: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-inline-start: var(--s-2); opacity: 0.75; }
.crumbs a { display: inline-block; padding-block: 0.6rem; text-decoration: underline; text-decoration-thickness: 1px; }
.crumbs a[aria-current] { text-decoration: none; }

/* ---- inner page title band ------------------------------------------------------- */
.phero { padding-block: clamp(1.25rem, 3vw, 2.5rem) clamp(3rem, 7vw, 6rem); overflow: hidden; }
.phero__inner { display: grid; gap: var(--s-7) var(--s-8); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .phero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.phero--small .phero__inner { grid-template-columns: minmax(0, 1fr); }
.phero__text { container-type: inline-size; min-width: 0; }
/* Poster type: the fit-N class (index.mjs fitClass) is the longest word's width in em, so
   100cqi / N fills the column with that word and the rest wrap between words. Capped by the
   window height so the title, summary and action stay on the first screen. */
.phero__poster { --pmax: min(12rem, 21svh); font-size: min(var(--pmax), calc(100cqi / var(--fit, 6) * 0.98)); font-weight: 850; letter-spacing: var(--track-poster); line-height: 0.9; margin-top: var(--s-5); padding-bottom: 0.04em; text-wrap: balance; }

h1.phero__title::after { content: "."; content: "." / ""; }
.fit-1 { --fit: 1; }
.fit-1_25 { --fit: 1.25; }
.fit-1_5 { --fit: 1.5; }
.fit-1_75 { --fit: 1.75; }
.fit-2 { --fit: 2; }
.fit-2_25 { --fit: 2.25; }
.fit-2_5 { --fit: 2.5; }
.fit-2_75 { --fit: 2.75; }
.fit-3 { --fit: 3; }
.fit-3_25 { --fit: 3.25; }
.fit-3_5 { --fit: 3.5; }
.fit-3_75 { --fit: 3.75; }
.fit-4 { --fit: 4; }
.fit-4_25 { --fit: 4.25; }
.fit-4_5 { --fit: 4.5; }
.fit-4_75 { --fit: 4.75; }
.fit-5 { --fit: 5; }
.fit-5_25 { --fit: 5.25; }
.fit-5_5 { --fit: 5.5; }
.fit-5_75 { --fit: 5.75; }
.fit-6 { --fit: 6; }
.fit-6_25 { --fit: 6.25; }
.fit-6_5 { --fit: 6.5; }
.fit-6_75 { --fit: 6.75; }
.fit-7 { --fit: 7; }
.fit-7_25 { --fit: 7.25; }
.fit-7_5 { --fit: 7.5; }
.fit-7_75 { --fit: 7.75; }
.fit-8 { --fit: 8; }
.fit-8_25 { --fit: 8.25; }
.fit-8_5 { --fit: 8.5; }
.fit-8_75 { --fit: 8.75; }
.fit-9 { --fit: 9; }
.fit-9_25 { --fit: 9.25; }
.fit-9_5 { --fit: 9.5; }
.fit-9_75 { --fit: 9.75; }
.fit-10 { --fit: 10; }
.fit-10_25 { --fit: 10.25; }
.fit-10_5 { --fit: 10.5; }
.fit-10_75 { --fit: 10.75; }
.fit-11 { --fit: 11; }
.fit-11_25 { --fit: 11.25; }
.fit-11_5 { --fit: 11.5; }
.fit-11_75 { --fit: 11.75; }
.fit-12 { --fit: 12; }
.phero h1 { margin-top: var(--s-4); font-size: var(--t-h2); letter-spacing: var(--track-h2); line-height: 1.04; max-width: 22ch; }
.phero__poster + h1 { max-width: 26ch; }
@media (min-width: 900px) and (max-height: 820px) { .phero__poster + h1 { font-size: min(var(--t-h2), 6svh); } }
.phero h1.phero__h1 { --hmax: var(--t-display); margin-top: var(--s-5); font-size: min(var(--hmax), calc(100cqi / var(--fit, 6))); letter-spacing: var(--track-display); line-height: 0.96; max-width: 16ch; }
.phero--small h1.phero__h1 { --hmax: clamp(2.25rem, 6vw, 5rem); max-width: 22ch; }
/* short laptop screens: the title gives way so the summary and the first action stay on screen */
@media (min-width: 900px) and (max-height: 900px) { .phero h1.phero__h1 { --hmax: min(var(--t-display), 8.5svh); } .phero--small h1.phero__h1 { --hmax: min(clamp(2.25rem, 6vw, 5rem), 8.5svh); } }
/* a hub whose title is its poster: the h1 itself is set at poster scale */
.phero h1.phero__title { --pmax: min(12rem, 20svh); margin-top: var(--s-5); font-size: min(var(--pmax), calc(100cqi / var(--fit, 6) * 0.98)); font-weight: 850; letter-spacing: var(--track-poster); line-height: 0.9; max-width: none; }
.phero__lede { margin-top: var(--s-5); font-size: var(--t-lede); line-height: 1.45; font-weight: 550; max-width: 38ch; }
.phero__actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); align-items: center; }
/* a pure decoration cell, used only when there is no photograph and only on wide screens */
.phero__art { display: none; }
@media (min-width: 900px) {
  .phero__art { display: grid; align-self: stretch; min-height: 16rem; position: relative; }
  .phero__arc { position: absolute; width: 78%; right: 0; bottom: 0; --arc: var(--arc-1); }
  .phero__arc2 { position: absolute; width: 46%; right: 52%; top: 0; --arc: var(--arc-2); }
}

/* photographs: always inside a circle or an arch; arcs and dot stay inside the figure box */
.mframe { position: relative; margin: 0; width: min(100%, 34rem); justify-self: center; aspect-ratio: 1; }
.mframe__img { position: absolute; inset: 6% 6% 6% 6%; width: 88%; height: 88%; object-fit: cover; border-radius: 50%; }
.mframe--arch { aspect-ratio: 4 / 5; }
.mframe--arch .mframe__img { inset: 0 6% 6% 6%; height: 94%; border-radius: 999px 999px 0 0; }
.mframe__arc { position: absolute; width: 56%; right: 0; bottom: 0; --arc: var(--arc-1); }
.mframe__dot { position: absolute; width: 14%; right: 2%; top: 2%; --arc: var(--dotc); }

/* ---- blocks ---------------------------------------------------------------------- */
.block { padding-block: var(--section); overflow: clip; }
.block--cont { padding-top: 0; }
.block__head { max-width: 54rem; margin-bottom: clamp(1.75rem, 4vw, 3.25rem); }
.block__head h2, .related__h, .logos__h { font-size: var(--t-h2); letter-spacing: var(--track-h2); }
.block__intro { margin-top: var(--s-4); font-size: var(--t-lede); line-height: 1.5; color: var(--fg-soft); font-weight: 500; max-width: 46ch; }
.block__intro p + p { margin-top: var(--s-3); }

.prose-split { display: grid; gap: var(--s-5) var(--s-8); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .prose-split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.prose-split__h { font-size: var(--t-h2); letter-spacing: var(--track-h2); }
.prose { max-width: var(--measure); font-size: 1.125rem; }
.prose p + p, .prose ul, .prose ol { margin-top: var(--s-4); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: var(--s-2); }
.prose a { font-weight: 700; }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6) var(--s-8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.features li { display: grid; grid-template-columns: 1rem 1fr; gap: 0 var(--s-4); align-content: start; }
.features li::before { content: ""; width: 1rem; height: 1rem; margin-top: 0.35rem; border-radius: 50%; background: var(--dotc); grid-row: span 2; }
.features h3 { font-size: var(--t-h3); letter-spacing: var(--track-h3); line-height: 1.2; }
.features li > div { margin-top: var(--s-2); color: var(--fg-soft); }
.features li > div p + p { margin-top: var(--s-2); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: var(--s-5); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.25rem 1fr; gap: var(--s-1) var(--s-5); padding-top: var(--s-5); border-top: 2px solid var(--fg); }
.steps li::before { content: counter(s); grid-row: span 2; font-size: 2.5rem; font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--t-h3); letter-spacing: var(--track-h3); line-height: 1.2; }
.steps li > div { max-width: var(--measure); }

.index { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--fg); }
.index a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-6); align-items: center; padding-block: clamp(1.1rem, 2.4vw, 2rem); border-bottom: 1px solid var(--rule); text-decoration: none; }
@media (min-width: 900px) { .index a { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; } }
.index__title { font-size: clamp(1.625rem, 3.8vw, 3.25rem); font-weight: 800; letter-spacing: var(--track-h2); line-height: 1.02; }
.index__blurb { color: var(--fg-soft); font-weight: 500; grid-column: 1 / 2; }
@media (min-width: 900px) { .index__blurb { grid-column: auto; } }
.index__go { grid-row: 1; grid-column: 2; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); transition: transform 160ms var(--ease-out); }
.index__go::before { content: ""; width: 1.1rem; height: 1.1rem; background: var(--accent-ink); clip-path: polygon(0 42%, 60% 42%, 60% 18%, 100% 50%, 60% 82%, 60% 58%, 0 58%); }
@media (min-width: 900px) { .index__go { grid-column: 3; } }
@media (hover: hover) and (pointer: fine) {
  .index a:hover .index__title { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.12em; }
  .index a:hover .index__go { transform: translateX(6px); }
}
.related__h { margin-bottom: var(--s-6); }

.specs { margin: 0; border-top: 3px solid var(--fg); }
.specs > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-1) var(--s-6); padding-block: var(--s-4); border-bottom: 1px solid var(--rule); }
@media (min-width: 700px) { .specs > div { grid-template-columns: 15rem minmax(0, 1fr); } }
.specs dt { font-weight: 800; }
.specs dd { margin: 0; }

.options { border-top: 3px solid var(--fg); }
.option { display: grid; gap: var(--s-4) var(--s-8); padding-block: clamp(1.75rem, 3.5vw, 3rem); border-bottom: 1px solid var(--rule); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .option { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.option h3 { font-size: clamp(1.875rem, 4.4vw, 4rem); letter-spacing: var(--track-h2); line-height: 1; }
.option__summary { font-size: var(--t-lede); font-weight: 600; line-height: 1.45; }
.option ul { margin: var(--s-4) 0 0; padding-left: 1.2em; }
.option li + li { margin-top: var(--s-2); }

.faq { border-top: 3px solid var(--fg); max-width: 64rem; }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; padding-block: var(--s-5); font-size: var(--t-h3); font-weight: 750; letter-spacing: var(--track-h3); line-height: 1.25; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: linear-gradient(var(--accent-ink), var(--accent-ink)) center / 0.95rem 3px no-repeat, linear-gradient(var(--accent-ink), var(--accent-ink)) center / 3px 0.95rem no-repeat, var(--accent);
  transition: transform 160ms var(--ease-out); }
.faq__item[open] summary::after { background: linear-gradient(var(--accent-ink), var(--accent-ink)) center / 0.95rem 3px no-repeat, var(--accent); transform: rotate(180deg); }
.faq__a { padding-bottom: var(--s-5); max-width: var(--measure); }
.faq__a p + p, .faq__a ul { margin-top: var(--s-3); }

.quote { margin: 0; max-width: 72rem; }
.quote blockquote { margin: 0; font-size: clamp(1.625rem, 3.6vw, 3.25rem); font-weight: 750; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
.quote blockquote p::before { content: "\201C"; } .quote blockquote p::after { content: "\201D"; }
.quote figcaption { margin-top: var(--s-5); font-weight: 600; }
.quote figcaption strong { display: block; font-weight: 800; font-size: 1.125rem; }

.logos__h { margin-bottom: var(--s-6); }
.logos { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(46%, 9rem), 1fr)); }
.logos li { background: var(--paper); border-radius: 14px; display: flex; align-items: center; justify-content: center; height: clamp(6rem, 8vw, 7.5rem); padding: var(--s-3) var(--s-4); min-width: 0; overflow: hidden; }
.g-paper .logos li { box-shadow: inset 0 0 0 1px var(--rule); }
.logos img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }

.block--awards h2 { font-size: var(--t-h2); letter-spacing: var(--track-h2); margin-bottom: var(--s-6); }
.awards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.awards li { display: grid; gap: var(--s-3); }
.awards img { background: var(--paper); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--rule); width: 100%; height: auto; }
.awards span { font-weight: 700; }

.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 3px solid var(--fg); max-width: 64rem; }
.downloads li { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); align-items: baseline; padding-block: var(--s-4); border-bottom: 1px solid var(--rule); }
.downloads a { font-weight: 750; text-decoration-thickness: 2px; padding-block: 0.4rem; }
.downloads__meta, .downloads__note { color: var(--fg-soft); font-size: var(--t-small); }
.downloads__note { flex-basis: 100%; }

.contacts { margin: 0; display: grid; gap: var(--s-5) var(--s-7); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.block--contacts h2 { font-size: var(--t-h2); letter-spacing: var(--track-h2); margin-bottom: var(--s-6); }
.contacts > div { border-top: 3px solid var(--fg); padding-top: var(--s-4); }
.contacts dt { font-weight: 700; font-size: var(--t-small); }
.contacts dd { margin: var(--s-1) 0 0; font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 750; letter-spacing: -0.015em; line-height: 1.3; overflow-wrap: break-word; }
.contacts dd a { display: inline-block; padding-block: 0.25rem; }
.contacts__note { display: block; margin-top: var(--s-2); font-size: 1rem; font-weight: 500; letter-spacing: 0; }

.callout { background: var(--yellow-tint); color: var(--ink); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2.5rem); max-width: 64rem; --focus: var(--purple-deep); }
.callout h2 { font-size: var(--t-h3); margin-bottom: var(--s-3); }
.callout p + p, .callout ul { margin-top: var(--s-3); }

.ctaband__h { font-size: var(--t-display); letter-spacing: var(--track-display); line-height: 0.98; max-width: 16ch; }
.ctaband__body { margin-top: var(--s-5); font-size: var(--t-lede); max-width: 44ch; }
.ctaband__actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3); }

.integrations { margin: 0; display: grid; gap: 0 var(--s-8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); border-top: 3px solid var(--fg); }
.integrations > div { padding-block: var(--s-4); border-bottom: 1px solid var(--rule); }
.integrations dt { font-size: var(--t-h3); font-weight: 800; letter-spacing: var(--track-h3); }
.integrations dd { margin: var(--s-1) 0 0; color: var(--fg-soft); }

/* legal: the loud system stops at the title; long text stays easy to read */
.legal { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .legal--toc { grid-template-columns: 17rem minmax(0, 1fr); } }
.legal__toc { font-size: var(--t-small); }
/* the index rides along only when all of it fits the window; a long one stays in the page (never a scroll box of its own) */
@media (min-width: 1100px) and (min-height: 760px) { .legal__toc:not(.legal__toc--long) { position: sticky; top: calc(var(--bar-h) + 1.5rem); align-self: start; } }
.legal__toc p { font-weight: 800; margin-bottom: var(--s-2); }
.legal__toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-1); }
.legal__toc ol.legal__toc--own { list-style: none; padding-left: 0; }
.legal__toc a { display: inline-block; padding-block: 0.3rem; }
.legal__body { max-width: 68ch; line-height: 1.7; overflow-wrap: break-word; }
.legal__body h2 { font-size: clamp(1.375rem, 7vw, 1.75rem); color: var(--purple-deep); letter-spacing: -0.02em; margin: var(--s-7) 0 var(--s-4); }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: 1.25rem; margin: var(--s-6) 0 var(--s-3); }
.legal__body h4 { font-size: 1.0625rem; margin: var(--s-5) 0 var(--s-2); }
.legal__body p + p, .legal__body p + ul, .legal__body p + ol, .legal__body ul + p, .legal__body ol + p { margin-top: var(--s-4); }
.legal__body ul, .legal__body ol { padding-left: 1.4em; }
.legal__body li + li { margin-top: 0.5em; }
.legal__body a { color: inherit; font-weight: 700; }
.legal__body table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; margin-block: var(--s-5); font-size: var(--t-small); }
.legal__body th, .legal__body td { border: 1px solid var(--rule); padding: 0.5rem 0.75rem; text-align: left; vertical-align: top; }
.legal__body th { background: var(--mist); }
.block--legal + .block--legal { padding-top: 0; }

/* ---- the sample-call player skin (every page except the home peak) -------------- */
.calls { display: grid; gap: var(--s-8); }
.aic { display: grid; gap: var(--s-4); }
.aic__title { font-size: clamp(1.75rem, 4vw, 3.5rem); letter-spacing: var(--track-h2); line-height: 1.02; max-width: 20ch; }
.aic__context { font-weight: 650; }
.aic__disclaimer { font-weight: 800; font-size: var(--t-small); }
.aic__controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.aic__controls[hidden] { display: none; }
.aic__play { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 52px; padding: 0.4rem 1.4rem 0.4rem 0.45rem; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; cursor: pointer; }
.aic__play::before { content: ""; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--accent-ink); -webkit-mask: none; }
.aic__play { position: relative; }
.aic__play::after { content: ""; position: absolute; left: calc(0.45rem + 0.8rem); top: 50%; width: 0.75rem; height: 0.85rem; margin-top: -0.425rem; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.aic.is-playing .aic__play::after { clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0); width: 0.7rem; margin-left: -0.05rem; }
.aic__progress { flex: 1 1 10rem; min-width: 8rem; height: 6px; border-radius: 3px; background: var(--rule); position: relative; overflow: hidden; }
.aic__progress::before { content: ""; position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(var(--call-progress, 0)); }
.aic__time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--t-small); }
.aic__audio { width: 100%; max-width: 32rem; }
.aic__transcript { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-4); max-width: 60rem; }
.aic__line { display: grid; gap: var(--s-1); transition: opacity 200ms linear; }
.aic__speaker { font-size: var(--t-small); font-weight: 800; letter-spacing: 0.02em; color: var(--fg-soft); }
.aic__text { font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.aic__line[data-role="caller"] .aic__text { font-weight: 550; }
/* transcripts in Chinese use the system face (the Hello subset covers only the greeting's glyphs), and caller
   lines stay lighter than staff lines in every language */
.aic [lang|="zh"] { font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif; letter-spacing: 0; }
.aic__line[data-role="caller"] .aic__text[lang|="zh"], .aic__line[data-role="caller"] .aic__text [lang|="zh"] { font-weight: 400; }
.aic__head { display: grid; gap: var(--s-3); }
.aic__controls, .aic__transcript, .aic__card { max-width: 60rem; }
.aic__translation { font-size: 1rem; color: var(--fg-soft); }
.aic.is-enhanced.is-playing .aic__line.is-upcoming, .aic.is-enhanced.is-paused .aic__line.is-upcoming { opacity: 0.38; }
.aic .call-word { transition: color 120ms linear; }
.aic__card { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 3px solid var(--fg); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-6); max-width: 60rem; }
.aic__card-title { font-size: clamp(1.25rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.aic__card-fields { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.aic__card-fields div { display: flex; gap: var(--s-2); }
.aic__card-fields dt { font-weight: 600; color: var(--fg-soft); }
.aic__card-fields dd { margin: 0; font-weight: 800; }
.aic__card-status { font-weight: 850; font-size: clamp(1.25rem, 2.4vw, 2rem); color: var(--accent); }
.g-sky .aic__card-status, .g-yellow .aic__card-status { color: var(--fg); }
@media (prefers-reduced-motion: reduce) { .aic__line, .aic .call-word { transition: none; } }

/* ---- the enquiry -------------------------------------------------------------- */
.enquiry { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .enquiry { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-9); } }
.enquiry h2 { font-size: var(--t-h2); letter-spacing: var(--track-h2); }
.enquiry__intro p { margin-top: var(--s-4); font-size: var(--t-lede); line-height: 1.5; font-weight: 500; max-width: 36ch; }
.enquiry__intro .enquiry__alt { font-size: var(--t-body); font-weight: 600; }
.enquiry__alt .link { display: inline; padding-block: 0.8rem; }
.form { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: grid; gap: var(--s-2); align-content: start; min-width: 0; }
.field label, .field legend { font-weight: 750; }
.field__opt { font-weight: 500; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; min-height: 52px; padding: 0.8rem 1rem; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); color: var(--ink); }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--purple-deep); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field__error, .form__error { color: #8C1D18; font-weight: 700; background: #FDECEA; border-radius: 10px; padding: 0.5rem 0.75rem; }
.field__error:target, .form__error:target { display: block; }
.field--radio { border: 0; padding: 0; margin: 0; }
.field--radio legend { margin-bottom: var(--s-2); }
.radio, .field--check { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; }
.radio input, .field--check input { width: 1.375rem; height: 1.375rem; accent-color: var(--purple-deep); flex: none; }
.form__consent { font-size: var(--t-small); line-height: 1.5; }
.form__consent a { font-weight: 700; }
.form__submit { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.form__status:empty { display: none; }
.form__status { font-weight: 700; }
.form__done, .form__fail { padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.form__done-big { font-size: var(--t-display); font-weight: 850; letter-spacing: var(--track-display); line-height: 1; margin-bottom: var(--s-4); }
.form__done p + p, .form__fail p + p { margin-top: var(--s-3); }

/* ---- footer ------------------------------------------------------------------ */
.foot { padding-bottom: var(--s-6); }
/* the arcs have a band of their own above the footer's text */
.foot__band { position: relative; height: clamp(4.5rem, 9vw, 8rem); overflow: hidden; margin-bottom: var(--s-5); }
.foot__arc { position: absolute; width: clamp(9rem, 18vw, 16rem); right: var(--gutter); top: 0; --arc: var(--sky); }
.foot__dot { position: absolute; width: clamp(1.5rem, 2.6vw, 2.5rem); right: calc(var(--gutter) + clamp(10.5rem, 21vw, 19rem)); top: 30%; --arc: var(--yellow); }
.foot__top { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .foot__top { grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); } }
.foot__logo { width: clamp(12rem, 22vw, 17rem); }
.foot__about { margin-top: var(--s-5); max-width: 40ch; color: var(--fg-soft); }
.foot__contact { margin-top: var(--s-5); display: grid; gap: var(--s-1); font-weight: 700; }
.foot__contact a { text-decoration: none; padding-block: 0.3rem; } .foot__contact a:hover { text-decoration: underline; }
.foot__phone { font-size: clamp(1.375rem, 7.5vw, 2.5rem); white-space: nowrap; font-weight: 800; letter-spacing: -0.02em; color: var(--yellow); }
.foot__social { margin-top: var(--s-4); margin-inline-start: -0.5rem; display: flex; flex-wrap: wrap; gap: 0 var(--s-2); font-weight: 700; }
.foot__social a { padding: 0.6rem 0.5rem; }
.foot__cols { display: grid; gap: var(--s-6) var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); }
.foot__cols h2 { font-size: 1rem; font-weight: 800; color: var(--yellow); }
.foot__cols ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.foot__cols li a { display: inline-block; padding-block: 0.55rem; text-decoration: none; font-weight: 500; }
.foot__cols li a:hover { text-decoration: underline; }
.foot__legal { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); font-size: var(--t-small); color: var(--fg-soft); }
.foot__legal a { color: var(--fg); padding-block: 0.6rem; }
.foot__legal span { padding-block: 0.6rem; }

.thanks__ref { margin-top: var(--s-5); font-size: var(--t-lede); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---- tap targets: every standalone link and control is at least 44 px tall ------- */
.bar__logo, .menu__head a:first-child { display: flex; align-items: center; min-height: 44px; }
.bar__nav a { padding-block: 0.75rem; }
.downloads a, .contacts dd a, .legal__toc a, .foot__contact a, .foot__legal a, .foot__social a, .crumbs a, .svc__links a, .foot__cols li a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__social a { min-width: 44px; justify-content: center; }
.foot__legal span { display: inline-flex; align-items: center; min-height: 44px; }
.downloads a { padding-block: 0; }
.legal__toc ol { gap: 0; }
/* inline links: vertical padding on an inline box grows the hit area without moving the text */
.legal__body a, .prose a, .faq__a a, .callout a, .block__intro a, .contacts__note a, .downloads__note a, .specs a, .features a, .steps a, .option a, .integrations a, .ctaband__body a, .enquiry__intro a, .aic a { padding-block: 0.8rem; }

.svc__h a, .hero__logo { min-height: 44px; }
.radio label, .field--check label { display: flex; align-items: center; min-height: 44px; }
.crumbs a, .contacts dd a { min-width: 44px; }
/* a link holding <wbr> break points (email addresses) must stay an inline box so it can wrap at them */
.contacts dd a:has(wbr), .foot__contact a:has(wbr), .foot__cols li a:has(wbr) { display: inline-block; }
.contacts:has(a[href^="mailto:"]) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr)); }
.contacts dd a[href^="mailto:"] { font-size: clamp(1.125rem, 1.55vw, 1.375rem); padding-block: 0.55rem; }
